From f855950370a2db9ed990d1690c9e4c7eeea640d6 Mon Sep 17 00:00:00 2001 From: raphaeIl Date: Wed, 8 Jan 2025 20:08:36 -0500 Subject: [PATCH] Init commit --- .gitignore | 363 ++ NTR.Common/NTR.Common.csproj | 15 + NTR.Common/protos/AI.cs | 503 ++ NTR.Common/protos/Achievement.cs | 962 ++++ NTR.Common/protos/Activity.cs | 794 +++ NTR.Common/protos/AddBuffAction.cs | 353 ++ NTR.Common/protos/AffinityGift.cs | 307 ++ NTR.Common/protos/AffinityLevel.cs | 571 +++ NTR.Common/protos/AffinityQuest.cs | 494 ++ NTR.Common/protos/AffinityUpReward.cs | 626 +++ NTR.Common/protos/Agent.cs | 1196 +++++ NTR.Common/protos/AgentSpecialPerformance.cs | 382 ++ NTR.Common/protos/AgentTab.cs | 353 ++ NTR.Common/protos/AreaEffect.cs | 316 ++ NTR.Common/protos/Attribute.cs | 3238 +++++++++++++ NTR.Common/protos/AttributeLimit.cs | 353 ++ NTR.Common/protos/BattlePass.cs | 974 ++++ NTR.Common/protos/BattlePassLevel.cs | 353 ++ NTR.Common/protos/BattlePassQuest.cs | 391 ++ NTR.Common/protos/BattlePassReward.cs | 540 +++ NTR.Common/protos/BattleThreshold.cs | 954 ++++ NTR.Common/protos/BoardNPC.cs | 353 ++ NTR.Common/protos/Buff.cs | 868 ++++ NTR.Common/protos/BuffValue.cs | 719 +++ NTR.Common/protos/Chapter.cs | 532 ++ NTR.Common/protos/CharAffinityTemplate.cs | 279 ++ NTR.Common/protos/CharGrade.cs | 391 ++ NTR.Common/protos/CharItemExp.cs | 316 ++ NTR.Common/protos/CharPotential.cs | 385 ++ NTR.Common/protos/CharRaritySequence.cs | 391 ++ NTR.Common/protos/Character.cs | 2597 ++++++++++ NTR.Common/protos/CharacterAdvance.cs | 1103 +++++ NTR.Common/protos/CharacterArchive.cs | 429 ++ NTR.Common/protos/CharacterArchiveBaseInfo.cs | 391 ++ NTR.Common/protos/CharacterArchiveContent.cs | 316 ++ NTR.Common/protos/CharacterArchiveVoice.cs | 504 ++ NTR.Common/protos/CharacterCG.cs | 391 ++ NTR.Common/protos/CharacterDes.cs | 588 +++ NTR.Common/protos/CharacterSkillUpgrade.cs | 652 +++ NTR.Common/protos/CharacterSkin.cs | 1290 +++++ NTR.Common/protos/CharacterSkinPanelFace.cs | 391 ++ NTR.Common/protos/CharacterSkinTheme.cs | 353 ++ NTR.Common/protos/CharacterTag.cs | 316 ++ NTR.Common/protos/CharacterUpgrade.cs | 353 ++ NTR.Common/protos/CharacterVoiceControl.cs | 532 ++ NTR.Common/protos/Chat.cs | 803 ++++ NTR.Common/protos/Chest.cs | 802 +++ NTR.Common/protos/ClientDiff.cs | 230 + NTR.Common/protos/Config.cs | 278 ++ NTR.Common/protos/ContentWord.cs | 316 ++ NTR.Common/protos/DailyInstance.cs | 945 ++++ NTR.Common/protos/DailyInstanceFloor.cs | 842 ++++ NTR.Common/protos/DailyInstanceRewardGroup.cs | 504 ++ NTR.Common/protos/DailyInstanceType.cs | 494 ++ NTR.Common/protos/DailyQuest.cs | 748 +++ NTR.Common/protos/DailyQuestActive.cs | 428 ++ NTR.Common/protos/DailyQuestAward.cs | 503 ++ NTR.Common/protos/DatingCharResponse.cs | 466 ++ NTR.Common/protos/DatingEvent.cs | 709 +++ NTR.Common/protos/DatingLandmark.cs | 390 ++ NTR.Common/protos/DestroyObject.cs | 428 ++ NTR.Common/protos/DictionaryDiagram.cs | 353 ++ NTR.Common/protos/DictionaryEntry.cs | 531 ++ NTR.Common/protos/DictionaryTab.cs | 391 ++ NTR.Common/protos/DictionaryTopBarEntry.cs | 307 ++ NTR.Common/protos/Disc.cs | 1328 +++++ NTR.Common/protos/DiscCommonSkill.cs | 919 ++++ NTR.Common/protos/DiscItemExp.cs | 316 ++ NTR.Common/protos/DiscPassiveSkill.cs | 1272 +++++ NTR.Common/protos/DiscPromote.cs | 577 +++ NTR.Common/protos/DiscPromoteLimit.cs | 353 ++ NTR.Common/protos/DiscStrengthen.cs | 278 ++ NTR.Common/protos/DiscTag.cs | 278 ++ NTR.Common/protos/Drop.cs | 278 ++ NTR.Common/protos/DropItemShow.cs | 316 ++ NTR.Common/protos/DropObject.cs | 279 ++ NTR.Common/protos/DropObjectGroup.cs | 317 ++ NTR.Common/protos/DropPkg.cs | 278 ++ NTR.Common/protos/Effect.cs | 1856 +++++++ NTR.Common/protos/EffectDesc.cs | 578 +++ NTR.Common/protos/EffectValue.cs | 842 ++++ NTR.Common/protos/EndSceneType.cs | 353 ++ NTR.Common/protos/EnergyBuy.cs | 354 ++ NTR.Common/protos/EnumDesc.cs | 316 ++ NTR.Common/protos/Equipment.cs | 691 +++ NTR.Common/protos/EquipmentGroupExp.cs | 391 ++ NTR.Common/protos/EquipmentInstance.cs | 917 ++++ NTR.Common/protos/EquipmentInstanceFloor.cs | 842 ++++ NTR.Common/protos/EquipmentInstanceType.cs | 589 +++ NTR.Common/protos/EquipmentItemExp.cs | 316 ++ NTR.Common/protos/EquipmentRandomAttribute.cs | 467 ++ NTR.Common/protos/ErrorCode.cs | 353 ++ NTR.Common/protos/EventOptions.cs | 316 ++ NTR.Common/protos/EventOptionsRules.cs | 316 ++ NTR.Common/protos/EventResult.cs | 439 ++ NTR.Common/protos/FactionRelation.cs | 270 ++ NTR.Common/protos/FateCard.cs | 897 ++++ NTR.Common/protos/FileDiff.cs | 316 ++ NTR.Common/protos/FloorBuff.cs | 355 ++ NTR.Common/protos/Force.cs | 381 ++ NTR.Common/protos/FormationScene.cs | 279 ++ NTR.Common/protos/GMBuild.cs | 278 ++ NTR.Common/protos/GMOrder.cs | 466 ++ NTR.Common/protos/GMTeam.cs | 335 ++ NTR.Common/protos/Gacha.cs | 991 ++++ NTR.Common/protos/GachaAcquireReward.cs | 429 ++ NTR.Common/protos/GachaType.cs | 792 +++ NTR.Common/protos/GamepadButton.cs | 316 ++ NTR.Common/protos/Guide.cs | 1017 ++++ NTR.Common/protos/GuideGroup.cs | 729 +++ NTR.Common/protos/Handbook.cs | 428 ++ NTR.Common/protos/HitDamage.cs | 1079 +++++ NTR.Common/protos/Honor.cs | 605 +++ NTR.Common/protos/HonorCharacter.cs | 494 ++ NTR.Common/protos/InfinityTower.cs | 494 ++ NTR.Common/protos/InfinityTowerAffix.cs | 420 ++ NTR.Common/protos/InfinityTowerBountyLevel.cs | 738 +++ NTR.Common/protos/InfinityTowerDifficulty.cs | 504 ++ NTR.Common/protos/InfinityTowerEnemySet.cs | 504 ++ NTR.Common/protos/InfinityTowerFloor.cs | 607 +++ NTR.Common/protos/InfinityTowerLevel.cs | 682 +++ NTR.Common/protos/InfinityTowerMap.cs | 429 ++ NTR.Common/protos/InfinityTowerMsg.cs | 457 ++ NTR.Common/protos/InfinityTowerPlot.cs | 569 +++ NTR.Common/protos/InteractiveAction.cs | 428 ++ NTR.Common/protos/Item.cs | 867 ++++ NTR.Common/protos/ItemPackMark.cs | 382 ++ NTR.Common/protos/JumpTo.cs | 381 ++ NTR.Common/protos/LoginRewardControl.cs | 391 ++ NTR.Common/protos/LoginRewardGroup.cs | 616 +++ NTR.Common/protos/MailTemplate.cs | 952 ++++ NTR.Common/protos/Mainline.cs | 1357 ++++++ NTR.Common/protos/MainlineFloor.cs | 466 ++ NTR.Common/protos/MallGem.cs | 616 +++ NTR.Common/protos/MallMonthlyCard.cs | 503 ++ NTR.Common/protos/MallPackage.cs | 878 ++++ NTR.Common/protos/MallPackagePage.cs | 316 ++ NTR.Common/protos/MallShop.cs | 878 ++++ NTR.Common/protos/MallShopPage.cs | 466 ++ NTR.Common/protos/Monster.cs | 1720 +++++++ NTR.Common/protos/MonsterAI.cs | 758 +++ NTR.Common/protos/MonsterActionBranch.cs | 1246 +++++ NTR.Common/protos/MonsterBornGroup.cs | 391 ++ NTR.Common/protos/MonsterGroup.cs | 278 ++ NTR.Common/protos/MonsterSkin.cs | 766 +++ NTR.Common/protos/MonsterTeam.cs | 540 +++ NTR.Common/protos/MonsterValueTemplete.cs | 2299 +++++++++ .../protos/MonsterValueTempleteAdjust.cs | 1131 +++++ NTR.Common/protos/MonthlyCard.cs | 428 ++ NTR.Common/protos/NPCConfig.cs | 634 +++ NTR.Common/protos/NPCSkin.cs | 914 ++++ NTR.Common/protos/Note.cs | 689 +++ NTR.Common/protos/NoteDropGroup.cs | 487 ++ NTR.Common/protos/OnceAdditionalAttribute.cs | 354 ++ .../protos/OnceAdditionalAttributeValue.cs | 579 +++ NTR.Common/protos/OpenFunc.cs | 540 +++ NTR.Common/protos/PeriodicQuest.cs | 465 ++ NTR.Common/protos/PeriodicQuestControl.cs | 617 +++ NTR.Common/protos/PeriodicQuestGroup.cs | 316 ++ NTR.Common/protos/Perk.cs | 1178 +++++ NTR.Common/protos/PerkPassiveSkill.cs | 839 ++++ NTR.Common/protos/PlayerHead.cs | 278 ++ NTR.Common/protos/Plot.cs | 606 +++ NTR.Common/protos/Potential.cs | 1392 ++++++ NTR.Common/protos/PotentialPassiveSkill.cs | 690 +++ NTR.Common/protos/PreviewMonsterGroup.cs | 391 ++ NTR.Common/protos/PreviewMonsterList.cs | 860 ++++ NTR.Common/protos/Production.cs | 1029 ++++ NTR.Common/protos/ProductionType.cs | 316 ++ NTR.Common/protos/RandomLevelMonster.cs | 2055 ++++++++ NTR.Common/protos/Rank.cs | 278 ++ NTR.Common/protos/Recorder.cs | 4181 ++++++++++++++++ NTR.Common/protos/Recorders.cs | 4279 +++++++++++++++++ NTR.Common/protos/RegionBoss.cs | 700 +++ NTR.Common/protos/RegionBossAffix.cs | 560 +++ NTR.Common/protos/RegionBossFloor.cs | 504 ++ NTR.Common/protos/RegionBossLevel.cs | 1358 ++++++ NTR.Common/protos/ResidentGoods.cs | 954 ++++ NTR.Common/protos/ResidentShop.cs | 616 +++ NTR.Common/protos/ScriptParameter.cs | 354 ++ NTR.Common/protos/ScriptParameterValue.cs | 279 ++ NTR.Common/protos/ServerAgent.cs | 353 ++ NTR.Common/protos/ServerListMeta.cs | 418 ++ NTR.Common/protos/Shield.cs | 616 +++ NTR.Common/protos/ShieldValue.cs | 579 +++ NTR.Common/protos/SignIn.cs | 390 ++ NTR.Common/protos/Skill.cs | 1214 +++++ NTR.Common/protos/SkillDamage.cs | 269 ++ NTR.Common/protos/StarTower.cs | 1217 +++++ NTR.Common/protos/StarTowerBattleThreshold.cs | 955 ++++ NTR.Common/protos/StarTowerBookEntrance.cs | 354 ++ NTR.Common/protos/StarTowerBookEventReward.cs | 541 +++ NTR.Common/protos/StarTowerBookFateCard.cs | 598 +++ .../protos/StarTowerBookFateCardBundle.cs | 635 +++ .../protos/StarTowerBookFateCardQuest.cs | 615 +++ .../protos/StarTowerBookPotentialReward.cs | 503 ++ NTR.Common/protos/StarTowerBuildRank.cs | 316 ++ NTR.Common/protos/StarTowerCombatEvent.cs | 466 ++ NTR.Common/protos/StarTowerCombo.cs | 270 ++ NTR.Common/protos/StarTowerDropItem.cs | 373 ++ NTR.Common/protos/StarTowerEnemySet.cs | 429 ++ NTR.Common/protos/StarTowerEvent.cs | 494 ++ NTR.Common/protos/StarTowerEventAction.cs | 391 ++ .../protos/StarTowerEventOptionAction.cs | 354 ++ NTR.Common/protos/StarTowerFloor.cs | 504 ++ NTR.Common/protos/StarTowerFloorAward.cs | 429 ++ NTR.Common/protos/StarTowerFloorExp.cs | 541 +++ NTR.Common/protos/StarTowerFloorSet.cs | 608 +++ NTR.Common/protos/StarTowerGroup.cs | 456 ++ NTR.Common/protos/StarTowerGrowthGroup.cs | 354 ++ NTR.Common/protos/StarTowerGrowthNode.cs | 971 ++++ NTR.Common/protos/StarTowerHarmonySkill.cs | 569 +++ NTR.Common/protos/StarTowerLimitReward.cs | 382 ++ NTR.Common/protos/StarTowerMap.cs | 569 +++ .../protos/StarTowerMapMaxNumPerStage.cs | 279 ++ .../protos/StarTowerMonsterBornGroup.cs | 392 ++ NTR.Common/protos/StarTowerMonsterSpAttr.cs | 478 ++ NTR.Common/protos/StarTowerQuest.cs | 607 +++ NTR.Common/protos/StarTowerRankAffix.cs | 382 ++ NTR.Common/protos/StarTowerRankReward.cs | 429 ++ NTR.Common/protos/StarTowerRankScore.cs | 316 ++ NTR.Common/protos/StarTowerRankSeason.cs | 617 +++ NTR.Common/protos/StarTowerScenePrefab.cs | 345 ++ NTR.Common/protos/StarTowerShopGoodsGroup.cs | 279 ++ NTR.Common/protos/StarTowerSpMode.cs | 392 ++ NTR.Common/protos/StarTowerSpecificCombat.cs | 391 ++ NTR.Common/protos/StarTowerStage.cs | 504 ++ NTR.Common/protos/StarTowerTalk.cs | 428 ++ NTR.Common/protos/StarTowerTeamExp.cs | 353 ++ NTR.Common/protos/Story.cs | 932 ++++ NTR.Common/protos/StoryChapter.cs | 593 +++ NTR.Common/protos/StoryCondition.cs | 459 ++ NTR.Common/protos/StoryEvidence.cs | 465 ++ NTR.Common/protos/StoryPersonality.cs | 390 ++ NTR.Common/protos/StoryRolePersonality.cs | 1083 +++++ NTR.Common/protos/TableAI.cs | 230 + NTR.Common/protos/TableAchievement.cs | 231 + NTR.Common/protos/TableActivity.cs | 231 + NTR.Common/protos/TableAddBuffAction.cs | 231 + NTR.Common/protos/TableAffinityGift.cs | 231 + NTR.Common/protos/TableAffinityLevel.cs | 231 + NTR.Common/protos/TableAffinityQuest.cs | 231 + NTR.Common/protos/TableAffinityUpReward.cs | 232 + NTR.Common/protos/TableAgent.cs | 231 + .../protos/TableAgentSpecialPerformance.cs | 232 + NTR.Common/protos/TableAgentTab.cs | 231 + NTR.Common/protos/TableAreaEffect.cs | 231 + NTR.Common/protos/TableAttribute.cs | 231 + NTR.Common/protos/TableAttributeLimit.cs | 231 + NTR.Common/protos/TableBattlePass.cs | 231 + NTR.Common/protos/TableBattlePassLevel.cs | 231 + NTR.Common/protos/TableBattlePassQuest.cs | 231 + NTR.Common/protos/TableBattlePassReward.cs | 232 + NTR.Common/protos/TableBattleThreshold.cs | 231 + NTR.Common/protos/TableBoardNPC.cs | 231 + NTR.Common/protos/TableBuff.cs | 230 + NTR.Common/protos/TableBuffValue.cs | 231 + NTR.Common/protos/TableChapter.cs | 231 + .../protos/TableCharAffinityTemplate.cs | 232 + NTR.Common/protos/TableCharGrade.cs | 231 + NTR.Common/protos/TableCharItemExp.cs | 231 + NTR.Common/protos/TableCharPotential.cs | 231 + NTR.Common/protos/TableCharRaritySequence.cs | 232 + NTR.Common/protos/TableCharacter.cs | 231 + NTR.Common/protos/TableCharacterAdvance.cs | 232 + NTR.Common/protos/TableCharacterArchive.cs | 232 + .../protos/TableCharacterArchiveBaseInfo.cs | 232 + .../protos/TableCharacterArchiveContent.cs | 232 + .../protos/TableCharacterArchiveVoice.cs | 232 + NTR.Common/protos/TableCharacterCG.cs | 231 + NTR.Common/protos/TableCharacterDes.cs | 231 + .../protos/TableCharacterSkillUpgrade.cs | 232 + NTR.Common/protos/TableCharacterSkin.cs | 231 + .../protos/TableCharacterSkinPanelFace.cs | 232 + NTR.Common/protos/TableCharacterSkinTheme.cs | 232 + NTR.Common/protos/TableCharacterTag.cs | 231 + NTR.Common/protos/TableCharacterUpgrade.cs | 232 + .../protos/TableCharacterVoiceControl.cs | 232 + NTR.Common/protos/TableChat.cs | 230 + NTR.Common/protos/TableChest.cs | 231 + NTR.Common/protos/TableConfig.cs | 231 + NTR.Common/protos/TableContentWord.cs | 231 + NTR.Common/protos/TableDailyInstance.cs | 231 + NTR.Common/protos/TableDailyInstanceFloor.cs | 232 + .../protos/TableDailyInstanceRewardGroup.cs | 232 + NTR.Common/protos/TableDailyInstanceType.cs | 232 + NTR.Common/protos/TableDailyQuest.cs | 231 + NTR.Common/protos/TableDailyQuestActive.cs | 232 + NTR.Common/protos/TableDailyQuestAward.cs | 231 + NTR.Common/protos/TableDatingCharResponse.cs | 232 + NTR.Common/protos/TableDatingEvent.cs | 231 + NTR.Common/protos/TableDatingLandmark.cs | 231 + NTR.Common/protos/TableDestroyObject.cs | 231 + NTR.Common/protos/TableDictionaryDiagram.cs | 232 + NTR.Common/protos/TableDictionaryEntry.cs | 231 + NTR.Common/protos/TableDictionaryTab.cs | 231 + .../protos/TableDictionaryTopBarEntry.cs | 232 + NTR.Common/protos/TableDisc.cs | 230 + NTR.Common/protos/TableDiscCommonSkill.cs | 231 + NTR.Common/protos/TableDiscItemExp.cs | 231 + NTR.Common/protos/TableDiscPassiveSkill.cs | 232 + NTR.Common/protos/TableDiscPromote.cs | 231 + NTR.Common/protos/TableDiscPromoteLimit.cs | 232 + NTR.Common/protos/TableDiscStrengthen.cs | 231 + NTR.Common/protos/TableDiscTag.cs | 231 + NTR.Common/protos/TableDrop.cs | 230 + NTR.Common/protos/TableDropItemShow.cs | 231 + NTR.Common/protos/TableDropObject.cs | 231 + NTR.Common/protos/TableDropObjectGroup.cs | 231 + NTR.Common/protos/TableDropPkg.cs | 231 + NTR.Common/protos/TableEffect.cs | 231 + NTR.Common/protos/TableEffectDesc.cs | 231 + NTR.Common/protos/TableEffectValue.cs | 231 + NTR.Common/protos/TableEndSceneType.cs | 231 + NTR.Common/protos/TableEnergyBuy.cs | 231 + NTR.Common/protos/TableEnumDesc.cs | 231 + NTR.Common/protos/TableEquipment.cs | 231 + NTR.Common/protos/TableEquipmentGroupExp.cs | 232 + NTR.Common/protos/TableEquipmentInstance.cs | 232 + .../protos/TableEquipmentInstanceFloor.cs | 232 + .../protos/TableEquipmentInstanceType.cs | 232 + NTR.Common/protos/TableEquipmentItemExp.cs | 232 + .../protos/TableEquipmentRandomAttribute.cs | 232 + NTR.Common/protos/TableErrorCode.cs | 231 + NTR.Common/protos/TableEventOptions.cs | 231 + NTR.Common/protos/TableEventOptionsRules.cs | 232 + NTR.Common/protos/TableEventResult.cs | 231 + NTR.Common/protos/TableFactionRelation.cs | 231 + NTR.Common/protos/TableFateCard.cs | 231 + NTR.Common/protos/TableFloorBuff.cs | 231 + NTR.Common/protos/TableForce.cs | 231 + NTR.Common/protos/TableFormationScene.cs | 231 + NTR.Common/protos/TableGMBuild.cs | 231 + NTR.Common/protos/TableGMOrder.cs | 231 + NTR.Common/protos/TableGMTeam.cs | 231 + NTR.Common/protos/TableGacha.cs | 231 + NTR.Common/protos/TableGachaAcquireReward.cs | 232 + NTR.Common/protos/TableGachaType.cs | 231 + NTR.Common/protos/TableGamepadButton.cs | 231 + NTR.Common/protos/TableGuide.cs | 231 + NTR.Common/protos/TableGuideGroup.cs | 231 + NTR.Common/protos/TableHandbook.cs | 231 + NTR.Common/protos/TableHitDamage.cs | 231 + NTR.Common/protos/TableHonor.cs | 231 + NTR.Common/protos/TableHonorCharacter.cs | 231 + NTR.Common/protos/TableInfinityTower.cs | 231 + NTR.Common/protos/TableInfinityTowerAffix.cs | 232 + .../protos/TableInfinityTowerBountyLevel.cs | 232 + .../protos/TableInfinityTowerDifficulty.cs | 232 + .../protos/TableInfinityTowerEnemySet.cs | 232 + NTR.Common/protos/TableInfinityTowerFloor.cs | 232 + NTR.Common/protos/TableInfinityTowerLevel.cs | 232 + NTR.Common/protos/TableInfinityTowerMap.cs | 232 + NTR.Common/protos/TableInfinityTowerMsg.cs | 232 + NTR.Common/protos/TableInfinityTowerPlot.cs | 232 + NTR.Common/protos/TableInteractiveAction.cs | 232 + NTR.Common/protos/TableItem.cs | 230 + NTR.Common/protos/TableItemPackMark.cs | 231 + NTR.Common/protos/TableJumpTo.cs | 231 + NTR.Common/protos/TableLoginRewardControl.cs | 232 + NTR.Common/protos/TableLoginRewardGroup.cs | 232 + NTR.Common/protos/TableMailTemplate.cs | 231 + NTR.Common/protos/TableMainline.cs | 231 + NTR.Common/protos/TableMainlineFloor.cs | 231 + NTR.Common/protos/TableMallGem.cs | 231 + NTR.Common/protos/TableMallMonthlyCard.cs | 231 + NTR.Common/protos/TableMallPackage.cs | 231 + NTR.Common/protos/TableMallPackagePage.cs | 231 + NTR.Common/protos/TableMallShop.cs | 231 + NTR.Common/protos/TableMallShopPage.cs | 231 + NTR.Common/protos/TableMonster.cs | 231 + NTR.Common/protos/TableMonsterAI.cs | 231 + NTR.Common/protos/TableMonsterActionBranch.cs | 232 + NTR.Common/protos/TableMonsterBornGroup.cs | 232 + NTR.Common/protos/TableMonsterGroup.cs | 231 + NTR.Common/protos/TableMonsterSkin.cs | 231 + NTR.Common/protos/TableMonsterTeam.cs | 231 + .../protos/TableMonsterValueTemplete.cs | 232 + .../protos/TableMonsterValueTempleteAdjust.cs | 232 + NTR.Common/protos/TableMonthlyCard.cs | 231 + NTR.Common/protos/TableNPCConfig.cs | 231 + NTR.Common/protos/TableNPCSkin.cs | 231 + NTR.Common/protos/TableNote.cs | 230 + NTR.Common/protos/TableNoteDropGroup.cs | 231 + .../protos/TableOnceAdditionalAttribute.cs | 232 + .../TableOnceAdditionalAttributeValue.cs | 233 + NTR.Common/protos/TableOpenFunc.cs | 231 + NTR.Common/protos/TablePeriodicQuest.cs | 231 + .../protos/TablePeriodicQuestControl.cs | 232 + NTR.Common/protos/TablePeriodicQuestGroup.cs | 232 + NTR.Common/protos/TablePerk.cs | 230 + NTR.Common/protos/TablePerkPassiveSkill.cs | 232 + NTR.Common/protos/TablePlayerHead.cs | 231 + NTR.Common/protos/TablePlot.cs | 230 + NTR.Common/protos/TablePotential.cs | 231 + .../protos/TablePotentialPassiveSkill.cs | 232 + NTR.Common/protos/TablePreviewMonsterGroup.cs | 232 + NTR.Common/protos/TablePreviewMonsterList.cs | 232 + NTR.Common/protos/TableProduction.cs | 231 + NTR.Common/protos/TableProductionType.cs | 231 + NTR.Common/protos/TableRandomLevelMonster.cs | 232 + NTR.Common/protos/TableRank.cs | 230 + NTR.Common/protos/TableRegionBoss.cs | 231 + NTR.Common/protos/TableRegionBossAffix.cs | 231 + NTR.Common/protos/TableRegionBossFloor.cs | 231 + NTR.Common/protos/TableRegionBossLevel.cs | 231 + NTR.Common/protos/TableResidentGoods.cs | 231 + NTR.Common/protos/TableResidentShop.cs | 231 + NTR.Common/protos/TableScriptParameter.cs | 231 + .../protos/TableScriptParameterValue.cs | 232 + NTR.Common/protos/TableShield.cs | 231 + NTR.Common/protos/TableShieldValue.cs | 231 + NTR.Common/protos/TableSignIn.cs | 231 + NTR.Common/protos/TableSkill.cs | 231 + NTR.Common/protos/TableSkillDamage.cs | 231 + NTR.Common/protos/TableStarTower.cs | 231 + .../protos/TableStarTowerBattleThreshold.cs | 232 + .../protos/TableStarTowerBookEntrance.cs | 232 + .../protos/TableStarTowerBookEventReward.cs | 232 + .../protos/TableStarTowerBookFateCard.cs | 232 + .../TableStarTowerBookFateCardBundle.cs | 233 + .../protos/TableStarTowerBookFateCardQuest.cs | 232 + .../TableStarTowerBookPotentialReward.cs | 233 + NTR.Common/protos/TableStarTowerBuildRank.cs | 232 + .../protos/TableStarTowerCombatEvent.cs | 232 + NTR.Common/protos/TableStarTowerCombo.cs | 231 + NTR.Common/protos/TableStarTowerDropItem.cs | 232 + NTR.Common/protos/TableStarTowerEnemySet.cs | 232 + NTR.Common/protos/TableStarTowerEvent.cs | 231 + .../protos/TableStarTowerEventAction.cs | 232 + .../protos/TableStarTowerEventOptionAction.cs | 232 + NTR.Common/protos/TableStarTowerFloor.cs | 231 + NTR.Common/protos/TableStarTowerFloorAward.cs | 232 + NTR.Common/protos/TableStarTowerFloorExp.cs | 232 + NTR.Common/protos/TableStarTowerFloorSet.cs | 232 + NTR.Common/protos/TableStarTowerGroup.cs | 231 + .../protos/TableStarTowerGrowthGroup.cs | 232 + NTR.Common/protos/TableStarTowerGrowthNode.cs | 232 + .../protos/TableStarTowerHarmonySkill.cs | 232 + .../protos/TableStarTowerLimitReward.cs | 232 + NTR.Common/protos/TableStarTowerMap.cs | 231 + .../protos/TableStarTowerMapMaxNumPerStage.cs | 232 + .../protos/TableStarTowerMonsterBornGroup.cs | 232 + .../protos/TableStarTowerMonsterSpAttr.cs | 232 + NTR.Common/protos/TableStarTowerQuest.cs | 231 + NTR.Common/protos/TableStarTowerRankAffix.cs | 232 + NTR.Common/protos/TableStarTowerRankReward.cs | 232 + NTR.Common/protos/TableStarTowerRankScore.cs | 232 + NTR.Common/protos/TableStarTowerRankSeason.cs | 232 + .../protos/TableStarTowerScenePrefab.cs | 232 + .../protos/TableStarTowerShopGoodsGroup.cs | 232 + NTR.Common/protos/TableStarTowerSpMode.cs | 231 + .../protos/TableStarTowerSpecificCombat.cs | 232 + NTR.Common/protos/TableStarTowerStage.cs | 231 + NTR.Common/protos/TableStarTowerTalk.cs | 231 + NTR.Common/protos/TableStarTowerTeamExp.cs | 232 + NTR.Common/protos/TableStory.cs | 231 + NTR.Common/protos/TableStoryChapter.cs | 231 + NTR.Common/protos/TableStoryCondition.cs | 231 + NTR.Common/protos/TableStoryEvidence.cs | 231 + NTR.Common/protos/TableStoryPersonality.cs | 232 + .../protos/TableStoryRolePersonality.cs | 232 + NTR.Common/protos/TableTalent.cs | 231 + NTR.Common/protos/TableTalentGroup.cs | 231 + NTR.Common/protos/TableTitle.cs | 231 + NTR.Common/protos/TableTopBar.cs | 231 + NTR.Common/protos/TableTourGuideQuest.cs | 231 + NTR.Common/protos/TableTourGuideQuestGroup.cs | 232 + NTR.Common/protos/TableTrap.cs | 230 + NTR.Common/protos/TableTrapAttribute.cs | 231 + NTR.Common/protos/TableTravelerDuelBoss.cs | 232 + .../protos/TableTravelerDuelBossLevel.cs | 232 + .../protos/TableTravelerDuelChallengeAffix.cs | 232 + .../TableTravelerDuelChallengeDifficulty.cs | 233 + .../protos/TableTravelerDuelChallengeQuest.cs | 232 + .../TableTravelerDuelChallengeRankReward.cs | 233 + .../TableTravelerDuelChallengeSeason.cs | 233 + NTR.Common/protos/TableTravelerDuelFloor.cs | 232 + NTR.Common/protos/TableTravelerDuelLevel.cs | 232 + NTR.Common/protos/TableTravelerDuelQuest.cs | 232 + NTR.Common/protos/TableTrialBuild.cs | 231 + NTR.Common/protos/TableTrialCharacter.cs | 231 + NTR.Common/protos/TableTrialDisc.cs | 231 + NTR.Common/protos/TableUIText.cs | 231 + .../protos/TableVampireBattleThreshold.cs | 232 + NTR.Common/protos/TableVampireEnemyPool.cs | 232 + NTR.Common/protos/TableVampireEnemySet.cs | 231 + NTR.Common/protos/TableVampireEnemySpAttr.cs | 232 + NTR.Common/protos/TableVampireFloor.cs | 231 + NTR.Common/protos/TableVampireMap.cs | 231 + NTR.Common/protos/TableVampireRankReward.cs | 232 + NTR.Common/protos/TableVampireRankSeason.cs | 232 + NTR.Common/protos/TableVampireSurvivor.cs | 231 + .../protos/TableVampireSurvivorLevel.cs | 232 + .../protos/TableVampireSurvivorQuest.cs | 232 + NTR.Common/protos/TableVampireTalent.cs | 231 + NTR.Common/protos/TableVampireTalentDesc.cs | 232 + NTR.Common/protos/TableVampireTalentFloor.cs | 232 + NTR.Common/protos/TableVoDirectory.cs | 231 + NTR.Common/protos/TableWeightParameter.cs | 231 + NTR.Common/protos/TableWord.cs | 230 + NTR.Common/protos/TableWordSuper.cs | 231 + NTR.Common/protos/TableWorldClass.cs | 231 + NTR.Common/protos/Talent.cs | 1130 +++++ NTR.Common/protos/TalentGroup.cs | 391 ++ NTR.Common/protos/Title.cs | 390 ++ NTR.Common/protos/TopBar.cs | 494 ++ NTR.Common/protos/TourGuideQuest.cs | 578 +++ NTR.Common/protos/TourGuideQuestGroup.cs | 728 +++ NTR.Common/protos/Trap.cs | 1318 +++++ NTR.Common/protos/TrapAttribute.cs | 335 ++ NTR.Common/protos/TravelerDuelBoss.cs | 457 ++ NTR.Common/protos/TravelerDuelBossLevel.cs | 1039 ++++ .../protos/TravelerDuelChallengeAffix.cs | 710 +++ .../protos/TravelerDuelChallengeDifficulty.cs | 383 ++ .../protos/TravelerDuelChallengeQuest.cs | 767 +++ .../protos/TravelerDuelChallengeRankReward.cs | 430 ++ .../protos/TravelerDuelChallengeSeason.cs | 467 ++ NTR.Common/protos/TravelerDuelFloor.cs | 504 ++ NTR.Common/protos/TravelerDuelLevel.cs | 316 ++ NTR.Common/protos/TravelerDuelQuest.cs | 729 +++ NTR.Common/protos/TrialBuild.cs | 710 +++ NTR.Common/protos/TrialCharacter.cs | 485 ++ NTR.Common/protos/TrialDisc.cs | 390 ++ NTR.Common/protos/UIText.cs | 278 ++ NTR.Common/protos/VampireBattleThreshold.cs | 955 ++++ NTR.Common/protos/VampireEnemyPool.cs | 429 ++ NTR.Common/protos/VampireEnemySet.cs | 655 +++ NTR.Common/protos/VampireEnemySpAttr.cs | 298 ++ NTR.Common/protos/VampireFloor.cs | 589 +++ NTR.Common/protos/VampireMap.cs | 428 ++ NTR.Common/protos/VampireRankReward.cs | 429 ++ NTR.Common/protos/VampireRankSeason.cs | 391 ++ NTR.Common/protos/VampireSurvivor.cs | 1396 ++++++ NTR.Common/protos/VampireSurvivorLevel.cs | 316 ++ NTR.Common/protos/VampireSurvivorQuest.cs | 766 +++ NTR.Common/protos/VampireTalent.cs | 643 +++ NTR.Common/protos/VampireTalentDesc.cs | 279 ++ NTR.Common/protos/VampireTalentFloor.cs | 307 ++ NTR.Common/protos/VoDirectory.cs | 428 ++ NTR.Common/protos/WeightParameter.cs | 316 ++ NTR.Common/protos/Word.cs | 764 +++ NTR.Common/protos/WordSuper.cs | 764 +++ NTR.Common/protos/WorldClass.cs | 465 ++ NTR.GameServer/GameServer.cs | 61 + NTR.GameServer/NTR.GameServer.csproj | 14 + NTR.GameServer/Protocol/Connection.cs | 45 + NTR.SDKServer/Controllers/ClientController.cs | 92 + NTR.SDKServer/NTR.SDKServer.csproj | 22 + NTR.SDKServer/Properties/launchSettings.json | 14 + NTR.SDKServer/SDKServer.cs | 64 + NTR.SDKServer/appsettings.json | 23 + NTR.SDKServer/bodyencrypted | 1 + NTR.SDKServer/serverlist.json | 14 + NTR.sln | 43 + NTR/NTR.csproj | 15 + NTR/Program.cs | 55 + 557 files changed, 233848 insertions(+) create mode 100644 .gitignore create mode 100644 NTR.Common/NTR.Common.csproj create mode 100644 NTR.Common/protos/AI.cs create mode 100644 NTR.Common/protos/Achievement.cs create mode 100644 NTR.Common/protos/Activity.cs create mode 100644 NTR.Common/protos/AddBuffAction.cs create mode 100644 NTR.Common/protos/AffinityGift.cs create mode 100644 NTR.Common/protos/AffinityLevel.cs create mode 100644 NTR.Common/protos/AffinityQuest.cs create mode 100644 NTR.Common/protos/AffinityUpReward.cs create mode 100644 NTR.Common/protos/Agent.cs create mode 100644 NTR.Common/protos/AgentSpecialPerformance.cs create mode 100644 NTR.Common/protos/AgentTab.cs create mode 100644 NTR.Common/protos/AreaEffect.cs create mode 100644 NTR.Common/protos/Attribute.cs create mode 100644 NTR.Common/protos/AttributeLimit.cs create mode 100644 NTR.Common/protos/BattlePass.cs create mode 100644 NTR.Common/protos/BattlePassLevel.cs create mode 100644 NTR.Common/protos/BattlePassQuest.cs create mode 100644 NTR.Common/protos/BattlePassReward.cs create mode 100644 NTR.Common/protos/BattleThreshold.cs create mode 100644 NTR.Common/protos/BoardNPC.cs create mode 100644 NTR.Common/protos/Buff.cs create mode 100644 NTR.Common/protos/BuffValue.cs create mode 100644 NTR.Common/protos/Chapter.cs create mode 100644 NTR.Common/protos/CharAffinityTemplate.cs create mode 100644 NTR.Common/protos/CharGrade.cs create mode 100644 NTR.Common/protos/CharItemExp.cs create mode 100644 NTR.Common/protos/CharPotential.cs create mode 100644 NTR.Common/protos/CharRaritySequence.cs create mode 100644 NTR.Common/protos/Character.cs create mode 100644 NTR.Common/protos/CharacterAdvance.cs create mode 100644 NTR.Common/protos/CharacterArchive.cs create mode 100644 NTR.Common/protos/CharacterArchiveBaseInfo.cs create mode 100644 NTR.Common/protos/CharacterArchiveContent.cs create mode 100644 NTR.Common/protos/CharacterArchiveVoice.cs create mode 100644 NTR.Common/protos/CharacterCG.cs create mode 100644 NTR.Common/protos/CharacterDes.cs create mode 100644 NTR.Common/protos/CharacterSkillUpgrade.cs create mode 100644 NTR.Common/protos/CharacterSkin.cs create mode 100644 NTR.Common/protos/CharacterSkinPanelFace.cs create mode 100644 NTR.Common/protos/CharacterSkinTheme.cs create mode 100644 NTR.Common/protos/CharacterTag.cs create mode 100644 NTR.Common/protos/CharacterUpgrade.cs create mode 100644 NTR.Common/protos/CharacterVoiceControl.cs create mode 100644 NTR.Common/protos/Chat.cs create mode 100644 NTR.Common/protos/Chest.cs create mode 100644 NTR.Common/protos/ClientDiff.cs create mode 100644 NTR.Common/protos/Config.cs create mode 100644 NTR.Common/protos/ContentWord.cs create mode 100644 NTR.Common/protos/DailyInstance.cs create mode 100644 NTR.Common/protos/DailyInstanceFloor.cs create mode 100644 NTR.Common/protos/DailyInstanceRewardGroup.cs create mode 100644 NTR.Common/protos/DailyInstanceType.cs create mode 100644 NTR.Common/protos/DailyQuest.cs create mode 100644 NTR.Common/protos/DailyQuestActive.cs create mode 100644 NTR.Common/protos/DailyQuestAward.cs create mode 100644 NTR.Common/protos/DatingCharResponse.cs create mode 100644 NTR.Common/protos/DatingEvent.cs create mode 100644 NTR.Common/protos/DatingLandmark.cs create mode 100644 NTR.Common/protos/DestroyObject.cs create mode 100644 NTR.Common/protos/DictionaryDiagram.cs create mode 100644 NTR.Common/protos/DictionaryEntry.cs create mode 100644 NTR.Common/protos/DictionaryTab.cs create mode 100644 NTR.Common/protos/DictionaryTopBarEntry.cs create mode 100644 NTR.Common/protos/Disc.cs create mode 100644 NTR.Common/protos/DiscCommonSkill.cs create mode 100644 NTR.Common/protos/DiscItemExp.cs create mode 100644 NTR.Common/protos/DiscPassiveSkill.cs create mode 100644 NTR.Common/protos/DiscPromote.cs create mode 100644 NTR.Common/protos/DiscPromoteLimit.cs create mode 100644 NTR.Common/protos/DiscStrengthen.cs create mode 100644 NTR.Common/protos/DiscTag.cs create mode 100644 NTR.Common/protos/Drop.cs create mode 100644 NTR.Common/protos/DropItemShow.cs create mode 100644 NTR.Common/protos/DropObject.cs create mode 100644 NTR.Common/protos/DropObjectGroup.cs create mode 100644 NTR.Common/protos/DropPkg.cs create mode 100644 NTR.Common/protos/Effect.cs create mode 100644 NTR.Common/protos/EffectDesc.cs create mode 100644 NTR.Common/protos/EffectValue.cs create mode 100644 NTR.Common/protos/EndSceneType.cs create mode 100644 NTR.Common/protos/EnergyBuy.cs create mode 100644 NTR.Common/protos/EnumDesc.cs create mode 100644 NTR.Common/protos/Equipment.cs create mode 100644 NTR.Common/protos/EquipmentGroupExp.cs create mode 100644 NTR.Common/protos/EquipmentInstance.cs create mode 100644 NTR.Common/protos/EquipmentInstanceFloor.cs create mode 100644 NTR.Common/protos/EquipmentInstanceType.cs create mode 100644 NTR.Common/protos/EquipmentItemExp.cs create mode 100644 NTR.Common/protos/EquipmentRandomAttribute.cs create mode 100644 NTR.Common/protos/ErrorCode.cs create mode 100644 NTR.Common/protos/EventOptions.cs create mode 100644 NTR.Common/protos/EventOptionsRules.cs create mode 100644 NTR.Common/protos/EventResult.cs create mode 100644 NTR.Common/protos/FactionRelation.cs create mode 100644 NTR.Common/protos/FateCard.cs create mode 100644 NTR.Common/protos/FileDiff.cs create mode 100644 NTR.Common/protos/FloorBuff.cs create mode 100644 NTR.Common/protos/Force.cs create mode 100644 NTR.Common/protos/FormationScene.cs create mode 100644 NTR.Common/protos/GMBuild.cs create mode 100644 NTR.Common/protos/GMOrder.cs create mode 100644 NTR.Common/protos/GMTeam.cs create mode 100644 NTR.Common/protos/Gacha.cs create mode 100644 NTR.Common/protos/GachaAcquireReward.cs create mode 100644 NTR.Common/protos/GachaType.cs create mode 100644 NTR.Common/protos/GamepadButton.cs create mode 100644 NTR.Common/protos/Guide.cs create mode 100644 NTR.Common/protos/GuideGroup.cs create mode 100644 NTR.Common/protos/Handbook.cs create mode 100644 NTR.Common/protos/HitDamage.cs create mode 100644 NTR.Common/protos/Honor.cs create mode 100644 NTR.Common/protos/HonorCharacter.cs create mode 100644 NTR.Common/protos/InfinityTower.cs create mode 100644 NTR.Common/protos/InfinityTowerAffix.cs create mode 100644 NTR.Common/protos/InfinityTowerBountyLevel.cs create mode 100644 NTR.Common/protos/InfinityTowerDifficulty.cs create mode 100644 NTR.Common/protos/InfinityTowerEnemySet.cs create mode 100644 NTR.Common/protos/InfinityTowerFloor.cs create mode 100644 NTR.Common/protos/InfinityTowerLevel.cs create mode 100644 NTR.Common/protos/InfinityTowerMap.cs create mode 100644 NTR.Common/protos/InfinityTowerMsg.cs create mode 100644 NTR.Common/protos/InfinityTowerPlot.cs create mode 100644 NTR.Common/protos/InteractiveAction.cs create mode 100644 NTR.Common/protos/Item.cs create mode 100644 NTR.Common/protos/ItemPackMark.cs create mode 100644 NTR.Common/protos/JumpTo.cs create mode 100644 NTR.Common/protos/LoginRewardControl.cs create mode 100644 NTR.Common/protos/LoginRewardGroup.cs create mode 100644 NTR.Common/protos/MailTemplate.cs create mode 100644 NTR.Common/protos/Mainline.cs create mode 100644 NTR.Common/protos/MainlineFloor.cs create mode 100644 NTR.Common/protos/MallGem.cs create mode 100644 NTR.Common/protos/MallMonthlyCard.cs create mode 100644 NTR.Common/protos/MallPackage.cs create mode 100644 NTR.Common/protos/MallPackagePage.cs create mode 100644 NTR.Common/protos/MallShop.cs create mode 100644 NTR.Common/protos/MallShopPage.cs create mode 100644 NTR.Common/protos/Monster.cs create mode 100644 NTR.Common/protos/MonsterAI.cs create mode 100644 NTR.Common/protos/MonsterActionBranch.cs create mode 100644 NTR.Common/protos/MonsterBornGroup.cs create mode 100644 NTR.Common/protos/MonsterGroup.cs create mode 100644 NTR.Common/protos/MonsterSkin.cs create mode 100644 NTR.Common/protos/MonsterTeam.cs create mode 100644 NTR.Common/protos/MonsterValueTemplete.cs create mode 100644 NTR.Common/protos/MonsterValueTempleteAdjust.cs create mode 100644 NTR.Common/protos/MonthlyCard.cs create mode 100644 NTR.Common/protos/NPCConfig.cs create mode 100644 NTR.Common/protos/NPCSkin.cs create mode 100644 NTR.Common/protos/Note.cs create mode 100644 NTR.Common/protos/NoteDropGroup.cs create mode 100644 NTR.Common/protos/OnceAdditionalAttribute.cs create mode 100644 NTR.Common/protos/OnceAdditionalAttributeValue.cs create mode 100644 NTR.Common/protos/OpenFunc.cs create mode 100644 NTR.Common/protos/PeriodicQuest.cs create mode 100644 NTR.Common/protos/PeriodicQuestControl.cs create mode 100644 NTR.Common/protos/PeriodicQuestGroup.cs create mode 100644 NTR.Common/protos/Perk.cs create mode 100644 NTR.Common/protos/PerkPassiveSkill.cs create mode 100644 NTR.Common/protos/PlayerHead.cs create mode 100644 NTR.Common/protos/Plot.cs create mode 100644 NTR.Common/protos/Potential.cs create mode 100644 NTR.Common/protos/PotentialPassiveSkill.cs create mode 100644 NTR.Common/protos/PreviewMonsterGroup.cs create mode 100644 NTR.Common/protos/PreviewMonsterList.cs create mode 100644 NTR.Common/protos/Production.cs create mode 100644 NTR.Common/protos/ProductionType.cs create mode 100644 NTR.Common/protos/RandomLevelMonster.cs create mode 100644 NTR.Common/protos/Rank.cs create mode 100644 NTR.Common/protos/Recorder.cs create mode 100644 NTR.Common/protos/Recorders.cs create mode 100644 NTR.Common/protos/RegionBoss.cs create mode 100644 NTR.Common/protos/RegionBossAffix.cs create mode 100644 NTR.Common/protos/RegionBossFloor.cs create mode 100644 NTR.Common/protos/RegionBossLevel.cs create mode 100644 NTR.Common/protos/ResidentGoods.cs create mode 100644 NTR.Common/protos/ResidentShop.cs create mode 100644 NTR.Common/protos/ScriptParameter.cs create mode 100644 NTR.Common/protos/ScriptParameterValue.cs create mode 100644 NTR.Common/protos/ServerAgent.cs create mode 100644 NTR.Common/protos/ServerListMeta.cs create mode 100644 NTR.Common/protos/Shield.cs create mode 100644 NTR.Common/protos/ShieldValue.cs create mode 100644 NTR.Common/protos/SignIn.cs create mode 100644 NTR.Common/protos/Skill.cs create mode 100644 NTR.Common/protos/SkillDamage.cs create mode 100644 NTR.Common/protos/StarTower.cs create mode 100644 NTR.Common/protos/StarTowerBattleThreshold.cs create mode 100644 NTR.Common/protos/StarTowerBookEntrance.cs create mode 100644 NTR.Common/protos/StarTowerBookEventReward.cs create mode 100644 NTR.Common/protos/StarTowerBookFateCard.cs create mode 100644 NTR.Common/protos/StarTowerBookFateCardBundle.cs create mode 100644 NTR.Common/protos/StarTowerBookFateCardQuest.cs create mode 100644 NTR.Common/protos/StarTowerBookPotentialReward.cs create mode 100644 NTR.Common/protos/StarTowerBuildRank.cs create mode 100644 NTR.Common/protos/StarTowerCombatEvent.cs create mode 100644 NTR.Common/protos/StarTowerCombo.cs create mode 100644 NTR.Common/protos/StarTowerDropItem.cs create mode 100644 NTR.Common/protos/StarTowerEnemySet.cs create mode 100644 NTR.Common/protos/StarTowerEvent.cs create mode 100644 NTR.Common/protos/StarTowerEventAction.cs create mode 100644 NTR.Common/protos/StarTowerEventOptionAction.cs create mode 100644 NTR.Common/protos/StarTowerFloor.cs create mode 100644 NTR.Common/protos/StarTowerFloorAward.cs create mode 100644 NTR.Common/protos/StarTowerFloorExp.cs create mode 100644 NTR.Common/protos/StarTowerFloorSet.cs create mode 100644 NTR.Common/protos/StarTowerGroup.cs create mode 100644 NTR.Common/protos/StarTowerGrowthGroup.cs create mode 100644 NTR.Common/protos/StarTowerGrowthNode.cs create mode 100644 NTR.Common/protos/StarTowerHarmonySkill.cs create mode 100644 NTR.Common/protos/StarTowerLimitReward.cs create mode 100644 NTR.Common/protos/StarTowerMap.cs create mode 100644 NTR.Common/protos/StarTowerMapMaxNumPerStage.cs create mode 100644 NTR.Common/protos/StarTowerMonsterBornGroup.cs create mode 100644 NTR.Common/protos/StarTowerMonsterSpAttr.cs create mode 100644 NTR.Common/protos/StarTowerQuest.cs create mode 100644 NTR.Common/protos/StarTowerRankAffix.cs create mode 100644 NTR.Common/protos/StarTowerRankReward.cs create mode 100644 NTR.Common/protos/StarTowerRankScore.cs create mode 100644 NTR.Common/protos/StarTowerRankSeason.cs create mode 100644 NTR.Common/protos/StarTowerScenePrefab.cs create mode 100644 NTR.Common/protos/StarTowerShopGoodsGroup.cs create mode 100644 NTR.Common/protos/StarTowerSpMode.cs create mode 100644 NTR.Common/protos/StarTowerSpecificCombat.cs create mode 100644 NTR.Common/protos/StarTowerStage.cs create mode 100644 NTR.Common/protos/StarTowerTalk.cs create mode 100644 NTR.Common/protos/StarTowerTeamExp.cs create mode 100644 NTR.Common/protos/Story.cs create mode 100644 NTR.Common/protos/StoryChapter.cs create mode 100644 NTR.Common/protos/StoryCondition.cs create mode 100644 NTR.Common/protos/StoryEvidence.cs create mode 100644 NTR.Common/protos/StoryPersonality.cs create mode 100644 NTR.Common/protos/StoryRolePersonality.cs create mode 100644 NTR.Common/protos/TableAI.cs create mode 100644 NTR.Common/protos/TableAchievement.cs create mode 100644 NTR.Common/protos/TableActivity.cs create mode 100644 NTR.Common/protos/TableAddBuffAction.cs create mode 100644 NTR.Common/protos/TableAffinityGift.cs create mode 100644 NTR.Common/protos/TableAffinityLevel.cs create mode 100644 NTR.Common/protos/TableAffinityQuest.cs create mode 100644 NTR.Common/protos/TableAffinityUpReward.cs create mode 100644 NTR.Common/protos/TableAgent.cs create mode 100644 NTR.Common/protos/TableAgentSpecialPerformance.cs create mode 100644 NTR.Common/protos/TableAgentTab.cs create mode 100644 NTR.Common/protos/TableAreaEffect.cs create mode 100644 NTR.Common/protos/TableAttribute.cs create mode 100644 NTR.Common/protos/TableAttributeLimit.cs create mode 100644 NTR.Common/protos/TableBattlePass.cs create mode 100644 NTR.Common/protos/TableBattlePassLevel.cs create mode 100644 NTR.Common/protos/TableBattlePassQuest.cs create mode 100644 NTR.Common/protos/TableBattlePassReward.cs create mode 100644 NTR.Common/protos/TableBattleThreshold.cs create mode 100644 NTR.Common/protos/TableBoardNPC.cs create mode 100644 NTR.Common/protos/TableBuff.cs create mode 100644 NTR.Common/protos/TableBuffValue.cs create mode 100644 NTR.Common/protos/TableChapter.cs create mode 100644 NTR.Common/protos/TableCharAffinityTemplate.cs create mode 100644 NTR.Common/protos/TableCharGrade.cs create mode 100644 NTR.Common/protos/TableCharItemExp.cs create mode 100644 NTR.Common/protos/TableCharPotential.cs create mode 100644 NTR.Common/protos/TableCharRaritySequence.cs create mode 100644 NTR.Common/protos/TableCharacter.cs create mode 100644 NTR.Common/protos/TableCharacterAdvance.cs create mode 100644 NTR.Common/protos/TableCharacterArchive.cs create mode 100644 NTR.Common/protos/TableCharacterArchiveBaseInfo.cs create mode 100644 NTR.Common/protos/TableCharacterArchiveContent.cs create mode 100644 NTR.Common/protos/TableCharacterArchiveVoice.cs create mode 100644 NTR.Common/protos/TableCharacterCG.cs create mode 100644 NTR.Common/protos/TableCharacterDes.cs create mode 100644 NTR.Common/protos/TableCharacterSkillUpgrade.cs create mode 100644 NTR.Common/protos/TableCharacterSkin.cs create mode 100644 NTR.Common/protos/TableCharacterSkinPanelFace.cs create mode 100644 NTR.Common/protos/TableCharacterSkinTheme.cs create mode 100644 NTR.Common/protos/TableCharacterTag.cs create mode 100644 NTR.Common/protos/TableCharacterUpgrade.cs create mode 100644 NTR.Common/protos/TableCharacterVoiceControl.cs create mode 100644 NTR.Common/protos/TableChat.cs create mode 100644 NTR.Common/protos/TableChest.cs create mode 100644 NTR.Common/protos/TableConfig.cs create mode 100644 NTR.Common/protos/TableContentWord.cs create mode 100644 NTR.Common/protos/TableDailyInstance.cs create mode 100644 NTR.Common/protos/TableDailyInstanceFloor.cs create mode 100644 NTR.Common/protos/TableDailyInstanceRewardGroup.cs create mode 100644 NTR.Common/protos/TableDailyInstanceType.cs create mode 100644 NTR.Common/protos/TableDailyQuest.cs create mode 100644 NTR.Common/protos/TableDailyQuestActive.cs create mode 100644 NTR.Common/protos/TableDailyQuestAward.cs create mode 100644 NTR.Common/protos/TableDatingCharResponse.cs create mode 100644 NTR.Common/protos/TableDatingEvent.cs create mode 100644 NTR.Common/protos/TableDatingLandmark.cs create mode 100644 NTR.Common/protos/TableDestroyObject.cs create mode 100644 NTR.Common/protos/TableDictionaryDiagram.cs create mode 100644 NTR.Common/protos/TableDictionaryEntry.cs create mode 100644 NTR.Common/protos/TableDictionaryTab.cs create mode 100644 NTR.Common/protos/TableDictionaryTopBarEntry.cs create mode 100644 NTR.Common/protos/TableDisc.cs create mode 100644 NTR.Common/protos/TableDiscCommonSkill.cs create mode 100644 NTR.Common/protos/TableDiscItemExp.cs create mode 100644 NTR.Common/protos/TableDiscPassiveSkill.cs create mode 100644 NTR.Common/protos/TableDiscPromote.cs create mode 100644 NTR.Common/protos/TableDiscPromoteLimit.cs create mode 100644 NTR.Common/protos/TableDiscStrengthen.cs create mode 100644 NTR.Common/protos/TableDiscTag.cs create mode 100644 NTR.Common/protos/TableDrop.cs create mode 100644 NTR.Common/protos/TableDropItemShow.cs create mode 100644 NTR.Common/protos/TableDropObject.cs create mode 100644 NTR.Common/protos/TableDropObjectGroup.cs create mode 100644 NTR.Common/protos/TableDropPkg.cs create mode 100644 NTR.Common/protos/TableEffect.cs create mode 100644 NTR.Common/protos/TableEffectDesc.cs create mode 100644 NTR.Common/protos/TableEffectValue.cs create mode 100644 NTR.Common/protos/TableEndSceneType.cs create mode 100644 NTR.Common/protos/TableEnergyBuy.cs create mode 100644 NTR.Common/protos/TableEnumDesc.cs create mode 100644 NTR.Common/protos/TableEquipment.cs create mode 100644 NTR.Common/protos/TableEquipmentGroupExp.cs create mode 100644 NTR.Common/protos/TableEquipmentInstance.cs create mode 100644 NTR.Common/protos/TableEquipmentInstanceFloor.cs create mode 100644 NTR.Common/protos/TableEquipmentInstanceType.cs create mode 100644 NTR.Common/protos/TableEquipmentItemExp.cs create mode 100644 NTR.Common/protos/TableEquipmentRandomAttribute.cs create mode 100644 NTR.Common/protos/TableErrorCode.cs create mode 100644 NTR.Common/protos/TableEventOptions.cs create mode 100644 NTR.Common/protos/TableEventOptionsRules.cs create mode 100644 NTR.Common/protos/TableEventResult.cs create mode 100644 NTR.Common/protos/TableFactionRelation.cs create mode 100644 NTR.Common/protos/TableFateCard.cs create mode 100644 NTR.Common/protos/TableFloorBuff.cs create mode 100644 NTR.Common/protos/TableForce.cs create mode 100644 NTR.Common/protos/TableFormationScene.cs create mode 100644 NTR.Common/protos/TableGMBuild.cs create mode 100644 NTR.Common/protos/TableGMOrder.cs create mode 100644 NTR.Common/protos/TableGMTeam.cs create mode 100644 NTR.Common/protos/TableGacha.cs create mode 100644 NTR.Common/protos/TableGachaAcquireReward.cs create mode 100644 NTR.Common/protos/TableGachaType.cs create mode 100644 NTR.Common/protos/TableGamepadButton.cs create mode 100644 NTR.Common/protos/TableGuide.cs create mode 100644 NTR.Common/protos/TableGuideGroup.cs create mode 100644 NTR.Common/protos/TableHandbook.cs create mode 100644 NTR.Common/protos/TableHitDamage.cs create mode 100644 NTR.Common/protos/TableHonor.cs create mode 100644 NTR.Common/protos/TableHonorCharacter.cs create mode 100644 NTR.Common/protos/TableInfinityTower.cs create mode 100644 NTR.Common/protos/TableInfinityTowerAffix.cs create mode 100644 NTR.Common/protos/TableInfinityTowerBountyLevel.cs create mode 100644 NTR.Common/protos/TableInfinityTowerDifficulty.cs create mode 100644 NTR.Common/protos/TableInfinityTowerEnemySet.cs create mode 100644 NTR.Common/protos/TableInfinityTowerFloor.cs create mode 100644 NTR.Common/protos/TableInfinityTowerLevel.cs create mode 100644 NTR.Common/protos/TableInfinityTowerMap.cs create mode 100644 NTR.Common/protos/TableInfinityTowerMsg.cs create mode 100644 NTR.Common/protos/TableInfinityTowerPlot.cs create mode 100644 NTR.Common/protos/TableInteractiveAction.cs create mode 100644 NTR.Common/protos/TableItem.cs create mode 100644 NTR.Common/protos/TableItemPackMark.cs create mode 100644 NTR.Common/protos/TableJumpTo.cs create mode 100644 NTR.Common/protos/TableLoginRewardControl.cs create mode 100644 NTR.Common/protos/TableLoginRewardGroup.cs create mode 100644 NTR.Common/protos/TableMailTemplate.cs create mode 100644 NTR.Common/protos/TableMainline.cs create mode 100644 NTR.Common/protos/TableMainlineFloor.cs create mode 100644 NTR.Common/protos/TableMallGem.cs create mode 100644 NTR.Common/protos/TableMallMonthlyCard.cs create mode 100644 NTR.Common/protos/TableMallPackage.cs create mode 100644 NTR.Common/protos/TableMallPackagePage.cs create mode 100644 NTR.Common/protos/TableMallShop.cs create mode 100644 NTR.Common/protos/TableMallShopPage.cs create mode 100644 NTR.Common/protos/TableMonster.cs create mode 100644 NTR.Common/protos/TableMonsterAI.cs create mode 100644 NTR.Common/protos/TableMonsterActionBranch.cs create mode 100644 NTR.Common/protos/TableMonsterBornGroup.cs create mode 100644 NTR.Common/protos/TableMonsterGroup.cs create mode 100644 NTR.Common/protos/TableMonsterSkin.cs create mode 100644 NTR.Common/protos/TableMonsterTeam.cs create mode 100644 NTR.Common/protos/TableMonsterValueTemplete.cs create mode 100644 NTR.Common/protos/TableMonsterValueTempleteAdjust.cs create mode 100644 NTR.Common/protos/TableMonthlyCard.cs create mode 100644 NTR.Common/protos/TableNPCConfig.cs create mode 100644 NTR.Common/protos/TableNPCSkin.cs create mode 100644 NTR.Common/protos/TableNote.cs create mode 100644 NTR.Common/protos/TableNoteDropGroup.cs create mode 100644 NTR.Common/protos/TableOnceAdditionalAttribute.cs create mode 100644 NTR.Common/protos/TableOnceAdditionalAttributeValue.cs create mode 100644 NTR.Common/protos/TableOpenFunc.cs create mode 100644 NTR.Common/protos/TablePeriodicQuest.cs create mode 100644 NTR.Common/protos/TablePeriodicQuestControl.cs create mode 100644 NTR.Common/protos/TablePeriodicQuestGroup.cs create mode 100644 NTR.Common/protos/TablePerk.cs create mode 100644 NTR.Common/protos/TablePerkPassiveSkill.cs create mode 100644 NTR.Common/protos/TablePlayerHead.cs create mode 100644 NTR.Common/protos/TablePlot.cs create mode 100644 NTR.Common/protos/TablePotential.cs create mode 100644 NTR.Common/protos/TablePotentialPassiveSkill.cs create mode 100644 NTR.Common/protos/TablePreviewMonsterGroup.cs create mode 100644 NTR.Common/protos/TablePreviewMonsterList.cs create mode 100644 NTR.Common/protos/TableProduction.cs create mode 100644 NTR.Common/protos/TableProductionType.cs create mode 100644 NTR.Common/protos/TableRandomLevelMonster.cs create mode 100644 NTR.Common/protos/TableRank.cs create mode 100644 NTR.Common/protos/TableRegionBoss.cs create mode 100644 NTR.Common/protos/TableRegionBossAffix.cs create mode 100644 NTR.Common/protos/TableRegionBossFloor.cs create mode 100644 NTR.Common/protos/TableRegionBossLevel.cs create mode 100644 NTR.Common/protos/TableResidentGoods.cs create mode 100644 NTR.Common/protos/TableResidentShop.cs create mode 100644 NTR.Common/protos/TableScriptParameter.cs create mode 100644 NTR.Common/protos/TableScriptParameterValue.cs create mode 100644 NTR.Common/protos/TableShield.cs create mode 100644 NTR.Common/protos/TableShieldValue.cs create mode 100644 NTR.Common/protos/TableSignIn.cs create mode 100644 NTR.Common/protos/TableSkill.cs create mode 100644 NTR.Common/protos/TableSkillDamage.cs create mode 100644 NTR.Common/protos/TableStarTower.cs create mode 100644 NTR.Common/protos/TableStarTowerBattleThreshold.cs create mode 100644 NTR.Common/protos/TableStarTowerBookEntrance.cs create mode 100644 NTR.Common/protos/TableStarTowerBookEventReward.cs create mode 100644 NTR.Common/protos/TableStarTowerBookFateCard.cs create mode 100644 NTR.Common/protos/TableStarTowerBookFateCardBundle.cs create mode 100644 NTR.Common/protos/TableStarTowerBookFateCardQuest.cs create mode 100644 NTR.Common/protos/TableStarTowerBookPotentialReward.cs create mode 100644 NTR.Common/protos/TableStarTowerBuildRank.cs create mode 100644 NTR.Common/protos/TableStarTowerCombatEvent.cs create mode 100644 NTR.Common/protos/TableStarTowerCombo.cs create mode 100644 NTR.Common/protos/TableStarTowerDropItem.cs create mode 100644 NTR.Common/protos/TableStarTowerEnemySet.cs create mode 100644 NTR.Common/protos/TableStarTowerEvent.cs create mode 100644 NTR.Common/protos/TableStarTowerEventAction.cs create mode 100644 NTR.Common/protos/TableStarTowerEventOptionAction.cs create mode 100644 NTR.Common/protos/TableStarTowerFloor.cs create mode 100644 NTR.Common/protos/TableStarTowerFloorAward.cs create mode 100644 NTR.Common/protos/TableStarTowerFloorExp.cs create mode 100644 NTR.Common/protos/TableStarTowerFloorSet.cs create mode 100644 NTR.Common/protos/TableStarTowerGroup.cs create mode 100644 NTR.Common/protos/TableStarTowerGrowthGroup.cs create mode 100644 NTR.Common/protos/TableStarTowerGrowthNode.cs create mode 100644 NTR.Common/protos/TableStarTowerHarmonySkill.cs create mode 100644 NTR.Common/protos/TableStarTowerLimitReward.cs create mode 100644 NTR.Common/protos/TableStarTowerMap.cs create mode 100644 NTR.Common/protos/TableStarTowerMapMaxNumPerStage.cs create mode 100644 NTR.Common/protos/TableStarTowerMonsterBornGroup.cs create mode 100644 NTR.Common/protos/TableStarTowerMonsterSpAttr.cs create mode 100644 NTR.Common/protos/TableStarTowerQuest.cs create mode 100644 NTR.Common/protos/TableStarTowerRankAffix.cs create mode 100644 NTR.Common/protos/TableStarTowerRankReward.cs create mode 100644 NTR.Common/protos/TableStarTowerRankScore.cs create mode 100644 NTR.Common/protos/TableStarTowerRankSeason.cs create mode 100644 NTR.Common/protos/TableStarTowerScenePrefab.cs create mode 100644 NTR.Common/protos/TableStarTowerShopGoodsGroup.cs create mode 100644 NTR.Common/protos/TableStarTowerSpMode.cs create mode 100644 NTR.Common/protos/TableStarTowerSpecificCombat.cs create mode 100644 NTR.Common/protos/TableStarTowerStage.cs create mode 100644 NTR.Common/protos/TableStarTowerTalk.cs create mode 100644 NTR.Common/protos/TableStarTowerTeamExp.cs create mode 100644 NTR.Common/protos/TableStory.cs create mode 100644 NTR.Common/protos/TableStoryChapter.cs create mode 100644 NTR.Common/protos/TableStoryCondition.cs create mode 100644 NTR.Common/protos/TableStoryEvidence.cs create mode 100644 NTR.Common/protos/TableStoryPersonality.cs create mode 100644 NTR.Common/protos/TableStoryRolePersonality.cs create mode 100644 NTR.Common/protos/TableTalent.cs create mode 100644 NTR.Common/protos/TableTalentGroup.cs create mode 100644 NTR.Common/protos/TableTitle.cs create mode 100644 NTR.Common/protos/TableTopBar.cs create mode 100644 NTR.Common/protos/TableTourGuideQuest.cs create mode 100644 NTR.Common/protos/TableTourGuideQuestGroup.cs create mode 100644 NTR.Common/protos/TableTrap.cs create mode 100644 NTR.Common/protos/TableTrapAttribute.cs create mode 100644 NTR.Common/protos/TableTravelerDuelBoss.cs create mode 100644 NTR.Common/protos/TableTravelerDuelBossLevel.cs create mode 100644 NTR.Common/protos/TableTravelerDuelChallengeAffix.cs create mode 100644 NTR.Common/protos/TableTravelerDuelChallengeDifficulty.cs create mode 100644 NTR.Common/protos/TableTravelerDuelChallengeQuest.cs create mode 100644 NTR.Common/protos/TableTravelerDuelChallengeRankReward.cs create mode 100644 NTR.Common/protos/TableTravelerDuelChallengeSeason.cs create mode 100644 NTR.Common/protos/TableTravelerDuelFloor.cs create mode 100644 NTR.Common/protos/TableTravelerDuelLevel.cs create mode 100644 NTR.Common/protos/TableTravelerDuelQuest.cs create mode 100644 NTR.Common/protos/TableTrialBuild.cs create mode 100644 NTR.Common/protos/TableTrialCharacter.cs create mode 100644 NTR.Common/protos/TableTrialDisc.cs create mode 100644 NTR.Common/protos/TableUIText.cs create mode 100644 NTR.Common/protos/TableVampireBattleThreshold.cs create mode 100644 NTR.Common/protos/TableVampireEnemyPool.cs create mode 100644 NTR.Common/protos/TableVampireEnemySet.cs create mode 100644 NTR.Common/protos/TableVampireEnemySpAttr.cs create mode 100644 NTR.Common/protos/TableVampireFloor.cs create mode 100644 NTR.Common/protos/TableVampireMap.cs create mode 100644 NTR.Common/protos/TableVampireRankReward.cs create mode 100644 NTR.Common/protos/TableVampireRankSeason.cs create mode 100644 NTR.Common/protos/TableVampireSurvivor.cs create mode 100644 NTR.Common/protos/TableVampireSurvivorLevel.cs create mode 100644 NTR.Common/protos/TableVampireSurvivorQuest.cs create mode 100644 NTR.Common/protos/TableVampireTalent.cs create mode 100644 NTR.Common/protos/TableVampireTalentDesc.cs create mode 100644 NTR.Common/protos/TableVampireTalentFloor.cs create mode 100644 NTR.Common/protos/TableVoDirectory.cs create mode 100644 NTR.Common/protos/TableWeightParameter.cs create mode 100644 NTR.Common/protos/TableWord.cs create mode 100644 NTR.Common/protos/TableWordSuper.cs create mode 100644 NTR.Common/protos/TableWorldClass.cs create mode 100644 NTR.Common/protos/Talent.cs create mode 100644 NTR.Common/protos/TalentGroup.cs create mode 100644 NTR.Common/protos/Title.cs create mode 100644 NTR.Common/protos/TopBar.cs create mode 100644 NTR.Common/protos/TourGuideQuest.cs create mode 100644 NTR.Common/protos/TourGuideQuestGroup.cs create mode 100644 NTR.Common/protos/Trap.cs create mode 100644 NTR.Common/protos/TrapAttribute.cs create mode 100644 NTR.Common/protos/TravelerDuelBoss.cs create mode 100644 NTR.Common/protos/TravelerDuelBossLevel.cs create mode 100644 NTR.Common/protos/TravelerDuelChallengeAffix.cs create mode 100644 NTR.Common/protos/TravelerDuelChallengeDifficulty.cs create mode 100644 NTR.Common/protos/TravelerDuelChallengeQuest.cs create mode 100644 NTR.Common/protos/TravelerDuelChallengeRankReward.cs create mode 100644 NTR.Common/protos/TravelerDuelChallengeSeason.cs create mode 100644 NTR.Common/protos/TravelerDuelFloor.cs create mode 100644 NTR.Common/protos/TravelerDuelLevel.cs create mode 100644 NTR.Common/protos/TravelerDuelQuest.cs create mode 100644 NTR.Common/protos/TrialBuild.cs create mode 100644 NTR.Common/protos/TrialCharacter.cs create mode 100644 NTR.Common/protos/TrialDisc.cs create mode 100644 NTR.Common/protos/UIText.cs create mode 100644 NTR.Common/protos/VampireBattleThreshold.cs create mode 100644 NTR.Common/protos/VampireEnemyPool.cs create mode 100644 NTR.Common/protos/VampireEnemySet.cs create mode 100644 NTR.Common/protos/VampireEnemySpAttr.cs create mode 100644 NTR.Common/protos/VampireFloor.cs create mode 100644 NTR.Common/protos/VampireMap.cs create mode 100644 NTR.Common/protos/VampireRankReward.cs create mode 100644 NTR.Common/protos/VampireRankSeason.cs create mode 100644 NTR.Common/protos/VampireSurvivor.cs create mode 100644 NTR.Common/protos/VampireSurvivorLevel.cs create mode 100644 NTR.Common/protos/VampireSurvivorQuest.cs create mode 100644 NTR.Common/protos/VampireTalent.cs create mode 100644 NTR.Common/protos/VampireTalentDesc.cs create mode 100644 NTR.Common/protos/VampireTalentFloor.cs create mode 100644 NTR.Common/protos/VoDirectory.cs create mode 100644 NTR.Common/protos/WeightParameter.cs create mode 100644 NTR.Common/protos/Word.cs create mode 100644 NTR.Common/protos/WordSuper.cs create mode 100644 NTR.Common/protos/WorldClass.cs create mode 100644 NTR.GameServer/GameServer.cs create mode 100644 NTR.GameServer/NTR.GameServer.csproj create mode 100644 NTR.GameServer/Protocol/Connection.cs create mode 100644 NTR.SDKServer/Controllers/ClientController.cs create mode 100644 NTR.SDKServer/NTR.SDKServer.csproj create mode 100644 NTR.SDKServer/Properties/launchSettings.json create mode 100644 NTR.SDKServer/SDKServer.cs create mode 100644 NTR.SDKServer/appsettings.json create mode 100644 NTR.SDKServer/bodyencrypted create mode 100644 NTR.SDKServer/serverlist.json create mode 100644 NTR.sln create mode 100644 NTR/NTR.csproj create mode 100644 NTR/Program.cs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9491a2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,363 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd \ No newline at end of file diff --git a/NTR.Common/NTR.Common.csproj b/NTR.Common/NTR.Common.csproj new file mode 100644 index 0000000..31e64bf --- /dev/null +++ b/NTR.Common/NTR.Common.csproj @@ -0,0 +1,15 @@ + + + + Library + net8.0 + enable + enable + + + + + + + + diff --git a/NTR.Common/protos/AI.cs b/NTR.Common/protos/AI.cs new file mode 100644 index 0000000..74125cf --- /dev/null +++ b/NTR.Common/protos/AI.cs @@ -0,0 +1,503 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AI.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AI.proto + public static partial class AIReflection { + + #region Descriptor + /// File descriptor for AI.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AIReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CghBSS5wcm90byKjAQoCQUkSCgoCaWQYASABKAUSEQoJZl9jX3NwYXduGAIg", + "ASgJEhAKCGZfY19pZGxlGAMgASgJEhIKCmZfY19hY3Rpb24YBCABKAkSGAoQ", + "Zl9jX2xvc3RfY29udHJvbBgFIAEoCRIRCglmX2NfZGVhdGgYBiABKAkSEgoK", + "Zl9jX2dsb2JhbBgHIAEoCRIXCg9mX2NfY29tYm9fZ3JvdXAYCCABKAlCDqoC", + "C05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AI), global::Nova.Client.AI.Parser, new[]{ "Id", "FCSpawn", "FCIdle", "FCAction", "FCLostControl", "FCDeath", "FCGlobal", "FCComboGroup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AI : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AI()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AIReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AI() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AI(AI other) : this() { + id_ = other.id_; + fCSpawn_ = other.fCSpawn_; + fCIdle_ = other.fCIdle_; + fCAction_ = other.fCAction_; + fCLostControl_ = other.fCLostControl_; + fCDeath_ = other.fCDeath_; + fCGlobal_ = other.fCGlobal_; + fCComboGroup_ = other.fCComboGroup_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AI Clone() { + return new AI(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "f_c_spawn" field. + public const int FCSpawnFieldNumber = 2; + private string fCSpawn_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCSpawn { + get { return fCSpawn_; } + set { + fCSpawn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_idle" field. + public const int FCIdleFieldNumber = 3; + private string fCIdle_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCIdle { + get { return fCIdle_; } + set { + fCIdle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_action" field. + public const int FCActionFieldNumber = 4; + private string fCAction_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCAction { + get { return fCAction_; } + set { + fCAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_lost_control" field. + public const int FCLostControlFieldNumber = 5; + private string fCLostControl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCLostControl { + get { return fCLostControl_; } + set { + fCLostControl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_death" field. + public const int FCDeathFieldNumber = 6; + private string fCDeath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCDeath { + get { return fCDeath_; } + set { + fCDeath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_global" field. + public const int FCGlobalFieldNumber = 7; + private string fCGlobal_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCGlobal { + get { return fCGlobal_; } + set { + fCGlobal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_combo_group" field. + public const int FCComboGroupFieldNumber = 8; + private string fCComboGroup_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCComboGroup { + get { return fCComboGroup_; } + set { + fCComboGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AI); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AI other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (FCSpawn != other.FCSpawn) return false; + if (FCIdle != other.FCIdle) return false; + if (FCAction != other.FCAction) return false; + if (FCLostControl != other.FCLostControl) return false; + if (FCDeath != other.FCDeath) return false; + if (FCGlobal != other.FCGlobal) return false; + if (FCComboGroup != other.FCComboGroup) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (FCSpawn.Length != 0) hash ^= FCSpawn.GetHashCode(); + if (FCIdle.Length != 0) hash ^= FCIdle.GetHashCode(); + if (FCAction.Length != 0) hash ^= FCAction.GetHashCode(); + if (FCLostControl.Length != 0) hash ^= FCLostControl.GetHashCode(); + if (FCDeath.Length != 0) hash ^= FCDeath.GetHashCode(); + if (FCGlobal.Length != 0) hash ^= FCGlobal.GetHashCode(); + if (FCComboGroup.Length != 0) hash ^= FCComboGroup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (FCSpawn.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FCSpawn); + } + if (FCIdle.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FCIdle); + } + if (FCAction.Length != 0) { + output.WriteRawTag(34); + output.WriteString(FCAction); + } + if (FCLostControl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(FCLostControl); + } + if (FCDeath.Length != 0) { + output.WriteRawTag(50); + output.WriteString(FCDeath); + } + if (FCGlobal.Length != 0) { + output.WriteRawTag(58); + output.WriteString(FCGlobal); + } + if (FCComboGroup.Length != 0) { + output.WriteRawTag(66); + output.WriteString(FCComboGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (FCSpawn.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FCSpawn); + } + if (FCIdle.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FCIdle); + } + if (FCAction.Length != 0) { + output.WriteRawTag(34); + output.WriteString(FCAction); + } + if (FCLostControl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(FCLostControl); + } + if (FCDeath.Length != 0) { + output.WriteRawTag(50); + output.WriteString(FCDeath); + } + if (FCGlobal.Length != 0) { + output.WriteRawTag(58); + output.WriteString(FCGlobal); + } + if (FCComboGroup.Length != 0) { + output.WriteRawTag(66); + output.WriteString(FCComboGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (FCSpawn.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCSpawn); + } + if (FCIdle.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCIdle); + } + if (FCAction.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCAction); + } + if (FCLostControl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCLostControl); + } + if (FCDeath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCDeath); + } + if (FCGlobal.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCGlobal); + } + if (FCComboGroup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCComboGroup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AI other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.FCSpawn.Length != 0) { + FCSpawn = other.FCSpawn; + } + if (other.FCIdle.Length != 0) { + FCIdle = other.FCIdle; + } + if (other.FCAction.Length != 0) { + FCAction = other.FCAction; + } + if (other.FCLostControl.Length != 0) { + FCLostControl = other.FCLostControl; + } + if (other.FCDeath.Length != 0) { + FCDeath = other.FCDeath; + } + if (other.FCGlobal.Length != 0) { + FCGlobal = other.FCGlobal; + } + if (other.FCComboGroup.Length != 0) { + FCComboGroup = other.FCComboGroup; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + FCSpawn = input.ReadString(); + break; + } + case 26: { + FCIdle = input.ReadString(); + break; + } + case 34: { + FCAction = input.ReadString(); + break; + } + case 42: { + FCLostControl = input.ReadString(); + break; + } + case 50: { + FCDeath = input.ReadString(); + break; + } + case 58: { + FCGlobal = input.ReadString(); + break; + } + case 66: { + FCComboGroup = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + FCSpawn = input.ReadString(); + break; + } + case 26: { + FCIdle = input.ReadString(); + break; + } + case 34: { + FCAction = input.ReadString(); + break; + } + case 42: { + FCLostControl = input.ReadString(); + break; + } + case 50: { + FCDeath = input.ReadString(); + break; + } + case 58: { + FCGlobal = input.ReadString(); + break; + } + case 66: { + FCComboGroup = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Achievement.cs b/NTR.Common/protos/Achievement.cs new file mode 100644 index 0000000..900e16a --- /dev/null +++ b/NTR.Common/protos/Achievement.cs @@ -0,0 +1,962 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Achievement.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Achievement.proto + public static partial class AchievementReflection { + + #region Descriptor + /// File descriptor for Achievement.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AchievementReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFBY2hpZXZlbWVudC5wcm90byKTAwoLQWNoaWV2ZW1lbnQSCgoCaWQYASAB", + "KAUSEgoKYWNoaWV2ZV9pZBgCIAEoBRINCgV0aXRsZRgDIAEoCRIMCgRkZXNj", + "GAQgASgJEg4KBnJhcml0eRgFIAEoBRIMCgR0eXBlGAYgASgFEgwKBGhpZGUY", + "ByABKAgSDwoHanVtcF90bxgIIAEoBRIVCg1jb21wbGV0ZV9jb25kGAkgASgF", + "EhwKFGNvbXBsZXRlX2NvbmRfY2xpZW50GAogASgFEhQKDGFpbV9udW1fc2hv", + "dxgLIAEoBRIVCg1wcmVyZXF1aXNpdGVzGAwgAygFEhIKCmxldmVsX3R5cGUY", + "DSABKAUSHwoXY2xpZW50X2NvbXBsZXRlX3BhcmFtczEYDiADKAUSHwoXY2xp", + "ZW50X2NvbXBsZXRlX3BhcmFtczIYDyADKAUSDAoEdGlkMRgQIAEoBRIMCgRx", + "dHkxGBEgASgFEgwKBHRpZDIYEiABKAUSDAoEcXR5MhgTIAEoBRIMCgR0aWQz", + "GBQgASgFEgwKBHF0eTMYFSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Achievement), global::Nova.Client.Achievement.Parser, new[]{ "Id", "AchieveId", "Title", "Desc", "Rarity", "Type", "Hide", "JumpTo", "CompleteCond", "CompleteCondClient", "AimNumShow", "Prerequisites", "LevelType", "ClientCompleteParams1", "ClientCompleteParams2", "Tid1", "Qty1", "Tid2", "Qty2", "Tid3", "Qty3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Achievement : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Achievement()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AchievementReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Achievement() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Achievement(Achievement other) : this() { + id_ = other.id_; + achieveId_ = other.achieveId_; + title_ = other.title_; + desc_ = other.desc_; + rarity_ = other.rarity_; + type_ = other.type_; + hide_ = other.hide_; + jumpTo_ = other.jumpTo_; + completeCond_ = other.completeCond_; + completeCondClient_ = other.completeCondClient_; + aimNumShow_ = other.aimNumShow_; + prerequisites_ = other.prerequisites_.Clone(); + levelType_ = other.levelType_; + clientCompleteParams1_ = other.clientCompleteParams1_.Clone(); + clientCompleteParams2_ = other.clientCompleteParams2_.Clone(); + tid1_ = other.tid1_; + qty1_ = other.qty1_; + tid2_ = other.tid2_; + qty2_ = other.qty2_; + tid3_ = other.tid3_; + qty3_ = other.qty3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Achievement Clone() { + return new Achievement(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "achieve_id" field. + public const int AchieveIdFieldNumber = 2; + private int achieveId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AchieveId { + get { return achieveId_; } + set { + achieveId_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 5; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 6; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "hide" field. + public const int HideFieldNumber = 7; + private bool hide_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Hide { + get { return hide_; } + set { + hide_ = value; + } + } + + /// Field number for the "jump_to" field. + public const int JumpToFieldNumber = 8; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// Field number for the "complete_cond" field. + public const int CompleteCondFieldNumber = 9; + private int completeCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCond { + get { return completeCond_; } + set { + completeCond_ = value; + } + } + + /// Field number for the "complete_cond_client" field. + public const int CompleteCondClientFieldNumber = 10; + private int completeCondClient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCondClient { + get { return completeCondClient_; } + set { + completeCondClient_ = value; + } + } + + /// Field number for the "aim_num_show" field. + public const int AimNumShowFieldNumber = 11; + private int aimNumShow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AimNumShow { + get { return aimNumShow_; } + set { + aimNumShow_ = value; + } + } + + /// Field number for the "prerequisites" field. + public const int PrerequisitesFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_prerequisites_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField prerequisites_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Prerequisites { + get { return prerequisites_; } + } + + /// Field number for the "level_type" field. + public const int LevelTypeFieldNumber = 13; + private int levelType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelType { + get { return levelType_; } + set { + levelType_ = value; + } + } + + /// Field number for the "client_complete_params1" field. + public const int ClientCompleteParams1FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_clientCompleteParams1_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField clientCompleteParams1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientCompleteParams1 { + get { return clientCompleteParams1_; } + } + + /// Field number for the "client_complete_params2" field. + public const int ClientCompleteParams2FieldNumber = 15; + private static readonly pb::FieldCodec _repeated_clientCompleteParams2_codec + = pb::FieldCodec.ForInt32(122); + private readonly pbc::RepeatedField clientCompleteParams2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientCompleteParams2 { + get { return clientCompleteParams2_; } + } + + /// Field number for the "tid1" field. + public const int Tid1FieldNumber = 16; + private int tid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid1 { + get { return tid1_; } + set { + tid1_ = value; + } + } + + /// Field number for the "qty1" field. + public const int Qty1FieldNumber = 17; + private int qty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty1 { + get { return qty1_; } + set { + qty1_ = value; + } + } + + /// Field number for the "tid2" field. + public const int Tid2FieldNumber = 18; + private int tid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid2 { + get { return tid2_; } + set { + tid2_ = value; + } + } + + /// Field number for the "qty2" field. + public const int Qty2FieldNumber = 19; + private int qty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty2 { + get { return qty2_; } + set { + qty2_ = value; + } + } + + /// Field number for the "tid3" field. + public const int Tid3FieldNumber = 20; + private int tid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid3 { + get { return tid3_; } + set { + tid3_ = value; + } + } + + /// Field number for the "qty3" field. + public const int Qty3FieldNumber = 21; + private int qty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty3 { + get { return qty3_; } + set { + qty3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Achievement); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Achievement other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AchieveId != other.AchieveId) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (Rarity != other.Rarity) return false; + if (Type != other.Type) return false; + if (Hide != other.Hide) return false; + if (JumpTo != other.JumpTo) return false; + if (CompleteCond != other.CompleteCond) return false; + if (CompleteCondClient != other.CompleteCondClient) return false; + if (AimNumShow != other.AimNumShow) return false; + if(!prerequisites_.Equals(other.prerequisites_)) return false; + if (LevelType != other.LevelType) return false; + if(!clientCompleteParams1_.Equals(other.clientCompleteParams1_)) return false; + if(!clientCompleteParams2_.Equals(other.clientCompleteParams2_)) return false; + if (Tid1 != other.Tid1) return false; + if (Qty1 != other.Qty1) return false; + if (Tid2 != other.Tid2) return false; + if (Qty2 != other.Qty2) return false; + if (Tid3 != other.Tid3) return false; + if (Qty3 != other.Qty3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (AchieveId != 0) hash ^= AchieveId.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Hide != false) hash ^= Hide.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (CompleteCond != 0) hash ^= CompleteCond.GetHashCode(); + if (CompleteCondClient != 0) hash ^= CompleteCondClient.GetHashCode(); + if (AimNumShow != 0) hash ^= AimNumShow.GetHashCode(); + hash ^= prerequisites_.GetHashCode(); + if (LevelType != 0) hash ^= LevelType.GetHashCode(); + hash ^= clientCompleteParams1_.GetHashCode(); + hash ^= clientCompleteParams2_.GetHashCode(); + if (Tid1 != 0) hash ^= Tid1.GetHashCode(); + if (Qty1 != 0) hash ^= Qty1.GetHashCode(); + if (Tid2 != 0) hash ^= Tid2.GetHashCode(); + if (Qty2 != 0) hash ^= Qty2.GetHashCode(); + if (Tid3 != 0) hash ^= Tid3.GetHashCode(); + if (Qty3 != 0) hash ^= Qty3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AchieveId != 0) { + output.WriteRawTag(16); + output.WriteInt32(AchieveId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Rarity != 0) { + output.WriteRawTag(40); + output.WriteInt32(Rarity); + } + if (Type != 0) { + output.WriteRawTag(48); + output.WriteInt32(Type); + } + if (Hide != false) { + output.WriteRawTag(56); + output.WriteBool(Hide); + } + if (JumpTo != 0) { + output.WriteRawTag(64); + output.WriteInt32(JumpTo); + } + if (CompleteCond != 0) { + output.WriteRawTag(72); + output.WriteInt32(CompleteCond); + } + if (CompleteCondClient != 0) { + output.WriteRawTag(80); + output.WriteInt32(CompleteCondClient); + } + if (AimNumShow != 0) { + output.WriteRawTag(88); + output.WriteInt32(AimNumShow); + } + prerequisites_.WriteTo(output, _repeated_prerequisites_codec); + if (LevelType != 0) { + output.WriteRawTag(104); + output.WriteInt32(LevelType); + } + clientCompleteParams1_.WriteTo(output, _repeated_clientCompleteParams1_codec); + clientCompleteParams2_.WriteTo(output, _repeated_clientCompleteParams2_codec); + if (Tid1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(Qty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AchieveId != 0) { + output.WriteRawTag(16); + output.WriteInt32(AchieveId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Rarity != 0) { + output.WriteRawTag(40); + output.WriteInt32(Rarity); + } + if (Type != 0) { + output.WriteRawTag(48); + output.WriteInt32(Type); + } + if (Hide != false) { + output.WriteRawTag(56); + output.WriteBool(Hide); + } + if (JumpTo != 0) { + output.WriteRawTag(64); + output.WriteInt32(JumpTo); + } + if (CompleteCond != 0) { + output.WriteRawTag(72); + output.WriteInt32(CompleteCond); + } + if (CompleteCondClient != 0) { + output.WriteRawTag(80); + output.WriteInt32(CompleteCondClient); + } + if (AimNumShow != 0) { + output.WriteRawTag(88); + output.WriteInt32(AimNumShow); + } + prerequisites_.WriteTo(ref output, _repeated_prerequisites_codec); + if (LevelType != 0) { + output.WriteRawTag(104); + output.WriteInt32(LevelType); + } + clientCompleteParams1_.WriteTo(ref output, _repeated_clientCompleteParams1_codec); + clientCompleteParams2_.WriteTo(ref output, _repeated_clientCompleteParams2_codec); + if (Tid1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(Qty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (AchieveId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AchieveId); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Hide != false) { + size += 1 + 1; + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (CompleteCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCond); + } + if (CompleteCondClient != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCondClient); + } + if (AimNumShow != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AimNumShow); + } + size += prerequisites_.CalculateSize(_repeated_prerequisites_codec); + if (LevelType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelType); + } + size += clientCompleteParams1_.CalculateSize(_repeated_clientCompleteParams1_codec); + size += clientCompleteParams2_.CalculateSize(_repeated_clientCompleteParams2_codec); + if (Tid1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Tid1); + } + if (Qty1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Qty1); + } + if (Tid2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Tid2); + } + if (Qty2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Qty2); + } + if (Tid3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Tid3); + } + if (Qty3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Qty3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Achievement other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AchieveId != 0) { + AchieveId = other.AchieveId; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Hide != false) { + Hide = other.Hide; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.CompleteCond != 0) { + CompleteCond = other.CompleteCond; + } + if (other.CompleteCondClient != 0) { + CompleteCondClient = other.CompleteCondClient; + } + if (other.AimNumShow != 0) { + AimNumShow = other.AimNumShow; + } + prerequisites_.Add(other.prerequisites_); + if (other.LevelType != 0) { + LevelType = other.LevelType; + } + clientCompleteParams1_.Add(other.clientCompleteParams1_); + clientCompleteParams2_.Add(other.clientCompleteParams2_); + if (other.Tid1 != 0) { + Tid1 = other.Tid1; + } + if (other.Qty1 != 0) { + Qty1 = other.Qty1; + } + if (other.Tid2 != 0) { + Tid2 = other.Tid2; + } + if (other.Qty2 != 0) { + Qty2 = other.Qty2; + } + if (other.Tid3 != 0) { + Tid3 = other.Tid3; + } + if (other.Qty3 != 0) { + Qty3 = other.Qty3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AchieveId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Rarity = input.ReadInt32(); + break; + } + case 48: { + Type = input.ReadInt32(); + break; + } + case 56: { + Hide = input.ReadBool(); + break; + } + case 64: { + JumpTo = input.ReadInt32(); + break; + } + case 72: { + CompleteCond = input.ReadInt32(); + break; + } + case 80: { + CompleteCondClient = input.ReadInt32(); + break; + } + case 88: { + AimNumShow = input.ReadInt32(); + break; + } + case 98: + case 96: { + prerequisites_.AddEntriesFrom(input, _repeated_prerequisites_codec); + break; + } + case 104: { + LevelType = input.ReadInt32(); + break; + } + case 114: + case 112: { + clientCompleteParams1_.AddEntriesFrom(input, _repeated_clientCompleteParams1_codec); + break; + } + case 122: + case 120: { + clientCompleteParams2_.AddEntriesFrom(input, _repeated_clientCompleteParams2_codec); + break; + } + case 128: { + Tid1 = input.ReadInt32(); + break; + } + case 136: { + Qty1 = input.ReadInt32(); + break; + } + case 144: { + Tid2 = input.ReadInt32(); + break; + } + case 152: { + Qty2 = input.ReadInt32(); + break; + } + case 160: { + Tid3 = input.ReadInt32(); + break; + } + case 168: { + Qty3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AchieveId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Rarity = input.ReadInt32(); + break; + } + case 48: { + Type = input.ReadInt32(); + break; + } + case 56: { + Hide = input.ReadBool(); + break; + } + case 64: { + JumpTo = input.ReadInt32(); + break; + } + case 72: { + CompleteCond = input.ReadInt32(); + break; + } + case 80: { + CompleteCondClient = input.ReadInt32(); + break; + } + case 88: { + AimNumShow = input.ReadInt32(); + break; + } + case 98: + case 96: { + prerequisites_.AddEntriesFrom(ref input, _repeated_prerequisites_codec); + break; + } + case 104: { + LevelType = input.ReadInt32(); + break; + } + case 114: + case 112: { + clientCompleteParams1_.AddEntriesFrom(ref input, _repeated_clientCompleteParams1_codec); + break; + } + case 122: + case 120: { + clientCompleteParams2_.AddEntriesFrom(ref input, _repeated_clientCompleteParams2_codec); + break; + } + case 128: { + Tid1 = input.ReadInt32(); + break; + } + case 136: { + Qty1 = input.ReadInt32(); + break; + } + case 144: { + Tid2 = input.ReadInt32(); + break; + } + case 152: { + Qty2 = input.ReadInt32(); + break; + } + case 160: { + Tid3 = input.ReadInt32(); + break; + } + case 168: { + Qty3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Activity.cs b/NTR.Common/protos/Activity.cs new file mode 100644 index 0000000..0686ed9 --- /dev/null +++ b/NTR.Common/protos/Activity.cs @@ -0,0 +1,794 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Activity.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Activity.proto + public static partial class ActivityReflection { + + #region Descriptor + /// File descriptor for Activity.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ActivityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5BY3Rpdml0eS5wcm90byLGAgoIQWN0aXZpdHkSCgoCaWQYASABKAUSDwoH", + "c29ydF9pZBgCIAEoBRIVCg1hY3Rpdml0eV90eXBlGAMgASgFEgwKBG5hbWUY", + "BCABKAkSEQoJcHJlX2xpbWl0GAUgASgFEhMKC2xpbWl0X3BhcmFtGAYgASgJ", + "EhIKCnN0YXJ0X3R5cGUYByABKAUSEgoKc3RhcnRfdGltZRgIIAEoCRIXCg9z", + "dGFydF9jb25kX3R5cGUYCSABKAUSGQoRc3RhcnRfY29uZF9wYXJhbXMYCiAD", + "KAUSEAoIZW5kX3R5cGUYCyABKAUSEAoIZW5kX3RpbWUYDCABKAkSFAoMZW5k", + "X2R1cmF0aW9uGA0gASgFEhIKCmJhbm5lcl9yZXMYDiABKAkSEgoKcG9wX3Vw", + "X3JlcxgPIAEoCRISCgp0YWJfYmdfcmVzGBAgASgJQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Activity), global::Nova.Client.Activity.Parser, new[]{ "Id", "SortId", "ActivityType", "Name", "PreLimit", "LimitParam", "StartType", "StartTime", "StartCondType", "StartCondParams", "EndType", "EndTime", "EndDuration", "BannerRes", "PopUpRes", "TabBgRes" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Activity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Activity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ActivityReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Activity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Activity(Activity other) : this() { + id_ = other.id_; + sortId_ = other.sortId_; + activityType_ = other.activityType_; + name_ = other.name_; + preLimit_ = other.preLimit_; + limitParam_ = other.limitParam_; + startType_ = other.startType_; + startTime_ = other.startTime_; + startCondType_ = other.startCondType_; + startCondParams_ = other.startCondParams_.Clone(); + endType_ = other.endType_; + endTime_ = other.endTime_; + endDuration_ = other.endDuration_; + bannerRes_ = other.bannerRes_; + popUpRes_ = other.popUpRes_; + tabBgRes_ = other.tabBgRes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Activity Clone() { + return new Activity(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "sort_id" field. + public const int SortIdFieldNumber = 2; + private int sortId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortId { + get { return sortId_; } + set { + sortId_ = value; + } + } + + /// Field number for the "activity_type" field. + public const int ActivityTypeFieldNumber = 3; + private int activityType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActivityType { + get { return activityType_; } + set { + activityType_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pre_limit" field. + public const int PreLimitFieldNumber = 5; + private int preLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLimit { + get { return preLimit_; } + set { + preLimit_ = value; + } + } + + /// Field number for the "limit_param" field. + public const int LimitParamFieldNumber = 6; + private string limitParam_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LimitParam { + get { return limitParam_; } + set { + limitParam_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_type" field. + public const int StartTypeFieldNumber = 7; + private int startType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartType { + get { return startType_; } + set { + startType_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 8; + private string startTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StartTime { + get { return startTime_; } + set { + startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_cond_type" field. + public const int StartCondTypeFieldNumber = 9; + private int startCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartCondType { + get { return startCondType_; } + set { + startCondType_ = value; + } + } + + /// Field number for the "start_cond_params" field. + public const int StartCondParamsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_startCondParams_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField startCondParams_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StartCondParams { + get { return startCondParams_; } + } + + /// Field number for the "end_type" field. + public const int EndTypeFieldNumber = 11; + private int endType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndType { + get { return endType_; } + set { + endType_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 12; + private string endTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndTime { + get { return endTime_; } + set { + endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_duration" field. + public const int EndDurationFieldNumber = 13; + private int endDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndDuration { + get { return endDuration_; } + set { + endDuration_ = value; + } + } + + /// Field number for the "banner_res" field. + public const int BannerResFieldNumber = 14; + private string bannerRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BannerRes { + get { return bannerRes_; } + set { + bannerRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pop_up_res" field. + public const int PopUpResFieldNumber = 15; + private string popUpRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PopUpRes { + get { return popUpRes_; } + set { + popUpRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tab_bg_res" field. + public const int TabBgResFieldNumber = 16; + private string tabBgRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TabBgRes { + get { return tabBgRes_; } + set { + tabBgRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Activity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Activity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SortId != other.SortId) return false; + if (ActivityType != other.ActivityType) return false; + if (Name != other.Name) return false; + if (PreLimit != other.PreLimit) return false; + if (LimitParam != other.LimitParam) return false; + if (StartType != other.StartType) return false; + if (StartTime != other.StartTime) return false; + if (StartCondType != other.StartCondType) return false; + if(!startCondParams_.Equals(other.startCondParams_)) return false; + if (EndType != other.EndType) return false; + if (EndTime != other.EndTime) return false; + if (EndDuration != other.EndDuration) return false; + if (BannerRes != other.BannerRes) return false; + if (PopUpRes != other.PopUpRes) return false; + if (TabBgRes != other.TabBgRes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SortId != 0) hash ^= SortId.GetHashCode(); + if (ActivityType != 0) hash ^= ActivityType.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (PreLimit != 0) hash ^= PreLimit.GetHashCode(); + if (LimitParam.Length != 0) hash ^= LimitParam.GetHashCode(); + if (StartType != 0) hash ^= StartType.GetHashCode(); + if (StartTime.Length != 0) hash ^= StartTime.GetHashCode(); + if (StartCondType != 0) hash ^= StartCondType.GetHashCode(); + hash ^= startCondParams_.GetHashCode(); + if (EndType != 0) hash ^= EndType.GetHashCode(); + if (EndTime.Length != 0) hash ^= EndTime.GetHashCode(); + if (EndDuration != 0) hash ^= EndDuration.GetHashCode(); + if (BannerRes.Length != 0) hash ^= BannerRes.GetHashCode(); + if (PopUpRes.Length != 0) hash ^= PopUpRes.GetHashCode(); + if (TabBgRes.Length != 0) hash ^= TabBgRes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SortId != 0) { + output.WriteRawTag(16); + output.WriteInt32(SortId); + } + if (ActivityType != 0) { + output.WriteRawTag(24); + output.WriteInt32(ActivityType); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (PreLimit != 0) { + output.WriteRawTag(40); + output.WriteInt32(PreLimit); + } + if (LimitParam.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LimitParam); + } + if (StartType != 0) { + output.WriteRawTag(56); + output.WriteInt32(StartType); + } + if (StartTime.Length != 0) { + output.WriteRawTag(66); + output.WriteString(StartTime); + } + if (StartCondType != 0) { + output.WriteRawTag(72); + output.WriteInt32(StartCondType); + } + startCondParams_.WriteTo(output, _repeated_startCondParams_codec); + if (EndType != 0) { + output.WriteRawTag(88); + output.WriteInt32(EndType); + } + if (EndTime.Length != 0) { + output.WriteRawTag(98); + output.WriteString(EndTime); + } + if (EndDuration != 0) { + output.WriteRawTag(104); + output.WriteInt32(EndDuration); + } + if (BannerRes.Length != 0) { + output.WriteRawTag(114); + output.WriteString(BannerRes); + } + if (PopUpRes.Length != 0) { + output.WriteRawTag(122); + output.WriteString(PopUpRes); + } + if (TabBgRes.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(TabBgRes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SortId != 0) { + output.WriteRawTag(16); + output.WriteInt32(SortId); + } + if (ActivityType != 0) { + output.WriteRawTag(24); + output.WriteInt32(ActivityType); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (PreLimit != 0) { + output.WriteRawTag(40); + output.WriteInt32(PreLimit); + } + if (LimitParam.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LimitParam); + } + if (StartType != 0) { + output.WriteRawTag(56); + output.WriteInt32(StartType); + } + if (StartTime.Length != 0) { + output.WriteRawTag(66); + output.WriteString(StartTime); + } + if (StartCondType != 0) { + output.WriteRawTag(72); + output.WriteInt32(StartCondType); + } + startCondParams_.WriteTo(ref output, _repeated_startCondParams_codec); + if (EndType != 0) { + output.WriteRawTag(88); + output.WriteInt32(EndType); + } + if (EndTime.Length != 0) { + output.WriteRawTag(98); + output.WriteString(EndTime); + } + if (EndDuration != 0) { + output.WriteRawTag(104); + output.WriteInt32(EndDuration); + } + if (BannerRes.Length != 0) { + output.WriteRawTag(114); + output.WriteString(BannerRes); + } + if (PopUpRes.Length != 0) { + output.WriteRawTag(122); + output.WriteString(PopUpRes); + } + if (TabBgRes.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(TabBgRes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SortId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SortId); + } + if (ActivityType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActivityType); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (PreLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLimit); + } + if (LimitParam.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LimitParam); + } + if (StartType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartType); + } + if (StartTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime); + } + if (StartCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartCondType); + } + size += startCondParams_.CalculateSize(_repeated_startCondParams_codec); + if (EndType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndType); + } + if (EndTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime); + } + if (EndDuration != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndDuration); + } + if (BannerRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BannerRes); + } + if (PopUpRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PopUpRes); + } + if (TabBgRes.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TabBgRes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Activity other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SortId != 0) { + SortId = other.SortId; + } + if (other.ActivityType != 0) { + ActivityType = other.ActivityType; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.PreLimit != 0) { + PreLimit = other.PreLimit; + } + if (other.LimitParam.Length != 0) { + LimitParam = other.LimitParam; + } + if (other.StartType != 0) { + StartType = other.StartType; + } + if (other.StartTime.Length != 0) { + StartTime = other.StartTime; + } + if (other.StartCondType != 0) { + StartCondType = other.StartCondType; + } + startCondParams_.Add(other.startCondParams_); + if (other.EndType != 0) { + EndType = other.EndType; + } + if (other.EndTime.Length != 0) { + EndTime = other.EndTime; + } + if (other.EndDuration != 0) { + EndDuration = other.EndDuration; + } + if (other.BannerRes.Length != 0) { + BannerRes = other.BannerRes; + } + if (other.PopUpRes.Length != 0) { + PopUpRes = other.PopUpRes; + } + if (other.TabBgRes.Length != 0) { + TabBgRes = other.TabBgRes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + SortId = input.ReadInt32(); + break; + } + case 24: { + ActivityType = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + PreLimit = input.ReadInt32(); + break; + } + case 50: { + LimitParam = input.ReadString(); + break; + } + case 56: { + StartType = input.ReadInt32(); + break; + } + case 66: { + StartTime = input.ReadString(); + break; + } + case 72: { + StartCondType = input.ReadInt32(); + break; + } + case 82: + case 80: { + startCondParams_.AddEntriesFrom(input, _repeated_startCondParams_codec); + break; + } + case 88: { + EndType = input.ReadInt32(); + break; + } + case 98: { + EndTime = input.ReadString(); + break; + } + case 104: { + EndDuration = input.ReadInt32(); + break; + } + case 114: { + BannerRes = input.ReadString(); + break; + } + case 122: { + PopUpRes = input.ReadString(); + break; + } + case 130: { + TabBgRes = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + SortId = input.ReadInt32(); + break; + } + case 24: { + ActivityType = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + PreLimit = input.ReadInt32(); + break; + } + case 50: { + LimitParam = input.ReadString(); + break; + } + case 56: { + StartType = input.ReadInt32(); + break; + } + case 66: { + StartTime = input.ReadString(); + break; + } + case 72: { + StartCondType = input.ReadInt32(); + break; + } + case 82: + case 80: { + startCondParams_.AddEntriesFrom(ref input, _repeated_startCondParams_codec); + break; + } + case 88: { + EndType = input.ReadInt32(); + break; + } + case 98: { + EndTime = input.ReadString(); + break; + } + case 104: { + EndDuration = input.ReadInt32(); + break; + } + case 114: { + BannerRes = input.ReadString(); + break; + } + case 122: { + PopUpRes = input.ReadString(); + break; + } + case 130: { + TabBgRes = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AddBuffAction.cs b/NTR.Common/protos/AddBuffAction.cs new file mode 100644 index 0000000..88981e8 --- /dev/null +++ b/NTR.Common/protos/AddBuffAction.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AddBuffAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AddBuffAction.proto + public static partial class AddBuffActionReflection { + + #region Descriptor + /// File descriptor for AddBuffAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AddBuffActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNBZGRCdWZmQWN0aW9uLnByb3RvIlMKDUFkZEJ1ZmZBY3Rpb24SCgoCaWQY", + "ASABKAUSEAoIZ3JvdXBfaWQYAiABKAUSEwoLdGFyZ2V0X3R5cGUYAyABKAUS", + "DwoHYnVmZl9pZBgEIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AddBuffAction), global::Nova.Client.AddBuffAction.Parser, new[]{ "Id", "GroupId", "TargetType", "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddBuffAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBuffAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AddBuffActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBuffAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBuffAction(AddBuffAction other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + targetType_ = other.targetType_; + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBuffAction Clone() { + return new AddBuffAction(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "target_type" field. + public const int TargetTypeFieldNumber = 3; + private int targetType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TargetType { + get { return targetType_; } + set { + targetType_ = value; + } + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 4; + private int buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffId { + get { return buffId_; } + set { + buffId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddBuffAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddBuffAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (TargetType != other.TargetType) return false; + if (BuffId != other.BuffId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (TargetType != 0) hash ^= TargetType.GetHashCode(); + if (BuffId != 0) hash ^= BuffId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (TargetType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TargetType); + } + if (BuffId != 0) { + output.WriteRawTag(32); + output.WriteInt32(BuffId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (TargetType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TargetType); + } + if (BuffId != 0) { + output.WriteRawTag(32); + output.WriteInt32(BuffId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (TargetType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TargetType); + } + if (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddBuffAction other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.TargetType != 0) { + TargetType = other.TargetType; + } + if (other.BuffId != 0) { + BuffId = other.BuffId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + TargetType = input.ReadInt32(); + break; + } + case 32: { + BuffId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + TargetType = input.ReadInt32(); + break; + } + case 32: { + BuffId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AffinityGift.cs b/NTR.Common/protos/AffinityGift.cs new file mode 100644 index 0000000..544b444 --- /dev/null +++ b/NTR.Common/protos/AffinityGift.cs @@ -0,0 +1,307 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AffinityGift.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AffinityGift.proto + public static partial class AffinityGiftReflection { + + #region Descriptor + /// File descriptor for AffinityGift.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AffinityGiftReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJBZmZpbml0eUdpZnQucHJvdG8iPwoMQWZmaW5pdHlHaWZ0EgoKAmlkGAEg", + "ASgFEhUKDWJhc2VfYWZmaW5pdHkYAiABKAUSDAoEdGFncxgDIAMoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AffinityGift), global::Nova.Client.AffinityGift.Parser, new[]{ "Id", "BaseAffinity", "Tags" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AffinityGift : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffinityGift()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AffinityGiftReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityGift() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityGift(AffinityGift other) : this() { + id_ = other.id_; + baseAffinity_ = other.baseAffinity_; + tags_ = other.tags_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityGift Clone() { + return new AffinityGift(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "base_affinity" field. + public const int BaseAffinityFieldNumber = 2; + private int baseAffinity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BaseAffinity { + get { return baseAffinity_; } + set { + baseAffinity_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_tags_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tags { + get { return tags_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AffinityGift); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AffinityGift other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BaseAffinity != other.BaseAffinity) return false; + if(!tags_.Equals(other.tags_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BaseAffinity != 0) hash ^= BaseAffinity.GetHashCode(); + hash ^= tags_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BaseAffinity != 0) { + output.WriteRawTag(16); + output.WriteInt32(BaseAffinity); + } + tags_.WriteTo(output, _repeated_tags_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BaseAffinity != 0) { + output.WriteRawTag(16); + output.WriteInt32(BaseAffinity); + } + tags_.WriteTo(ref output, _repeated_tags_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BaseAffinity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseAffinity); + } + size += tags_.CalculateSize(_repeated_tags_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AffinityGift other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BaseAffinity != 0) { + BaseAffinity = other.BaseAffinity; + } + tags_.Add(other.tags_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BaseAffinity = input.ReadInt32(); + break; + } + case 26: + case 24: { + tags_.AddEntriesFrom(input, _repeated_tags_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BaseAffinity = input.ReadInt32(); + break; + } + case 26: + case 24: { + tags_.AddEntriesFrom(ref input, _repeated_tags_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AffinityLevel.cs b/NTR.Common/protos/AffinityLevel.cs new file mode 100644 index 0000000..b3d1d9e --- /dev/null +++ b/NTR.Common/protos/AffinityLevel.cs @@ -0,0 +1,571 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AffinityLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AffinityLevel.proto + public static partial class AffinityLevelReflection { + + #region Descriptor + /// File descriptor for AffinityLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AffinityLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNBZmZpbml0eUxldmVsLnByb3RvIpACCg1BZmZpbml0eUxldmVsEgoKAmlk", + "GAEgASgFEhcKD2FmZmluaXR5X2xldmVsXxgCIAEoBRIQCghuZWVkX2V4cBgD", + "IAEoBRITCgt0ZW1wbGF0ZV9pZBgEIAEoBRIbChNhZmZpbml0eV9sZXZlbF9u", + "YW1lGAUgASgJEhsKE2FmZmluaXR5X2xldmVsX2ljb24YBiABKAkSIgoaYWZm", + "aW5pdHlfbGV2ZWxfcmV3YXJkX2ljb24YByABKAkSJwofYWZmaW5pdHlfbGV2", + "ZWxfcmV3YXJkX2xvY2tfaWNvbhgIIAEoCRIOCgZlZmZlY3QYCSADKAUSHAoU", + "YWZmaW5pdHlfbGV2ZWxfc3RhZ2UYCiABKAVCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AffinityLevel), global::Nova.Client.AffinityLevel.Parser, new[]{ "Id", "AffinityLevel_", "NeedExp", "TemplateId", "AffinityLevelName", "AffinityLevelIcon", "AffinityLevelRewardIcon", "AffinityLevelRewardLockIcon", "Effect", "AffinityLevelStage" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AffinityLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffinityLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AffinityLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityLevel(AffinityLevel other) : this() { + id_ = other.id_; + affinityLevel_ = other.affinityLevel_; + needExp_ = other.needExp_; + templateId_ = other.templateId_; + affinityLevelName_ = other.affinityLevelName_; + affinityLevelIcon_ = other.affinityLevelIcon_; + affinityLevelRewardIcon_ = other.affinityLevelRewardIcon_; + affinityLevelRewardLockIcon_ = other.affinityLevelRewardLockIcon_; + effect_ = other.effect_.Clone(); + affinityLevelStage_ = other.affinityLevelStage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityLevel Clone() { + return new AffinityLevel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "affinity_level_" field. + public const int AffinityLevel_FieldNumber = 2; + private int affinityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AffinityLevel_ { + get { return affinityLevel_; } + set { + affinityLevel_ = value; + } + } + + /// Field number for the "need_exp" field. + public const int NeedExpFieldNumber = 3; + private int needExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedExp { + get { return needExp_; } + set { + needExp_ = value; + } + } + + /// Field number for the "template_id" field. + public const int TemplateIdFieldNumber = 4; + private int templateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TemplateId { + get { return templateId_; } + set { + templateId_ = value; + } + } + + /// Field number for the "affinity_level_name" field. + public const int AffinityLevelNameFieldNumber = 5; + private string affinityLevelName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AffinityLevelName { + get { return affinityLevelName_; } + set { + affinityLevelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "affinity_level_icon" field. + public const int AffinityLevelIconFieldNumber = 6; + private string affinityLevelIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AffinityLevelIcon { + get { return affinityLevelIcon_; } + set { + affinityLevelIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "affinity_level_reward_icon" field. + public const int AffinityLevelRewardIconFieldNumber = 7; + private string affinityLevelRewardIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AffinityLevelRewardIcon { + get { return affinityLevelRewardIcon_; } + set { + affinityLevelRewardIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "affinity_level_reward_lock_icon" field. + public const int AffinityLevelRewardLockIconFieldNumber = 8; + private string affinityLevelRewardLockIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AffinityLevelRewardLockIcon { + get { return affinityLevelRewardLockIcon_; } + set { + affinityLevelRewardLockIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect" field. + public const int EffectFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_effect_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField effect_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Effect { + get { return effect_; } + } + + /// Field number for the "affinity_level_stage" field. + public const int AffinityLevelStageFieldNumber = 10; + private int affinityLevelStage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AffinityLevelStage { + get { return affinityLevelStage_; } + set { + affinityLevelStage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AffinityLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AffinityLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AffinityLevel_ != other.AffinityLevel_) return false; + if (NeedExp != other.NeedExp) return false; + if (TemplateId != other.TemplateId) return false; + if (AffinityLevelName != other.AffinityLevelName) return false; + if (AffinityLevelIcon != other.AffinityLevelIcon) return false; + if (AffinityLevelRewardIcon != other.AffinityLevelRewardIcon) return false; + if (AffinityLevelRewardLockIcon != other.AffinityLevelRewardLockIcon) return false; + if(!effect_.Equals(other.effect_)) return false; + if (AffinityLevelStage != other.AffinityLevelStage) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (AffinityLevel_ != 0) hash ^= AffinityLevel_.GetHashCode(); + if (NeedExp != 0) hash ^= NeedExp.GetHashCode(); + if (TemplateId != 0) hash ^= TemplateId.GetHashCode(); + if (AffinityLevelName.Length != 0) hash ^= AffinityLevelName.GetHashCode(); + if (AffinityLevelIcon.Length != 0) hash ^= AffinityLevelIcon.GetHashCode(); + if (AffinityLevelRewardIcon.Length != 0) hash ^= AffinityLevelRewardIcon.GetHashCode(); + if (AffinityLevelRewardLockIcon.Length != 0) hash ^= AffinityLevelRewardLockIcon.GetHashCode(); + hash ^= effect_.GetHashCode(); + if (AffinityLevelStage != 0) hash ^= AffinityLevelStage.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AffinityLevel_ != 0) { + output.WriteRawTag(16); + output.WriteInt32(AffinityLevel_); + } + if (NeedExp != 0) { + output.WriteRawTag(24); + output.WriteInt32(NeedExp); + } + if (TemplateId != 0) { + output.WriteRawTag(32); + output.WriteInt32(TemplateId); + } + if (AffinityLevelName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AffinityLevelName); + } + if (AffinityLevelIcon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AffinityLevelIcon); + } + if (AffinityLevelRewardIcon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AffinityLevelRewardIcon); + } + if (AffinityLevelRewardLockIcon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(AffinityLevelRewardLockIcon); + } + effect_.WriteTo(output, _repeated_effect_codec); + if (AffinityLevelStage != 0) { + output.WriteRawTag(80); + output.WriteInt32(AffinityLevelStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AffinityLevel_ != 0) { + output.WriteRawTag(16); + output.WriteInt32(AffinityLevel_); + } + if (NeedExp != 0) { + output.WriteRawTag(24); + output.WriteInt32(NeedExp); + } + if (TemplateId != 0) { + output.WriteRawTag(32); + output.WriteInt32(TemplateId); + } + if (AffinityLevelName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AffinityLevelName); + } + if (AffinityLevelIcon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AffinityLevelIcon); + } + if (AffinityLevelRewardIcon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AffinityLevelRewardIcon); + } + if (AffinityLevelRewardLockIcon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(AffinityLevelRewardLockIcon); + } + effect_.WriteTo(ref output, _repeated_effect_codec); + if (AffinityLevelStage != 0) { + output.WriteRawTag(80); + output.WriteInt32(AffinityLevelStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (AffinityLevel_ != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AffinityLevel_); + } + if (NeedExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedExp); + } + if (TemplateId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TemplateId); + } + if (AffinityLevelName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AffinityLevelName); + } + if (AffinityLevelIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AffinityLevelIcon); + } + if (AffinityLevelRewardIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AffinityLevelRewardIcon); + } + if (AffinityLevelRewardLockIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AffinityLevelRewardLockIcon); + } + size += effect_.CalculateSize(_repeated_effect_codec); + if (AffinityLevelStage != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AffinityLevelStage); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AffinityLevel other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AffinityLevel_ != 0) { + AffinityLevel_ = other.AffinityLevel_; + } + if (other.NeedExp != 0) { + NeedExp = other.NeedExp; + } + if (other.TemplateId != 0) { + TemplateId = other.TemplateId; + } + if (other.AffinityLevelName.Length != 0) { + AffinityLevelName = other.AffinityLevelName; + } + if (other.AffinityLevelIcon.Length != 0) { + AffinityLevelIcon = other.AffinityLevelIcon; + } + if (other.AffinityLevelRewardIcon.Length != 0) { + AffinityLevelRewardIcon = other.AffinityLevelRewardIcon; + } + if (other.AffinityLevelRewardLockIcon.Length != 0) { + AffinityLevelRewardLockIcon = other.AffinityLevelRewardLockIcon; + } + effect_.Add(other.effect_); + if (other.AffinityLevelStage != 0) { + AffinityLevelStage = other.AffinityLevelStage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AffinityLevel_ = input.ReadInt32(); + break; + } + case 24: { + NeedExp = input.ReadInt32(); + break; + } + case 32: { + TemplateId = input.ReadInt32(); + break; + } + case 42: { + AffinityLevelName = input.ReadString(); + break; + } + case 50: { + AffinityLevelIcon = input.ReadString(); + break; + } + case 58: { + AffinityLevelRewardIcon = input.ReadString(); + break; + } + case 66: { + AffinityLevelRewardLockIcon = input.ReadString(); + break; + } + case 74: + case 72: { + effect_.AddEntriesFrom(input, _repeated_effect_codec); + break; + } + case 80: { + AffinityLevelStage = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AffinityLevel_ = input.ReadInt32(); + break; + } + case 24: { + NeedExp = input.ReadInt32(); + break; + } + case 32: { + TemplateId = input.ReadInt32(); + break; + } + case 42: { + AffinityLevelName = input.ReadString(); + break; + } + case 50: { + AffinityLevelIcon = input.ReadString(); + break; + } + case 58: { + AffinityLevelRewardIcon = input.ReadString(); + break; + } + case 66: { + AffinityLevelRewardLockIcon = input.ReadString(); + break; + } + case 74: + case 72: { + effect_.AddEntriesFrom(ref input, _repeated_effect_codec); + break; + } + case 80: { + AffinityLevelStage = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AffinityQuest.cs b/NTR.Common/protos/AffinityQuest.cs new file mode 100644 index 0000000..e1b2c90 --- /dev/null +++ b/NTR.Common/protos/AffinityQuest.cs @@ -0,0 +1,494 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AffinityQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AffinityQuest.proto + public static partial class AffinityQuestReflection { + + #region Descriptor + /// File descriptor for AffinityQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AffinityQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNBZmZpbml0eVF1ZXN0LnByb3RvIqYBCg1BZmZpbml0eVF1ZXN0EgoKAmlk", + "GAEgASgFEgwKBGRlc2MYAiABKAkSDwoHc29ydF9pZBgDIAEoBRIPCgdjaGFy", + "X2lkGAQgASgFEhUKDWNvbXBsZXRlX2NvbmQYBSABKAUSHAoUY29tcGxldGVf", + "Y29uZF9wYXJhbXMYBiABKAkSDgoGcmV3YXJkGAcgAygFEhQKDGFmZmluaXR5", + "X2V4cBgIIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AffinityQuest), global::Nova.Client.AffinityQuest.Parser, new[]{ "Id", "Desc", "SortId", "CharId", "CompleteCond", "CompleteCondParams", "Reward", "AffinityExp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AffinityQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffinityQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AffinityQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityQuest(AffinityQuest other) : this() { + id_ = other.id_; + desc_ = other.desc_; + sortId_ = other.sortId_; + charId_ = other.charId_; + completeCond_ = other.completeCond_; + completeCondParams_ = other.completeCondParams_; + reward_ = other.reward_.Clone(); + affinityExp_ = other.affinityExp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityQuest Clone() { + return new AffinityQuest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort_id" field. + public const int SortIdFieldNumber = 3; + private int sortId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortId { + get { return sortId_; } + set { + sortId_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 4; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "complete_cond" field. + public const int CompleteCondFieldNumber = 5; + private int completeCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCond { + get { return completeCond_; } + set { + completeCond_ = value; + } + } + + /// Field number for the "complete_cond_params" field. + public const int CompleteCondParamsFieldNumber = 6; + private string completeCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteCondParams { + get { return completeCondParams_; } + set { + completeCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_reward_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField reward_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Reward { + get { return reward_; } + } + + /// Field number for the "affinity_exp" field. + public const int AffinityExpFieldNumber = 8; + private int affinityExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AffinityExp { + get { return affinityExp_; } + set { + affinityExp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AffinityQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AffinityQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if (SortId != other.SortId) return false; + if (CharId != other.CharId) return false; + if (CompleteCond != other.CompleteCond) return false; + if (CompleteCondParams != other.CompleteCondParams) return false; + if(!reward_.Equals(other.reward_)) return false; + if (AffinityExp != other.AffinityExp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (SortId != 0) hash ^= SortId.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (CompleteCond != 0) hash ^= CompleteCond.GetHashCode(); + if (CompleteCondParams.Length != 0) hash ^= CompleteCondParams.GetHashCode(); + hash ^= reward_.GetHashCode(); + if (AffinityExp != 0) hash ^= AffinityExp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Desc.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (SortId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SortId); + } + if (CharId != 0) { + output.WriteRawTag(32); + output.WriteInt32(CharId); + } + if (CompleteCond != 0) { + output.WriteRawTag(40); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CompleteCondParams); + } + reward_.WriteTo(output, _repeated_reward_codec); + if (AffinityExp != 0) { + output.WriteRawTag(64); + output.WriteInt32(AffinityExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Desc.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (SortId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SortId); + } + if (CharId != 0) { + output.WriteRawTag(32); + output.WriteInt32(CharId); + } + if (CompleteCond != 0) { + output.WriteRawTag(40); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CompleteCondParams); + } + reward_.WriteTo(ref output, _repeated_reward_codec); + if (AffinityExp != 0) { + output.WriteRawTag(64); + output.WriteInt32(AffinityExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (SortId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SortId); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (CompleteCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteCondParams); + } + size += reward_.CalculateSize(_repeated_reward_codec); + if (AffinityExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AffinityExp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AffinityQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.SortId != 0) { + SortId = other.SortId; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.CompleteCond != 0) { + CompleteCond = other.CompleteCond; + } + if (other.CompleteCondParams.Length != 0) { + CompleteCondParams = other.CompleteCondParams; + } + reward_.Add(other.reward_); + if (other.AffinityExp != 0) { + AffinityExp = other.AffinityExp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + SortId = input.ReadInt32(); + break; + } + case 32: { + CharId = input.ReadInt32(); + break; + } + case 40: { + CompleteCond = input.ReadInt32(); + break; + } + case 50: { + CompleteCondParams = input.ReadString(); + break; + } + case 58: + case 56: { + reward_.AddEntriesFrom(input, _repeated_reward_codec); + break; + } + case 64: { + AffinityExp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + SortId = input.ReadInt32(); + break; + } + case 32: { + CharId = input.ReadInt32(); + break; + } + case 40: { + CompleteCond = input.ReadInt32(); + break; + } + case 50: { + CompleteCondParams = input.ReadString(); + break; + } + case 58: + case 56: { + reward_.AddEntriesFrom(ref input, _repeated_reward_codec); + break; + } + case 64: { + AffinityExp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AffinityUpReward.cs b/NTR.Common/protos/AffinityUpReward.cs new file mode 100644 index 0000000..4c72b6d --- /dev/null +++ b/NTR.Common/protos/AffinityUpReward.cs @@ -0,0 +1,626 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AffinityUpReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AffinityUpReward.proto + public static partial class AffinityUpRewardReflection { + + #region Descriptor + /// File descriptor for AffinityUpReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AffinityUpRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZBZmZpbml0eVVwUmV3YXJkLnByb3RvIvYBChBBZmZpbml0eVVwUmV3YXJk", + "EgoKAmlkGAEgASgFEg8KB2NoYXJfaWQYAiABKAUSFAoMcmV3YXJkX2xldmVs", + "GAMgASgFEg8KB3Jld2FyZDEYBCADKAUSDwoHcmV3YXJkMhgFIAMoBRIPCgdy", + "ZXdhcmQzGAYgAygFEhMKC2Rlc2NfZnJvbnQxGAcgASgJEhMKC2Rlc2NfZnJv", + "bnQyGAggASgJEhMKC2Rlc2NfZnJvbnQzGAkgASgJEhMKC2Rlc2NfYWZ0ZXIx", + "GAogASgJEhMKC2Rlc2NfYWZ0ZXIyGAsgASgJEhMKC2Rlc2NfYWZ0ZXIzGAwg", + "ASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AffinityUpReward), global::Nova.Client.AffinityUpReward.Parser, new[]{ "Id", "CharId", "RewardLevel", "Reward1", "Reward2", "Reward3", "DescFront1", "DescFront2", "DescFront3", "DescAfter1", "DescAfter2", "DescAfter3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AffinityUpReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffinityUpReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AffinityUpRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityUpReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityUpReward(AffinityUpReward other) : this() { + id_ = other.id_; + charId_ = other.charId_; + rewardLevel_ = other.rewardLevel_; + reward1_ = other.reward1_.Clone(); + reward2_ = other.reward2_.Clone(); + reward3_ = other.reward3_.Clone(); + descFront1_ = other.descFront1_; + descFront2_ = other.descFront2_; + descFront3_ = other.descFront3_; + descAfter1_ = other.descAfter1_; + descAfter2_ = other.descAfter2_; + descAfter3_ = other.descAfter3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityUpReward Clone() { + return new AffinityUpReward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "reward_level" field. + public const int RewardLevelFieldNumber = 3; + private int rewardLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardLevel { + get { return rewardLevel_; } + set { + rewardLevel_ = value; + } + } + + /// Field number for the "reward1" field. + public const int Reward1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_reward1_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField reward1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Reward1 { + get { return reward1_; } + } + + /// Field number for the "reward2" field. + public const int Reward2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_reward2_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField reward2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Reward2 { + get { return reward2_; } + } + + /// Field number for the "reward3" field. + public const int Reward3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_reward3_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField reward3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Reward3 { + get { return reward3_; } + } + + /// Field number for the "desc_front1" field. + public const int DescFront1FieldNumber = 7; + private string descFront1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DescFront1 { + get { return descFront1_; } + set { + descFront1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc_front2" field. + public const int DescFront2FieldNumber = 8; + private string descFront2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DescFront2 { + get { return descFront2_; } + set { + descFront2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc_front3" field. + public const int DescFront3FieldNumber = 9; + private string descFront3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DescFront3 { + get { return descFront3_; } + set { + descFront3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc_after1" field. + public const int DescAfter1FieldNumber = 10; + private string descAfter1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DescAfter1 { + get { return descAfter1_; } + set { + descAfter1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc_after2" field. + public const int DescAfter2FieldNumber = 11; + private string descAfter2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DescAfter2 { + get { return descAfter2_; } + set { + descAfter2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc_after3" field. + public const int DescAfter3FieldNumber = 12; + private string descAfter3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DescAfter3 { + get { return descAfter3_; } + set { + descAfter3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AffinityUpReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AffinityUpReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharId != other.CharId) return false; + if (RewardLevel != other.RewardLevel) return false; + if(!reward1_.Equals(other.reward1_)) return false; + if(!reward2_.Equals(other.reward2_)) return false; + if(!reward3_.Equals(other.reward3_)) return false; + if (DescFront1 != other.DescFront1) return false; + if (DescFront2 != other.DescFront2) return false; + if (DescFront3 != other.DescFront3) return false; + if (DescAfter1 != other.DescAfter1) return false; + if (DescAfter2 != other.DescAfter2) return false; + if (DescAfter3 != other.DescAfter3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (RewardLevel != 0) hash ^= RewardLevel.GetHashCode(); + hash ^= reward1_.GetHashCode(); + hash ^= reward2_.GetHashCode(); + hash ^= reward3_.GetHashCode(); + if (DescFront1.Length != 0) hash ^= DescFront1.GetHashCode(); + if (DescFront2.Length != 0) hash ^= DescFront2.GetHashCode(); + if (DescFront3.Length != 0) hash ^= DescFront3.GetHashCode(); + if (DescAfter1.Length != 0) hash ^= DescAfter1.GetHashCode(); + if (DescAfter2.Length != 0) hash ^= DescAfter2.GetHashCode(); + if (DescAfter3.Length != 0) hash ^= DescAfter3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (RewardLevel != 0) { + output.WriteRawTag(24); + output.WriteInt32(RewardLevel); + } + reward1_.WriteTo(output, _repeated_reward1_codec); + reward2_.WriteTo(output, _repeated_reward2_codec); + reward3_.WriteTo(output, _repeated_reward3_codec); + if (DescFront1.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DescFront1); + } + if (DescFront2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DescFront2); + } + if (DescFront3.Length != 0) { + output.WriteRawTag(74); + output.WriteString(DescFront3); + } + if (DescAfter1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(DescAfter1); + } + if (DescAfter2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(DescAfter2); + } + if (DescAfter3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DescAfter3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (RewardLevel != 0) { + output.WriteRawTag(24); + output.WriteInt32(RewardLevel); + } + reward1_.WriteTo(ref output, _repeated_reward1_codec); + reward2_.WriteTo(ref output, _repeated_reward2_codec); + reward3_.WriteTo(ref output, _repeated_reward3_codec); + if (DescFront1.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DescFront1); + } + if (DescFront2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DescFront2); + } + if (DescFront3.Length != 0) { + output.WriteRawTag(74); + output.WriteString(DescFront3); + } + if (DescAfter1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(DescAfter1); + } + if (DescAfter2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(DescAfter2); + } + if (DescAfter3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DescAfter3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (RewardLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardLevel); + } + size += reward1_.CalculateSize(_repeated_reward1_codec); + size += reward2_.CalculateSize(_repeated_reward2_codec); + size += reward3_.CalculateSize(_repeated_reward3_codec); + if (DescFront1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescFront1); + } + if (DescFront2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescFront2); + } + if (DescFront3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescFront3); + } + if (DescAfter1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescAfter1); + } + if (DescAfter2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescAfter2); + } + if (DescAfter3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DescAfter3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AffinityUpReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.RewardLevel != 0) { + RewardLevel = other.RewardLevel; + } + reward1_.Add(other.reward1_); + reward2_.Add(other.reward2_); + reward3_.Add(other.reward3_); + if (other.DescFront1.Length != 0) { + DescFront1 = other.DescFront1; + } + if (other.DescFront2.Length != 0) { + DescFront2 = other.DescFront2; + } + if (other.DescFront3.Length != 0) { + DescFront3 = other.DescFront3; + } + if (other.DescAfter1.Length != 0) { + DescAfter1 = other.DescAfter1; + } + if (other.DescAfter2.Length != 0) { + DescAfter2 = other.DescAfter2; + } + if (other.DescAfter3.Length != 0) { + DescAfter3 = other.DescAfter3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + RewardLevel = input.ReadInt32(); + break; + } + case 34: + case 32: { + reward1_.AddEntriesFrom(input, _repeated_reward1_codec); + break; + } + case 42: + case 40: { + reward2_.AddEntriesFrom(input, _repeated_reward2_codec); + break; + } + case 50: + case 48: { + reward3_.AddEntriesFrom(input, _repeated_reward3_codec); + break; + } + case 58: { + DescFront1 = input.ReadString(); + break; + } + case 66: { + DescFront2 = input.ReadString(); + break; + } + case 74: { + DescFront3 = input.ReadString(); + break; + } + case 82: { + DescAfter1 = input.ReadString(); + break; + } + case 90: { + DescAfter2 = input.ReadString(); + break; + } + case 98: { + DescAfter3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + RewardLevel = input.ReadInt32(); + break; + } + case 34: + case 32: { + reward1_.AddEntriesFrom(ref input, _repeated_reward1_codec); + break; + } + case 42: + case 40: { + reward2_.AddEntriesFrom(ref input, _repeated_reward2_codec); + break; + } + case 50: + case 48: { + reward3_.AddEntriesFrom(ref input, _repeated_reward3_codec); + break; + } + case 58: { + DescFront1 = input.ReadString(); + break; + } + case 66: { + DescFront2 = input.ReadString(); + break; + } + case 74: { + DescFront3 = input.ReadString(); + break; + } + case 82: { + DescAfter1 = input.ReadString(); + break; + } + case 90: { + DescAfter2 = input.ReadString(); + break; + } + case 98: { + DescAfter3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Agent.cs b/NTR.Common/protos/Agent.cs new file mode 100644 index 0000000..f6a3efb --- /dev/null +++ b/NTR.Common/protos/Agent.cs @@ -0,0 +1,1196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Agent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Agent.proto + public static partial class AgentReflection { + + #region Descriptor + /// File descriptor for Agent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AgentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtBZ2VudC5wcm90byKNBAoFQWdlbnQSCgoCaWQYASABKAUSCwoDdGFiGAIg", + "ASgFEgwKBG5vdGUYAyABKAkSDAoEbmFtZRgEIAEoCRIMCgRkZXNjGAUgASgJ", + "EhEKCWNvbnNpZ25vchgGIAEoCRIUCgxyZWZyZXNoX3R5cGUYByABKAUSEwoL", + "bWVtYmVyX3R5cGUYCCABKAUSDQoFbGV2ZWwYCSABKAUSEwoLYnVpbGRfc2Nv", + "cmUYCiABKAUSFAoMbWVtYmVyX2xpbWl0GAsgASgFEgwKBHRhZ3MYDCADKAUS", + "EgoKZXh0cmFfdGFncxgNIAMoBRIZChF1bmxvY2tfY29uZGl0aW9ucxgOIAEo", + "CRIMCgRzb3J0GA8gASgFEg0KBXRpbWUxGBAgASgFEhcKD3Jld2FyZF9wcmV2", + "aWV3MRgRIAEoCRIWCg5ib251c19wcmV2aWV3MRgSIAEoCRINCgV0aW1lMhgT", + "IAEoBRIXCg9yZXdhcmRfcHJldmlldzIYFCABKAkSFgoOYm9udXNfcHJldmll", + "dzIYFSABKAkSDQoFdGltZTMYFiABKAUSFwoPcmV3YXJkX3ByZXZpZXczGBcg", + "ASgJEhYKDmJvbnVzX3ByZXZpZXczGBggASgJEg0KBXRpbWU0GBkgASgFEhcK", + "D3Jld2FyZF9wcmV2aWV3NBgaIAEoCRIWCg5ib251c19wcmV2aWV3NBgbIAEo", + "CUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Agent), global::Nova.Client.Agent.Parser, new[]{ "Id", "Tab", "Note", "Name", "Desc", "Consignor", "RefreshType", "MemberType", "Level", "BuildScore", "MemberLimit", "Tags", "ExtraTags", "UnlockConditions", "Sort", "Time1", "RewardPreview1", "BonusPreview1", "Time2", "RewardPreview2", "BonusPreview2", "Time3", "RewardPreview3", "BonusPreview3", "Time4", "RewardPreview4", "BonusPreview4" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Agent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Agent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AgentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Agent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Agent(Agent other) : this() { + id_ = other.id_; + tab_ = other.tab_; + note_ = other.note_; + name_ = other.name_; + desc_ = other.desc_; + consignor_ = other.consignor_; + refreshType_ = other.refreshType_; + memberType_ = other.memberType_; + level_ = other.level_; + buildScore_ = other.buildScore_; + memberLimit_ = other.memberLimit_; + tags_ = other.tags_.Clone(); + extraTags_ = other.extraTags_.Clone(); + unlockConditions_ = other.unlockConditions_; + sort_ = other.sort_; + time1_ = other.time1_; + rewardPreview1_ = other.rewardPreview1_; + bonusPreview1_ = other.bonusPreview1_; + time2_ = other.time2_; + rewardPreview2_ = other.rewardPreview2_; + bonusPreview2_ = other.bonusPreview2_; + time3_ = other.time3_; + rewardPreview3_ = other.rewardPreview3_; + bonusPreview3_ = other.bonusPreview3_; + time4_ = other.time4_; + rewardPreview4_ = other.rewardPreview4_; + bonusPreview4_ = other.bonusPreview4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Agent Clone() { + return new Agent(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "tab" field. + public const int TabFieldNumber = 2; + private int tab_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tab { + get { return tab_; } + set { + tab_ = value; + } + } + + /// Field number for the "note" field. + public const int NoteFieldNumber = 3; + private string note_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "consignor" field. + public const int ConsignorFieldNumber = 6; + private string consignor_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Consignor { + get { return consignor_; } + set { + consignor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "refresh_type" field. + public const int RefreshTypeFieldNumber = 7; + private int refreshType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshType { + get { return refreshType_; } + set { + refreshType_ = value; + } + } + + /// Field number for the "member_type" field. + public const int MemberTypeFieldNumber = 8; + private int memberType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemberType { + get { return memberType_; } + set { + memberType_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 9; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "build_score" field. + public const int BuildScoreFieldNumber = 10; + private int buildScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuildScore { + get { return buildScore_; } + set { + buildScore_ = value; + } + } + + /// Field number for the "member_limit" field. + public const int MemberLimitFieldNumber = 11; + private int memberLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MemberLimit { + get { return memberLimit_; } + set { + memberLimit_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_tags_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tags { + get { return tags_; } + } + + /// Field number for the "extra_tags" field. + public const int ExtraTagsFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_extraTags_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField extraTags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExtraTags { + get { return extraTags_; } + } + + /// Field number for the "unlock_conditions" field. + public const int UnlockConditionsFieldNumber = 14; + private string unlockConditions_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockConditions { + get { return unlockConditions_; } + set { + unlockConditions_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 15; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "time1" field. + public const int Time1FieldNumber = 16; + private int time1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Time1 { + get { return time1_; } + set { + time1_ = value; + } + } + + /// Field number for the "reward_preview1" field. + public const int RewardPreview1FieldNumber = 17; + private string rewardPreview1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardPreview1 { + get { return rewardPreview1_; } + set { + rewardPreview1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bonus_preview1" field. + public const int BonusPreview1FieldNumber = 18; + private string bonusPreview1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BonusPreview1 { + get { return bonusPreview1_; } + set { + bonusPreview1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time2" field. + public const int Time2FieldNumber = 19; + private int time2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Time2 { + get { return time2_; } + set { + time2_ = value; + } + } + + /// Field number for the "reward_preview2" field. + public const int RewardPreview2FieldNumber = 20; + private string rewardPreview2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardPreview2 { + get { return rewardPreview2_; } + set { + rewardPreview2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bonus_preview2" field. + public const int BonusPreview2FieldNumber = 21; + private string bonusPreview2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BonusPreview2 { + get { return bonusPreview2_; } + set { + bonusPreview2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time3" field. + public const int Time3FieldNumber = 22; + private int time3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Time3 { + get { return time3_; } + set { + time3_ = value; + } + } + + /// Field number for the "reward_preview3" field. + public const int RewardPreview3FieldNumber = 23; + private string rewardPreview3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardPreview3 { + get { return rewardPreview3_; } + set { + rewardPreview3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bonus_preview3" field. + public const int BonusPreview3FieldNumber = 24; + private string bonusPreview3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BonusPreview3 { + get { return bonusPreview3_; } + set { + bonusPreview3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time4" field. + public const int Time4FieldNumber = 25; + private int time4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Time4 { + get { return time4_; } + set { + time4_ = value; + } + } + + /// Field number for the "reward_preview4" field. + public const int RewardPreview4FieldNumber = 26; + private string rewardPreview4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardPreview4 { + get { return rewardPreview4_; } + set { + rewardPreview4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bonus_preview4" field. + public const int BonusPreview4FieldNumber = 27; + private string bonusPreview4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BonusPreview4 { + get { return bonusPreview4_; } + set { + bonusPreview4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Agent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Agent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Tab != other.Tab) return false; + if (Note != other.Note) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Consignor != other.Consignor) return false; + if (RefreshType != other.RefreshType) return false; + if (MemberType != other.MemberType) return false; + if (Level != other.Level) return false; + if (BuildScore != other.BuildScore) return false; + if (MemberLimit != other.MemberLimit) return false; + if(!tags_.Equals(other.tags_)) return false; + if(!extraTags_.Equals(other.extraTags_)) return false; + if (UnlockConditions != other.UnlockConditions) return false; + if (Sort != other.Sort) return false; + if (Time1 != other.Time1) return false; + if (RewardPreview1 != other.RewardPreview1) return false; + if (BonusPreview1 != other.BonusPreview1) return false; + if (Time2 != other.Time2) return false; + if (RewardPreview2 != other.RewardPreview2) return false; + if (BonusPreview2 != other.BonusPreview2) return false; + if (Time3 != other.Time3) return false; + if (RewardPreview3 != other.RewardPreview3) return false; + if (BonusPreview3 != other.BonusPreview3) return false; + if (Time4 != other.Time4) return false; + if (RewardPreview4 != other.RewardPreview4) return false; + if (BonusPreview4 != other.BonusPreview4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Tab != 0) hash ^= Tab.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Consignor.Length != 0) hash ^= Consignor.GetHashCode(); + if (RefreshType != 0) hash ^= RefreshType.GetHashCode(); + if (MemberType != 0) hash ^= MemberType.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (BuildScore != 0) hash ^= BuildScore.GetHashCode(); + if (MemberLimit != 0) hash ^= MemberLimit.GetHashCode(); + hash ^= tags_.GetHashCode(); + hash ^= extraTags_.GetHashCode(); + if (UnlockConditions.Length != 0) hash ^= UnlockConditions.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Time1 != 0) hash ^= Time1.GetHashCode(); + if (RewardPreview1.Length != 0) hash ^= RewardPreview1.GetHashCode(); + if (BonusPreview1.Length != 0) hash ^= BonusPreview1.GetHashCode(); + if (Time2 != 0) hash ^= Time2.GetHashCode(); + if (RewardPreview2.Length != 0) hash ^= RewardPreview2.GetHashCode(); + if (BonusPreview2.Length != 0) hash ^= BonusPreview2.GetHashCode(); + if (Time3 != 0) hash ^= Time3.GetHashCode(); + if (RewardPreview3.Length != 0) hash ^= RewardPreview3.GetHashCode(); + if (BonusPreview3.Length != 0) hash ^= BonusPreview3.GetHashCode(); + if (Time4 != 0) hash ^= Time4.GetHashCode(); + if (RewardPreview4.Length != 0) hash ^= RewardPreview4.GetHashCode(); + if (BonusPreview4.Length != 0) hash ^= BonusPreview4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Tab != 0) { + output.WriteRawTag(16); + output.WriteInt32(Tab); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Consignor.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Consignor); + } + if (RefreshType != 0) { + output.WriteRawTag(56); + output.WriteInt32(RefreshType); + } + if (MemberType != 0) { + output.WriteRawTag(64); + output.WriteInt32(MemberType); + } + if (Level != 0) { + output.WriteRawTag(72); + output.WriteInt32(Level); + } + if (BuildScore != 0) { + output.WriteRawTag(80); + output.WriteInt32(BuildScore); + } + if (MemberLimit != 0) { + output.WriteRawTag(88); + output.WriteInt32(MemberLimit); + } + tags_.WriteTo(output, _repeated_tags_codec); + extraTags_.WriteTo(output, _repeated_extraTags_codec); + if (UnlockConditions.Length != 0) { + output.WriteRawTag(114); + output.WriteString(UnlockConditions); + } + if (Sort != 0) { + output.WriteRawTag(120); + output.WriteInt32(Sort); + } + if (Time1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Time1); + } + if (RewardPreview1.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(RewardPreview1); + } + if (BonusPreview1.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(BonusPreview1); + } + if (Time2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Time2); + } + if (RewardPreview2.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(RewardPreview2); + } + if (BonusPreview2.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(BonusPreview2); + } + if (Time3 != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(Time3); + } + if (RewardPreview3.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(RewardPreview3); + } + if (BonusPreview3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(BonusPreview3); + } + if (Time4 != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(Time4); + } + if (RewardPreview4.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(RewardPreview4); + } + if (BonusPreview4.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(BonusPreview4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Tab != 0) { + output.WriteRawTag(16); + output.WriteInt32(Tab); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Consignor.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Consignor); + } + if (RefreshType != 0) { + output.WriteRawTag(56); + output.WriteInt32(RefreshType); + } + if (MemberType != 0) { + output.WriteRawTag(64); + output.WriteInt32(MemberType); + } + if (Level != 0) { + output.WriteRawTag(72); + output.WriteInt32(Level); + } + if (BuildScore != 0) { + output.WriteRawTag(80); + output.WriteInt32(BuildScore); + } + if (MemberLimit != 0) { + output.WriteRawTag(88); + output.WriteInt32(MemberLimit); + } + tags_.WriteTo(ref output, _repeated_tags_codec); + extraTags_.WriteTo(ref output, _repeated_extraTags_codec); + if (UnlockConditions.Length != 0) { + output.WriteRawTag(114); + output.WriteString(UnlockConditions); + } + if (Sort != 0) { + output.WriteRawTag(120); + output.WriteInt32(Sort); + } + if (Time1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Time1); + } + if (RewardPreview1.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(RewardPreview1); + } + if (BonusPreview1.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(BonusPreview1); + } + if (Time2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Time2); + } + if (RewardPreview2.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(RewardPreview2); + } + if (BonusPreview2.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(BonusPreview2); + } + if (Time3 != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(Time3); + } + if (RewardPreview3.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(RewardPreview3); + } + if (BonusPreview3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(BonusPreview3); + } + if (Time4 != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(Time4); + } + if (RewardPreview4.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(RewardPreview4); + } + if (BonusPreview4.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(BonusPreview4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Tab != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tab); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Consignor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Consignor); + } + if (RefreshType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshType); + } + if (MemberType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MemberType); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (BuildScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuildScore); + } + if (MemberLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MemberLimit); + } + size += tags_.CalculateSize(_repeated_tags_codec); + size += extraTags_.CalculateSize(_repeated_extraTags_codec); + if (UnlockConditions.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UnlockConditions); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Time1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Time1); + } + if (RewardPreview1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RewardPreview1); + } + if (BonusPreview1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BonusPreview1); + } + if (Time2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Time2); + } + if (RewardPreview2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RewardPreview2); + } + if (BonusPreview2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BonusPreview2); + } + if (Time3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Time3); + } + if (RewardPreview3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RewardPreview3); + } + if (BonusPreview3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BonusPreview3); + } + if (Time4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Time4); + } + if (RewardPreview4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RewardPreview4); + } + if (BonusPreview4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BonusPreview4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Agent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Tab != 0) { + Tab = other.Tab; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Consignor.Length != 0) { + Consignor = other.Consignor; + } + if (other.RefreshType != 0) { + RefreshType = other.RefreshType; + } + if (other.MemberType != 0) { + MemberType = other.MemberType; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.BuildScore != 0) { + BuildScore = other.BuildScore; + } + if (other.MemberLimit != 0) { + MemberLimit = other.MemberLimit; + } + tags_.Add(other.tags_); + extraTags_.Add(other.extraTags_); + if (other.UnlockConditions.Length != 0) { + UnlockConditions = other.UnlockConditions; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Time1 != 0) { + Time1 = other.Time1; + } + if (other.RewardPreview1.Length != 0) { + RewardPreview1 = other.RewardPreview1; + } + if (other.BonusPreview1.Length != 0) { + BonusPreview1 = other.BonusPreview1; + } + if (other.Time2 != 0) { + Time2 = other.Time2; + } + if (other.RewardPreview2.Length != 0) { + RewardPreview2 = other.RewardPreview2; + } + if (other.BonusPreview2.Length != 0) { + BonusPreview2 = other.BonusPreview2; + } + if (other.Time3 != 0) { + Time3 = other.Time3; + } + if (other.RewardPreview3.Length != 0) { + RewardPreview3 = other.RewardPreview3; + } + if (other.BonusPreview3.Length != 0) { + BonusPreview3 = other.BonusPreview3; + } + if (other.Time4 != 0) { + Time4 = other.Time4; + } + if (other.RewardPreview4.Length != 0) { + RewardPreview4 = other.RewardPreview4; + } + if (other.BonusPreview4.Length != 0) { + BonusPreview4 = other.BonusPreview4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Tab = input.ReadInt32(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Consignor = input.ReadString(); + break; + } + case 56: { + RefreshType = input.ReadInt32(); + break; + } + case 64: { + MemberType = input.ReadInt32(); + break; + } + case 72: { + Level = input.ReadInt32(); + break; + } + case 80: { + BuildScore = input.ReadInt32(); + break; + } + case 88: { + MemberLimit = input.ReadInt32(); + break; + } + case 98: + case 96: { + tags_.AddEntriesFrom(input, _repeated_tags_codec); + break; + } + case 106: + case 104: { + extraTags_.AddEntriesFrom(input, _repeated_extraTags_codec); + break; + } + case 114: { + UnlockConditions = input.ReadString(); + break; + } + case 120: { + Sort = input.ReadInt32(); + break; + } + case 128: { + Time1 = input.ReadInt32(); + break; + } + case 138: { + RewardPreview1 = input.ReadString(); + break; + } + case 146: { + BonusPreview1 = input.ReadString(); + break; + } + case 152: { + Time2 = input.ReadInt32(); + break; + } + case 162: { + RewardPreview2 = input.ReadString(); + break; + } + case 170: { + BonusPreview2 = input.ReadString(); + break; + } + case 176: { + Time3 = input.ReadInt32(); + break; + } + case 186: { + RewardPreview3 = input.ReadString(); + break; + } + case 194: { + BonusPreview3 = input.ReadString(); + break; + } + case 200: { + Time4 = input.ReadInt32(); + break; + } + case 210: { + RewardPreview4 = input.ReadString(); + break; + } + case 218: { + BonusPreview4 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Tab = input.ReadInt32(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Consignor = input.ReadString(); + break; + } + case 56: { + RefreshType = input.ReadInt32(); + break; + } + case 64: { + MemberType = input.ReadInt32(); + break; + } + case 72: { + Level = input.ReadInt32(); + break; + } + case 80: { + BuildScore = input.ReadInt32(); + break; + } + case 88: { + MemberLimit = input.ReadInt32(); + break; + } + case 98: + case 96: { + tags_.AddEntriesFrom(ref input, _repeated_tags_codec); + break; + } + case 106: + case 104: { + extraTags_.AddEntriesFrom(ref input, _repeated_extraTags_codec); + break; + } + case 114: { + UnlockConditions = input.ReadString(); + break; + } + case 120: { + Sort = input.ReadInt32(); + break; + } + case 128: { + Time1 = input.ReadInt32(); + break; + } + case 138: { + RewardPreview1 = input.ReadString(); + break; + } + case 146: { + BonusPreview1 = input.ReadString(); + break; + } + case 152: { + Time2 = input.ReadInt32(); + break; + } + case 162: { + RewardPreview2 = input.ReadString(); + break; + } + case 170: { + BonusPreview2 = input.ReadString(); + break; + } + case 176: { + Time3 = input.ReadInt32(); + break; + } + case 186: { + RewardPreview3 = input.ReadString(); + break; + } + case 194: { + BonusPreview3 = input.ReadString(); + break; + } + case 200: { + Time4 = input.ReadInt32(); + break; + } + case 210: { + RewardPreview4 = input.ReadString(); + break; + } + case 218: { + BonusPreview4 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AgentSpecialPerformance.cs b/NTR.Common/protos/AgentSpecialPerformance.cs new file mode 100644 index 0000000..1a53375 --- /dev/null +++ b/NTR.Common/protos/AgentSpecialPerformance.cs @@ -0,0 +1,382 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AgentSpecialPerformance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AgentSpecialPerformance.proto + public static partial class AgentSpecialPerformanceReflection { + + #region Descriptor + /// File descriptor for AgentSpecialPerformance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AgentSpecialPerformanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1BZ2VudFNwZWNpYWxQZXJmb3JtYW5jZS5wcm90byJrChdBZ2VudFNwZWNp", + "YWxQZXJmb3JtYW5jZRIKCgJpZBgBIAEoBRIPCgdjaGFyX2lkGAIgAygFEg4K", + "BndlaWdodBgDIAEoBRILCgNhdmcYBCABKAkSFgoOYV92X2dfZ3JvdXBfaWQY", + "BSABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AgentSpecialPerformance), global::Nova.Client.AgentSpecialPerformance.Parser, new[]{ "Id", "CharId", "Weight", "Avg", "AVGGroupId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AgentSpecialPerformance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgentSpecialPerformance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AgentSpecialPerformanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AgentSpecialPerformance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AgentSpecialPerformance(AgentSpecialPerformance other) : this() { + id_ = other.id_; + charId_ = other.charId_.Clone(); + weight_ = other.weight_; + avg_ = other.avg_; + aVGGroupId_ = other.aVGGroupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AgentSpecialPerformance Clone() { + return new AgentSpecialPerformance(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_charId_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField charId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CharId { + get { return charId_; } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 3; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + /// Field number for the "avg" field. + public const int AvgFieldNumber = 4; + private string avg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Avg { + get { return avg_; } + set { + avg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "a_v_g_group_id" field. + public const int AVGGroupIdFieldNumber = 5; + private string aVGGroupId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AVGGroupId { + get { return aVGGroupId_; } + set { + aVGGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AgentSpecialPerformance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AgentSpecialPerformance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!charId_.Equals(other.charId_)) return false; + if (Weight != other.Weight) return false; + if (Avg != other.Avg) return false; + if (AVGGroupId != other.AVGGroupId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= charId_.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + if (Avg.Length != 0) hash ^= Avg.GetHashCode(); + if (AVGGroupId.Length != 0) hash ^= AVGGroupId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + charId_.WriteTo(output, _repeated_charId_codec); + if (Weight != 0) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (Avg.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Avg); + } + if (AVGGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AVGGroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + charId_.WriteTo(ref output, _repeated_charId_codec); + if (Weight != 0) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (Avg.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Avg); + } + if (AVGGroupId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AVGGroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += charId_.CalculateSize(_repeated_charId_codec); + if (Weight != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (Avg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Avg); + } + if (AVGGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AVGGroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AgentSpecialPerformance other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + charId_.Add(other.charId_); + if (other.Weight != 0) { + Weight = other.Weight; + } + if (other.Avg.Length != 0) { + Avg = other.Avg; + } + if (other.AVGGroupId.Length != 0) { + AVGGroupId = other.AVGGroupId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + charId_.AddEntriesFrom(input, _repeated_charId_codec); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + case 34: { + Avg = input.ReadString(); + break; + } + case 42: { + AVGGroupId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + charId_.AddEntriesFrom(ref input, _repeated_charId_codec); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + case 34: { + Avg = input.ReadString(); + break; + } + case 42: { + AVGGroupId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AgentTab.cs b/NTR.Common/protos/AgentTab.cs new file mode 100644 index 0000000..619ac6d --- /dev/null +++ b/NTR.Common/protos/AgentTab.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AgentTab.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AgentTab.proto + public static partial class AgentTabReflection { + + #region Descriptor + /// File descriptor for AgentTab.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AgentTabReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5BZ2VudFRhYi5wcm90byJACghBZ2VudFRhYhIKCgJpZBgBIAEoBRIMCgRu", + "YW1lGAIgASgJEgoKAmJnGAMgASgJEg4KBnNwX3RhZxgEIAEoCEIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AgentTab), global::Nova.Client.AgentTab.Parser, new[]{ "Id", "Name", "Bg", "SpTag" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AgentTab : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgentTab()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AgentTabReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AgentTab() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AgentTab(AgentTab other) : this() { + id_ = other.id_; + name_ = other.name_; + bg_ = other.bg_; + spTag_ = other.spTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AgentTab Clone() { + return new AgentTab(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bg" field. + public const int BgFieldNumber = 3; + private string bg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bg { + get { return bg_; } + set { + bg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sp_tag" field. + public const int SpTagFieldNumber = 4; + private bool spTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SpTag { + get { return spTag_; } + set { + spTag_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AgentTab); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AgentTab other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Bg != other.Bg) return false; + if (SpTag != other.SpTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Bg.Length != 0) hash ^= Bg.GetHashCode(); + if (SpTag != false) hash ^= SpTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Bg.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Bg); + } + if (SpTag != false) { + output.WriteRawTag(32); + output.WriteBool(SpTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Bg.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Bg); + } + if (SpTag != false) { + output.WriteRawTag(32); + output.WriteBool(SpTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Bg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bg); + } + if (SpTag != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AgentTab other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Bg.Length != 0) { + Bg = other.Bg; + } + if (other.SpTag != false) { + SpTag = other.SpTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Bg = input.ReadString(); + break; + } + case 32: { + SpTag = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Bg = input.ReadString(); + break; + } + case 32: { + SpTag = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AreaEffect.cs b/NTR.Common/protos/AreaEffect.cs new file mode 100644 index 0000000..06558c8 --- /dev/null +++ b/NTR.Common/protos/AreaEffect.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AreaEffect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AreaEffect.proto + public static partial class AreaEffectReflection { + + #region Descriptor + /// File descriptor for AreaEffect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AreaEffectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBBcmVhRWZmZWN0LnByb3RvIkoKCkFyZWFFZmZlY3QSEAoIYXJlYV90YWcY", + "ASABKAUSEQoJbWF4X2NvdW50GAIgASgFEhcKD292ZXJfbGltaXRfdHlwZRgD", + "IAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AreaEffect), global::Nova.Client.AreaEffect.Parser, new[]{ "AreaTag", "MaxCount", "OverLimitType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AreaEffect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AreaEffect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AreaEffectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AreaEffect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AreaEffect(AreaEffect other) : this() { + areaTag_ = other.areaTag_; + maxCount_ = other.maxCount_; + overLimitType_ = other.overLimitType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AreaEffect Clone() { + return new AreaEffect(this); + } + + /// Field number for the "area_tag" field. + public const int AreaTagFieldNumber = 1; + private int areaTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AreaTag { + get { return areaTag_; } + set { + areaTag_ = value; + } + } + + /// Field number for the "max_count" field. + public const int MaxCountFieldNumber = 2; + private int maxCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxCount { + get { return maxCount_; } + set { + maxCount_ = value; + } + } + + /// Field number for the "over_limit_type" field. + public const int OverLimitTypeFieldNumber = 3; + private int overLimitType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OverLimitType { + get { return overLimitType_; } + set { + overLimitType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AreaEffect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AreaEffect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AreaTag != other.AreaTag) return false; + if (MaxCount != other.MaxCount) return false; + if (OverLimitType != other.OverLimitType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AreaTag != 0) hash ^= AreaTag.GetHashCode(); + if (MaxCount != 0) hash ^= MaxCount.GetHashCode(); + if (OverLimitType != 0) hash ^= OverLimitType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AreaTag != 0) { + output.WriteRawTag(8); + output.WriteInt32(AreaTag); + } + if (MaxCount != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxCount); + } + if (OverLimitType != 0) { + output.WriteRawTag(24); + output.WriteInt32(OverLimitType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AreaTag != 0) { + output.WriteRawTag(8); + output.WriteInt32(AreaTag); + } + if (MaxCount != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxCount); + } + if (OverLimitType != 0) { + output.WriteRawTag(24); + output.WriteInt32(OverLimitType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AreaTag != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AreaTag); + } + if (MaxCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxCount); + } + if (OverLimitType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OverLimitType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AreaEffect other) { + if (other == null) { + return; + } + if (other.AreaTag != 0) { + AreaTag = other.AreaTag; + } + if (other.MaxCount != 0) { + MaxCount = other.MaxCount; + } + if (other.OverLimitType != 0) { + OverLimitType = other.OverLimitType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AreaTag = input.ReadInt32(); + break; + } + case 16: { + MaxCount = input.ReadInt32(); + break; + } + case 24: { + OverLimitType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AreaTag = input.ReadInt32(); + break; + } + case 16: { + MaxCount = input.ReadInt32(); + break; + } + case 24: { + OverLimitType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Attribute.cs b/NTR.Common/protos/Attribute.cs new file mode 100644 index 0000000..8896655 --- /dev/null +++ b/NTR.Common/protos/Attribute.cs @@ -0,0 +1,3238 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Attribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Attribute.proto + public static partial class AttributeReflection { + + #region Descriptor + /// File descriptor for Attribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9BdHRyaWJ1dGUucHJvdG8irw0KCUF0dHJpYnV0ZRIKCgJpZBgBIAEoCRIQ", + "Cghncm91cF9pZBgCIAEoBRINCgVicmVhaxgDIAEoBRILCgNsdmwYBCABKAUS", + "CwoDYXRrGAUgASgFEgoKAmhwGAYgASgFEgsKA2RlZhgHIAEoBRIRCgljcml0", + "X3JhdGUYCCABKAUSGAoQbm9ybWFsX2NyaXRfcmF0ZRgJIAEoBRIXCg9za2ls", + "bF9jcml0X3JhdGUYCiABKAUSFwoPdWx0cmFfY3JpdF9yYXRlGAsgASgFEhYK", + "Dm1hcmtfY3JpdF9yYXRlGAwgASgFEhgKEHN1bW1vbl9jcml0X3JhdGUYDSAB", + "KAUSHAoUcHJvamVjdGlsZV9jcml0X3JhdGUYDiABKAUSFwoPb3RoZXJfY3Jp", + "dF9yYXRlGA8gASgFEhcKD2NyaXRfcmVzaXN0YW5jZRgQIAEoBRISCgpjcml0", + "X3Bvd2VyGBEgASgFEhkKEW5vcm1hbF9jcml0X3Bvd2VyGBIgASgFEhgKEHNr", + "aWxsX2NyaXRfcG93ZXIYEyABKAUSGAoQdWx0cmFfY3JpdF9wb3dlchgUIAEo", + "BRIXCg9tYXJrX2NyaXRfcG93ZXIYFSABKAUSGQoRc3VtbW9uX2NyaXRfcG93", + "ZXIYFiABKAUSHQoVcHJvamVjdGlsZV9jcml0X3Bvd2VyGBcgASgFEhgKEG90", + "aGVyX2NyaXRfcG93ZXIYGCABKAUSEAoIaGl0X3JhdGUYGSABKAUSCwoDZXZk", + "GBogASgFEhIKCmRlZl9waWVyY2UYGyABKAUSEgoKZGVmX2lnbm9yZRgcIAEo", + "BRINCgV3X2VfcBgdIAEoBRINCgVmX2VfcBgeIAEoBRINCgVzX2VfcBgfIAEo", + "BRINCgVhX2VfcBggIAEoBRINCgVsX2VfcBghIAEoBRINCgVkX2VfcBgiIAEo", + "BRINCgV3X2VfaRgjIAEoBRINCgVmX2VfaRgkIAEoBRINCgVzX2VfaRglIAEo", + "BRINCgVhX2VfaRgmIAEoBRINCgVsX2VfaRgnIAEoBRINCgVkX2VfaRgoIAEo", + "BRINCgV3X2VfZRgpIAEoBRINCgVmX2VfZRgqIAEoBRINCgVzX2VfZRgrIAEo", + "BRINCgVhX2VfZRgsIAEoBRINCgVsX2VfZRgtIAEoBRINCgVkX2VfZRguIAEo", + "BRINCgV3X2VfchgvIAEoBRINCgVmX2VfchgwIAEoBRINCgVzX2VfchgxIAEo", + "BRINCgVhX2VfchgyIAEoBRINCgVsX2VfchgzIAEoBRINCgVkX2Vfchg0IAEo", + "BRIfChd0b3VnaG5lc3NfZGFtYWdlX2FkanVzdBg1IAEoBRIRCgl0b3VnaG5l", + "c3MYNiABKAUSEAoIc3VwcHJlc3MYNyABKAUSGQoRbl9vX3JfbV9hX2xfZF9t", + "X2cYOCABKAUSFwoPc19rX2lfbF9sX2RfbV9nGDkgASgFEhcKD3VfbF90X3Jf", + "YV9kX21fZxg6IAEoBRIXCg9vX3RfaF9lX3JfZF9tX2cYOyABKAUSHwoXcl9j", + "X2Rfbl9vX3JfbV9hX2xfZF9tX2cYPCABKAUSEwoLUkNEU0tJTExETUcYPSAB", + "KAUSEwoLUkNEVUxUUkFETUcYPiABKAUSEwoLUkNET1RIRVJETUcYPyABKAUS", + "FQoNbV9hX3Jfa19kX21fZxhAIAEoBRIbChNyX2NfZF9tX2Ffcl9rX2RfbV9n", + "GEEgASgFEhkKEXNfdV9tX21fb19uX2RfbV9nGEIgASgFEh8KF3JfY19kX3Nf", + "dV9tX21fb19uX2RfbV9nGEMgASgFEiEKGXBfcl9vX2pfZV9jX3RfaV9sX2Vf", + "ZF9tX2cYRCABKAUSJwofcl9jX2RfcF9yX29fal9lX2NfdF9pX2xfZV9kX21f", + "ZxhFIAEoBRITCgtnX2Vfbl9kX21fZxhGIAEoBRIVCg1kX21fZ19wX2xfdV9z", + "GEcgASgFEhcKD2ZfaV9uX2FfbF9kX21fZxhIIAEoBRIfChdmX2lfbl9hX2xf", + "ZF9tX2dfcF9sX3VfcxhJIAEoBRITCgt3X2VfZV9yX2NfZBhKIAEoBRITCgtm", + "X2VfZV9yX2NfZBhLIAEoBRITCgtzX2VfZV9yX2NfZBhMIAEoBRITCgthX2Vf", + "ZV9yX2NfZBhNIAEoBRITCgtsX2VfZV9yX2NfZBhOIAEoBRITCgtkX2VfZV9y", + "X2NfZBhPIAEoBRIZChFnX2Vfbl9kX21fZ19yX2NfZBhQIAEoBRIbChNkX21f", + "Z19wX2xfdV9zX3JfY19kGFEgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Attribute), global::Nova.Client.Attribute.Parser, new[]{ "Id", "GroupId", "Break", "Lvl", "Atk", "Hp", "Def", "CritRate", "NormalCritRate", "SkillCritRate", "UltraCritRate", "MarkCritRate", "SummonCritRate", "ProjectileCritRate", "OtherCritRate", "CritResistance", "CritPower", "NormalCritPower", "SkillCritPower", "UltraCritPower", "MarkCritPower", "SummonCritPower", "ProjectileCritPower", "OtherCritPower", "HitRate", "Evd", "DefPierce", "DefIgnore", "WEP", "FEP", "SEP", "AEP", "LEP", "DEP", "WEI", "FEI", "SEI", "AEI", "LEI", "DEI", "WEE", "FEE", "SEE", "AEE", "LEE", "DEE", "WER", "FER", "SER", "AER", "LER", "DER", "ToughnessDamageAdjust", "Toughness", "Suppress", "NORMALDMG", "SKILLDMG", "ULTRADMG", "OTHERDMG", "RCDNORMALDMG", "RCDSKILLDMG", "RCDULTRADMG", "RCDOTHERDMG", "MARKDMG", "RCDMARKDMG", "SUMMONDMG", "RCDSUMMONDMG", "PROJECTILEDMG", "RCDPROJECTILEDMG", "GENDMG", "DMGPLUS", "FINALDMG", "FINALDMGPLUS", "WEERCD", "FEERCD", "SEERCD", "AEERCD", "LEERCD", "DEERCD", "GENDMGRCD", "DMGPLUSRCD" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Attribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute(Attribute other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + break_ = other.break_; + lvl_ = other.lvl_; + atk_ = other.atk_; + hp_ = other.hp_; + def_ = other.def_; + critRate_ = other.critRate_; + normalCritRate_ = other.normalCritRate_; + skillCritRate_ = other.skillCritRate_; + ultraCritRate_ = other.ultraCritRate_; + markCritRate_ = other.markCritRate_; + summonCritRate_ = other.summonCritRate_; + projectileCritRate_ = other.projectileCritRate_; + otherCritRate_ = other.otherCritRate_; + critResistance_ = other.critResistance_; + critPower_ = other.critPower_; + normalCritPower_ = other.normalCritPower_; + skillCritPower_ = other.skillCritPower_; + ultraCritPower_ = other.ultraCritPower_; + markCritPower_ = other.markCritPower_; + summonCritPower_ = other.summonCritPower_; + projectileCritPower_ = other.projectileCritPower_; + otherCritPower_ = other.otherCritPower_; + hitRate_ = other.hitRate_; + evd_ = other.evd_; + defPierce_ = other.defPierce_; + defIgnore_ = other.defIgnore_; + wEP_ = other.wEP_; + fEP_ = other.fEP_; + sEP_ = other.sEP_; + aEP_ = other.aEP_; + lEP_ = other.lEP_; + dEP_ = other.dEP_; + wEI_ = other.wEI_; + fEI_ = other.fEI_; + sEI_ = other.sEI_; + aEI_ = other.aEI_; + lEI_ = other.lEI_; + dEI_ = other.dEI_; + wEE_ = other.wEE_; + fEE_ = other.fEE_; + sEE_ = other.sEE_; + aEE_ = other.aEE_; + lEE_ = other.lEE_; + dEE_ = other.dEE_; + wER_ = other.wER_; + fER_ = other.fER_; + sER_ = other.sER_; + aER_ = other.aER_; + lER_ = other.lER_; + dER_ = other.dER_; + toughnessDamageAdjust_ = other.toughnessDamageAdjust_; + toughness_ = other.toughness_; + suppress_ = other.suppress_; + nORMALDMG_ = other.nORMALDMG_; + sKILLDMG_ = other.sKILLDMG_; + uLTRADMG_ = other.uLTRADMG_; + oTHERDMG_ = other.oTHERDMG_; + rCDNORMALDMG_ = other.rCDNORMALDMG_; + rCDSKILLDMG_ = other.rCDSKILLDMG_; + rCDULTRADMG_ = other.rCDULTRADMG_; + rCDOTHERDMG_ = other.rCDOTHERDMG_; + mARKDMG_ = other.mARKDMG_; + rCDMARKDMG_ = other.rCDMARKDMG_; + sUMMONDMG_ = other.sUMMONDMG_; + rCDSUMMONDMG_ = other.rCDSUMMONDMG_; + pROJECTILEDMG_ = other.pROJECTILEDMG_; + rCDPROJECTILEDMG_ = other.rCDPROJECTILEDMG_; + gENDMG_ = other.gENDMG_; + dMGPLUS_ = other.dMGPLUS_; + fINALDMG_ = other.fINALDMG_; + fINALDMGPLUS_ = other.fINALDMGPLUS_; + wEERCD_ = other.wEERCD_; + fEERCD_ = other.fEERCD_; + sEERCD_ = other.sEERCD_; + aEERCD_ = other.aEERCD_; + lEERCD_ = other.lEERCD_; + dEERCD_ = other.dEERCD_; + gENDMGRCD_ = other.gENDMGRCD_; + dMGPLUSRCD_ = other.dMGPLUSRCD_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute Clone() { + return new Attribute(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "break" field. + public const int BreakFieldNumber = 3; + private int break_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Break { + get { return break_; } + set { + break_ = value; + } + } + + /// Field number for the "lvl" field. + public const int LvlFieldNumber = 4; + private int lvl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Lvl { + get { return lvl_; } + set { + lvl_ = value; + } + } + + /// Field number for the "atk" field. + public const int AtkFieldNumber = 5; + private int atk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Atk { + get { return atk_; } + set { + atk_ = value; + } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 6; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + /// Field number for the "def" field. + public const int DefFieldNumber = 7; + private int def_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Def { + get { return def_; } + set { + def_ = value; + } + } + + /// Field number for the "crit_rate" field. + public const int CritRateFieldNumber = 8; + private int critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// Field number for the "normal_crit_rate" field. + public const int NormalCritRateFieldNumber = 9; + private int normalCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalCritRate { + get { return normalCritRate_; } + set { + normalCritRate_ = value; + } + } + + /// Field number for the "skill_crit_rate" field. + public const int SkillCritRateFieldNumber = 10; + private int skillCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCritRate { + get { return skillCritRate_; } + set { + skillCritRate_ = value; + } + } + + /// Field number for the "ultra_crit_rate" field. + public const int UltraCritRateFieldNumber = 11; + private int ultraCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraCritRate { + get { return ultraCritRate_; } + set { + ultraCritRate_ = value; + } + } + + /// Field number for the "mark_crit_rate" field. + public const int MarkCritRateFieldNumber = 12; + private int markCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkCritRate { + get { return markCritRate_; } + set { + markCritRate_ = value; + } + } + + /// Field number for the "summon_crit_rate" field. + public const int SummonCritRateFieldNumber = 13; + private int summonCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonCritRate { + get { return summonCritRate_; } + set { + summonCritRate_ = value; + } + } + + /// Field number for the "projectile_crit_rate" field. + public const int ProjectileCritRateFieldNumber = 14; + private int projectileCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileCritRate { + get { return projectileCritRate_; } + set { + projectileCritRate_ = value; + } + } + + /// Field number for the "other_crit_rate" field. + public const int OtherCritRateFieldNumber = 15; + private int otherCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherCritRate { + get { return otherCritRate_; } + set { + otherCritRate_ = value; + } + } + + /// Field number for the "crit_resistance" field. + public const int CritResistanceFieldNumber = 16; + private int critResistance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritResistance { + get { return critResistance_; } + set { + critResistance_ = value; + } + } + + /// Field number for the "crit_power" field. + public const int CritPowerFieldNumber = 17; + private int critPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritPower { + get { return critPower_; } + set { + critPower_ = value; + } + } + + /// Field number for the "normal_crit_power" field. + public const int NormalCritPowerFieldNumber = 18; + private int normalCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalCritPower { + get { return normalCritPower_; } + set { + normalCritPower_ = value; + } + } + + /// Field number for the "skill_crit_power" field. + public const int SkillCritPowerFieldNumber = 19; + private int skillCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCritPower { + get { return skillCritPower_; } + set { + skillCritPower_ = value; + } + } + + /// Field number for the "ultra_crit_power" field. + public const int UltraCritPowerFieldNumber = 20; + private int ultraCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraCritPower { + get { return ultraCritPower_; } + set { + ultraCritPower_ = value; + } + } + + /// Field number for the "mark_crit_power" field. + public const int MarkCritPowerFieldNumber = 21; + private int markCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkCritPower { + get { return markCritPower_; } + set { + markCritPower_ = value; + } + } + + /// Field number for the "summon_crit_power" field. + public const int SummonCritPowerFieldNumber = 22; + private int summonCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonCritPower { + get { return summonCritPower_; } + set { + summonCritPower_ = value; + } + } + + /// Field number for the "projectile_crit_power" field. + public const int ProjectileCritPowerFieldNumber = 23; + private int projectileCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileCritPower { + get { return projectileCritPower_; } + set { + projectileCritPower_ = value; + } + } + + /// Field number for the "other_crit_power" field. + public const int OtherCritPowerFieldNumber = 24; + private int otherCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherCritPower { + get { return otherCritPower_; } + set { + otherCritPower_ = value; + } + } + + /// Field number for the "hit_rate" field. + public const int HitRateFieldNumber = 25; + private int hitRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HitRate { + get { return hitRate_; } + set { + hitRate_ = value; + } + } + + /// Field number for the "evd" field. + public const int EvdFieldNumber = 26; + private int evd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Evd { + get { return evd_; } + set { + evd_ = value; + } + } + + /// Field number for the "def_pierce" field. + public const int DefPierceFieldNumber = 27; + private int defPierce_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefPierce { + get { return defPierce_; } + set { + defPierce_ = value; + } + } + + /// Field number for the "def_ignore" field. + public const int DefIgnoreFieldNumber = 28; + private int defIgnore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefIgnore { + get { return defIgnore_; } + set { + defIgnore_ = value; + } + } + + /// Field number for the "w_e_p" field. + public const int WEPFieldNumber = 29; + private int wEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEP { + get { return wEP_; } + set { + wEP_ = value; + } + } + + /// Field number for the "f_e_p" field. + public const int FEPFieldNumber = 30; + private int fEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEP { + get { return fEP_; } + set { + fEP_ = value; + } + } + + /// Field number for the "s_e_p" field. + public const int SEPFieldNumber = 31; + private int sEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEP { + get { return sEP_; } + set { + sEP_ = value; + } + } + + /// Field number for the "a_e_p" field. + public const int AEPFieldNumber = 32; + private int aEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEP { + get { return aEP_; } + set { + aEP_ = value; + } + } + + /// Field number for the "l_e_p" field. + public const int LEPFieldNumber = 33; + private int lEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEP { + get { return lEP_; } + set { + lEP_ = value; + } + } + + /// Field number for the "d_e_p" field. + public const int DEPFieldNumber = 34; + private int dEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEP { + get { return dEP_; } + set { + dEP_ = value; + } + } + + /// Field number for the "w_e_i" field. + public const int WEIFieldNumber = 35; + private int wEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEI { + get { return wEI_; } + set { + wEI_ = value; + } + } + + /// Field number for the "f_e_i" field. + public const int FEIFieldNumber = 36; + private int fEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEI { + get { return fEI_; } + set { + fEI_ = value; + } + } + + /// Field number for the "s_e_i" field. + public const int SEIFieldNumber = 37; + private int sEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEI { + get { return sEI_; } + set { + sEI_ = value; + } + } + + /// Field number for the "a_e_i" field. + public const int AEIFieldNumber = 38; + private int aEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEI { + get { return aEI_; } + set { + aEI_ = value; + } + } + + /// Field number for the "l_e_i" field. + public const int LEIFieldNumber = 39; + private int lEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEI { + get { return lEI_; } + set { + lEI_ = value; + } + } + + /// Field number for the "d_e_i" field. + public const int DEIFieldNumber = 40; + private int dEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEI { + get { return dEI_; } + set { + dEI_ = value; + } + } + + /// Field number for the "w_e_e" field. + public const int WEEFieldNumber = 41; + private int wEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEE { + get { return wEE_; } + set { + wEE_ = value; + } + } + + /// Field number for the "f_e_e" field. + public const int FEEFieldNumber = 42; + private int fEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEE { + get { return fEE_; } + set { + fEE_ = value; + } + } + + /// Field number for the "s_e_e" field. + public const int SEEFieldNumber = 43; + private int sEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEE { + get { return sEE_; } + set { + sEE_ = value; + } + } + + /// Field number for the "a_e_e" field. + public const int AEEFieldNumber = 44; + private int aEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEE { + get { return aEE_; } + set { + aEE_ = value; + } + } + + /// Field number for the "l_e_e" field. + public const int LEEFieldNumber = 45; + private int lEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEE { + get { return lEE_; } + set { + lEE_ = value; + } + } + + /// Field number for the "d_e_e" field. + public const int DEEFieldNumber = 46; + private int dEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEE { + get { return dEE_; } + set { + dEE_ = value; + } + } + + /// Field number for the "w_e_r" field. + public const int WERFieldNumber = 47; + private int wER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WER { + get { return wER_; } + set { + wER_ = value; + } + } + + /// Field number for the "f_e_r" field. + public const int FERFieldNumber = 48; + private int fER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FER { + get { return fER_; } + set { + fER_ = value; + } + } + + /// Field number for the "s_e_r" field. + public const int SERFieldNumber = 49; + private int sER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SER { + get { return sER_; } + set { + sER_ = value; + } + } + + /// Field number for the "a_e_r" field. + public const int AERFieldNumber = 50; + private int aER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AER { + get { return aER_; } + set { + aER_ = value; + } + } + + /// Field number for the "l_e_r" field. + public const int LERFieldNumber = 51; + private int lER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LER { + get { return lER_; } + set { + lER_ = value; + } + } + + /// Field number for the "d_e_r" field. + public const int DERFieldNumber = 52; + private int dER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DER { + get { return dER_; } + set { + dER_ = value; + } + } + + /// Field number for the "toughness_damage_adjust" field. + public const int ToughnessDamageAdjustFieldNumber = 53; + private int toughnessDamageAdjust_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToughnessDamageAdjust { + get { return toughnessDamageAdjust_; } + set { + toughnessDamageAdjust_ = value; + } + } + + /// Field number for the "toughness" field. + public const int ToughnessFieldNumber = 54; + private int toughness_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Toughness { + get { return toughness_; } + set { + toughness_ = value; + } + } + + /// Field number for the "suppress" field. + public const int SuppressFieldNumber = 55; + private int suppress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Suppress { + get { return suppress_; } + set { + suppress_ = value; + } + } + + /// Field number for the "n_o_r_m_a_l_d_m_g" field. + public const int NORMALDMGFieldNumber = 56; + private int nORMALDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NORMALDMG { + get { return nORMALDMG_; } + set { + nORMALDMG_ = value; + } + } + + /// Field number for the "s_k_i_l_l_d_m_g" field. + public const int SKILLDMGFieldNumber = 57; + private int sKILLDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SKILLDMG { + get { return sKILLDMG_; } + set { + sKILLDMG_ = value; + } + } + + /// Field number for the "u_l_t_r_a_d_m_g" field. + public const int ULTRADMGFieldNumber = 58; + private int uLTRADMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ULTRADMG { + get { return uLTRADMG_; } + set { + uLTRADMG_ = value; + } + } + + /// Field number for the "o_t_h_e_r_d_m_g" field. + public const int OTHERDMGFieldNumber = 59; + private int oTHERDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OTHERDMG { + get { return oTHERDMG_; } + set { + oTHERDMG_ = value; + } + } + + /// Field number for the "r_c_d_n_o_r_m_a_l_d_m_g" field. + public const int RCDNORMALDMGFieldNumber = 60; + private int rCDNORMALDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDNORMALDMG { + get { return rCDNORMALDMG_; } + set { + rCDNORMALDMG_ = value; + } + } + + /// Field number for the "RCDSKILLDMG" field. + public const int RCDSKILLDMGFieldNumber = 61; + private int rCDSKILLDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDSKILLDMG { + get { return rCDSKILLDMG_; } + set { + rCDSKILLDMG_ = value; + } + } + + /// Field number for the "RCDULTRADMG" field. + public const int RCDULTRADMGFieldNumber = 62; + private int rCDULTRADMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDULTRADMG { + get { return rCDULTRADMG_; } + set { + rCDULTRADMG_ = value; + } + } + + /// Field number for the "RCDOTHERDMG" field. + public const int RCDOTHERDMGFieldNumber = 63; + private int rCDOTHERDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDOTHERDMG { + get { return rCDOTHERDMG_; } + set { + rCDOTHERDMG_ = value; + } + } + + /// Field number for the "m_a_r_k_d_m_g" field. + public const int MARKDMGFieldNumber = 64; + private int mARKDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MARKDMG { + get { return mARKDMG_; } + set { + mARKDMG_ = value; + } + } + + /// Field number for the "r_c_d_m_a_r_k_d_m_g" field. + public const int RCDMARKDMGFieldNumber = 65; + private int rCDMARKDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDMARKDMG { + get { return rCDMARKDMG_; } + set { + rCDMARKDMG_ = value; + } + } + + /// Field number for the "s_u_m_m_o_n_d_m_g" field. + public const int SUMMONDMGFieldNumber = 66; + private int sUMMONDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SUMMONDMG { + get { return sUMMONDMG_; } + set { + sUMMONDMG_ = value; + } + } + + /// Field number for the "r_c_d_s_u_m_m_o_n_d_m_g" field. + public const int RCDSUMMONDMGFieldNumber = 67; + private int rCDSUMMONDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDSUMMONDMG { + get { return rCDSUMMONDMG_; } + set { + rCDSUMMONDMG_ = value; + } + } + + /// Field number for the "p_r_o_j_e_c_t_i_l_e_d_m_g" field. + public const int PROJECTILEDMGFieldNumber = 68; + private int pROJECTILEDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PROJECTILEDMG { + get { return pROJECTILEDMG_; } + set { + pROJECTILEDMG_ = value; + } + } + + /// Field number for the "r_c_d_p_r_o_j_e_c_t_i_l_e_d_m_g" field. + public const int RCDPROJECTILEDMGFieldNumber = 69; + private int rCDPROJECTILEDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDPROJECTILEDMG { + get { return rCDPROJECTILEDMG_; } + set { + rCDPROJECTILEDMG_ = value; + } + } + + /// Field number for the "g_e_n_d_m_g" field. + public const int GENDMGFieldNumber = 70; + private int gENDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GENDMG { + get { return gENDMG_; } + set { + gENDMG_ = value; + } + } + + /// Field number for the "d_m_g_p_l_u_s" field. + public const int DMGPLUSFieldNumber = 71; + private int dMGPLUS_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DMGPLUS { + get { return dMGPLUS_; } + set { + dMGPLUS_ = value; + } + } + + /// Field number for the "f_i_n_a_l_d_m_g" field. + public const int FINALDMGFieldNumber = 72; + private int fINALDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FINALDMG { + get { return fINALDMG_; } + set { + fINALDMG_ = value; + } + } + + /// Field number for the "f_i_n_a_l_d_m_g_p_l_u_s" field. + public const int FINALDMGPLUSFieldNumber = 73; + private int fINALDMGPLUS_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FINALDMGPLUS { + get { return fINALDMGPLUS_; } + set { + fINALDMGPLUS_ = value; + } + } + + /// Field number for the "w_e_e_r_c_d" field. + public const int WEERCDFieldNumber = 74; + private int wEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEERCD { + get { return wEERCD_; } + set { + wEERCD_ = value; + } + } + + /// Field number for the "f_e_e_r_c_d" field. + public const int FEERCDFieldNumber = 75; + private int fEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEERCD { + get { return fEERCD_; } + set { + fEERCD_ = value; + } + } + + /// Field number for the "s_e_e_r_c_d" field. + public const int SEERCDFieldNumber = 76; + private int sEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEERCD { + get { return sEERCD_; } + set { + sEERCD_ = value; + } + } + + /// Field number for the "a_e_e_r_c_d" field. + public const int AEERCDFieldNumber = 77; + private int aEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEERCD { + get { return aEERCD_; } + set { + aEERCD_ = value; + } + } + + /// Field number for the "l_e_e_r_c_d" field. + public const int LEERCDFieldNumber = 78; + private int lEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEERCD { + get { return lEERCD_; } + set { + lEERCD_ = value; + } + } + + /// Field number for the "d_e_e_r_c_d" field. + public const int DEERCDFieldNumber = 79; + private int dEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEERCD { + get { return dEERCD_; } + set { + dEERCD_ = value; + } + } + + /// Field number for the "g_e_n_d_m_g_r_c_d" field. + public const int GENDMGRCDFieldNumber = 80; + private int gENDMGRCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GENDMGRCD { + get { return gENDMGRCD_; } + set { + gENDMGRCD_ = value; + } + } + + /// Field number for the "d_m_g_p_l_u_s_r_c_d" field. + public const int DMGPLUSRCDFieldNumber = 81; + private int dMGPLUSRCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DMGPLUSRCD { + get { return dMGPLUSRCD_; } + set { + dMGPLUSRCD_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Attribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Attribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Break != other.Break) return false; + if (Lvl != other.Lvl) return false; + if (Atk != other.Atk) return false; + if (Hp != other.Hp) return false; + if (Def != other.Def) return false; + if (CritRate != other.CritRate) return false; + if (NormalCritRate != other.NormalCritRate) return false; + if (SkillCritRate != other.SkillCritRate) return false; + if (UltraCritRate != other.UltraCritRate) return false; + if (MarkCritRate != other.MarkCritRate) return false; + if (SummonCritRate != other.SummonCritRate) return false; + if (ProjectileCritRate != other.ProjectileCritRate) return false; + if (OtherCritRate != other.OtherCritRate) return false; + if (CritResistance != other.CritResistance) return false; + if (CritPower != other.CritPower) return false; + if (NormalCritPower != other.NormalCritPower) return false; + if (SkillCritPower != other.SkillCritPower) return false; + if (UltraCritPower != other.UltraCritPower) return false; + if (MarkCritPower != other.MarkCritPower) return false; + if (SummonCritPower != other.SummonCritPower) return false; + if (ProjectileCritPower != other.ProjectileCritPower) return false; + if (OtherCritPower != other.OtherCritPower) return false; + if (HitRate != other.HitRate) return false; + if (Evd != other.Evd) return false; + if (DefPierce != other.DefPierce) return false; + if (DefIgnore != other.DefIgnore) return false; + if (WEP != other.WEP) return false; + if (FEP != other.FEP) return false; + if (SEP != other.SEP) return false; + if (AEP != other.AEP) return false; + if (LEP != other.LEP) return false; + if (DEP != other.DEP) return false; + if (WEI != other.WEI) return false; + if (FEI != other.FEI) return false; + if (SEI != other.SEI) return false; + if (AEI != other.AEI) return false; + if (LEI != other.LEI) return false; + if (DEI != other.DEI) return false; + if (WEE != other.WEE) return false; + if (FEE != other.FEE) return false; + if (SEE != other.SEE) return false; + if (AEE != other.AEE) return false; + if (LEE != other.LEE) return false; + if (DEE != other.DEE) return false; + if (WER != other.WER) return false; + if (FER != other.FER) return false; + if (SER != other.SER) return false; + if (AER != other.AER) return false; + if (LER != other.LER) return false; + if (DER != other.DER) return false; + if (ToughnessDamageAdjust != other.ToughnessDamageAdjust) return false; + if (Toughness != other.Toughness) return false; + if (Suppress != other.Suppress) return false; + if (NORMALDMG != other.NORMALDMG) return false; + if (SKILLDMG != other.SKILLDMG) return false; + if (ULTRADMG != other.ULTRADMG) return false; + if (OTHERDMG != other.OTHERDMG) return false; + if (RCDNORMALDMG != other.RCDNORMALDMG) return false; + if (RCDSKILLDMG != other.RCDSKILLDMG) return false; + if (RCDULTRADMG != other.RCDULTRADMG) return false; + if (RCDOTHERDMG != other.RCDOTHERDMG) return false; + if (MARKDMG != other.MARKDMG) return false; + if (RCDMARKDMG != other.RCDMARKDMG) return false; + if (SUMMONDMG != other.SUMMONDMG) return false; + if (RCDSUMMONDMG != other.RCDSUMMONDMG) return false; + if (PROJECTILEDMG != other.PROJECTILEDMG) return false; + if (RCDPROJECTILEDMG != other.RCDPROJECTILEDMG) return false; + if (GENDMG != other.GENDMG) return false; + if (DMGPLUS != other.DMGPLUS) return false; + if (FINALDMG != other.FINALDMG) return false; + if (FINALDMGPLUS != other.FINALDMGPLUS) return false; + if (WEERCD != other.WEERCD) return false; + if (FEERCD != other.FEERCD) return false; + if (SEERCD != other.SEERCD) return false; + if (AEERCD != other.AEERCD) return false; + if (LEERCD != other.LEERCD) return false; + if (DEERCD != other.DEERCD) return false; + if (GENDMGRCD != other.GENDMGRCD) return false; + if (DMGPLUSRCD != other.DMGPLUSRCD) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Break != 0) hash ^= Break.GetHashCode(); + if (Lvl != 0) hash ^= Lvl.GetHashCode(); + if (Atk != 0) hash ^= Atk.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (Def != 0) hash ^= Def.GetHashCode(); + if (CritRate != 0) hash ^= CritRate.GetHashCode(); + if (NormalCritRate != 0) hash ^= NormalCritRate.GetHashCode(); + if (SkillCritRate != 0) hash ^= SkillCritRate.GetHashCode(); + if (UltraCritRate != 0) hash ^= UltraCritRate.GetHashCode(); + if (MarkCritRate != 0) hash ^= MarkCritRate.GetHashCode(); + if (SummonCritRate != 0) hash ^= SummonCritRate.GetHashCode(); + if (ProjectileCritRate != 0) hash ^= ProjectileCritRate.GetHashCode(); + if (OtherCritRate != 0) hash ^= OtherCritRate.GetHashCode(); + if (CritResistance != 0) hash ^= CritResistance.GetHashCode(); + if (CritPower != 0) hash ^= CritPower.GetHashCode(); + if (NormalCritPower != 0) hash ^= NormalCritPower.GetHashCode(); + if (SkillCritPower != 0) hash ^= SkillCritPower.GetHashCode(); + if (UltraCritPower != 0) hash ^= UltraCritPower.GetHashCode(); + if (MarkCritPower != 0) hash ^= MarkCritPower.GetHashCode(); + if (SummonCritPower != 0) hash ^= SummonCritPower.GetHashCode(); + if (ProjectileCritPower != 0) hash ^= ProjectileCritPower.GetHashCode(); + if (OtherCritPower != 0) hash ^= OtherCritPower.GetHashCode(); + if (HitRate != 0) hash ^= HitRate.GetHashCode(); + if (Evd != 0) hash ^= Evd.GetHashCode(); + if (DefPierce != 0) hash ^= DefPierce.GetHashCode(); + if (DefIgnore != 0) hash ^= DefIgnore.GetHashCode(); + if (WEP != 0) hash ^= WEP.GetHashCode(); + if (FEP != 0) hash ^= FEP.GetHashCode(); + if (SEP != 0) hash ^= SEP.GetHashCode(); + if (AEP != 0) hash ^= AEP.GetHashCode(); + if (LEP != 0) hash ^= LEP.GetHashCode(); + if (DEP != 0) hash ^= DEP.GetHashCode(); + if (WEI != 0) hash ^= WEI.GetHashCode(); + if (FEI != 0) hash ^= FEI.GetHashCode(); + if (SEI != 0) hash ^= SEI.GetHashCode(); + if (AEI != 0) hash ^= AEI.GetHashCode(); + if (LEI != 0) hash ^= LEI.GetHashCode(); + if (DEI != 0) hash ^= DEI.GetHashCode(); + if (WEE != 0) hash ^= WEE.GetHashCode(); + if (FEE != 0) hash ^= FEE.GetHashCode(); + if (SEE != 0) hash ^= SEE.GetHashCode(); + if (AEE != 0) hash ^= AEE.GetHashCode(); + if (LEE != 0) hash ^= LEE.GetHashCode(); + if (DEE != 0) hash ^= DEE.GetHashCode(); + if (WER != 0) hash ^= WER.GetHashCode(); + if (FER != 0) hash ^= FER.GetHashCode(); + if (SER != 0) hash ^= SER.GetHashCode(); + if (AER != 0) hash ^= AER.GetHashCode(); + if (LER != 0) hash ^= LER.GetHashCode(); + if (DER != 0) hash ^= DER.GetHashCode(); + if (ToughnessDamageAdjust != 0) hash ^= ToughnessDamageAdjust.GetHashCode(); + if (Toughness != 0) hash ^= Toughness.GetHashCode(); + if (Suppress != 0) hash ^= Suppress.GetHashCode(); + if (NORMALDMG != 0) hash ^= NORMALDMG.GetHashCode(); + if (SKILLDMG != 0) hash ^= SKILLDMG.GetHashCode(); + if (ULTRADMG != 0) hash ^= ULTRADMG.GetHashCode(); + if (OTHERDMG != 0) hash ^= OTHERDMG.GetHashCode(); + if (RCDNORMALDMG != 0) hash ^= RCDNORMALDMG.GetHashCode(); + if (RCDSKILLDMG != 0) hash ^= RCDSKILLDMG.GetHashCode(); + if (RCDULTRADMG != 0) hash ^= RCDULTRADMG.GetHashCode(); + if (RCDOTHERDMG != 0) hash ^= RCDOTHERDMG.GetHashCode(); + if (MARKDMG != 0) hash ^= MARKDMG.GetHashCode(); + if (RCDMARKDMG != 0) hash ^= RCDMARKDMG.GetHashCode(); + if (SUMMONDMG != 0) hash ^= SUMMONDMG.GetHashCode(); + if (RCDSUMMONDMG != 0) hash ^= RCDSUMMONDMG.GetHashCode(); + if (PROJECTILEDMG != 0) hash ^= PROJECTILEDMG.GetHashCode(); + if (RCDPROJECTILEDMG != 0) hash ^= RCDPROJECTILEDMG.GetHashCode(); + if (GENDMG != 0) hash ^= GENDMG.GetHashCode(); + if (DMGPLUS != 0) hash ^= DMGPLUS.GetHashCode(); + if (FINALDMG != 0) hash ^= FINALDMG.GetHashCode(); + if (FINALDMGPLUS != 0) hash ^= FINALDMGPLUS.GetHashCode(); + if (WEERCD != 0) hash ^= WEERCD.GetHashCode(); + if (FEERCD != 0) hash ^= FEERCD.GetHashCode(); + if (SEERCD != 0) hash ^= SEERCD.GetHashCode(); + if (AEERCD != 0) hash ^= AEERCD.GetHashCode(); + if (LEERCD != 0) hash ^= LEERCD.GetHashCode(); + if (DEERCD != 0) hash ^= DEERCD.GetHashCode(); + if (GENDMGRCD != 0) hash ^= GENDMGRCD.GetHashCode(); + if (DMGPLUSRCD != 0) hash ^= DMGPLUSRCD.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Break != 0) { + output.WriteRawTag(24); + output.WriteInt32(Break); + } + if (Lvl != 0) { + output.WriteRawTag(32); + output.WriteInt32(Lvl); + } + if (Atk != 0) { + output.WriteRawTag(40); + output.WriteInt32(Atk); + } + if (Hp != 0) { + output.WriteRawTag(48); + output.WriteInt32(Hp); + } + if (Def != 0) { + output.WriteRawTag(56); + output.WriteInt32(Def); + } + if (CritRate != 0) { + output.WriteRawTag(64); + output.WriteInt32(CritRate); + } + if (NormalCritRate != 0) { + output.WriteRawTag(72); + output.WriteInt32(NormalCritRate); + } + if (SkillCritRate != 0) { + output.WriteRawTag(80); + output.WriteInt32(SkillCritRate); + } + if (UltraCritRate != 0) { + output.WriteRawTag(88); + output.WriteInt32(UltraCritRate); + } + if (MarkCritRate != 0) { + output.WriteRawTag(96); + output.WriteInt32(MarkCritRate); + } + if (SummonCritRate != 0) { + output.WriteRawTag(104); + output.WriteInt32(SummonCritRate); + } + if (ProjectileCritRate != 0) { + output.WriteRawTag(112); + output.WriteInt32(ProjectileCritRate); + } + if (OtherCritRate != 0) { + output.WriteRawTag(120); + output.WriteInt32(OtherCritRate); + } + if (CritResistance != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(CritResistance); + } + if (CritPower != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(CritPower); + } + if (NormalCritPower != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(NormalCritPower); + } + if (SkillCritPower != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(SkillCritPower); + } + if (UltraCritPower != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(UltraCritPower); + } + if (MarkCritPower != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(MarkCritPower); + } + if (SummonCritPower != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SummonCritPower); + } + if (ProjectileCritPower != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ProjectileCritPower); + } + if (OtherCritPower != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(OtherCritPower); + } + if (HitRate != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(HitRate); + } + if (Evd != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(Evd); + } + if (DefPierce != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(DefPierce); + } + if (DefIgnore != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(DEP); + } + if (WEI != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(WEI); + } + if (FEI != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(FEI); + } + if (SEI != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(SEI); + } + if (AEI != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(AEI); + } + if (LEI != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(LEI); + } + if (DEI != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(DEI); + } + if (WEE != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(DER); + } + if (ToughnessDamageAdjust != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(ToughnessDamageAdjust); + } + if (Toughness != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(Toughness); + } + if (Suppress != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(Suppress); + } + if (NORMALDMG != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(NORMALDMG); + } + if (SKILLDMG != 0) { + output.WriteRawTag(200, 3); + output.WriteInt32(SKILLDMG); + } + if (ULTRADMG != 0) { + output.WriteRawTag(208, 3); + output.WriteInt32(ULTRADMG); + } + if (OTHERDMG != 0) { + output.WriteRawTag(216, 3); + output.WriteInt32(OTHERDMG); + } + if (RCDNORMALDMG != 0) { + output.WriteRawTag(224, 3); + output.WriteInt32(RCDNORMALDMG); + } + if (RCDSKILLDMG != 0) { + output.WriteRawTag(232, 3); + output.WriteInt32(RCDSKILLDMG); + } + if (RCDULTRADMG != 0) { + output.WriteRawTag(240, 3); + output.WriteInt32(RCDULTRADMG); + } + if (RCDOTHERDMG != 0) { + output.WriteRawTag(248, 3); + output.WriteInt32(RCDOTHERDMG); + } + if (MARKDMG != 0) { + output.WriteRawTag(128, 4); + output.WriteInt32(MARKDMG); + } + if (RCDMARKDMG != 0) { + output.WriteRawTag(136, 4); + output.WriteInt32(RCDMARKDMG); + } + if (SUMMONDMG != 0) { + output.WriteRawTag(144, 4); + output.WriteInt32(SUMMONDMG); + } + if (RCDSUMMONDMG != 0) { + output.WriteRawTag(152, 4); + output.WriteInt32(RCDSUMMONDMG); + } + if (PROJECTILEDMG != 0) { + output.WriteRawTag(160, 4); + output.WriteInt32(PROJECTILEDMG); + } + if (RCDPROJECTILEDMG != 0) { + output.WriteRawTag(168, 4); + output.WriteInt32(RCDPROJECTILEDMG); + } + if (GENDMG != 0) { + output.WriteRawTag(176, 4); + output.WriteInt32(GENDMG); + } + if (DMGPLUS != 0) { + output.WriteRawTag(184, 4); + output.WriteInt32(DMGPLUS); + } + if (FINALDMG != 0) { + output.WriteRawTag(192, 4); + output.WriteInt32(FINALDMG); + } + if (FINALDMGPLUS != 0) { + output.WriteRawTag(200, 4); + output.WriteInt32(FINALDMGPLUS); + } + if (WEERCD != 0) { + output.WriteRawTag(208, 4); + output.WriteInt32(WEERCD); + } + if (FEERCD != 0) { + output.WriteRawTag(216, 4); + output.WriteInt32(FEERCD); + } + if (SEERCD != 0) { + output.WriteRawTag(224, 4); + output.WriteInt32(SEERCD); + } + if (AEERCD != 0) { + output.WriteRawTag(232, 4); + output.WriteInt32(AEERCD); + } + if (LEERCD != 0) { + output.WriteRawTag(240, 4); + output.WriteInt32(LEERCD); + } + if (DEERCD != 0) { + output.WriteRawTag(248, 4); + output.WriteInt32(DEERCD); + } + if (GENDMGRCD != 0) { + output.WriteRawTag(128, 5); + output.WriteInt32(GENDMGRCD); + } + if (DMGPLUSRCD != 0) { + output.WriteRawTag(136, 5); + output.WriteInt32(DMGPLUSRCD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Break != 0) { + output.WriteRawTag(24); + output.WriteInt32(Break); + } + if (Lvl != 0) { + output.WriteRawTag(32); + output.WriteInt32(Lvl); + } + if (Atk != 0) { + output.WriteRawTag(40); + output.WriteInt32(Atk); + } + if (Hp != 0) { + output.WriteRawTag(48); + output.WriteInt32(Hp); + } + if (Def != 0) { + output.WriteRawTag(56); + output.WriteInt32(Def); + } + if (CritRate != 0) { + output.WriteRawTag(64); + output.WriteInt32(CritRate); + } + if (NormalCritRate != 0) { + output.WriteRawTag(72); + output.WriteInt32(NormalCritRate); + } + if (SkillCritRate != 0) { + output.WriteRawTag(80); + output.WriteInt32(SkillCritRate); + } + if (UltraCritRate != 0) { + output.WriteRawTag(88); + output.WriteInt32(UltraCritRate); + } + if (MarkCritRate != 0) { + output.WriteRawTag(96); + output.WriteInt32(MarkCritRate); + } + if (SummonCritRate != 0) { + output.WriteRawTag(104); + output.WriteInt32(SummonCritRate); + } + if (ProjectileCritRate != 0) { + output.WriteRawTag(112); + output.WriteInt32(ProjectileCritRate); + } + if (OtherCritRate != 0) { + output.WriteRawTag(120); + output.WriteInt32(OtherCritRate); + } + if (CritResistance != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(CritResistance); + } + if (CritPower != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(CritPower); + } + if (NormalCritPower != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(NormalCritPower); + } + if (SkillCritPower != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(SkillCritPower); + } + if (UltraCritPower != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(UltraCritPower); + } + if (MarkCritPower != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(MarkCritPower); + } + if (SummonCritPower != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SummonCritPower); + } + if (ProjectileCritPower != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ProjectileCritPower); + } + if (OtherCritPower != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(OtherCritPower); + } + if (HitRate != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(HitRate); + } + if (Evd != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(Evd); + } + if (DefPierce != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(DefPierce); + } + if (DefIgnore != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(DEP); + } + if (WEI != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(WEI); + } + if (FEI != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(FEI); + } + if (SEI != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(SEI); + } + if (AEI != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(AEI); + } + if (LEI != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(LEI); + } + if (DEI != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(DEI); + } + if (WEE != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(DER); + } + if (ToughnessDamageAdjust != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(ToughnessDamageAdjust); + } + if (Toughness != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(Toughness); + } + if (Suppress != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(Suppress); + } + if (NORMALDMG != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(NORMALDMG); + } + if (SKILLDMG != 0) { + output.WriteRawTag(200, 3); + output.WriteInt32(SKILLDMG); + } + if (ULTRADMG != 0) { + output.WriteRawTag(208, 3); + output.WriteInt32(ULTRADMG); + } + if (OTHERDMG != 0) { + output.WriteRawTag(216, 3); + output.WriteInt32(OTHERDMG); + } + if (RCDNORMALDMG != 0) { + output.WriteRawTag(224, 3); + output.WriteInt32(RCDNORMALDMG); + } + if (RCDSKILLDMG != 0) { + output.WriteRawTag(232, 3); + output.WriteInt32(RCDSKILLDMG); + } + if (RCDULTRADMG != 0) { + output.WriteRawTag(240, 3); + output.WriteInt32(RCDULTRADMG); + } + if (RCDOTHERDMG != 0) { + output.WriteRawTag(248, 3); + output.WriteInt32(RCDOTHERDMG); + } + if (MARKDMG != 0) { + output.WriteRawTag(128, 4); + output.WriteInt32(MARKDMG); + } + if (RCDMARKDMG != 0) { + output.WriteRawTag(136, 4); + output.WriteInt32(RCDMARKDMG); + } + if (SUMMONDMG != 0) { + output.WriteRawTag(144, 4); + output.WriteInt32(SUMMONDMG); + } + if (RCDSUMMONDMG != 0) { + output.WriteRawTag(152, 4); + output.WriteInt32(RCDSUMMONDMG); + } + if (PROJECTILEDMG != 0) { + output.WriteRawTag(160, 4); + output.WriteInt32(PROJECTILEDMG); + } + if (RCDPROJECTILEDMG != 0) { + output.WriteRawTag(168, 4); + output.WriteInt32(RCDPROJECTILEDMG); + } + if (GENDMG != 0) { + output.WriteRawTag(176, 4); + output.WriteInt32(GENDMG); + } + if (DMGPLUS != 0) { + output.WriteRawTag(184, 4); + output.WriteInt32(DMGPLUS); + } + if (FINALDMG != 0) { + output.WriteRawTag(192, 4); + output.WriteInt32(FINALDMG); + } + if (FINALDMGPLUS != 0) { + output.WriteRawTag(200, 4); + output.WriteInt32(FINALDMGPLUS); + } + if (WEERCD != 0) { + output.WriteRawTag(208, 4); + output.WriteInt32(WEERCD); + } + if (FEERCD != 0) { + output.WriteRawTag(216, 4); + output.WriteInt32(FEERCD); + } + if (SEERCD != 0) { + output.WriteRawTag(224, 4); + output.WriteInt32(SEERCD); + } + if (AEERCD != 0) { + output.WriteRawTag(232, 4); + output.WriteInt32(AEERCD); + } + if (LEERCD != 0) { + output.WriteRawTag(240, 4); + output.WriteInt32(LEERCD); + } + if (DEERCD != 0) { + output.WriteRawTag(248, 4); + output.WriteInt32(DEERCD); + } + if (GENDMGRCD != 0) { + output.WriteRawTag(128, 5); + output.WriteInt32(GENDMGRCD); + } + if (DMGPLUSRCD != 0) { + output.WriteRawTag(136, 5); + output.WriteInt32(DMGPLUSRCD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Break != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Break); + } + if (Lvl != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Lvl); + } + if (Atk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Atk); + } + if (Hp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (Def != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Def); + } + if (CritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CritRate); + } + if (NormalCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NormalCritRate); + } + if (SkillCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillCritRate); + } + if (UltraCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UltraCritRate); + } + if (MarkCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MarkCritRate); + } + if (SummonCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SummonCritRate); + } + if (ProjectileCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProjectileCritRate); + } + if (OtherCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OtherCritRate); + } + if (CritResistance != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritResistance); + } + if (CritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritPower); + } + if (NormalCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalCritPower); + } + if (SkillCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillCritPower); + } + if (UltraCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UltraCritPower); + } + if (MarkCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MarkCritPower); + } + if (SummonCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SummonCritPower); + } + if (ProjectileCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ProjectileCritPower); + } + if (OtherCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OtherCritPower); + } + if (HitRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HitRate); + } + if (Evd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Evd); + } + if (DefPierce != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefPierce); + } + if (DefIgnore != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefIgnore); + } + if (WEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEP); + } + if (FEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEP); + } + if (SEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEP); + } + if (AEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEP); + } + if (LEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEP); + } + if (DEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEP); + } + if (WEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEI); + } + if (FEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEI); + } + if (SEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEI); + } + if (AEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEI); + } + if (LEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEI); + } + if (DEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEI); + } + if (WEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEE); + } + if (FEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEE); + } + if (SEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEE); + } + if (AEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEE); + } + if (LEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEE); + } + if (DEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEE); + } + if (WER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WER); + } + if (FER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FER); + } + if (SER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SER); + } + if (AER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AER); + } + if (LER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LER); + } + if (DER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DER); + } + if (ToughnessDamageAdjust != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToughnessDamageAdjust); + } + if (Toughness != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Toughness); + } + if (Suppress != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Suppress); + } + if (NORMALDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NORMALDMG); + } + if (SKILLDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SKILLDMG); + } + if (ULTRADMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ULTRADMG); + } + if (OTHERDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OTHERDMG); + } + if (RCDNORMALDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDNORMALDMG); + } + if (RCDSKILLDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDSKILLDMG); + } + if (RCDULTRADMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDULTRADMG); + } + if (RCDOTHERDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDOTHERDMG); + } + if (MARKDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MARKDMG); + } + if (RCDMARKDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDMARKDMG); + } + if (SUMMONDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SUMMONDMG); + } + if (RCDSUMMONDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDSUMMONDMG); + } + if (PROJECTILEDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PROJECTILEDMG); + } + if (RCDPROJECTILEDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDPROJECTILEDMG); + } + if (GENDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(GENDMG); + } + if (DMGPLUS != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DMGPLUS); + } + if (FINALDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FINALDMG); + } + if (FINALDMGPLUS != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FINALDMGPLUS); + } + if (WEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEERCD); + } + if (FEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEERCD); + } + if (SEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEERCD); + } + if (AEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEERCD); + } + if (LEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEERCD); + } + if (DEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEERCD); + } + if (GENDMGRCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(GENDMGRCD); + } + if (DMGPLUSRCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DMGPLUSRCD); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Attribute other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Break != 0) { + Break = other.Break; + } + if (other.Lvl != 0) { + Lvl = other.Lvl; + } + if (other.Atk != 0) { + Atk = other.Atk; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + if (other.Def != 0) { + Def = other.Def; + } + if (other.CritRate != 0) { + CritRate = other.CritRate; + } + if (other.NormalCritRate != 0) { + NormalCritRate = other.NormalCritRate; + } + if (other.SkillCritRate != 0) { + SkillCritRate = other.SkillCritRate; + } + if (other.UltraCritRate != 0) { + UltraCritRate = other.UltraCritRate; + } + if (other.MarkCritRate != 0) { + MarkCritRate = other.MarkCritRate; + } + if (other.SummonCritRate != 0) { + SummonCritRate = other.SummonCritRate; + } + if (other.ProjectileCritRate != 0) { + ProjectileCritRate = other.ProjectileCritRate; + } + if (other.OtherCritRate != 0) { + OtherCritRate = other.OtherCritRate; + } + if (other.CritResistance != 0) { + CritResistance = other.CritResistance; + } + if (other.CritPower != 0) { + CritPower = other.CritPower; + } + if (other.NormalCritPower != 0) { + NormalCritPower = other.NormalCritPower; + } + if (other.SkillCritPower != 0) { + SkillCritPower = other.SkillCritPower; + } + if (other.UltraCritPower != 0) { + UltraCritPower = other.UltraCritPower; + } + if (other.MarkCritPower != 0) { + MarkCritPower = other.MarkCritPower; + } + if (other.SummonCritPower != 0) { + SummonCritPower = other.SummonCritPower; + } + if (other.ProjectileCritPower != 0) { + ProjectileCritPower = other.ProjectileCritPower; + } + if (other.OtherCritPower != 0) { + OtherCritPower = other.OtherCritPower; + } + if (other.HitRate != 0) { + HitRate = other.HitRate; + } + if (other.Evd != 0) { + Evd = other.Evd; + } + if (other.DefPierce != 0) { + DefPierce = other.DefPierce; + } + if (other.DefIgnore != 0) { + DefIgnore = other.DefIgnore; + } + if (other.WEP != 0) { + WEP = other.WEP; + } + if (other.FEP != 0) { + FEP = other.FEP; + } + if (other.SEP != 0) { + SEP = other.SEP; + } + if (other.AEP != 0) { + AEP = other.AEP; + } + if (other.LEP != 0) { + LEP = other.LEP; + } + if (other.DEP != 0) { + DEP = other.DEP; + } + if (other.WEI != 0) { + WEI = other.WEI; + } + if (other.FEI != 0) { + FEI = other.FEI; + } + if (other.SEI != 0) { + SEI = other.SEI; + } + if (other.AEI != 0) { + AEI = other.AEI; + } + if (other.LEI != 0) { + LEI = other.LEI; + } + if (other.DEI != 0) { + DEI = other.DEI; + } + if (other.WEE != 0) { + WEE = other.WEE; + } + if (other.FEE != 0) { + FEE = other.FEE; + } + if (other.SEE != 0) { + SEE = other.SEE; + } + if (other.AEE != 0) { + AEE = other.AEE; + } + if (other.LEE != 0) { + LEE = other.LEE; + } + if (other.DEE != 0) { + DEE = other.DEE; + } + if (other.WER != 0) { + WER = other.WER; + } + if (other.FER != 0) { + FER = other.FER; + } + if (other.SER != 0) { + SER = other.SER; + } + if (other.AER != 0) { + AER = other.AER; + } + if (other.LER != 0) { + LER = other.LER; + } + if (other.DER != 0) { + DER = other.DER; + } + if (other.ToughnessDamageAdjust != 0) { + ToughnessDamageAdjust = other.ToughnessDamageAdjust; + } + if (other.Toughness != 0) { + Toughness = other.Toughness; + } + if (other.Suppress != 0) { + Suppress = other.Suppress; + } + if (other.NORMALDMG != 0) { + NORMALDMG = other.NORMALDMG; + } + if (other.SKILLDMG != 0) { + SKILLDMG = other.SKILLDMG; + } + if (other.ULTRADMG != 0) { + ULTRADMG = other.ULTRADMG; + } + if (other.OTHERDMG != 0) { + OTHERDMG = other.OTHERDMG; + } + if (other.RCDNORMALDMG != 0) { + RCDNORMALDMG = other.RCDNORMALDMG; + } + if (other.RCDSKILLDMG != 0) { + RCDSKILLDMG = other.RCDSKILLDMG; + } + if (other.RCDULTRADMG != 0) { + RCDULTRADMG = other.RCDULTRADMG; + } + if (other.RCDOTHERDMG != 0) { + RCDOTHERDMG = other.RCDOTHERDMG; + } + if (other.MARKDMG != 0) { + MARKDMG = other.MARKDMG; + } + if (other.RCDMARKDMG != 0) { + RCDMARKDMG = other.RCDMARKDMG; + } + if (other.SUMMONDMG != 0) { + SUMMONDMG = other.SUMMONDMG; + } + if (other.RCDSUMMONDMG != 0) { + RCDSUMMONDMG = other.RCDSUMMONDMG; + } + if (other.PROJECTILEDMG != 0) { + PROJECTILEDMG = other.PROJECTILEDMG; + } + if (other.RCDPROJECTILEDMG != 0) { + RCDPROJECTILEDMG = other.RCDPROJECTILEDMG; + } + if (other.GENDMG != 0) { + GENDMG = other.GENDMG; + } + if (other.DMGPLUS != 0) { + DMGPLUS = other.DMGPLUS; + } + if (other.FINALDMG != 0) { + FINALDMG = other.FINALDMG; + } + if (other.FINALDMGPLUS != 0) { + FINALDMGPLUS = other.FINALDMGPLUS; + } + if (other.WEERCD != 0) { + WEERCD = other.WEERCD; + } + if (other.FEERCD != 0) { + FEERCD = other.FEERCD; + } + if (other.SEERCD != 0) { + SEERCD = other.SEERCD; + } + if (other.AEERCD != 0) { + AEERCD = other.AEERCD; + } + if (other.LEERCD != 0) { + LEERCD = other.LEERCD; + } + if (other.DEERCD != 0) { + DEERCD = other.DEERCD; + } + if (other.GENDMGRCD != 0) { + GENDMGRCD = other.GENDMGRCD; + } + if (other.DMGPLUSRCD != 0) { + DMGPLUSRCD = other.DMGPLUSRCD; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Break = input.ReadInt32(); + break; + } + case 32: { + Lvl = input.ReadInt32(); + break; + } + case 40: { + Atk = input.ReadInt32(); + break; + } + case 48: { + Hp = input.ReadInt32(); + break; + } + case 56: { + Def = input.ReadInt32(); + break; + } + case 64: { + CritRate = input.ReadInt32(); + break; + } + case 72: { + NormalCritRate = input.ReadInt32(); + break; + } + case 80: { + SkillCritRate = input.ReadInt32(); + break; + } + case 88: { + UltraCritRate = input.ReadInt32(); + break; + } + case 96: { + MarkCritRate = input.ReadInt32(); + break; + } + case 104: { + SummonCritRate = input.ReadInt32(); + break; + } + case 112: { + ProjectileCritRate = input.ReadInt32(); + break; + } + case 120: { + OtherCritRate = input.ReadInt32(); + break; + } + case 128: { + CritResistance = input.ReadInt32(); + break; + } + case 136: { + CritPower = input.ReadInt32(); + break; + } + case 144: { + NormalCritPower = input.ReadInt32(); + break; + } + case 152: { + SkillCritPower = input.ReadInt32(); + break; + } + case 160: { + UltraCritPower = input.ReadInt32(); + break; + } + case 168: { + MarkCritPower = input.ReadInt32(); + break; + } + case 176: { + SummonCritPower = input.ReadInt32(); + break; + } + case 184: { + ProjectileCritPower = input.ReadInt32(); + break; + } + case 192: { + OtherCritPower = input.ReadInt32(); + break; + } + case 200: { + HitRate = input.ReadInt32(); + break; + } + case 208: { + Evd = input.ReadInt32(); + break; + } + case 216: { + DefPierce = input.ReadInt32(); + break; + } + case 224: { + DefIgnore = input.ReadInt32(); + break; + } + case 232: { + WEP = input.ReadInt32(); + break; + } + case 240: { + FEP = input.ReadInt32(); + break; + } + case 248: { + SEP = input.ReadInt32(); + break; + } + case 256: { + AEP = input.ReadInt32(); + break; + } + case 264: { + LEP = input.ReadInt32(); + break; + } + case 272: { + DEP = input.ReadInt32(); + break; + } + case 280: { + WEI = input.ReadInt32(); + break; + } + case 288: { + FEI = input.ReadInt32(); + break; + } + case 296: { + SEI = input.ReadInt32(); + break; + } + case 304: { + AEI = input.ReadInt32(); + break; + } + case 312: { + LEI = input.ReadInt32(); + break; + } + case 320: { + DEI = input.ReadInt32(); + break; + } + case 328: { + WEE = input.ReadInt32(); + break; + } + case 336: { + FEE = input.ReadInt32(); + break; + } + case 344: { + SEE = input.ReadInt32(); + break; + } + case 352: { + AEE = input.ReadInt32(); + break; + } + case 360: { + LEE = input.ReadInt32(); + break; + } + case 368: { + DEE = input.ReadInt32(); + break; + } + case 376: { + WER = input.ReadInt32(); + break; + } + case 384: { + FER = input.ReadInt32(); + break; + } + case 392: { + SER = input.ReadInt32(); + break; + } + case 400: { + AER = input.ReadInt32(); + break; + } + case 408: { + LER = input.ReadInt32(); + break; + } + case 416: { + DER = input.ReadInt32(); + break; + } + case 424: { + ToughnessDamageAdjust = input.ReadInt32(); + break; + } + case 432: { + Toughness = input.ReadInt32(); + break; + } + case 440: { + Suppress = input.ReadInt32(); + break; + } + case 448: { + NORMALDMG = input.ReadInt32(); + break; + } + case 456: { + SKILLDMG = input.ReadInt32(); + break; + } + case 464: { + ULTRADMG = input.ReadInt32(); + break; + } + case 472: { + OTHERDMG = input.ReadInt32(); + break; + } + case 480: { + RCDNORMALDMG = input.ReadInt32(); + break; + } + case 488: { + RCDSKILLDMG = input.ReadInt32(); + break; + } + case 496: { + RCDULTRADMG = input.ReadInt32(); + break; + } + case 504: { + RCDOTHERDMG = input.ReadInt32(); + break; + } + case 512: { + MARKDMG = input.ReadInt32(); + break; + } + case 520: { + RCDMARKDMG = input.ReadInt32(); + break; + } + case 528: { + SUMMONDMG = input.ReadInt32(); + break; + } + case 536: { + RCDSUMMONDMG = input.ReadInt32(); + break; + } + case 544: { + PROJECTILEDMG = input.ReadInt32(); + break; + } + case 552: { + RCDPROJECTILEDMG = input.ReadInt32(); + break; + } + case 560: { + GENDMG = input.ReadInt32(); + break; + } + case 568: { + DMGPLUS = input.ReadInt32(); + break; + } + case 576: { + FINALDMG = input.ReadInt32(); + break; + } + case 584: { + FINALDMGPLUS = input.ReadInt32(); + break; + } + case 592: { + WEERCD = input.ReadInt32(); + break; + } + case 600: { + FEERCD = input.ReadInt32(); + break; + } + case 608: { + SEERCD = input.ReadInt32(); + break; + } + case 616: { + AEERCD = input.ReadInt32(); + break; + } + case 624: { + LEERCD = input.ReadInt32(); + break; + } + case 632: { + DEERCD = input.ReadInt32(); + break; + } + case 640: { + GENDMGRCD = input.ReadInt32(); + break; + } + case 648: { + DMGPLUSRCD = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Break = input.ReadInt32(); + break; + } + case 32: { + Lvl = input.ReadInt32(); + break; + } + case 40: { + Atk = input.ReadInt32(); + break; + } + case 48: { + Hp = input.ReadInt32(); + break; + } + case 56: { + Def = input.ReadInt32(); + break; + } + case 64: { + CritRate = input.ReadInt32(); + break; + } + case 72: { + NormalCritRate = input.ReadInt32(); + break; + } + case 80: { + SkillCritRate = input.ReadInt32(); + break; + } + case 88: { + UltraCritRate = input.ReadInt32(); + break; + } + case 96: { + MarkCritRate = input.ReadInt32(); + break; + } + case 104: { + SummonCritRate = input.ReadInt32(); + break; + } + case 112: { + ProjectileCritRate = input.ReadInt32(); + break; + } + case 120: { + OtherCritRate = input.ReadInt32(); + break; + } + case 128: { + CritResistance = input.ReadInt32(); + break; + } + case 136: { + CritPower = input.ReadInt32(); + break; + } + case 144: { + NormalCritPower = input.ReadInt32(); + break; + } + case 152: { + SkillCritPower = input.ReadInt32(); + break; + } + case 160: { + UltraCritPower = input.ReadInt32(); + break; + } + case 168: { + MarkCritPower = input.ReadInt32(); + break; + } + case 176: { + SummonCritPower = input.ReadInt32(); + break; + } + case 184: { + ProjectileCritPower = input.ReadInt32(); + break; + } + case 192: { + OtherCritPower = input.ReadInt32(); + break; + } + case 200: { + HitRate = input.ReadInt32(); + break; + } + case 208: { + Evd = input.ReadInt32(); + break; + } + case 216: { + DefPierce = input.ReadInt32(); + break; + } + case 224: { + DefIgnore = input.ReadInt32(); + break; + } + case 232: { + WEP = input.ReadInt32(); + break; + } + case 240: { + FEP = input.ReadInt32(); + break; + } + case 248: { + SEP = input.ReadInt32(); + break; + } + case 256: { + AEP = input.ReadInt32(); + break; + } + case 264: { + LEP = input.ReadInt32(); + break; + } + case 272: { + DEP = input.ReadInt32(); + break; + } + case 280: { + WEI = input.ReadInt32(); + break; + } + case 288: { + FEI = input.ReadInt32(); + break; + } + case 296: { + SEI = input.ReadInt32(); + break; + } + case 304: { + AEI = input.ReadInt32(); + break; + } + case 312: { + LEI = input.ReadInt32(); + break; + } + case 320: { + DEI = input.ReadInt32(); + break; + } + case 328: { + WEE = input.ReadInt32(); + break; + } + case 336: { + FEE = input.ReadInt32(); + break; + } + case 344: { + SEE = input.ReadInt32(); + break; + } + case 352: { + AEE = input.ReadInt32(); + break; + } + case 360: { + LEE = input.ReadInt32(); + break; + } + case 368: { + DEE = input.ReadInt32(); + break; + } + case 376: { + WER = input.ReadInt32(); + break; + } + case 384: { + FER = input.ReadInt32(); + break; + } + case 392: { + SER = input.ReadInt32(); + break; + } + case 400: { + AER = input.ReadInt32(); + break; + } + case 408: { + LER = input.ReadInt32(); + break; + } + case 416: { + DER = input.ReadInt32(); + break; + } + case 424: { + ToughnessDamageAdjust = input.ReadInt32(); + break; + } + case 432: { + Toughness = input.ReadInt32(); + break; + } + case 440: { + Suppress = input.ReadInt32(); + break; + } + case 448: { + NORMALDMG = input.ReadInt32(); + break; + } + case 456: { + SKILLDMG = input.ReadInt32(); + break; + } + case 464: { + ULTRADMG = input.ReadInt32(); + break; + } + case 472: { + OTHERDMG = input.ReadInt32(); + break; + } + case 480: { + RCDNORMALDMG = input.ReadInt32(); + break; + } + case 488: { + RCDSKILLDMG = input.ReadInt32(); + break; + } + case 496: { + RCDULTRADMG = input.ReadInt32(); + break; + } + case 504: { + RCDOTHERDMG = input.ReadInt32(); + break; + } + case 512: { + MARKDMG = input.ReadInt32(); + break; + } + case 520: { + RCDMARKDMG = input.ReadInt32(); + break; + } + case 528: { + SUMMONDMG = input.ReadInt32(); + break; + } + case 536: { + RCDSUMMONDMG = input.ReadInt32(); + break; + } + case 544: { + PROJECTILEDMG = input.ReadInt32(); + break; + } + case 552: { + RCDPROJECTILEDMG = input.ReadInt32(); + break; + } + case 560: { + GENDMG = input.ReadInt32(); + break; + } + case 568: { + DMGPLUS = input.ReadInt32(); + break; + } + case 576: { + FINALDMG = input.ReadInt32(); + break; + } + case 584: { + FINALDMGPLUS = input.ReadInt32(); + break; + } + case 592: { + WEERCD = input.ReadInt32(); + break; + } + case 600: { + FEERCD = input.ReadInt32(); + break; + } + case 608: { + SEERCD = input.ReadInt32(); + break; + } + case 616: { + AEERCD = input.ReadInt32(); + break; + } + case 624: { + LEERCD = input.ReadInt32(); + break; + } + case 632: { + DEERCD = input.ReadInt32(); + break; + } + case 640: { + GENDMGRCD = input.ReadInt32(); + break; + } + case 648: { + DMGPLUSRCD = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/AttributeLimit.cs b/NTR.Common/protos/AttributeLimit.cs new file mode 100644 index 0000000..c8e1957 --- /dev/null +++ b/NTR.Common/protos/AttributeLimit.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AttributeLimit.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from AttributeLimit.proto + public static partial class AttributeLimitReflection { + + #region Descriptor + /// File descriptor for AttributeLimit.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AttributeLimitReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRBdHRyaWJ1dGVMaW1pdC5wcm90byJOCg5BdHRyaWJ1dGVMaW1pdBIKCgJp", + "ZBgBIAEoBRINCgVsb3dlchgCIAEoBRINCgV1cHBlchgDIAEoBRISCgppc19s", + "aW1pdGVkGAQgASgIQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.AttributeLimit), global::Nova.Client.AttributeLimit.Parser, new[]{ "Id", "Lower", "Upper", "IsLimited" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AttributeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributeLimit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.AttributeLimitReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttributeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttributeLimit(AttributeLimit other) : this() { + id_ = other.id_; + lower_ = other.lower_; + upper_ = other.upper_; + isLimited_ = other.isLimited_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttributeLimit Clone() { + return new AttributeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "lower" field. + public const int LowerFieldNumber = 2; + private int lower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Lower { + get { return lower_; } + set { + lower_ = value; + } + } + + /// Field number for the "upper" field. + public const int UpperFieldNumber = 3; + private int upper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Upper { + get { return upper_; } + set { + upper_ = value; + } + } + + /// Field number for the "is_limited" field. + public const int IsLimitedFieldNumber = 4; + private bool isLimited_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsLimited { + get { return isLimited_; } + set { + isLimited_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AttributeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AttributeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Lower != other.Lower) return false; + if (Upper != other.Upper) return false; + if (IsLimited != other.IsLimited) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Lower != 0) hash ^= Lower.GetHashCode(); + if (Upper != 0) hash ^= Upper.GetHashCode(); + if (IsLimited != false) hash ^= IsLimited.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Lower != 0) { + output.WriteRawTag(16); + output.WriteInt32(Lower); + } + if (Upper != 0) { + output.WriteRawTag(24); + output.WriteInt32(Upper); + } + if (IsLimited != false) { + output.WriteRawTag(32); + output.WriteBool(IsLimited); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Lower != 0) { + output.WriteRawTag(16); + output.WriteInt32(Lower); + } + if (Upper != 0) { + output.WriteRawTag(24); + output.WriteInt32(Upper); + } + if (IsLimited != false) { + output.WriteRawTag(32); + output.WriteBool(IsLimited); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Lower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Lower); + } + if (Upper != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Upper); + } + if (IsLimited != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AttributeLimit other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Lower != 0) { + Lower = other.Lower; + } + if (other.Upper != 0) { + Upper = other.Upper; + } + if (other.IsLimited != false) { + IsLimited = other.IsLimited; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Lower = input.ReadInt32(); + break; + } + case 24: { + Upper = input.ReadInt32(); + break; + } + case 32: { + IsLimited = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Lower = input.ReadInt32(); + break; + } + case 24: { + Upper = input.ReadInt32(); + break; + } + case 32: { + IsLimited = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BattlePass.cs b/NTR.Common/protos/BattlePass.cs new file mode 100644 index 0000000..a8f148e --- /dev/null +++ b/NTR.Common/protos/BattlePass.cs @@ -0,0 +1,974 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattlePass.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BattlePass.proto + public static partial class BattlePassReflection { + + #region Descriptor + /// File descriptor for BattlePass.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattlePassReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBCYXR0bGVQYXNzLnByb3RvIvwDCgpCYXR0bGVQYXNzEgsKA2lfZBgBIAEo", + "BRIMCgRuYW1lGAIgASgJEhIKCnN0YXJ0X3RpbWUYAyABKAkSEAoIZW5kX3Rp", + "bWUYBCABKAkSGQoRbHV4dXJ5X3Byb2R1Y3RfaWQYBSABKAkSFAoMbHV4dXJ5", + "X3ByaWNlGAYgASgFEhoKEmx1eHVyeV9ib251c19sZXZlbBgHIAEoBRISCgps", + "dXh1cnlfdGlkGAggASgFEhIKCmx1eHVyeV9xdHkYCSABKAUSGgoScHJlbWl1", + "bV9wcm9kdWN0X2lkGAogASgJEhUKDXByZW1pdW1fcHJpY2UYCyABKAUSEwoL", + "cHJlbWl1bV90aWQYDCABKAUSEwoLcHJlbWl1bV9xdHkYDSABKAUSIAoYY29t", + "cGxlbWVudGFyeV9wcm9kdWN0X2lkGA4gASgJEhsKE2NvbXBsZW1lbnRhcnlf", + "cHJpY2UYDyABKAUSGQoRY29tcGxlbWVudGFyeV90aWQYECABKAUSGQoRY29t", + "cGxlbWVudGFyeV9xdHkYESABKAUSDQoFY292ZXIYEiABKAkSGgoScHJlbWl1", + "bV9zaG93X2l0ZW1zGBMgAygFEhkKEWx1eHVyeV9zaG93X2l0ZW1zGBQgAygF", + "EiAKGG91dGZpdF9wYWNrYWdlX3Nob3dfaXRlbRgVIAEoBUIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BattlePass), global::Nova.Client.BattlePass.Parser, new[]{ "ID", "Name", "StartTime", "EndTime", "LuxuryProductId", "LuxuryPrice", "LuxuryBonusLevel", "LuxuryTid", "LuxuryQty", "PremiumProductId", "PremiumPrice", "PremiumTid", "PremiumQty", "ComplementaryProductId", "ComplementaryPrice", "ComplementaryTid", "ComplementaryQty", "Cover", "PremiumShowItems", "LuxuryShowItems", "OutfitPackageShowItem" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattlePass : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattlePass()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BattlePassReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePass() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePass(BattlePass other) : this() { + iD_ = other.iD_; + name_ = other.name_; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + luxuryProductId_ = other.luxuryProductId_; + luxuryPrice_ = other.luxuryPrice_; + luxuryBonusLevel_ = other.luxuryBonusLevel_; + luxuryTid_ = other.luxuryTid_; + luxuryQty_ = other.luxuryQty_; + premiumProductId_ = other.premiumProductId_; + premiumPrice_ = other.premiumPrice_; + premiumTid_ = other.premiumTid_; + premiumQty_ = other.premiumQty_; + complementaryProductId_ = other.complementaryProductId_; + complementaryPrice_ = other.complementaryPrice_; + complementaryTid_ = other.complementaryTid_; + complementaryQty_ = other.complementaryQty_; + cover_ = other.cover_; + premiumShowItems_ = other.premiumShowItems_.Clone(); + luxuryShowItems_ = other.luxuryShowItems_.Clone(); + outfitPackageShowItem_ = other.outfitPackageShowItem_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePass Clone() { + return new BattlePass(this); + } + + /// Field number for the "i_d" field. + public const int IDFieldNumber = 1; + private int iD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ID { + get { return iD_; } + set { + iD_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private string startTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StartTime { + get { return startTime_; } + set { + startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 4; + private string endTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndTime { + get { return endTime_; } + set { + endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "luxury_product_id" field. + public const int LuxuryProductIdFieldNumber = 5; + private string luxuryProductId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LuxuryProductId { + get { return luxuryProductId_; } + set { + luxuryProductId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "luxury_price" field. + public const int LuxuryPriceFieldNumber = 6; + private int luxuryPrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LuxuryPrice { + get { return luxuryPrice_; } + set { + luxuryPrice_ = value; + } + } + + /// Field number for the "luxury_bonus_level" field. + public const int LuxuryBonusLevelFieldNumber = 7; + private int luxuryBonusLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LuxuryBonusLevel { + get { return luxuryBonusLevel_; } + set { + luxuryBonusLevel_ = value; + } + } + + /// Field number for the "luxury_tid" field. + public const int LuxuryTidFieldNumber = 8; + private int luxuryTid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LuxuryTid { + get { return luxuryTid_; } + set { + luxuryTid_ = value; + } + } + + /// Field number for the "luxury_qty" field. + public const int LuxuryQtyFieldNumber = 9; + private int luxuryQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LuxuryQty { + get { return luxuryQty_; } + set { + luxuryQty_ = value; + } + } + + /// Field number for the "premium_product_id" field. + public const int PremiumProductIdFieldNumber = 10; + private string premiumProductId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PremiumProductId { + get { return premiumProductId_; } + set { + premiumProductId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "premium_price" field. + public const int PremiumPriceFieldNumber = 11; + private int premiumPrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PremiumPrice { + get { return premiumPrice_; } + set { + premiumPrice_ = value; + } + } + + /// Field number for the "premium_tid" field. + public const int PremiumTidFieldNumber = 12; + private int premiumTid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PremiumTid { + get { return premiumTid_; } + set { + premiumTid_ = value; + } + } + + /// Field number for the "premium_qty" field. + public const int PremiumQtyFieldNumber = 13; + private int premiumQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PremiumQty { + get { return premiumQty_; } + set { + premiumQty_ = value; + } + } + + /// Field number for the "complementary_product_id" field. + public const int ComplementaryProductIdFieldNumber = 14; + private string complementaryProductId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ComplementaryProductId { + get { return complementaryProductId_; } + set { + complementaryProductId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "complementary_price" field. + public const int ComplementaryPriceFieldNumber = 15; + private int complementaryPrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ComplementaryPrice { + get { return complementaryPrice_; } + set { + complementaryPrice_ = value; + } + } + + /// Field number for the "complementary_tid" field. + public const int ComplementaryTidFieldNumber = 16; + private int complementaryTid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ComplementaryTid { + get { return complementaryTid_; } + set { + complementaryTid_ = value; + } + } + + /// Field number for the "complementary_qty" field. + public const int ComplementaryQtyFieldNumber = 17; + private int complementaryQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ComplementaryQty { + get { return complementaryQty_; } + set { + complementaryQty_ = value; + } + } + + /// Field number for the "cover" field. + public const int CoverFieldNumber = 18; + private string cover_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cover { + get { return cover_; } + set { + cover_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "premium_show_items" field. + public const int PremiumShowItemsFieldNumber = 19; + private static readonly pb::FieldCodec _repeated_premiumShowItems_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField premiumShowItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PremiumShowItems { + get { return premiumShowItems_; } + } + + /// Field number for the "luxury_show_items" field. + public const int LuxuryShowItemsFieldNumber = 20; + private static readonly pb::FieldCodec _repeated_luxuryShowItems_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField luxuryShowItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LuxuryShowItems { + get { return luxuryShowItems_; } + } + + /// Field number for the "outfit_package_show_item" field. + public const int OutfitPackageShowItemFieldNumber = 21; + private int outfitPackageShowItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OutfitPackageShowItem { + get { return outfitPackageShowItem_; } + set { + outfitPackageShowItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattlePass); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattlePass other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ID != other.ID) return false; + if (Name != other.Name) return false; + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + if (LuxuryProductId != other.LuxuryProductId) return false; + if (LuxuryPrice != other.LuxuryPrice) return false; + if (LuxuryBonusLevel != other.LuxuryBonusLevel) return false; + if (LuxuryTid != other.LuxuryTid) return false; + if (LuxuryQty != other.LuxuryQty) return false; + if (PremiumProductId != other.PremiumProductId) return false; + if (PremiumPrice != other.PremiumPrice) return false; + if (PremiumTid != other.PremiumTid) return false; + if (PremiumQty != other.PremiumQty) return false; + if (ComplementaryProductId != other.ComplementaryProductId) return false; + if (ComplementaryPrice != other.ComplementaryPrice) return false; + if (ComplementaryTid != other.ComplementaryTid) return false; + if (ComplementaryQty != other.ComplementaryQty) return false; + if (Cover != other.Cover) return false; + if(!premiumShowItems_.Equals(other.premiumShowItems_)) return false; + if(!luxuryShowItems_.Equals(other.luxuryShowItems_)) return false; + if (OutfitPackageShowItem != other.OutfitPackageShowItem) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ID != 0) hash ^= ID.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (StartTime.Length != 0) hash ^= StartTime.GetHashCode(); + if (EndTime.Length != 0) hash ^= EndTime.GetHashCode(); + if (LuxuryProductId.Length != 0) hash ^= LuxuryProductId.GetHashCode(); + if (LuxuryPrice != 0) hash ^= LuxuryPrice.GetHashCode(); + if (LuxuryBonusLevel != 0) hash ^= LuxuryBonusLevel.GetHashCode(); + if (LuxuryTid != 0) hash ^= LuxuryTid.GetHashCode(); + if (LuxuryQty != 0) hash ^= LuxuryQty.GetHashCode(); + if (PremiumProductId.Length != 0) hash ^= PremiumProductId.GetHashCode(); + if (PremiumPrice != 0) hash ^= PremiumPrice.GetHashCode(); + if (PremiumTid != 0) hash ^= PremiumTid.GetHashCode(); + if (PremiumQty != 0) hash ^= PremiumQty.GetHashCode(); + if (ComplementaryProductId.Length != 0) hash ^= ComplementaryProductId.GetHashCode(); + if (ComplementaryPrice != 0) hash ^= ComplementaryPrice.GetHashCode(); + if (ComplementaryTid != 0) hash ^= ComplementaryTid.GetHashCode(); + if (ComplementaryQty != 0) hash ^= ComplementaryQty.GetHashCode(); + if (Cover.Length != 0) hash ^= Cover.GetHashCode(); + hash ^= premiumShowItems_.GetHashCode(); + hash ^= luxuryShowItems_.GetHashCode(); + if (OutfitPackageShowItem != 0) hash ^= OutfitPackageShowItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (StartTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(StartTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EndTime); + } + if (LuxuryProductId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(LuxuryProductId); + } + if (LuxuryPrice != 0) { + output.WriteRawTag(48); + output.WriteInt32(LuxuryPrice); + } + if (LuxuryBonusLevel != 0) { + output.WriteRawTag(56); + output.WriteInt32(LuxuryBonusLevel); + } + if (LuxuryTid != 0) { + output.WriteRawTag(64); + output.WriteInt32(LuxuryTid); + } + if (LuxuryQty != 0) { + output.WriteRawTag(72); + output.WriteInt32(LuxuryQty); + } + if (PremiumProductId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(PremiumProductId); + } + if (PremiumPrice != 0) { + output.WriteRawTag(88); + output.WriteInt32(PremiumPrice); + } + if (PremiumTid != 0) { + output.WriteRawTag(96); + output.WriteInt32(PremiumTid); + } + if (PremiumQty != 0) { + output.WriteRawTag(104); + output.WriteInt32(PremiumQty); + } + if (ComplementaryProductId.Length != 0) { + output.WriteRawTag(114); + output.WriteString(ComplementaryProductId); + } + if (ComplementaryPrice != 0) { + output.WriteRawTag(120); + output.WriteInt32(ComplementaryPrice); + } + if (ComplementaryTid != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ComplementaryTid); + } + if (ComplementaryQty != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ComplementaryQty); + } + if (Cover.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Cover); + } + premiumShowItems_.WriteTo(output, _repeated_premiumShowItems_codec); + luxuryShowItems_.WriteTo(output, _repeated_luxuryShowItems_codec); + if (OutfitPackageShowItem != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(OutfitPackageShowItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (StartTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(StartTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EndTime); + } + if (LuxuryProductId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(LuxuryProductId); + } + if (LuxuryPrice != 0) { + output.WriteRawTag(48); + output.WriteInt32(LuxuryPrice); + } + if (LuxuryBonusLevel != 0) { + output.WriteRawTag(56); + output.WriteInt32(LuxuryBonusLevel); + } + if (LuxuryTid != 0) { + output.WriteRawTag(64); + output.WriteInt32(LuxuryTid); + } + if (LuxuryQty != 0) { + output.WriteRawTag(72); + output.WriteInt32(LuxuryQty); + } + if (PremiumProductId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(PremiumProductId); + } + if (PremiumPrice != 0) { + output.WriteRawTag(88); + output.WriteInt32(PremiumPrice); + } + if (PremiumTid != 0) { + output.WriteRawTag(96); + output.WriteInt32(PremiumTid); + } + if (PremiumQty != 0) { + output.WriteRawTag(104); + output.WriteInt32(PremiumQty); + } + if (ComplementaryProductId.Length != 0) { + output.WriteRawTag(114); + output.WriteString(ComplementaryProductId); + } + if (ComplementaryPrice != 0) { + output.WriteRawTag(120); + output.WriteInt32(ComplementaryPrice); + } + if (ComplementaryTid != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ComplementaryTid); + } + if (ComplementaryQty != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ComplementaryQty); + } + if (Cover.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Cover); + } + premiumShowItems_.WriteTo(ref output, _repeated_premiumShowItems_codec); + luxuryShowItems_.WriteTo(ref output, _repeated_luxuryShowItems_codec); + if (OutfitPackageShowItem != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(OutfitPackageShowItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ID); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (StartTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime); + } + if (EndTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime); + } + if (LuxuryProductId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LuxuryProductId); + } + if (LuxuryPrice != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryPrice); + } + if (LuxuryBonusLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryBonusLevel); + } + if (LuxuryTid != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryTid); + } + if (LuxuryQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryQty); + } + if (PremiumProductId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PremiumProductId); + } + if (PremiumPrice != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PremiumPrice); + } + if (PremiumTid != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PremiumTid); + } + if (PremiumQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PremiumQty); + } + if (ComplementaryProductId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ComplementaryProductId); + } + if (ComplementaryPrice != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ComplementaryPrice); + } + if (ComplementaryTid != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ComplementaryTid); + } + if (ComplementaryQty != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ComplementaryQty); + } + if (Cover.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Cover); + } + size += premiumShowItems_.CalculateSize(_repeated_premiumShowItems_codec); + size += luxuryShowItems_.CalculateSize(_repeated_luxuryShowItems_codec); + if (OutfitPackageShowItem != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OutfitPackageShowItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattlePass other) { + if (other == null) { + return; + } + if (other.ID != 0) { + ID = other.ID; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.StartTime.Length != 0) { + StartTime = other.StartTime; + } + if (other.EndTime.Length != 0) { + EndTime = other.EndTime; + } + if (other.LuxuryProductId.Length != 0) { + LuxuryProductId = other.LuxuryProductId; + } + if (other.LuxuryPrice != 0) { + LuxuryPrice = other.LuxuryPrice; + } + if (other.LuxuryBonusLevel != 0) { + LuxuryBonusLevel = other.LuxuryBonusLevel; + } + if (other.LuxuryTid != 0) { + LuxuryTid = other.LuxuryTid; + } + if (other.LuxuryQty != 0) { + LuxuryQty = other.LuxuryQty; + } + if (other.PremiumProductId.Length != 0) { + PremiumProductId = other.PremiumProductId; + } + if (other.PremiumPrice != 0) { + PremiumPrice = other.PremiumPrice; + } + if (other.PremiumTid != 0) { + PremiumTid = other.PremiumTid; + } + if (other.PremiumQty != 0) { + PremiumQty = other.PremiumQty; + } + if (other.ComplementaryProductId.Length != 0) { + ComplementaryProductId = other.ComplementaryProductId; + } + if (other.ComplementaryPrice != 0) { + ComplementaryPrice = other.ComplementaryPrice; + } + if (other.ComplementaryTid != 0) { + ComplementaryTid = other.ComplementaryTid; + } + if (other.ComplementaryQty != 0) { + ComplementaryQty = other.ComplementaryQty; + } + if (other.Cover.Length != 0) { + Cover = other.Cover; + } + premiumShowItems_.Add(other.premiumShowItems_); + luxuryShowItems_.Add(other.luxuryShowItems_); + if (other.OutfitPackageShowItem != 0) { + OutfitPackageShowItem = other.OutfitPackageShowItem; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + StartTime = input.ReadString(); + break; + } + case 34: { + EndTime = input.ReadString(); + break; + } + case 42: { + LuxuryProductId = input.ReadString(); + break; + } + case 48: { + LuxuryPrice = input.ReadInt32(); + break; + } + case 56: { + LuxuryBonusLevel = input.ReadInt32(); + break; + } + case 64: { + LuxuryTid = input.ReadInt32(); + break; + } + case 72: { + LuxuryQty = input.ReadInt32(); + break; + } + case 82: { + PremiumProductId = input.ReadString(); + break; + } + case 88: { + PremiumPrice = input.ReadInt32(); + break; + } + case 96: { + PremiumTid = input.ReadInt32(); + break; + } + case 104: { + PremiumQty = input.ReadInt32(); + break; + } + case 114: { + ComplementaryProductId = input.ReadString(); + break; + } + case 120: { + ComplementaryPrice = input.ReadInt32(); + break; + } + case 128: { + ComplementaryTid = input.ReadInt32(); + break; + } + case 136: { + ComplementaryQty = input.ReadInt32(); + break; + } + case 146: { + Cover = input.ReadString(); + break; + } + case 154: + case 152: { + premiumShowItems_.AddEntriesFrom(input, _repeated_premiumShowItems_codec); + break; + } + case 162: + case 160: { + luxuryShowItems_.AddEntriesFrom(input, _repeated_luxuryShowItems_codec); + break; + } + case 168: { + OutfitPackageShowItem = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + StartTime = input.ReadString(); + break; + } + case 34: { + EndTime = input.ReadString(); + break; + } + case 42: { + LuxuryProductId = input.ReadString(); + break; + } + case 48: { + LuxuryPrice = input.ReadInt32(); + break; + } + case 56: { + LuxuryBonusLevel = input.ReadInt32(); + break; + } + case 64: { + LuxuryTid = input.ReadInt32(); + break; + } + case 72: { + LuxuryQty = input.ReadInt32(); + break; + } + case 82: { + PremiumProductId = input.ReadString(); + break; + } + case 88: { + PremiumPrice = input.ReadInt32(); + break; + } + case 96: { + PremiumTid = input.ReadInt32(); + break; + } + case 104: { + PremiumQty = input.ReadInt32(); + break; + } + case 114: { + ComplementaryProductId = input.ReadString(); + break; + } + case 120: { + ComplementaryPrice = input.ReadInt32(); + break; + } + case 128: { + ComplementaryTid = input.ReadInt32(); + break; + } + case 136: { + ComplementaryQty = input.ReadInt32(); + break; + } + case 146: { + Cover = input.ReadString(); + break; + } + case 154: + case 152: { + premiumShowItems_.AddEntriesFrom(ref input, _repeated_premiumShowItems_codec); + break; + } + case 162: + case 160: { + luxuryShowItems_.AddEntriesFrom(ref input, _repeated_luxuryShowItems_codec); + break; + } + case 168: { + OutfitPackageShowItem = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BattlePassLevel.cs b/NTR.Common/protos/BattlePassLevel.cs new file mode 100644 index 0000000..a35a826 --- /dev/null +++ b/NTR.Common/protos/BattlePassLevel.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattlePassLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BattlePassLevel.proto + public static partial class BattlePassLevelReflection { + + #region Descriptor + /// File descriptor for BattlePassLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattlePassLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVQYXNzTGV2ZWwucHJvdG8iRQoPQmF0dGxlUGFzc0xldmVsEgsK", + "A2lfZBgBIAEoBRILCgNleHAYAiABKAUSCwoDdGlkGAMgASgFEgsKA3F0eRgE", + "IAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BattlePassLevel), global::Nova.Client.BattlePassLevel.Parser, new[]{ "ID", "Exp", "Tid", "Qty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattlePassLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattlePassLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BattlePassLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassLevel(BattlePassLevel other) : this() { + iD_ = other.iD_; + exp_ = other.exp_; + tid_ = other.tid_; + qty_ = other.qty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassLevel Clone() { + return new BattlePassLevel(this); + } + + /// Field number for the "i_d" field. + public const int IDFieldNumber = 1; + private int iD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ID { + get { return iD_; } + set { + iD_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 2; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// Field number for the "tid" field. + public const int TidFieldNumber = 3; + private int tid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid { + get { return tid_; } + set { + tid_ = value; + } + } + + /// Field number for the "qty" field. + public const int QtyFieldNumber = 4; + private int qty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty { + get { return qty_; } + set { + qty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattlePassLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattlePassLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ID != other.ID) return false; + if (Exp != other.Exp) return false; + if (Tid != other.Tid) return false; + if (Qty != other.Qty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ID != 0) hash ^= ID.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (Tid != 0) hash ^= Tid.GetHashCode(); + if (Qty != 0) hash ^= Qty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (Tid != 0) { + output.WriteRawTag(24); + output.WriteInt32(Tid); + } + if (Qty != 0) { + output.WriteRawTag(32); + output.WriteInt32(Qty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (Tid != 0) { + output.WriteRawTag(24); + output.WriteInt32(Tid); + } + if (Qty != 0) { + output.WriteRawTag(32); + output.WriteInt32(Qty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ID); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (Tid != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid); + } + if (Qty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattlePassLevel other) { + if (other == null) { + return; + } + if (other.ID != 0) { + ID = other.ID; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + if (other.Tid != 0) { + Tid = other.Tid; + } + if (other.Qty != 0) { + Qty = other.Qty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + case 24: { + Tid = input.ReadInt32(); + break; + } + case 32: { + Qty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + case 24: { + Tid = input.ReadInt32(); + break; + } + case 32: { + Qty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BattlePassQuest.cs b/NTR.Common/protos/BattlePassQuest.cs new file mode 100644 index 0000000..2b2b282 --- /dev/null +++ b/NTR.Common/protos/BattlePassQuest.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattlePassQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BattlePassQuest.proto + public static partial class BattlePassQuestReflection { + + #region Descriptor + /// File descriptor for BattlePassQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattlePassQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVQYXNzUXVlc3QucHJvdG8iWAoPQmF0dGxlUGFzc1F1ZXN0EgoK", + "AmlkGAEgASgFEgwKBHR5cGUYAiABKAUSDQoFdGl0bGUYAyABKAkSDwoHanVt", + "cF90bxgEIAEoBRILCgNleHAYBSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BattlePassQuest), global::Nova.Client.BattlePassQuest.Parser, new[]{ "Id", "Type", "Title", "JumpTo", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattlePassQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattlePassQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BattlePassQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassQuest(BattlePassQuest other) : this() { + id_ = other.id_; + type_ = other.type_; + title_ = other.title_; + jumpTo_ = other.jumpTo_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassQuest Clone() { + return new BattlePassQuest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jump_to" field. + public const int JumpToFieldNumber = 4; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 5; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattlePassQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattlePassQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Type != other.Type) return false; + if (Title != other.Title) return false; + if (JumpTo != other.JumpTo) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Exp != 0) { + output.WriteRawTag(40); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Exp != 0) { + output.WriteRawTag(40); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattlePassQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BattlePassReward.cs b/NTR.Common/protos/BattlePassReward.cs new file mode 100644 index 0000000..fbc6104 --- /dev/null +++ b/NTR.Common/protos/BattlePassReward.cs @@ -0,0 +1,540 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattlePassReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BattlePassReward.proto + public static partial class BattlePassRewardReflection { + + #region Descriptor + /// File descriptor for BattlePassReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattlePassRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZCYXR0bGVQYXNzUmV3YXJkLnByb3RvIpEBChBCYXR0bGVQYXNzUmV3YXJk", + "EgsKA2lfZBgBIAEoBRINCgVsZXZlbBgCIAEoBRIMCgR0aWQxGAMgASgFEgwK", + "BHF0eTEYBCABKAUSDAoEdGlkMhgFIAEoBRIMCgRxdHkyGAYgASgFEgwKBHRp", + "ZDMYByABKAUSDAoEcXR5MxgIIAEoBRINCgVmb2N1cxgJIAEoCEIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BattlePassReward), global::Nova.Client.BattlePassReward.Parser, new[]{ "ID", "Level", "Tid1", "Qty1", "Tid2", "Qty2", "Tid3", "Qty3", "Focus" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattlePassReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattlePassReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BattlePassRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassReward(BattlePassReward other) : this() { + iD_ = other.iD_; + level_ = other.level_; + tid1_ = other.tid1_; + qty1_ = other.qty1_; + tid2_ = other.tid2_; + qty2_ = other.qty2_; + tid3_ = other.tid3_; + qty3_ = other.qty3_; + focus_ = other.focus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassReward Clone() { + return new BattlePassReward(this); + } + + /// Field number for the "i_d" field. + public const int IDFieldNumber = 1; + private int iD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ID { + get { return iD_; } + set { + iD_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 2; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "tid1" field. + public const int Tid1FieldNumber = 3; + private int tid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid1 { + get { return tid1_; } + set { + tid1_ = value; + } + } + + /// Field number for the "qty1" field. + public const int Qty1FieldNumber = 4; + private int qty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty1 { + get { return qty1_; } + set { + qty1_ = value; + } + } + + /// Field number for the "tid2" field. + public const int Tid2FieldNumber = 5; + private int tid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid2 { + get { return tid2_; } + set { + tid2_ = value; + } + } + + /// Field number for the "qty2" field. + public const int Qty2FieldNumber = 6; + private int qty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty2 { + get { return qty2_; } + set { + qty2_ = value; + } + } + + /// Field number for the "tid3" field. + public const int Tid3FieldNumber = 7; + private int tid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid3 { + get { return tid3_; } + set { + tid3_ = value; + } + } + + /// Field number for the "qty3" field. + public const int Qty3FieldNumber = 8; + private int qty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty3 { + get { return qty3_; } + set { + qty3_ = value; + } + } + + /// Field number for the "focus" field. + public const int FocusFieldNumber = 9; + private bool focus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Focus { + get { return focus_; } + set { + focus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattlePassReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattlePassReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ID != other.ID) return false; + if (Level != other.Level) return false; + if (Tid1 != other.Tid1) return false; + if (Qty1 != other.Qty1) return false; + if (Tid2 != other.Tid2) return false; + if (Qty2 != other.Qty2) return false; + if (Tid3 != other.Tid3) return false; + if (Qty3 != other.Qty3) return false; + if (Focus != other.Focus) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ID != 0) hash ^= ID.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Tid1 != 0) hash ^= Tid1.GetHashCode(); + if (Qty1 != 0) hash ^= Qty1.GetHashCode(); + if (Tid2 != 0) hash ^= Tid2.GetHashCode(); + if (Qty2 != 0) hash ^= Qty2.GetHashCode(); + if (Tid3 != 0) hash ^= Tid3.GetHashCode(); + if (Qty3 != 0) hash ^= Qty3.GetHashCode(); + if (Focus != false) hash ^= Focus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (Tid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Qty3); + } + if (Focus != false) { + output.WriteRawTag(72); + output.WriteBool(Focus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (Tid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Qty3); + } + if (Focus != false) { + output.WriteRawTag(72); + output.WriteBool(Focus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ID); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Tid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid1); + } + if (Qty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty1); + } + if (Tid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid2); + } + if (Qty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty2); + } + if (Tid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid3); + } + if (Qty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty3); + } + if (Focus != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattlePassReward other) { + if (other == null) { + return; + } + if (other.ID != 0) { + ID = other.ID; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Tid1 != 0) { + Tid1 = other.Tid1; + } + if (other.Qty1 != 0) { + Qty1 = other.Qty1; + } + if (other.Tid2 != 0) { + Tid2 = other.Tid2; + } + if (other.Qty2 != 0) { + Qty2 = other.Qty2; + } + if (other.Tid3 != 0) { + Tid3 = other.Tid3; + } + if (other.Qty3 != 0) { + Qty3 = other.Qty3; + } + if (other.Focus != false) { + Focus = other.Focus; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 24: { + Tid1 = input.ReadInt32(); + break; + } + case 32: { + Qty1 = input.ReadInt32(); + break; + } + case 40: { + Tid2 = input.ReadInt32(); + break; + } + case 48: { + Qty2 = input.ReadInt32(); + break; + } + case 56: { + Tid3 = input.ReadInt32(); + break; + } + case 64: { + Qty3 = input.ReadInt32(); + break; + } + case 72: { + Focus = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 24: { + Tid1 = input.ReadInt32(); + break; + } + case 32: { + Qty1 = input.ReadInt32(); + break; + } + case 40: { + Tid2 = input.ReadInt32(); + break; + } + case 48: { + Qty2 = input.ReadInt32(); + break; + } + case 56: { + Tid3 = input.ReadInt32(); + break; + } + case 64: { + Qty3 = input.ReadInt32(); + break; + } + case 72: { + Focus = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BattleThreshold.cs b/NTR.Common/protos/BattleThreshold.cs new file mode 100644 index 0000000..d241564 --- /dev/null +++ b/NTR.Common/protos/BattleThreshold.cs @@ -0,0 +1,954 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleThreshold.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BattleThreshold.proto + public static partial class BattleThresholdReflection { + + #region Descriptor + /// File descriptor for BattleThreshold.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleThresholdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVUaHJlc2hvbGQucHJvdG8i6AMKD0JhdHRsZVRocmVzaG9sZBIS", + "CgptaXNzaW9uX2lkGAEgASgFEg8KB3ZlcnNpb24YAiABKAUSFAoMZnJvbV9z", + "cmNfYXRrGAMgASgFEiEKGWZyb21fcGVya19pbnRlbnNpdHlfcmF0aW8YBCAB", + "KAUSGwoTZnJvbV9zbG90X2RtZ19yYXRpbxgFIAEoBRIQCghmcm9tX2VfZRgG", + "IAEoBRIaChJmcm9tX2dlbl9kbWdfcmF0aW8YByABKAUSFQoNZnJvbV9kbWdf", + "cGx1cxgIIAEoBRIXCg9mcm9tX2NyaXRfcmF0aW8YCSABKAUSHAoUZnJvbV9m", + "aW5hbF9kbWdfcmF0aW8YCiABKAUSGwoTZnJvbV9maW5hbF9kbWdfcGx1cxgL", + "IAEoBRITCgt0b19lcl9hbWVuZBgMIAEoBRIUCgx0b19kZWZfYW1lbmQYDSAB", + "KAUSHQoVdG9fcmNkX3Nsb3RfZG1nX3JhdGlvGA4gASgFEhQKDHRvX2VfZV9y", + "X2NfZBgPIAEoBRIcChR0b19nZW5fZG1nX3JjZF9yYXRpbxgQIAEoBRIXCg90", + "b19kbWdfcGx1c19yY2QYESABKAUSCwoDZG1nGBIgASgFEhEKCWNyaXRfcmF0", + "ZRgTIAEoBRIKCgJocBgUIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BattleThreshold), global::Nova.Client.BattleThreshold.Parser, new[]{ "MissionId", "Version", "FromSrcAtk", "FromPerkIntensityRatio", "FromSlotDmgRatio", "FromEE", "FromGenDmgRatio", "FromDmgPlus", "FromCritRatio", "FromFinalDmgRatio", "FromFinalDmgPlus", "ToErAmend", "ToDefAmend", "ToRcdSlotDmgRatio", "ToEERCD", "ToGenDmgRcdRatio", "ToDmgPlusRcd", "Dmg", "CritRate", "Hp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleThreshold : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BattleThresholdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleThreshold(BattleThreshold other) : this() { + missionId_ = other.missionId_; + version_ = other.version_; + fromSrcAtk_ = other.fromSrcAtk_; + fromPerkIntensityRatio_ = other.fromPerkIntensityRatio_; + fromSlotDmgRatio_ = other.fromSlotDmgRatio_; + fromEE_ = other.fromEE_; + fromGenDmgRatio_ = other.fromGenDmgRatio_; + fromDmgPlus_ = other.fromDmgPlus_; + fromCritRatio_ = other.fromCritRatio_; + fromFinalDmgRatio_ = other.fromFinalDmgRatio_; + fromFinalDmgPlus_ = other.fromFinalDmgPlus_; + toErAmend_ = other.toErAmend_; + toDefAmend_ = other.toDefAmend_; + toRcdSlotDmgRatio_ = other.toRcdSlotDmgRatio_; + toEERCD_ = other.toEERCD_; + toGenDmgRcdRatio_ = other.toGenDmgRcdRatio_; + toDmgPlusRcd_ = other.toDmgPlusRcd_; + dmg_ = other.dmg_; + critRate_ = other.critRate_; + hp_ = other.hp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleThreshold Clone() { + return new BattleThreshold(this); + } + + /// Field number for the "mission_id" field. + public const int MissionIdFieldNumber = 1; + private int missionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MissionId { + get { return missionId_; } + set { + missionId_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private int version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "from_src_atk" field. + public const int FromSrcAtkFieldNumber = 3; + private int fromSrcAtk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromSrcAtk { + get { return fromSrcAtk_; } + set { + fromSrcAtk_ = value; + } + } + + /// Field number for the "from_perk_intensity_ratio" field. + public const int FromPerkIntensityRatioFieldNumber = 4; + private int fromPerkIntensityRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromPerkIntensityRatio { + get { return fromPerkIntensityRatio_; } + set { + fromPerkIntensityRatio_ = value; + } + } + + /// Field number for the "from_slot_dmg_ratio" field. + public const int FromSlotDmgRatioFieldNumber = 5; + private int fromSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromSlotDmgRatio { + get { return fromSlotDmgRatio_; } + set { + fromSlotDmgRatio_ = value; + } + } + + /// Field number for the "from_e_e" field. + public const int FromEEFieldNumber = 6; + private int fromEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromEE { + get { return fromEE_; } + set { + fromEE_ = value; + } + } + + /// Field number for the "from_gen_dmg_ratio" field. + public const int FromGenDmgRatioFieldNumber = 7; + private int fromGenDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromGenDmgRatio { + get { return fromGenDmgRatio_; } + set { + fromGenDmgRatio_ = value; + } + } + + /// Field number for the "from_dmg_plus" field. + public const int FromDmgPlusFieldNumber = 8; + private int fromDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromDmgPlus { + get { return fromDmgPlus_; } + set { + fromDmgPlus_ = value; + } + } + + /// Field number for the "from_crit_ratio" field. + public const int FromCritRatioFieldNumber = 9; + private int fromCritRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromCritRatio { + get { return fromCritRatio_; } + set { + fromCritRatio_ = value; + } + } + + /// Field number for the "from_final_dmg_ratio" field. + public const int FromFinalDmgRatioFieldNumber = 10; + private int fromFinalDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromFinalDmgRatio { + get { return fromFinalDmgRatio_; } + set { + fromFinalDmgRatio_ = value; + } + } + + /// Field number for the "from_final_dmg_plus" field. + public const int FromFinalDmgPlusFieldNumber = 11; + private int fromFinalDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromFinalDmgPlus { + get { return fromFinalDmgPlus_; } + set { + fromFinalDmgPlus_ = value; + } + } + + /// Field number for the "to_er_amend" field. + public const int ToErAmendFieldNumber = 12; + private int toErAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToErAmend { + get { return toErAmend_; } + set { + toErAmend_ = value; + } + } + + /// Field number for the "to_def_amend" field. + public const int ToDefAmendFieldNumber = 13; + private int toDefAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToDefAmend { + get { return toDefAmend_; } + set { + toDefAmend_ = value; + } + } + + /// Field number for the "to_rcd_slot_dmg_ratio" field. + public const int ToRcdSlotDmgRatioFieldNumber = 14; + private int toRcdSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToRcdSlotDmgRatio { + get { return toRcdSlotDmgRatio_; } + set { + toRcdSlotDmgRatio_ = value; + } + } + + /// Field number for the "to_e_e_r_c_d" field. + public const int ToEERCDFieldNumber = 15; + private int toEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToEERCD { + get { return toEERCD_; } + set { + toEERCD_ = value; + } + } + + /// Field number for the "to_gen_dmg_rcd_ratio" field. + public const int ToGenDmgRcdRatioFieldNumber = 16; + private int toGenDmgRcdRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToGenDmgRcdRatio { + get { return toGenDmgRcdRatio_; } + set { + toGenDmgRcdRatio_ = value; + } + } + + /// Field number for the "to_dmg_plus_rcd" field. + public const int ToDmgPlusRcdFieldNumber = 17; + private int toDmgPlusRcd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToDmgPlusRcd { + get { return toDmgPlusRcd_; } + set { + toDmgPlusRcd_ = value; + } + } + + /// Field number for the "dmg" field. + public const int DmgFieldNumber = 18; + private int dmg_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Dmg { + get { return dmg_; } + set { + dmg_ = value; + } + } + + /// Field number for the "crit_rate" field. + public const int CritRateFieldNumber = 19; + private int critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 20; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MissionId != other.MissionId) return false; + if (Version != other.Version) return false; + if (FromSrcAtk != other.FromSrcAtk) return false; + if (FromPerkIntensityRatio != other.FromPerkIntensityRatio) return false; + if (FromSlotDmgRatio != other.FromSlotDmgRatio) return false; + if (FromEE != other.FromEE) return false; + if (FromGenDmgRatio != other.FromGenDmgRatio) return false; + if (FromDmgPlus != other.FromDmgPlus) return false; + if (FromCritRatio != other.FromCritRatio) return false; + if (FromFinalDmgRatio != other.FromFinalDmgRatio) return false; + if (FromFinalDmgPlus != other.FromFinalDmgPlus) return false; + if (ToErAmend != other.ToErAmend) return false; + if (ToDefAmend != other.ToDefAmend) return false; + if (ToRcdSlotDmgRatio != other.ToRcdSlotDmgRatio) return false; + if (ToEERCD != other.ToEERCD) return false; + if (ToGenDmgRcdRatio != other.ToGenDmgRcdRatio) return false; + if (ToDmgPlusRcd != other.ToDmgPlusRcd) return false; + if (Dmg != other.Dmg) return false; + if (CritRate != other.CritRate) return false; + if (Hp != other.Hp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MissionId != 0) hash ^= MissionId.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (FromSrcAtk != 0) hash ^= FromSrcAtk.GetHashCode(); + if (FromPerkIntensityRatio != 0) hash ^= FromPerkIntensityRatio.GetHashCode(); + if (FromSlotDmgRatio != 0) hash ^= FromSlotDmgRatio.GetHashCode(); + if (FromEE != 0) hash ^= FromEE.GetHashCode(); + if (FromGenDmgRatio != 0) hash ^= FromGenDmgRatio.GetHashCode(); + if (FromDmgPlus != 0) hash ^= FromDmgPlus.GetHashCode(); + if (FromCritRatio != 0) hash ^= FromCritRatio.GetHashCode(); + if (FromFinalDmgRatio != 0) hash ^= FromFinalDmgRatio.GetHashCode(); + if (FromFinalDmgPlus != 0) hash ^= FromFinalDmgPlus.GetHashCode(); + if (ToErAmend != 0) hash ^= ToErAmend.GetHashCode(); + if (ToDefAmend != 0) hash ^= ToDefAmend.GetHashCode(); + if (ToRcdSlotDmgRatio != 0) hash ^= ToRcdSlotDmgRatio.GetHashCode(); + if (ToEERCD != 0) hash ^= ToEERCD.GetHashCode(); + if (ToGenDmgRcdRatio != 0) hash ^= ToGenDmgRcdRatio.GetHashCode(); + if (ToDmgPlusRcd != 0) hash ^= ToDmgPlusRcd.GetHashCode(); + if (Dmg != 0) hash ^= Dmg.GetHashCode(); + if (CritRate != 0) hash ^= CritRate.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MissionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(MissionId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (FromSrcAtk != 0) { + output.WriteRawTag(24); + output.WriteInt32(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + output.WriteRawTag(32); + output.WriteInt32(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + output.WriteRawTag(40); + output.WriteInt32(FromSlotDmgRatio); + } + if (FromEE != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromEE); + } + if (FromGenDmgRatio != 0) { + output.WriteRawTag(56); + output.WriteInt32(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + output.WriteRawTag(64); + output.WriteInt32(FromDmgPlus); + } + if (FromCritRatio != 0) { + output.WriteRawTag(72); + output.WriteInt32(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + output.WriteRawTag(88); + output.WriteInt32(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + output.WriteRawTag(96); + output.WriteInt32(ToErAmend); + } + if (ToDefAmend != 0) { + output.WriteRawTag(104); + output.WriteInt32(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + output.WriteRawTag(120); + output.WriteInt32(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ToDmgPlusRcd); + } + if (Dmg != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Dmg); + } + if (CritRate != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(CritRate); + } + if (Hp != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Hp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MissionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(MissionId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (FromSrcAtk != 0) { + output.WriteRawTag(24); + output.WriteInt32(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + output.WriteRawTag(32); + output.WriteInt32(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + output.WriteRawTag(40); + output.WriteInt32(FromSlotDmgRatio); + } + if (FromEE != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromEE); + } + if (FromGenDmgRatio != 0) { + output.WriteRawTag(56); + output.WriteInt32(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + output.WriteRawTag(64); + output.WriteInt32(FromDmgPlus); + } + if (FromCritRatio != 0) { + output.WriteRawTag(72); + output.WriteInt32(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + output.WriteRawTag(88); + output.WriteInt32(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + output.WriteRawTag(96); + output.WriteInt32(ToErAmend); + } + if (ToDefAmend != 0) { + output.WriteRawTag(104); + output.WriteInt32(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + output.WriteRawTag(120); + output.WriteInt32(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ToDmgPlusRcd); + } + if (Dmg != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Dmg); + } + if (CritRate != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(CritRate); + } + if (Hp != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Hp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MissionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MissionId); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (FromSrcAtk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromSlotDmgRatio); + } + if (FromEE != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromEE); + } + if (FromGenDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromDmgPlus); + } + if (FromCritRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToErAmend); + } + if (ToDefAmend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToDmgPlusRcd); + } + if (Dmg != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dmg); + } + if (CritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritRate); + } + if (Hp != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleThreshold other) { + if (other == null) { + return; + } + if (other.MissionId != 0) { + MissionId = other.MissionId; + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.FromSrcAtk != 0) { + FromSrcAtk = other.FromSrcAtk; + } + if (other.FromPerkIntensityRatio != 0) { + FromPerkIntensityRatio = other.FromPerkIntensityRatio; + } + if (other.FromSlotDmgRatio != 0) { + FromSlotDmgRatio = other.FromSlotDmgRatio; + } + if (other.FromEE != 0) { + FromEE = other.FromEE; + } + if (other.FromGenDmgRatio != 0) { + FromGenDmgRatio = other.FromGenDmgRatio; + } + if (other.FromDmgPlus != 0) { + FromDmgPlus = other.FromDmgPlus; + } + if (other.FromCritRatio != 0) { + FromCritRatio = other.FromCritRatio; + } + if (other.FromFinalDmgRatio != 0) { + FromFinalDmgRatio = other.FromFinalDmgRatio; + } + if (other.FromFinalDmgPlus != 0) { + FromFinalDmgPlus = other.FromFinalDmgPlus; + } + if (other.ToErAmend != 0) { + ToErAmend = other.ToErAmend; + } + if (other.ToDefAmend != 0) { + ToDefAmend = other.ToDefAmend; + } + if (other.ToRcdSlotDmgRatio != 0) { + ToRcdSlotDmgRatio = other.ToRcdSlotDmgRatio; + } + if (other.ToEERCD != 0) { + ToEERCD = other.ToEERCD; + } + if (other.ToGenDmgRcdRatio != 0) { + ToGenDmgRcdRatio = other.ToGenDmgRcdRatio; + } + if (other.ToDmgPlusRcd != 0) { + ToDmgPlusRcd = other.ToDmgPlusRcd; + } + if (other.Dmg != 0) { + Dmg = other.Dmg; + } + if (other.CritRate != 0) { + CritRate = other.CritRate; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MissionId = input.ReadInt32(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + FromSrcAtk = input.ReadInt32(); + break; + } + case 32: { + FromPerkIntensityRatio = input.ReadInt32(); + break; + } + case 40: { + FromSlotDmgRatio = input.ReadInt32(); + break; + } + case 48: { + FromEE = input.ReadInt32(); + break; + } + case 56: { + FromGenDmgRatio = input.ReadInt32(); + break; + } + case 64: { + FromDmgPlus = input.ReadInt32(); + break; + } + case 72: { + FromCritRatio = input.ReadInt32(); + break; + } + case 80: { + FromFinalDmgRatio = input.ReadInt32(); + break; + } + case 88: { + FromFinalDmgPlus = input.ReadInt32(); + break; + } + case 96: { + ToErAmend = input.ReadInt32(); + break; + } + case 104: { + ToDefAmend = input.ReadInt32(); + break; + } + case 112: { + ToRcdSlotDmgRatio = input.ReadInt32(); + break; + } + case 120: { + ToEERCD = input.ReadInt32(); + break; + } + case 128: { + ToGenDmgRcdRatio = input.ReadInt32(); + break; + } + case 136: { + ToDmgPlusRcd = input.ReadInt32(); + break; + } + case 144: { + Dmg = input.ReadInt32(); + break; + } + case 152: { + CritRate = input.ReadInt32(); + break; + } + case 160: { + Hp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MissionId = input.ReadInt32(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + FromSrcAtk = input.ReadInt32(); + break; + } + case 32: { + FromPerkIntensityRatio = input.ReadInt32(); + break; + } + case 40: { + FromSlotDmgRatio = input.ReadInt32(); + break; + } + case 48: { + FromEE = input.ReadInt32(); + break; + } + case 56: { + FromGenDmgRatio = input.ReadInt32(); + break; + } + case 64: { + FromDmgPlus = input.ReadInt32(); + break; + } + case 72: { + FromCritRatio = input.ReadInt32(); + break; + } + case 80: { + FromFinalDmgRatio = input.ReadInt32(); + break; + } + case 88: { + FromFinalDmgPlus = input.ReadInt32(); + break; + } + case 96: { + ToErAmend = input.ReadInt32(); + break; + } + case 104: { + ToDefAmend = input.ReadInt32(); + break; + } + case 112: { + ToRcdSlotDmgRatio = input.ReadInt32(); + break; + } + case 120: { + ToEERCD = input.ReadInt32(); + break; + } + case 128: { + ToGenDmgRcdRatio = input.ReadInt32(); + break; + } + case 136: { + ToDmgPlusRcd = input.ReadInt32(); + break; + } + case 144: { + Dmg = input.ReadInt32(); + break; + } + case 152: { + CritRate = input.ReadInt32(); + break; + } + case 160: { + Hp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BoardNPC.cs b/NTR.Common/protos/BoardNPC.cs new file mode 100644 index 0000000..4e3f6d5 --- /dev/null +++ b/NTR.Common/protos/BoardNPC.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BoardNPC.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BoardNPC.proto + public static partial class BoardNPCReflection { + + #region Descriptor + /// File descriptor for BoardNPC.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BoardNPCReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5Cb2FyZE5QQy5wcm90byJMCghCb2FyZE5QQxIKCgJpZBgBIAEoBRIMCgRu", + "YW1lGAIgASgJEg0KBWFsaWFzGAMgASgJEhcKD2RlZmF1bHRfc2tpbl9pZBgE", + "IAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BoardNPC), global::Nova.Client.BoardNPC.Parser, new[]{ "Id", "Name", "Alias", "DefaultSkinId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BoardNPC : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoardNPC()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BoardNPCReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoardNPC() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoardNPC(BoardNPC other) : this() { + id_ = other.id_; + name_ = other.name_; + alias_ = other.alias_; + defaultSkinId_ = other.defaultSkinId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoardNPC Clone() { + return new BoardNPC(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "alias" field. + public const int AliasFieldNumber = 3; + private string alias_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Alias { + get { return alias_; } + set { + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "default_skin_id" field. + public const int DefaultSkinIdFieldNumber = 4; + private int defaultSkinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefaultSkinId { + get { return defaultSkinId_; } + set { + defaultSkinId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BoardNPC); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BoardNPC other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Alias != other.Alias) return false; + if (DefaultSkinId != other.DefaultSkinId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); + if (DefaultSkinId != 0) hash ^= DefaultSkinId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Alias.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Alias); + } + if (DefaultSkinId != 0) { + output.WriteRawTag(32); + output.WriteInt32(DefaultSkinId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Alias.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Alias); + } + if (DefaultSkinId != 0) { + output.WriteRawTag(32); + output.WriteInt32(DefaultSkinId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); + } + if (DefaultSkinId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultSkinId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BoardNPC other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Alias.Length != 0) { + Alias = other.Alias; + } + if (other.DefaultSkinId != 0) { + DefaultSkinId = other.DefaultSkinId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Alias = input.ReadString(); + break; + } + case 32: { + DefaultSkinId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Alias = input.ReadString(); + break; + } + case 32: { + DefaultSkinId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Buff.cs b/NTR.Common/protos/Buff.cs new file mode 100644 index 0000000..5a65fb0 --- /dev/null +++ b/NTR.Common/protos/Buff.cs @@ -0,0 +1,868 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Buff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Buff.proto + public static partial class BuffReflection { + + #region Descriptor + /// File descriptor for Buff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpCdWZmLnByb3RvIu4CCgRCdWZmEgoKAmlkGAEgASgFEgwKBG5hbWUYAiAB", + "KAkSFwoPbGV2ZWxfdHlwZV9kYXRhGAMgASgFEhIKCmxldmVsX2RhdGEYBCAB", + "KAUSFwoPbWFpbl9vcl9zdXBwb3J0GAUgASgFEhAKCGdyb3VwX2lkGAYgASgF", + "EhMKC3JlZHVjZV90aW1lGAcgASgFEhEKCWJ1ZmZfdGFnMRgIIAEoBRIRCgli", + "dWZmX3RhZzIYCSABKAUSEQoJYnVmZl90YWczGAogASgFEhEKCWJ1ZmZfdGFn", + "NBgLIAEoBRIRCglidWZmX3RhZzUYDCABKAUSEwoLYmluZF9lZmZlY3QYDSAB", + "KAkSDAoEaWNvbhgOIAEoCRIPCgdpc19zaG93GA8gASgIEhkKEXRvcG9mX2hl", + "YWRfZWZmZWN0GBAgASgJEh0KFWJ1ZmZfbnVtX2VmZmVjdF9sZXZlbBgRIAMo", + "BRISCgpub3RfcmVtb3ZlGBIgASgIQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Buff), global::Nova.Client.Buff.Parser, new[]{ "Id", "Name", "LevelTypeData", "LevelData", "MainOrSupport", "GroupId", "ReduceTime", "BuffTag1", "BuffTag2", "BuffTag3", "BuffTag4", "BuffTag5", "BindEffect", "Icon", "IsShow", "TopofHeadEffect", "BuffNumEffectLevel", "NotRemove" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Buff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Buff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Buff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Buff(Buff other) : this() { + id_ = other.id_; + name_ = other.name_; + levelTypeData_ = other.levelTypeData_; + levelData_ = other.levelData_; + mainOrSupport_ = other.mainOrSupport_; + groupId_ = other.groupId_; + reduceTime_ = other.reduceTime_; + buffTag1_ = other.buffTag1_; + buffTag2_ = other.buffTag2_; + buffTag3_ = other.buffTag3_; + buffTag4_ = other.buffTag4_; + buffTag5_ = other.buffTag5_; + bindEffect_ = other.bindEffect_; + icon_ = other.icon_; + isShow_ = other.isShow_; + topofHeadEffect_ = other.topofHeadEffect_; + buffNumEffectLevel_ = other.buffNumEffectLevel_.Clone(); + notRemove_ = other.notRemove_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Buff Clone() { + return new Buff(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "level_type_data" field. + public const int LevelTypeDataFieldNumber = 3; + private int levelTypeData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTypeData { + get { return levelTypeData_; } + set { + levelTypeData_ = value; + } + } + + /// Field number for the "level_data" field. + public const int LevelDataFieldNumber = 4; + private int levelData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelData { + get { return levelData_; } + set { + levelData_ = value; + } + } + + /// Field number for the "main_or_support" field. + public const int MainOrSupportFieldNumber = 5; + private int mainOrSupport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainOrSupport { + get { return mainOrSupport_; } + set { + mainOrSupport_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 6; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "reduce_time" field. + public const int ReduceTimeFieldNumber = 7; + private int reduceTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReduceTime { + get { return reduceTime_; } + set { + reduceTime_ = value; + } + } + + /// Field number for the "buff_tag1" field. + public const int BuffTag1FieldNumber = 8; + private int buffTag1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffTag1 { + get { return buffTag1_; } + set { + buffTag1_ = value; + } + } + + /// Field number for the "buff_tag2" field. + public const int BuffTag2FieldNumber = 9; + private int buffTag2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffTag2 { + get { return buffTag2_; } + set { + buffTag2_ = value; + } + } + + /// Field number for the "buff_tag3" field. + public const int BuffTag3FieldNumber = 10; + private int buffTag3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffTag3 { + get { return buffTag3_; } + set { + buffTag3_ = value; + } + } + + /// Field number for the "buff_tag4" field. + public const int BuffTag4FieldNumber = 11; + private int buffTag4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffTag4 { + get { return buffTag4_; } + set { + buffTag4_ = value; + } + } + + /// Field number for the "buff_tag5" field. + public const int BuffTag5FieldNumber = 12; + private int buffTag5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffTag5 { + get { return buffTag5_; } + set { + buffTag5_ = value; + } + } + + /// Field number for the "bind_effect" field. + public const int BindEffectFieldNumber = 13; + private string bindEffect_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BindEffect { + get { return bindEffect_; } + set { + bindEffect_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 14; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_show" field. + public const int IsShowFieldNumber = 15; + private bool isShow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsShow { + get { return isShow_; } + set { + isShow_ = value; + } + } + + /// Field number for the "topof_head_effect" field. + public const int TopofHeadEffectFieldNumber = 16; + private string topofHeadEffect_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TopofHeadEffect { + get { return topofHeadEffect_; } + set { + topofHeadEffect_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "buff_num_effect_level" field. + public const int BuffNumEffectLevelFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_buffNumEffectLevel_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField buffNumEffectLevel_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffNumEffectLevel { + get { return buffNumEffectLevel_; } + } + + /// Field number for the "not_remove" field. + public const int NotRemoveFieldNumber = 18; + private bool notRemove_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NotRemove { + get { return notRemove_; } + set { + notRemove_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Buff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Buff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (LevelTypeData != other.LevelTypeData) return false; + if (LevelData != other.LevelData) return false; + if (MainOrSupport != other.MainOrSupport) return false; + if (GroupId != other.GroupId) return false; + if (ReduceTime != other.ReduceTime) return false; + if (BuffTag1 != other.BuffTag1) return false; + if (BuffTag2 != other.BuffTag2) return false; + if (BuffTag3 != other.BuffTag3) return false; + if (BuffTag4 != other.BuffTag4) return false; + if (BuffTag5 != other.BuffTag5) return false; + if (BindEffect != other.BindEffect) return false; + if (Icon != other.Icon) return false; + if (IsShow != other.IsShow) return false; + if (TopofHeadEffect != other.TopofHeadEffect) return false; + if(!buffNumEffectLevel_.Equals(other.buffNumEffectLevel_)) return false; + if (NotRemove != other.NotRemove) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (LevelTypeData != 0) hash ^= LevelTypeData.GetHashCode(); + if (LevelData != 0) hash ^= LevelData.GetHashCode(); + if (MainOrSupport != 0) hash ^= MainOrSupport.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (ReduceTime != 0) hash ^= ReduceTime.GetHashCode(); + if (BuffTag1 != 0) hash ^= BuffTag1.GetHashCode(); + if (BuffTag2 != 0) hash ^= BuffTag2.GetHashCode(); + if (BuffTag3 != 0) hash ^= BuffTag3.GetHashCode(); + if (BuffTag4 != 0) hash ^= BuffTag4.GetHashCode(); + if (BuffTag5 != 0) hash ^= BuffTag5.GetHashCode(); + if (BindEffect.Length != 0) hash ^= BindEffect.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (IsShow != false) hash ^= IsShow.GetHashCode(); + if (TopofHeadEffect.Length != 0) hash ^= TopofHeadEffect.GetHashCode(); + hash ^= buffNumEffectLevel_.GetHashCode(); + if (NotRemove != false) hash ^= NotRemove.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (LevelTypeData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainOrSupport); + } + if (GroupId != 0) { + output.WriteRawTag(48); + output.WriteInt32(GroupId); + } + if (ReduceTime != 0) { + output.WriteRawTag(56); + output.WriteInt32(ReduceTime); + } + if (BuffTag1 != 0) { + output.WriteRawTag(64); + output.WriteInt32(BuffTag1); + } + if (BuffTag2 != 0) { + output.WriteRawTag(72); + output.WriteInt32(BuffTag2); + } + if (BuffTag3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(BuffTag3); + } + if (BuffTag4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(BuffTag4); + } + if (BuffTag5 != 0) { + output.WriteRawTag(96); + output.WriteInt32(BuffTag5); + } + if (BindEffect.Length != 0) { + output.WriteRawTag(106); + output.WriteString(BindEffect); + } + if (Icon.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Icon); + } + if (IsShow != false) { + output.WriteRawTag(120); + output.WriteBool(IsShow); + } + if (TopofHeadEffect.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(TopofHeadEffect); + } + buffNumEffectLevel_.WriteTo(output, _repeated_buffNumEffectLevel_codec); + if (NotRemove != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NotRemove); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (LevelTypeData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainOrSupport); + } + if (GroupId != 0) { + output.WriteRawTag(48); + output.WriteInt32(GroupId); + } + if (ReduceTime != 0) { + output.WriteRawTag(56); + output.WriteInt32(ReduceTime); + } + if (BuffTag1 != 0) { + output.WriteRawTag(64); + output.WriteInt32(BuffTag1); + } + if (BuffTag2 != 0) { + output.WriteRawTag(72); + output.WriteInt32(BuffTag2); + } + if (BuffTag3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(BuffTag3); + } + if (BuffTag4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(BuffTag4); + } + if (BuffTag5 != 0) { + output.WriteRawTag(96); + output.WriteInt32(BuffTag5); + } + if (BindEffect.Length != 0) { + output.WriteRawTag(106); + output.WriteString(BindEffect); + } + if (Icon.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Icon); + } + if (IsShow != false) { + output.WriteRawTag(120); + output.WriteBool(IsShow); + } + if (TopofHeadEffect.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(TopofHeadEffect); + } + buffNumEffectLevel_.WriteTo(ref output, _repeated_buffNumEffectLevel_codec); + if (NotRemove != false) { + output.WriteRawTag(144, 1); + output.WriteBool(NotRemove); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (LevelTypeData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTypeData); + } + if (LevelData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelData); + } + if (MainOrSupport != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainOrSupport); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (ReduceTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReduceTime); + } + if (BuffTag1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffTag1); + } + if (BuffTag2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffTag2); + } + if (BuffTag3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffTag3); + } + if (BuffTag4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffTag4); + } + if (BuffTag5 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffTag5); + } + if (BindEffect.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BindEffect); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (IsShow != false) { + size += 1 + 1; + } + if (TopofHeadEffect.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TopofHeadEffect); + } + size += buffNumEffectLevel_.CalculateSize(_repeated_buffNumEffectLevel_codec); + if (NotRemove != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Buff other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.LevelTypeData != 0) { + LevelTypeData = other.LevelTypeData; + } + if (other.LevelData != 0) { + LevelData = other.LevelData; + } + if (other.MainOrSupport != 0) { + MainOrSupport = other.MainOrSupport; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.ReduceTime != 0) { + ReduceTime = other.ReduceTime; + } + if (other.BuffTag1 != 0) { + BuffTag1 = other.BuffTag1; + } + if (other.BuffTag2 != 0) { + BuffTag2 = other.BuffTag2; + } + if (other.BuffTag3 != 0) { + BuffTag3 = other.BuffTag3; + } + if (other.BuffTag4 != 0) { + BuffTag4 = other.BuffTag4; + } + if (other.BuffTag5 != 0) { + BuffTag5 = other.BuffTag5; + } + if (other.BindEffect.Length != 0) { + BindEffect = other.BindEffect; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.IsShow != false) { + IsShow = other.IsShow; + } + if (other.TopofHeadEffect.Length != 0) { + TopofHeadEffect = other.TopofHeadEffect; + } + buffNumEffectLevel_.Add(other.buffNumEffectLevel_); + if (other.NotRemove != false) { + NotRemove = other.NotRemove; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + LevelTypeData = input.ReadInt32(); + break; + } + case 32: { + LevelData = input.ReadInt32(); + break; + } + case 40: { + MainOrSupport = input.ReadInt32(); + break; + } + case 48: { + GroupId = input.ReadInt32(); + break; + } + case 56: { + ReduceTime = input.ReadInt32(); + break; + } + case 64: { + BuffTag1 = input.ReadInt32(); + break; + } + case 72: { + BuffTag2 = input.ReadInt32(); + break; + } + case 80: { + BuffTag3 = input.ReadInt32(); + break; + } + case 88: { + BuffTag4 = input.ReadInt32(); + break; + } + case 96: { + BuffTag5 = input.ReadInt32(); + break; + } + case 106: { + BindEffect = input.ReadString(); + break; + } + case 114: { + Icon = input.ReadString(); + break; + } + case 120: { + IsShow = input.ReadBool(); + break; + } + case 130: { + TopofHeadEffect = input.ReadString(); + break; + } + case 138: + case 136: { + buffNumEffectLevel_.AddEntriesFrom(input, _repeated_buffNumEffectLevel_codec); + break; + } + case 144: { + NotRemove = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + LevelTypeData = input.ReadInt32(); + break; + } + case 32: { + LevelData = input.ReadInt32(); + break; + } + case 40: { + MainOrSupport = input.ReadInt32(); + break; + } + case 48: { + GroupId = input.ReadInt32(); + break; + } + case 56: { + ReduceTime = input.ReadInt32(); + break; + } + case 64: { + BuffTag1 = input.ReadInt32(); + break; + } + case 72: { + BuffTag2 = input.ReadInt32(); + break; + } + case 80: { + BuffTag3 = input.ReadInt32(); + break; + } + case 88: { + BuffTag4 = input.ReadInt32(); + break; + } + case 96: { + BuffTag5 = input.ReadInt32(); + break; + } + case 106: { + BindEffect = input.ReadString(); + break; + } + case 114: { + Icon = input.ReadString(); + break; + } + case 120: { + IsShow = input.ReadBool(); + break; + } + case 130: { + TopofHeadEffect = input.ReadString(); + break; + } + case 138: + case 136: { + buffNumEffectLevel_.AddEntriesFrom(ref input, _repeated_buffNumEffectLevel_codec); + break; + } + case 144: { + NotRemove = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/BuffValue.cs b/NTR.Common/protos/BuffValue.cs new file mode 100644 index 0000000..f348908 --- /dev/null +++ b/NTR.Common/protos/BuffValue.cs @@ -0,0 +1,719 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BuffValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from BuffValue.proto + public static partial class BuffValueReflection { + + #region Descriptor + /// File descriptor for BuffValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuffValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9CdWZmVmFsdWUucHJvdG8ikgIKCUJ1ZmZWYWx1ZRIKCgJpZBgBIAEoBRIM", + "CgRuYW1lGAIgASgJEgwKBHNvcnQYAyABKAUSFAoMYnVmZl9lZmZlY3RzGAQg", + "AygFEgwKBHRpbWUYBSABKAUSFQoNbGFtaW5hdGVkX251bRgGIAEoBRILCgNu", + "dW0YByABKAUSGgoSdGltZV9zdXBlcnBvc2l0aW9uGAggASgFEg4KBnRpbWlu", + "ZxgJIAEoBRIUCgxyZXBsYWNlX3R5cGUYCiABKAgSFAoMYXR0YWNrX2NsZWFy", + "GAsgASgIEhEKCWhpdF9jbGVhchgMIAEoCBISCgppc19pbmhlcml0GA0gASgI", + "EhYKDmlzX2V4aXRfZGVsZXRlGA4gASgIQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BuffValue), global::Nova.Client.BuffValue.Parser, new[]{ "Id", "Name", "Sort", "BuffEffects", "Time", "LaminatedNum", "Num", "TimeSuperposition", "Timing", "ReplaceType", "AttackClear", "HitClear", "IsInherit", "IsExitDelete" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BuffValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuffValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.BuffValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuffValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuffValue(BuffValue other) : this() { + id_ = other.id_; + name_ = other.name_; + sort_ = other.sort_; + buffEffects_ = other.buffEffects_.Clone(); + time_ = other.time_; + laminatedNum_ = other.laminatedNum_; + num_ = other.num_; + timeSuperposition_ = other.timeSuperposition_; + timing_ = other.timing_; + replaceType_ = other.replaceType_; + attackClear_ = other.attackClear_; + hitClear_ = other.hitClear_; + isInherit_ = other.isInherit_; + isExitDelete_ = other.isExitDelete_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuffValue Clone() { + return new BuffValue(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 3; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "buff_effects" field. + public const int BuffEffectsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_buffEffects_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField buffEffects_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffEffects { + get { return buffEffects_; } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 5; + private int time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Time { + get { return time_; } + set { + time_ = value; + } + } + + /// Field number for the "laminated_num" field. + public const int LaminatedNumFieldNumber = 6; + private int laminatedNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LaminatedNum { + get { return laminatedNum_; } + set { + laminatedNum_ = value; + } + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 7; + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { return num_; } + set { + num_ = value; + } + } + + /// Field number for the "time_superposition" field. + public const int TimeSuperpositionFieldNumber = 8; + private int timeSuperposition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeSuperposition { + get { return timeSuperposition_; } + set { + timeSuperposition_ = value; + } + } + + /// Field number for the "timing" field. + public const int TimingFieldNumber = 9; + private int timing_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Timing { + get { return timing_; } + set { + timing_ = value; + } + } + + /// Field number for the "replace_type" field. + public const int ReplaceTypeFieldNumber = 10; + private bool replaceType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReplaceType { + get { return replaceType_; } + set { + replaceType_ = value; + } + } + + /// Field number for the "attack_clear" field. + public const int AttackClearFieldNumber = 11; + private bool attackClear_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AttackClear { + get { return attackClear_; } + set { + attackClear_ = value; + } + } + + /// Field number for the "hit_clear" field. + public const int HitClearFieldNumber = 12; + private bool hitClear_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HitClear { + get { return hitClear_; } + set { + hitClear_ = value; + } + } + + /// Field number for the "is_inherit" field. + public const int IsInheritFieldNumber = 13; + private bool isInherit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsInherit { + get { return isInherit_; } + set { + isInherit_ = value; + } + } + + /// Field number for the "is_exit_delete" field. + public const int IsExitDeleteFieldNumber = 14; + private bool isExitDelete_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsExitDelete { + get { return isExitDelete_; } + set { + isExitDelete_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BuffValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BuffValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Sort != other.Sort) return false; + if(!buffEffects_.Equals(other.buffEffects_)) return false; + if (Time != other.Time) return false; + if (LaminatedNum != other.LaminatedNum) return false; + if (Num != other.Num) return false; + if (TimeSuperposition != other.TimeSuperposition) return false; + if (Timing != other.Timing) return false; + if (ReplaceType != other.ReplaceType) return false; + if (AttackClear != other.AttackClear) return false; + if (HitClear != other.HitClear) return false; + if (IsInherit != other.IsInherit) return false; + if (IsExitDelete != other.IsExitDelete) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + hash ^= buffEffects_.GetHashCode(); + if (Time != 0) hash ^= Time.GetHashCode(); + if (LaminatedNum != 0) hash ^= LaminatedNum.GetHashCode(); + if (Num != 0) hash ^= Num.GetHashCode(); + if (TimeSuperposition != 0) hash ^= TimeSuperposition.GetHashCode(); + if (Timing != 0) hash ^= Timing.GetHashCode(); + if (ReplaceType != false) hash ^= ReplaceType.GetHashCode(); + if (AttackClear != false) hash ^= AttackClear.GetHashCode(); + if (HitClear != false) hash ^= HitClear.GetHashCode(); + if (IsInherit != false) hash ^= IsInherit.GetHashCode(); + if (IsExitDelete != false) hash ^= IsExitDelete.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Sort != 0) { + output.WriteRawTag(24); + output.WriteInt32(Sort); + } + buffEffects_.WriteTo(output, _repeated_buffEffects_codec); + if (Time != 0) { + output.WriteRawTag(40); + output.WriteInt32(Time); + } + if (LaminatedNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(LaminatedNum); + } + if (Num != 0) { + output.WriteRawTag(56); + output.WriteInt32(Num); + } + if (TimeSuperposition != 0) { + output.WriteRawTag(64); + output.WriteInt32(TimeSuperposition); + } + if (Timing != 0) { + output.WriteRawTag(72); + output.WriteInt32(Timing); + } + if (ReplaceType != false) { + output.WriteRawTag(80); + output.WriteBool(ReplaceType); + } + if (AttackClear != false) { + output.WriteRawTag(88); + output.WriteBool(AttackClear); + } + if (HitClear != false) { + output.WriteRawTag(96); + output.WriteBool(HitClear); + } + if (IsInherit != false) { + output.WriteRawTag(104); + output.WriteBool(IsInherit); + } + if (IsExitDelete != false) { + output.WriteRawTag(112); + output.WriteBool(IsExitDelete); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Sort != 0) { + output.WriteRawTag(24); + output.WriteInt32(Sort); + } + buffEffects_.WriteTo(ref output, _repeated_buffEffects_codec); + if (Time != 0) { + output.WriteRawTag(40); + output.WriteInt32(Time); + } + if (LaminatedNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(LaminatedNum); + } + if (Num != 0) { + output.WriteRawTag(56); + output.WriteInt32(Num); + } + if (TimeSuperposition != 0) { + output.WriteRawTag(64); + output.WriteInt32(TimeSuperposition); + } + if (Timing != 0) { + output.WriteRawTag(72); + output.WriteInt32(Timing); + } + if (ReplaceType != false) { + output.WriteRawTag(80); + output.WriteBool(ReplaceType); + } + if (AttackClear != false) { + output.WriteRawTag(88); + output.WriteBool(AttackClear); + } + if (HitClear != false) { + output.WriteRawTag(96); + output.WriteBool(HitClear); + } + if (IsInherit != false) { + output.WriteRawTag(104); + output.WriteBool(IsInherit); + } + if (IsExitDelete != false) { + output.WriteRawTag(112); + output.WriteBool(IsExitDelete); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + size += buffEffects_.CalculateSize(_repeated_buffEffects_codec); + if (Time != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Time); + } + if (LaminatedNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LaminatedNum); + } + if (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (TimeSuperposition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeSuperposition); + } + if (Timing != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timing); + } + if (ReplaceType != false) { + size += 1 + 1; + } + if (AttackClear != false) { + size += 1 + 1; + } + if (HitClear != false) { + size += 1 + 1; + } + if (IsInherit != false) { + size += 1 + 1; + } + if (IsExitDelete != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BuffValue other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + buffEffects_.Add(other.buffEffects_); + if (other.Time != 0) { + Time = other.Time; + } + if (other.LaminatedNum != 0) { + LaminatedNum = other.LaminatedNum; + } + if (other.Num != 0) { + Num = other.Num; + } + if (other.TimeSuperposition != 0) { + TimeSuperposition = other.TimeSuperposition; + } + if (other.Timing != 0) { + Timing = other.Timing; + } + if (other.ReplaceType != false) { + ReplaceType = other.ReplaceType; + } + if (other.AttackClear != false) { + AttackClear = other.AttackClear; + } + if (other.HitClear != false) { + HitClear = other.HitClear; + } + if (other.IsInherit != false) { + IsInherit = other.IsInherit; + } + if (other.IsExitDelete != false) { + IsExitDelete = other.IsExitDelete; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Sort = input.ReadInt32(); + break; + } + case 34: + case 32: { + buffEffects_.AddEntriesFrom(input, _repeated_buffEffects_codec); + break; + } + case 40: { + Time = input.ReadInt32(); + break; + } + case 48: { + LaminatedNum = input.ReadInt32(); + break; + } + case 56: { + Num = input.ReadInt32(); + break; + } + case 64: { + TimeSuperposition = input.ReadInt32(); + break; + } + case 72: { + Timing = input.ReadInt32(); + break; + } + case 80: { + ReplaceType = input.ReadBool(); + break; + } + case 88: { + AttackClear = input.ReadBool(); + break; + } + case 96: { + HitClear = input.ReadBool(); + break; + } + case 104: { + IsInherit = input.ReadBool(); + break; + } + case 112: { + IsExitDelete = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Sort = input.ReadInt32(); + break; + } + case 34: + case 32: { + buffEffects_.AddEntriesFrom(ref input, _repeated_buffEffects_codec); + break; + } + case 40: { + Time = input.ReadInt32(); + break; + } + case 48: { + LaminatedNum = input.ReadInt32(); + break; + } + case 56: { + Num = input.ReadInt32(); + break; + } + case 64: { + TimeSuperposition = input.ReadInt32(); + break; + } + case 72: { + Timing = input.ReadInt32(); + break; + } + case 80: { + ReplaceType = input.ReadBool(); + break; + } + case 88: { + AttackClear = input.ReadBool(); + break; + } + case 96: { + HitClear = input.ReadBool(); + break; + } + case 104: { + IsInherit = input.ReadBool(); + break; + } + case 112: { + IsExitDelete = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Chapter.cs b/NTR.Common/protos/Chapter.cs new file mode 100644 index 0000000..903dcb0 --- /dev/null +++ b/NTR.Common/protos/Chapter.cs @@ -0,0 +1,532 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Chapter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Chapter.proto + public static partial class ChapterReflection { + + #region Descriptor + /// File descriptor for Chapter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChapterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1DaGFwdGVyLnByb3RvIrkBCgdDaGFwdGVyEgoKAmlkGAEgASgFEgwKBG5h", + "bWUYAiABKAkSDAoEZGVzYxgDIAEoCRIUCgxjaGFwdGVyX3R5cGUYBCABKAUS", + "EwoLd29ybGRfY2xhc3MYBSABKAUSFgoOcHJldl9tYWlubGluZXMYBiADKAUS", + "GAoQY29tcGxldGVfcmV3YXJkcxgHIAEoCRITCgtjaGFwdGVyX2ltZxgIIAEo", + "CRIUCgxjaGFwdGVyX2ljb24YCSABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Chapter), global::Nova.Client.Chapter.Parser, new[]{ "Id", "Name", "Desc", "ChapterType", "WorldClass", "PrevMainlines", "CompleteRewards", "ChapterImg", "ChapterIcon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Chapter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Chapter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ChapterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chapter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chapter(Chapter other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + chapterType_ = other.chapterType_; + worldClass_ = other.worldClass_; + prevMainlines_ = other.prevMainlines_.Clone(); + completeRewards_ = other.completeRewards_; + chapterImg_ = other.chapterImg_; + chapterIcon_ = other.chapterIcon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chapter Clone() { + return new Chapter(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "chapter_type" field. + public const int ChapterTypeFieldNumber = 4; + private int chapterType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ChapterType { + get { return chapterType_; } + set { + chapterType_ = value; + } + } + + /// Field number for the "world_class" field. + public const int WorldClassFieldNumber = 5; + private int worldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClass { + get { return worldClass_; } + set { + worldClass_ = value; + } + } + + /// Field number for the "prev_mainlines" field. + public const int PrevMainlinesFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_prevMainlines_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField prevMainlines_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrevMainlines { + get { return prevMainlines_; } + } + + /// Field number for the "complete_rewards" field. + public const int CompleteRewardsFieldNumber = 7; + private string completeRewards_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteRewards { + get { return completeRewards_; } + set { + completeRewards_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "chapter_img" field. + public const int ChapterImgFieldNumber = 8; + private string chapterImg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChapterImg { + get { return chapterImg_; } + set { + chapterImg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "chapter_icon" field. + public const int ChapterIconFieldNumber = 9; + private string chapterIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChapterIcon { + get { return chapterIcon_; } + set { + chapterIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Chapter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Chapter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ChapterType != other.ChapterType) return false; + if (WorldClass != other.WorldClass) return false; + if(!prevMainlines_.Equals(other.prevMainlines_)) return false; + if (CompleteRewards != other.CompleteRewards) return false; + if (ChapterImg != other.ChapterImg) return false; + if (ChapterIcon != other.ChapterIcon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (ChapterType != 0) hash ^= ChapterType.GetHashCode(); + if (WorldClass != 0) hash ^= WorldClass.GetHashCode(); + hash ^= prevMainlines_.GetHashCode(); + if (CompleteRewards.Length != 0) hash ^= CompleteRewards.GetHashCode(); + if (ChapterImg.Length != 0) hash ^= ChapterImg.GetHashCode(); + if (ChapterIcon.Length != 0) hash ^= ChapterIcon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (ChapterType != 0) { + output.WriteRawTag(32); + output.WriteInt32(ChapterType); + } + if (WorldClass != 0) { + output.WriteRawTag(40); + output.WriteInt32(WorldClass); + } + prevMainlines_.WriteTo(output, _repeated_prevMainlines_codec); + if (CompleteRewards.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CompleteRewards); + } + if (ChapterImg.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ChapterImg); + } + if (ChapterIcon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ChapterIcon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (ChapterType != 0) { + output.WriteRawTag(32); + output.WriteInt32(ChapterType); + } + if (WorldClass != 0) { + output.WriteRawTag(40); + output.WriteInt32(WorldClass); + } + prevMainlines_.WriteTo(ref output, _repeated_prevMainlines_codec); + if (CompleteRewards.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CompleteRewards); + } + if (ChapterImg.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ChapterImg); + } + if (ChapterIcon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ChapterIcon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (ChapterType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChapterType); + } + if (WorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClass); + } + size += prevMainlines_.CalculateSize(_repeated_prevMainlines_codec); + if (CompleteRewards.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteRewards); + } + if (ChapterImg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChapterImg); + } + if (ChapterIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChapterIcon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Chapter other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.ChapterType != 0) { + ChapterType = other.ChapterType; + } + if (other.WorldClass != 0) { + WorldClass = other.WorldClass; + } + prevMainlines_.Add(other.prevMainlines_); + if (other.CompleteRewards.Length != 0) { + CompleteRewards = other.CompleteRewards; + } + if (other.ChapterImg.Length != 0) { + ChapterImg = other.ChapterImg; + } + if (other.ChapterIcon.Length != 0) { + ChapterIcon = other.ChapterIcon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + ChapterType = input.ReadInt32(); + break; + } + case 40: { + WorldClass = input.ReadInt32(); + break; + } + case 50: + case 48: { + prevMainlines_.AddEntriesFrom(input, _repeated_prevMainlines_codec); + break; + } + case 58: { + CompleteRewards = input.ReadString(); + break; + } + case 66: { + ChapterImg = input.ReadString(); + break; + } + case 74: { + ChapterIcon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + ChapterType = input.ReadInt32(); + break; + } + case 40: { + WorldClass = input.ReadInt32(); + break; + } + case 50: + case 48: { + prevMainlines_.AddEntriesFrom(ref input, _repeated_prevMainlines_codec); + break; + } + case 58: { + CompleteRewards = input.ReadString(); + break; + } + case 66: { + ChapterImg = input.ReadString(); + break; + } + case 74: { + ChapterIcon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharAffinityTemplate.cs b/NTR.Common/protos/CharAffinityTemplate.cs new file mode 100644 index 0000000..57b098b --- /dev/null +++ b/NTR.Common/protos/CharAffinityTemplate.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharAffinityTemplate.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharAffinityTemplate.proto + public static partial class CharAffinityTemplateReflection { + + #region Descriptor + /// File descriptor for CharAffinityTemplate.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharAffinityTemplateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpDaGFyQWZmaW5pdHlUZW1wbGF0ZS5wcm90byI3ChRDaGFyQWZmaW5pdHlU", + "ZW1wbGF0ZRIKCgJpZBgBIAEoBRITCgt0ZW1wbGF0ZV9pZBgCIAEoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharAffinityTemplate), global::Nova.Client.CharAffinityTemplate.Parser, new[]{ "Id", "TemplateId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharAffinityTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharAffinityTemplate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharAffinityTemplateReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharAffinityTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharAffinityTemplate(CharAffinityTemplate other) : this() { + id_ = other.id_; + templateId_ = other.templateId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharAffinityTemplate Clone() { + return new CharAffinityTemplate(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "template_id" field. + public const int TemplateIdFieldNumber = 2; + private int templateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TemplateId { + get { return templateId_; } + set { + templateId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharAffinityTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharAffinityTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TemplateId != other.TemplateId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (TemplateId != 0) hash ^= TemplateId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (TemplateId != 0) { + output.WriteRawTag(16); + output.WriteInt32(TemplateId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (TemplateId != 0) { + output.WriteRawTag(16); + output.WriteInt32(TemplateId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (TemplateId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TemplateId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharAffinityTemplate other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.TemplateId != 0) { + TemplateId = other.TemplateId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + TemplateId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + TemplateId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharGrade.cs b/NTR.Common/protos/CharGrade.cs new file mode 100644 index 0000000..e2d7975 --- /dev/null +++ b/NTR.Common/protos/CharGrade.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharGrade.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharGrade.proto + public static partial class CharGradeReflection { + + #region Descriptor + /// File descriptor for CharGrade.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharGradeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9DaGFyR3JhZGUucHJvdG8ihwEKCUNoYXJHcmFkZRINCgVncmFkZRgBIAEo", + "BRIVCg1mcmFnbWVudHNfcXR5GAIgASgFEhsKE2dlbmVyYWxfZnJhZ21lbnRf", + "aWQYAyABKAUSGgoSc3Vic3RpdHV0ZV9pdGVtX2lkGAQgASgFEhsKE3N1YnN0", + "aXR1dGVfaXRlbV9xdHkYBSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharGrade), global::Nova.Client.CharGrade.Parser, new[]{ "Grade", "FragmentsQty", "GeneralFragmentId", "SubstituteItemId", "SubstituteItemQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharGrade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharGrade()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharGradeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharGrade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharGrade(CharGrade other) : this() { + grade_ = other.grade_; + fragmentsQty_ = other.fragmentsQty_; + generalFragmentId_ = other.generalFragmentId_; + substituteItemId_ = other.substituteItemId_; + substituteItemQty_ = other.substituteItemQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharGrade Clone() { + return new CharGrade(this); + } + + /// Field number for the "grade" field. + public const int GradeFieldNumber = 1; + private int grade_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Grade { + get { return grade_; } + set { + grade_ = value; + } + } + + /// Field number for the "fragments_qty" field. + public const int FragmentsQtyFieldNumber = 2; + private int fragmentsQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FragmentsQty { + get { return fragmentsQty_; } + set { + fragmentsQty_ = value; + } + } + + /// Field number for the "general_fragment_id" field. + public const int GeneralFragmentIdFieldNumber = 3; + private int generalFragmentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GeneralFragmentId { + get { return generalFragmentId_; } + set { + generalFragmentId_ = value; + } + } + + /// Field number for the "substitute_item_id" field. + public const int SubstituteItemIdFieldNumber = 4; + private int substituteItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SubstituteItemId { + get { return substituteItemId_; } + set { + substituteItemId_ = value; + } + } + + /// Field number for the "substitute_item_qty" field. + public const int SubstituteItemQtyFieldNumber = 5; + private int substituteItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SubstituteItemQty { + get { return substituteItemQty_; } + set { + substituteItemQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharGrade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharGrade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Grade != other.Grade) return false; + if (FragmentsQty != other.FragmentsQty) return false; + if (GeneralFragmentId != other.GeneralFragmentId) return false; + if (SubstituteItemId != other.SubstituteItemId) return false; + if (SubstituteItemQty != other.SubstituteItemQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Grade != 0) hash ^= Grade.GetHashCode(); + if (FragmentsQty != 0) hash ^= FragmentsQty.GetHashCode(); + if (GeneralFragmentId != 0) hash ^= GeneralFragmentId.GetHashCode(); + if (SubstituteItemId != 0) hash ^= SubstituteItemId.GetHashCode(); + if (SubstituteItemQty != 0) hash ^= SubstituteItemQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Grade != 0) { + output.WriteRawTag(8); + output.WriteInt32(Grade); + } + if (FragmentsQty != 0) { + output.WriteRawTag(16); + output.WriteInt32(FragmentsQty); + } + if (GeneralFragmentId != 0) { + output.WriteRawTag(24); + output.WriteInt32(GeneralFragmentId); + } + if (SubstituteItemId != 0) { + output.WriteRawTag(32); + output.WriteInt32(SubstituteItemId); + } + if (SubstituteItemQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(SubstituteItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Grade != 0) { + output.WriteRawTag(8); + output.WriteInt32(Grade); + } + if (FragmentsQty != 0) { + output.WriteRawTag(16); + output.WriteInt32(FragmentsQty); + } + if (GeneralFragmentId != 0) { + output.WriteRawTag(24); + output.WriteInt32(GeneralFragmentId); + } + if (SubstituteItemId != 0) { + output.WriteRawTag(32); + output.WriteInt32(SubstituteItemId); + } + if (SubstituteItemQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(SubstituteItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Grade != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Grade); + } + if (FragmentsQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FragmentsQty); + } + if (GeneralFragmentId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GeneralFragmentId); + } + if (SubstituteItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubstituteItemId); + } + if (SubstituteItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubstituteItemQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharGrade other) { + if (other == null) { + return; + } + if (other.Grade != 0) { + Grade = other.Grade; + } + if (other.FragmentsQty != 0) { + FragmentsQty = other.FragmentsQty; + } + if (other.GeneralFragmentId != 0) { + GeneralFragmentId = other.GeneralFragmentId; + } + if (other.SubstituteItemId != 0) { + SubstituteItemId = other.SubstituteItemId; + } + if (other.SubstituteItemQty != 0) { + SubstituteItemQty = other.SubstituteItemQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Grade = input.ReadInt32(); + break; + } + case 16: { + FragmentsQty = input.ReadInt32(); + break; + } + case 24: { + GeneralFragmentId = input.ReadInt32(); + break; + } + case 32: { + SubstituteItemId = input.ReadInt32(); + break; + } + case 40: { + SubstituteItemQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Grade = input.ReadInt32(); + break; + } + case 16: { + FragmentsQty = input.ReadInt32(); + break; + } + case 24: { + GeneralFragmentId = input.ReadInt32(); + break; + } + case 32: { + SubstituteItemId = input.ReadInt32(); + break; + } + case 40: { + SubstituteItemQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharItemExp.cs b/NTR.Common/protos/CharItemExp.cs new file mode 100644 index 0000000..21918fd --- /dev/null +++ b/NTR.Common/protos/CharItemExp.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharItemExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharItemExp.proto + public static partial class CharItemExpReflection { + + #region Descriptor + /// File descriptor for CharItemExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharItemExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFDaGFySXRlbUV4cC5wcm90byI9CgtDaGFySXRlbUV4cBIKCgJpZBgBIAEo", + "BRIPCgdpdGVtX2lkGAIgASgFEhEKCWV4cF92YWx1ZRgDIAEoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharItemExp), global::Nova.Client.CharItemExp.Parser, new[]{ "Id", "ItemId", "ExpValue" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharItemExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharItemExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharItemExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharItemExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharItemExp(CharItemExp other) : this() { + id_ = other.id_; + itemId_ = other.itemId_; + expValue_ = other.expValue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharItemExp Clone() { + return new CharItemExp(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 2; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "exp_value" field. + public const int ExpValueFieldNumber = 3; + private int expValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExpValue { + get { return expValue_; } + set { + expValue_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharItemExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharItemExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ItemId != other.ItemId) return false; + if (ExpValue != other.ExpValue) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ExpValue != 0) hash ^= ExpValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (ExpValue != 0) { + output.WriteRawTag(24); + output.WriteInt32(ExpValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (ExpValue != 0) { + output.WriteRawTag(24); + output.WriteInt32(ExpValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ExpValue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExpValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharItemExp other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ExpValue != 0) { + ExpValue = other.ExpValue; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + ExpValue = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + ExpValue = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharPotential.cs b/NTR.Common/protos/CharPotential.cs new file mode 100644 index 0000000..62c842d --- /dev/null +++ b/NTR.Common/protos/CharPotential.cs @@ -0,0 +1,385 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharPotential.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharPotential.proto + public static partial class CharPotentialReflection { + + #region Descriptor + /// File descriptor for CharPotential.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharPotentialReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNDaGFyUG90ZW50aWFsLnByb3RvItEBCg1DaGFyUG90ZW50aWFsEgoKAmlk", + "GAEgASgFEiUKHW1hc3Rlcl9zcGVjaWZpY19wb3RlbnRpYWxfaWRzGAIgAygF", + "EiUKHWFzc2lzdF9zcGVjaWZpY19wb3RlbnRpYWxfaWRzGAMgAygFEhwKFGNv", + "bW1vbl9wb3RlbnRpYWxfaWRzGAQgAygFEiMKG21hc3Rlcl9ub3JtYWxfcG90", + "ZW50aWFsX2lkcxgFIAMoBRIjChthc3Npc3Rfbm9ybWFsX3BvdGVudGlhbF9p", + "ZHMYBiADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharPotential), global::Nova.Client.CharPotential.Parser, new[]{ "Id", "MasterSpecificPotentialIds", "AssistSpecificPotentialIds", "CommonPotentialIds", "MasterNormalPotentialIds", "AssistNormalPotentialIds" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharPotential : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharPotential()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharPotentialReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharPotential() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharPotential(CharPotential other) : this() { + id_ = other.id_; + masterSpecificPotentialIds_ = other.masterSpecificPotentialIds_.Clone(); + assistSpecificPotentialIds_ = other.assistSpecificPotentialIds_.Clone(); + commonPotentialIds_ = other.commonPotentialIds_.Clone(); + masterNormalPotentialIds_ = other.masterNormalPotentialIds_.Clone(); + assistNormalPotentialIds_ = other.assistNormalPotentialIds_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharPotential Clone() { + return new CharPotential(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "master_specific_potential_ids" field. + public const int MasterSpecificPotentialIdsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_masterSpecificPotentialIds_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField masterSpecificPotentialIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MasterSpecificPotentialIds { + get { return masterSpecificPotentialIds_; } + } + + /// Field number for the "assist_specific_potential_ids" field. + public const int AssistSpecificPotentialIdsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_assistSpecificPotentialIds_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField assistSpecificPotentialIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AssistSpecificPotentialIds { + get { return assistSpecificPotentialIds_; } + } + + /// Field number for the "common_potential_ids" field. + public const int CommonPotentialIdsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_commonPotentialIds_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField commonPotentialIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CommonPotentialIds { + get { return commonPotentialIds_; } + } + + /// Field number for the "master_normal_potential_ids" field. + public const int MasterNormalPotentialIdsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_masterNormalPotentialIds_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField masterNormalPotentialIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MasterNormalPotentialIds { + get { return masterNormalPotentialIds_; } + } + + /// Field number for the "assist_normal_potential_ids" field. + public const int AssistNormalPotentialIdsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_assistNormalPotentialIds_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField assistNormalPotentialIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AssistNormalPotentialIds { + get { return assistNormalPotentialIds_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharPotential); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharPotential other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!masterSpecificPotentialIds_.Equals(other.masterSpecificPotentialIds_)) return false; + if(!assistSpecificPotentialIds_.Equals(other.assistSpecificPotentialIds_)) return false; + if(!commonPotentialIds_.Equals(other.commonPotentialIds_)) return false; + if(!masterNormalPotentialIds_.Equals(other.masterNormalPotentialIds_)) return false; + if(!assistNormalPotentialIds_.Equals(other.assistNormalPotentialIds_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= masterSpecificPotentialIds_.GetHashCode(); + hash ^= assistSpecificPotentialIds_.GetHashCode(); + hash ^= commonPotentialIds_.GetHashCode(); + hash ^= masterNormalPotentialIds_.GetHashCode(); + hash ^= assistNormalPotentialIds_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + masterSpecificPotentialIds_.WriteTo(output, _repeated_masterSpecificPotentialIds_codec); + assistSpecificPotentialIds_.WriteTo(output, _repeated_assistSpecificPotentialIds_codec); + commonPotentialIds_.WriteTo(output, _repeated_commonPotentialIds_codec); + masterNormalPotentialIds_.WriteTo(output, _repeated_masterNormalPotentialIds_codec); + assistNormalPotentialIds_.WriteTo(output, _repeated_assistNormalPotentialIds_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + masterSpecificPotentialIds_.WriteTo(ref output, _repeated_masterSpecificPotentialIds_codec); + assistSpecificPotentialIds_.WriteTo(ref output, _repeated_assistSpecificPotentialIds_codec); + commonPotentialIds_.WriteTo(ref output, _repeated_commonPotentialIds_codec); + masterNormalPotentialIds_.WriteTo(ref output, _repeated_masterNormalPotentialIds_codec); + assistNormalPotentialIds_.WriteTo(ref output, _repeated_assistNormalPotentialIds_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += masterSpecificPotentialIds_.CalculateSize(_repeated_masterSpecificPotentialIds_codec); + size += assistSpecificPotentialIds_.CalculateSize(_repeated_assistSpecificPotentialIds_codec); + size += commonPotentialIds_.CalculateSize(_repeated_commonPotentialIds_codec); + size += masterNormalPotentialIds_.CalculateSize(_repeated_masterNormalPotentialIds_codec); + size += assistNormalPotentialIds_.CalculateSize(_repeated_assistNormalPotentialIds_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharPotential other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + masterSpecificPotentialIds_.Add(other.masterSpecificPotentialIds_); + assistSpecificPotentialIds_.Add(other.assistSpecificPotentialIds_); + commonPotentialIds_.Add(other.commonPotentialIds_); + masterNormalPotentialIds_.Add(other.masterNormalPotentialIds_); + assistNormalPotentialIds_.Add(other.assistNormalPotentialIds_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + masterSpecificPotentialIds_.AddEntriesFrom(input, _repeated_masterSpecificPotentialIds_codec); + break; + } + case 26: + case 24: { + assistSpecificPotentialIds_.AddEntriesFrom(input, _repeated_assistSpecificPotentialIds_codec); + break; + } + case 34: + case 32: { + commonPotentialIds_.AddEntriesFrom(input, _repeated_commonPotentialIds_codec); + break; + } + case 42: + case 40: { + masterNormalPotentialIds_.AddEntriesFrom(input, _repeated_masterNormalPotentialIds_codec); + break; + } + case 50: + case 48: { + assistNormalPotentialIds_.AddEntriesFrom(input, _repeated_assistNormalPotentialIds_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + masterSpecificPotentialIds_.AddEntriesFrom(ref input, _repeated_masterSpecificPotentialIds_codec); + break; + } + case 26: + case 24: { + assistSpecificPotentialIds_.AddEntriesFrom(ref input, _repeated_assistSpecificPotentialIds_codec); + break; + } + case 34: + case 32: { + commonPotentialIds_.AddEntriesFrom(ref input, _repeated_commonPotentialIds_codec); + break; + } + case 42: + case 40: { + masterNormalPotentialIds_.AddEntriesFrom(ref input, _repeated_masterNormalPotentialIds_codec); + break; + } + case 50: + case 48: { + assistNormalPotentialIds_.AddEntriesFrom(ref input, _repeated_assistNormalPotentialIds_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharRaritySequence.cs b/NTR.Common/protos/CharRaritySequence.cs new file mode 100644 index 0000000..707a781 --- /dev/null +++ b/NTR.Common/protos/CharRaritySequence.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharRaritySequence.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharRaritySequence.proto + public static partial class CharRaritySequenceReflection { + + #region Descriptor + /// File descriptor for CharRaritySequence.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharRaritySequenceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGFyUmFyaXR5U2VxdWVuY2UucHJvdG8icQoSQ2hhclJhcml0eVNlcXVl", + "bmNlEgoKAmlkGAEgASgFEg0KBWdyYWRlGAIgASgFEhMKC2FkdmFuY2VfbHZs", + "GAMgASgFEhAKCGx2X2xpbWl0GAQgASgFEhkKEXdvcmxkX2NsYXNzX2xpbWl0", + "GAUgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharRaritySequence), global::Nova.Client.CharRaritySequence.Parser, new[]{ "Id", "Grade", "AdvanceLvl", "LvLimit", "WorldClassLimit" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharRaritySequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharRaritySequence()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharRaritySequenceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharRaritySequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharRaritySequence(CharRaritySequence other) : this() { + id_ = other.id_; + grade_ = other.grade_; + advanceLvl_ = other.advanceLvl_; + lvLimit_ = other.lvLimit_; + worldClassLimit_ = other.worldClassLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharRaritySequence Clone() { + return new CharRaritySequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "grade" field. + public const int GradeFieldNumber = 2; + private int grade_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Grade { + get { return grade_; } + set { + grade_ = value; + } + } + + /// Field number for the "advance_lvl" field. + public const int AdvanceLvlFieldNumber = 3; + private int advanceLvl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdvanceLvl { + get { return advanceLvl_; } + set { + advanceLvl_ = value; + } + } + + /// Field number for the "lv_limit" field. + public const int LvLimitFieldNumber = 4; + private int lvLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LvLimit { + get { return lvLimit_; } + set { + lvLimit_ = value; + } + } + + /// Field number for the "world_class_limit" field. + public const int WorldClassLimitFieldNumber = 5; + private int worldClassLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClassLimit { + get { return worldClassLimit_; } + set { + worldClassLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharRaritySequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharRaritySequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Grade != other.Grade) return false; + if (AdvanceLvl != other.AdvanceLvl) return false; + if (LvLimit != other.LvLimit) return false; + if (WorldClassLimit != other.WorldClassLimit) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Grade != 0) hash ^= Grade.GetHashCode(); + if (AdvanceLvl != 0) hash ^= AdvanceLvl.GetHashCode(); + if (LvLimit != 0) hash ^= LvLimit.GetHashCode(); + if (WorldClassLimit != 0) hash ^= WorldClassLimit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Grade != 0) { + output.WriteRawTag(16); + output.WriteInt32(Grade); + } + if (AdvanceLvl != 0) { + output.WriteRawTag(24); + output.WriteInt32(AdvanceLvl); + } + if (LvLimit != 0) { + output.WriteRawTag(32); + output.WriteInt32(LvLimit); + } + if (WorldClassLimit != 0) { + output.WriteRawTag(40); + output.WriteInt32(WorldClassLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Grade != 0) { + output.WriteRawTag(16); + output.WriteInt32(Grade); + } + if (AdvanceLvl != 0) { + output.WriteRawTag(24); + output.WriteInt32(AdvanceLvl); + } + if (LvLimit != 0) { + output.WriteRawTag(32); + output.WriteInt32(LvLimit); + } + if (WorldClassLimit != 0) { + output.WriteRawTag(40); + output.WriteInt32(WorldClassLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Grade != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Grade); + } + if (AdvanceLvl != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdvanceLvl); + } + if (LvLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LvLimit); + } + if (WorldClassLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClassLimit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharRaritySequence other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Grade != 0) { + Grade = other.Grade; + } + if (other.AdvanceLvl != 0) { + AdvanceLvl = other.AdvanceLvl; + } + if (other.LvLimit != 0) { + LvLimit = other.LvLimit; + } + if (other.WorldClassLimit != 0) { + WorldClassLimit = other.WorldClassLimit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Grade = input.ReadInt32(); + break; + } + case 24: { + AdvanceLvl = input.ReadInt32(); + break; + } + case 32: { + LvLimit = input.ReadInt32(); + break; + } + case 40: { + WorldClassLimit = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Grade = input.ReadInt32(); + break; + } + case 24: { + AdvanceLvl = input.ReadInt32(); + break; + } + case 32: { + LvLimit = input.ReadInt32(); + break; + } + case 40: { + WorldClassLimit = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Character.cs b/NTR.Common/protos/Character.cs new file mode 100644 index 0000000..fa4fd38 --- /dev/null +++ b/NTR.Common/protos/Character.cs @@ -0,0 +1,2597 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Character.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Character.proto + public static partial class CharacterReflection { + + #region Descriptor + /// File descriptor for Character.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9DaGFyYWN0ZXIucHJvdG8igAwKCUNoYXJhY3RlchIKCgJpZBgBIAEoBRIM", + "CgRuYW1lGAIgASgJEg8KB3Zpc2libGUYAyABKAgSEQoJYXZhaWxhYmxlGAQg", + "ASgIEg0KBWdyYWRlGAUgASgFEhcKD2RlZmF1bHRfc2tpbl9pZBgGIAEoBRIX", + "Cg9hZHZhbmNlX3NraW5faWQYByABKAUSFQoNYWR2YW5jZV9ncm91cBgIIAEo", + "BRIhChlhZHZhbmNlX3NraW5fdW5sb2NrX2xldmVsGAkgASgFEg8KB2ZhY3Rp", + "b24YCiABKAUSDgoGd2VpZ2h0GAsgASgFEg0KBWVfZV90GAwgASgFEg0KBWNs", + "YXNzGA0gASgFEh0KFWNoYXJhY3Rlcl9hdHRhY2tfdHlwZRgOIAEoBRIaChJz", + "ZWFyY2hfdGFyZ2V0X3R5cGUYDyABKAUSDwoHYXRrX3NwZBgQIAEoBRIQCght", + "b3ZfdHlwZRgRIAEoBRIQCgh3YWxrX3NwZBgSIAEoBRIPCgdydW5fc3BkGBMg", + "ASgFEhIKCnNwX3J1bl9zcGQYFCABKAUSEQoJdHJhbnNfc3BkGBUgASgFEhwK", + "FHdhbGtfdG9fcnVuX2R1cmF0aW9uGBYgASgFEigKIGRvZGdlX3RvX3J1bl9h", + "Y2NlbGVyYXRpb25fb3Jfbm90GBcgASgIEg8KB21vdl9hY2MYGCABKAUSDwoH", + "cm90X3NwZBgZIAEoBRIPCgdyb3RfYWNjGBogASgFEhIKCnZpc2lvbl9kZWcY", + "GyABKAUSEgoKdmlzaW9uX3JuZxgcIAEoBRIZChF2aXNpb25fYXR0YWNrX3Ju", + "ZxgdIAEoBRIQCghoZWFyX3JuZxgeIAEoBRIXCg9oZWFyX2F0dGFja19ybmcY", + "HyABKAUSFQoNcmFpc2VfZ3VuX3JuZxggIAEoBRITCgtidWxsZXRfdHlwZRgh", + "IAEoBRIMCgRhbW1vGCIgASgFEg4KBmFfaV9pZBgjIAEoBRIVCg1ub3JtYWxf", + "YXRrX2lkGCQgASgFEhAKCGRvZGdlX2lkGCUgASgFEhAKCHNraWxsX2lkGCYg", + "ASgFEhgKEHNwZWNpYWxfc2tpbGxfaWQYJyABKAUSEwoLdWx0aW1hdGVfaWQY", + "KCABKAUSFQoNYXNzaXN0X2FfaV9pZBgpIAEoBRIcChRhc3Npc3Rfbm9ybWFs", + "X2F0a19pZBgqIAEoBRIXCg9hc3Npc3RfZG9kZ2VfaWQYKyABKAUSFwoPYXNz", + "aXN0X3NraWxsX2lkGCwgASgFEh8KF2Fzc2lzdF9zcGVjaWFsX3NraWxsX2lk", + "GC0gASgFEhoKEmFzc2lzdF91bHRpbWF0ZV9pZBguIAEoBRIXCg90YWxlbnRf", + "c2tpbGxfaWQYLyABKAUSIgoaYXNzaXN0X3NraWxsX29uX3N0YWdlX3R5cGUY", + "MCABKAUSGgoSYXNzaXN0X3NraWxsX2FuZ2xlGDEgASgFEhsKE2Fzc2lzdF9z", + "a2lsbF9yYWRpdXMYMiABKAUSKQohYXNzaXN0X3NraWxsX29uX3N0YWdlX29y", + "aWVudGF0aW9uGDMgASgFEiUKHWFzc2lzdF91bHRpbWF0ZV9vbl9zdGFnZV90", + "eXBlGDQgASgFEh0KFWFzc2lzdF91bHRpbWF0ZV9hbmdsZRg1IAEoBRIeChZh", + "c3Npc3RfdWx0aW1hdGVfcmFkaXVzGDYgASgFEiwKJGFzc2lzdF91bHRpbWF0", + "ZV9vbl9zdGFnZV9vcmllbnRhdGlvbhg3IAEoBRISCgpzd2l0Y2hfY19kGDgg", + "ASgFEhkKEWVuZXJneV9jb252X3JhdGlvGDkgASgFEhkKEWVuZXJneV9lZmZp", + "Y2llbmN5GDogASgFEhQKDGZyYWdtZW50c19pZBg7IAEoBRIVCg10cmFuc2Zv", + "cm1fcXR5GDwgASgFEhcKD3JlY3J1aXRtZW50X3F0eRg9IAEoBRIUCgxhdHRy", + "aWJ1dGVfaWQYPiABKAkSGQoRcHJlc2VudHNfdHJhaXRfaWQYPyABKAUSHAoU", + "c2tpbGxzX3VwZ3JhZGVfZ3JvdXAYQCADKAVCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Character), global::Nova.Client.Character.Parser, new[]{ "Id", "Name", "Visible", "Available", "Grade", "DefaultSkinId", "AdvanceSkinId", "AdvanceGroup", "AdvanceSkinUnlockLevel", "Faction", "Weight", "EET", "Class", "CharacterAttackType", "SearchTargetType", "AtkSpd", "MovType", "WalkSpd", "RunSpd", "SpRunSpd", "TransSpd", "WalkToRunDuration", "DodgeToRunAccelerationOrNot", "MovAcc", "RotSpd", "RotAcc", "VisionDeg", "VisionRng", "VisionAttackRng", "HearRng", "HearAttackRng", "RaiseGunRng", "BulletType", "Ammo", "AIId", "NormalAtkId", "DodgeId", "SkillId", "SpecialSkillId", "UltimateId", "AssistAIId", "AssistNormalAtkId", "AssistDodgeId", "AssistSkillId", "AssistSpecialSkillId", "AssistUltimateId", "TalentSkillId", "AssistSkillOnStageType", "AssistSkillAngle", "AssistSkillRadius", "AssistSkillOnStageOrientation", "AssistUltimateOnStageType", "AssistUltimateAngle", "AssistUltimateRadius", "AssistUltimateOnStageOrientation", "SwitchCD", "EnergyConvRatio", "EnergyEfficiency", "FragmentsId", "TransformQty", "RecruitmentQty", "AttributeId", "PresentsTraitId", "SkillsUpgradeGroup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Character : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Character()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Character() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Character(Character other) : this() { + id_ = other.id_; + name_ = other.name_; + visible_ = other.visible_; + available_ = other.available_; + grade_ = other.grade_; + defaultSkinId_ = other.defaultSkinId_; + advanceSkinId_ = other.advanceSkinId_; + advanceGroup_ = other.advanceGroup_; + advanceSkinUnlockLevel_ = other.advanceSkinUnlockLevel_; + faction_ = other.faction_; + weight_ = other.weight_; + eET_ = other.eET_; + class_ = other.class_; + characterAttackType_ = other.characterAttackType_; + searchTargetType_ = other.searchTargetType_; + atkSpd_ = other.atkSpd_; + movType_ = other.movType_; + walkSpd_ = other.walkSpd_; + runSpd_ = other.runSpd_; + spRunSpd_ = other.spRunSpd_; + transSpd_ = other.transSpd_; + walkToRunDuration_ = other.walkToRunDuration_; + dodgeToRunAccelerationOrNot_ = other.dodgeToRunAccelerationOrNot_; + movAcc_ = other.movAcc_; + rotSpd_ = other.rotSpd_; + rotAcc_ = other.rotAcc_; + visionDeg_ = other.visionDeg_; + visionRng_ = other.visionRng_; + visionAttackRng_ = other.visionAttackRng_; + hearRng_ = other.hearRng_; + hearAttackRng_ = other.hearAttackRng_; + raiseGunRng_ = other.raiseGunRng_; + bulletType_ = other.bulletType_; + ammo_ = other.ammo_; + aIId_ = other.aIId_; + normalAtkId_ = other.normalAtkId_; + dodgeId_ = other.dodgeId_; + skillId_ = other.skillId_; + specialSkillId_ = other.specialSkillId_; + ultimateId_ = other.ultimateId_; + assistAIId_ = other.assistAIId_; + assistNormalAtkId_ = other.assistNormalAtkId_; + assistDodgeId_ = other.assistDodgeId_; + assistSkillId_ = other.assistSkillId_; + assistSpecialSkillId_ = other.assistSpecialSkillId_; + assistUltimateId_ = other.assistUltimateId_; + talentSkillId_ = other.talentSkillId_; + assistSkillOnStageType_ = other.assistSkillOnStageType_; + assistSkillAngle_ = other.assistSkillAngle_; + assistSkillRadius_ = other.assistSkillRadius_; + assistSkillOnStageOrientation_ = other.assistSkillOnStageOrientation_; + assistUltimateOnStageType_ = other.assistUltimateOnStageType_; + assistUltimateAngle_ = other.assistUltimateAngle_; + assistUltimateRadius_ = other.assistUltimateRadius_; + assistUltimateOnStageOrientation_ = other.assistUltimateOnStageOrientation_; + switchCD_ = other.switchCD_; + energyConvRatio_ = other.energyConvRatio_; + energyEfficiency_ = other.energyEfficiency_; + fragmentsId_ = other.fragmentsId_; + transformQty_ = other.transformQty_; + recruitmentQty_ = other.recruitmentQty_; + attributeId_ = other.attributeId_; + presentsTraitId_ = other.presentsTraitId_; + skillsUpgradeGroup_ = other.skillsUpgradeGroup_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Character Clone() { + return new Character(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "visible" field. + public const int VisibleFieldNumber = 3; + private bool visible_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Visible { + get { return visible_; } + set { + visible_ = value; + } + } + + /// Field number for the "available" field. + public const int AvailableFieldNumber = 4; + private bool available_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Available { + get { return available_; } + set { + available_ = value; + } + } + + /// Field number for the "grade" field. + public const int GradeFieldNumber = 5; + private int grade_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Grade { + get { return grade_; } + set { + grade_ = value; + } + } + + /// Field number for the "default_skin_id" field. + public const int DefaultSkinIdFieldNumber = 6; + private int defaultSkinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefaultSkinId { + get { return defaultSkinId_; } + set { + defaultSkinId_ = value; + } + } + + /// Field number for the "advance_skin_id" field. + public const int AdvanceSkinIdFieldNumber = 7; + private int advanceSkinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdvanceSkinId { + get { return advanceSkinId_; } + set { + advanceSkinId_ = value; + } + } + + /// Field number for the "advance_group" field. + public const int AdvanceGroupFieldNumber = 8; + private int advanceGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdvanceGroup { + get { return advanceGroup_; } + set { + advanceGroup_ = value; + } + } + + /// Field number for the "advance_skin_unlock_level" field. + public const int AdvanceSkinUnlockLevelFieldNumber = 9; + private int advanceSkinUnlockLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdvanceSkinUnlockLevel { + get { return advanceSkinUnlockLevel_; } + set { + advanceSkinUnlockLevel_ = value; + } + } + + /// Field number for the "faction" field. + public const int FactionFieldNumber = 10; + private int faction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Faction { + get { return faction_; } + set { + faction_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 11; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 12; + private int eET_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EET { + get { return eET_; } + set { + eET_ = value; + } + } + + /// Field number for the "class" field. + public const int ClassFieldNumber = 13; + private int class_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Class { + get { return class_; } + set { + class_ = value; + } + } + + /// Field number for the "character_attack_type" field. + public const int CharacterAttackTypeFieldNumber = 14; + private int characterAttackType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterAttackType { + get { return characterAttackType_; } + set { + characterAttackType_ = value; + } + } + + /// Field number for the "search_target_type" field. + public const int SearchTargetTypeFieldNumber = 15; + private int searchTargetType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SearchTargetType { + get { return searchTargetType_; } + set { + searchTargetType_ = value; + } + } + + /// Field number for the "atk_spd" field. + public const int AtkSpdFieldNumber = 16; + private int atkSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AtkSpd { + get { return atkSpd_; } + set { + atkSpd_ = value; + } + } + + /// Field number for the "mov_type" field. + public const int MovTypeFieldNumber = 17; + private int movType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovType { + get { return movType_; } + set { + movType_ = value; + } + } + + /// Field number for the "walk_spd" field. + public const int WalkSpdFieldNumber = 18; + private int walkSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WalkSpd { + get { return walkSpd_; } + set { + walkSpd_ = value; + } + } + + /// Field number for the "run_spd" field. + public const int RunSpdFieldNumber = 19; + private int runSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RunSpd { + get { return runSpd_; } + set { + runSpd_ = value; + } + } + + /// Field number for the "sp_run_spd" field. + public const int SpRunSpdFieldNumber = 20; + private int spRunSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpRunSpd { + get { return spRunSpd_; } + set { + spRunSpd_ = value; + } + } + + /// Field number for the "trans_spd" field. + public const int TransSpdFieldNumber = 21; + private int transSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TransSpd { + get { return transSpd_; } + set { + transSpd_ = value; + } + } + + /// Field number for the "walk_to_run_duration" field. + public const int WalkToRunDurationFieldNumber = 22; + private int walkToRunDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WalkToRunDuration { + get { return walkToRunDuration_; } + set { + walkToRunDuration_ = value; + } + } + + /// Field number for the "dodge_to_run_acceleration_or_not" field. + public const int DodgeToRunAccelerationOrNotFieldNumber = 23; + private bool dodgeToRunAccelerationOrNot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DodgeToRunAccelerationOrNot { + get { return dodgeToRunAccelerationOrNot_; } + set { + dodgeToRunAccelerationOrNot_ = value; + } + } + + /// Field number for the "mov_acc" field. + public const int MovAccFieldNumber = 24; + private int movAcc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovAcc { + get { return movAcc_; } + set { + movAcc_ = value; + } + } + + /// Field number for the "rot_spd" field. + public const int RotSpdFieldNumber = 25; + private int rotSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RotSpd { + get { return rotSpd_; } + set { + rotSpd_ = value; + } + } + + /// Field number for the "rot_acc" field. + public const int RotAccFieldNumber = 26; + private int rotAcc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RotAcc { + get { return rotAcc_; } + set { + rotAcc_ = value; + } + } + + /// Field number for the "vision_deg" field. + public const int VisionDegFieldNumber = 27; + private int visionDeg_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionDeg { + get { return visionDeg_; } + set { + visionDeg_ = value; + } + } + + /// Field number for the "vision_rng" field. + public const int VisionRngFieldNumber = 28; + private int visionRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionRng { + get { return visionRng_; } + set { + visionRng_ = value; + } + } + + /// Field number for the "vision_attack_rng" field. + public const int VisionAttackRngFieldNumber = 29; + private int visionAttackRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionAttackRng { + get { return visionAttackRng_; } + set { + visionAttackRng_ = value; + } + } + + /// Field number for the "hear_rng" field. + public const int HearRngFieldNumber = 30; + private int hearRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HearRng { + get { return hearRng_; } + set { + hearRng_ = value; + } + } + + /// Field number for the "hear_attack_rng" field. + public const int HearAttackRngFieldNumber = 31; + private int hearAttackRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HearAttackRng { + get { return hearAttackRng_; } + set { + hearAttackRng_ = value; + } + } + + /// Field number for the "raise_gun_rng" field. + public const int RaiseGunRngFieldNumber = 32; + private int raiseGunRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RaiseGunRng { + get { return raiseGunRng_; } + set { + raiseGunRng_ = value; + } + } + + /// Field number for the "bullet_type" field. + public const int BulletTypeFieldNumber = 33; + private int bulletType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BulletType { + get { return bulletType_; } + set { + bulletType_ = value; + } + } + + /// Field number for the "ammo" field. + public const int AmmoFieldNumber = 34; + private int ammo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Ammo { + get { return ammo_; } + set { + ammo_ = value; + } + } + + /// Field number for the "a_i_id" field. + public const int AIIdFieldNumber = 35; + private int aIId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AIId { + get { return aIId_; } + set { + aIId_ = value; + } + } + + /// Field number for the "normal_atk_id" field. + public const int NormalAtkIdFieldNumber = 36; + private int normalAtkId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalAtkId { + get { return normalAtkId_; } + set { + normalAtkId_ = value; + } + } + + /// Field number for the "dodge_id" field. + public const int DodgeIdFieldNumber = 37; + private int dodgeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DodgeId { + get { return dodgeId_; } + set { + dodgeId_ = value; + } + } + + /// Field number for the "skill_id" field. + public const int SkillIdFieldNumber = 38; + private int skillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillId { + get { return skillId_; } + set { + skillId_ = value; + } + } + + /// Field number for the "special_skill_id" field. + public const int SpecialSkillIdFieldNumber = 39; + private int specialSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpecialSkillId { + get { return specialSkillId_; } + set { + specialSkillId_ = value; + } + } + + /// Field number for the "ultimate_id" field. + public const int UltimateIdFieldNumber = 40; + private int ultimateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltimateId { + get { return ultimateId_; } + set { + ultimateId_ = value; + } + } + + /// Field number for the "assist_a_i_id" field. + public const int AssistAIIdFieldNumber = 41; + private int assistAIId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistAIId { + get { return assistAIId_; } + set { + assistAIId_ = value; + } + } + + /// Field number for the "assist_normal_atk_id" field. + public const int AssistNormalAtkIdFieldNumber = 42; + private int assistNormalAtkId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistNormalAtkId { + get { return assistNormalAtkId_; } + set { + assistNormalAtkId_ = value; + } + } + + /// Field number for the "assist_dodge_id" field. + public const int AssistDodgeIdFieldNumber = 43; + private int assistDodgeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistDodgeId { + get { return assistDodgeId_; } + set { + assistDodgeId_ = value; + } + } + + /// Field number for the "assist_skill_id" field. + public const int AssistSkillIdFieldNumber = 44; + private int assistSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistSkillId { + get { return assistSkillId_; } + set { + assistSkillId_ = value; + } + } + + /// Field number for the "assist_special_skill_id" field. + public const int AssistSpecialSkillIdFieldNumber = 45; + private int assistSpecialSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistSpecialSkillId { + get { return assistSpecialSkillId_; } + set { + assistSpecialSkillId_ = value; + } + } + + /// Field number for the "assist_ultimate_id" field. + public const int AssistUltimateIdFieldNumber = 46; + private int assistUltimateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistUltimateId { + get { return assistUltimateId_; } + set { + assistUltimateId_ = value; + } + } + + /// Field number for the "talent_skill_id" field. + public const int TalentSkillIdFieldNumber = 47; + private int talentSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TalentSkillId { + get { return talentSkillId_; } + set { + talentSkillId_ = value; + } + } + + /// Field number for the "assist_skill_on_stage_type" field. + public const int AssistSkillOnStageTypeFieldNumber = 48; + private int assistSkillOnStageType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistSkillOnStageType { + get { return assistSkillOnStageType_; } + set { + assistSkillOnStageType_ = value; + } + } + + /// Field number for the "assist_skill_angle" field. + public const int AssistSkillAngleFieldNumber = 49; + private int assistSkillAngle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistSkillAngle { + get { return assistSkillAngle_; } + set { + assistSkillAngle_ = value; + } + } + + /// Field number for the "assist_skill_radius" field. + public const int AssistSkillRadiusFieldNumber = 50; + private int assistSkillRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistSkillRadius { + get { return assistSkillRadius_; } + set { + assistSkillRadius_ = value; + } + } + + /// Field number for the "assist_skill_on_stage_orientation" field. + public const int AssistSkillOnStageOrientationFieldNumber = 51; + private int assistSkillOnStageOrientation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistSkillOnStageOrientation { + get { return assistSkillOnStageOrientation_; } + set { + assistSkillOnStageOrientation_ = value; + } + } + + /// Field number for the "assist_ultimate_on_stage_type" field. + public const int AssistUltimateOnStageTypeFieldNumber = 52; + private int assistUltimateOnStageType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistUltimateOnStageType { + get { return assistUltimateOnStageType_; } + set { + assistUltimateOnStageType_ = value; + } + } + + /// Field number for the "assist_ultimate_angle" field. + public const int AssistUltimateAngleFieldNumber = 53; + private int assistUltimateAngle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistUltimateAngle { + get { return assistUltimateAngle_; } + set { + assistUltimateAngle_ = value; + } + } + + /// Field number for the "assist_ultimate_radius" field. + public const int AssistUltimateRadiusFieldNumber = 54; + private int assistUltimateRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistUltimateRadius { + get { return assistUltimateRadius_; } + set { + assistUltimateRadius_ = value; + } + } + + /// Field number for the "assist_ultimate_on_stage_orientation" field. + public const int AssistUltimateOnStageOrientationFieldNumber = 55; + private int assistUltimateOnStageOrientation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AssistUltimateOnStageOrientation { + get { return assistUltimateOnStageOrientation_; } + set { + assistUltimateOnStageOrientation_ = value; + } + } + + /// Field number for the "switch_c_d" field. + public const int SwitchCDFieldNumber = 56; + private int switchCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SwitchCD { + get { return switchCD_; } + set { + switchCD_ = value; + } + } + + /// Field number for the "energy_conv_ratio" field. + public const int EnergyConvRatioFieldNumber = 57; + private int energyConvRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyConvRatio { + get { return energyConvRatio_; } + set { + energyConvRatio_ = value; + } + } + + /// Field number for the "energy_efficiency" field. + public const int EnergyEfficiencyFieldNumber = 58; + private int energyEfficiency_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyEfficiency { + get { return energyEfficiency_; } + set { + energyEfficiency_ = value; + } + } + + /// Field number for the "fragments_id" field. + public const int FragmentsIdFieldNumber = 59; + private int fragmentsId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FragmentsId { + get { return fragmentsId_; } + set { + fragmentsId_ = value; + } + } + + /// Field number for the "transform_qty" field. + public const int TransformQtyFieldNumber = 60; + private int transformQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TransformQty { + get { return transformQty_; } + set { + transformQty_ = value; + } + } + + /// Field number for the "recruitment_qty" field. + public const int RecruitmentQtyFieldNumber = 61; + private int recruitmentQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecruitmentQty { + get { return recruitmentQty_; } + set { + recruitmentQty_ = value; + } + } + + /// Field number for the "attribute_id" field. + public const int AttributeIdFieldNumber = 62; + private string attributeId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AttributeId { + get { return attributeId_; } + set { + attributeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "presents_trait_id" field. + public const int PresentsTraitIdFieldNumber = 63; + private int presentsTraitId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PresentsTraitId { + get { return presentsTraitId_; } + set { + presentsTraitId_ = value; + } + } + + /// Field number for the "skills_upgrade_group" field. + public const int SkillsUpgradeGroupFieldNumber = 64; + private static readonly pb::FieldCodec _repeated_skillsUpgradeGroup_codec + = pb::FieldCodec.ForInt32(514); + private readonly pbc::RepeatedField skillsUpgradeGroup_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkillsUpgradeGroup { + get { return skillsUpgradeGroup_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Character); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Character other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Visible != other.Visible) return false; + if (Available != other.Available) return false; + if (Grade != other.Grade) return false; + if (DefaultSkinId != other.DefaultSkinId) return false; + if (AdvanceSkinId != other.AdvanceSkinId) return false; + if (AdvanceGroup != other.AdvanceGroup) return false; + if (AdvanceSkinUnlockLevel != other.AdvanceSkinUnlockLevel) return false; + if (Faction != other.Faction) return false; + if (Weight != other.Weight) return false; + if (EET != other.EET) return false; + if (Class != other.Class) return false; + if (CharacterAttackType != other.CharacterAttackType) return false; + if (SearchTargetType != other.SearchTargetType) return false; + if (AtkSpd != other.AtkSpd) return false; + if (MovType != other.MovType) return false; + if (WalkSpd != other.WalkSpd) return false; + if (RunSpd != other.RunSpd) return false; + if (SpRunSpd != other.SpRunSpd) return false; + if (TransSpd != other.TransSpd) return false; + if (WalkToRunDuration != other.WalkToRunDuration) return false; + if (DodgeToRunAccelerationOrNot != other.DodgeToRunAccelerationOrNot) return false; + if (MovAcc != other.MovAcc) return false; + if (RotSpd != other.RotSpd) return false; + if (RotAcc != other.RotAcc) return false; + if (VisionDeg != other.VisionDeg) return false; + if (VisionRng != other.VisionRng) return false; + if (VisionAttackRng != other.VisionAttackRng) return false; + if (HearRng != other.HearRng) return false; + if (HearAttackRng != other.HearAttackRng) return false; + if (RaiseGunRng != other.RaiseGunRng) return false; + if (BulletType != other.BulletType) return false; + if (Ammo != other.Ammo) return false; + if (AIId != other.AIId) return false; + if (NormalAtkId != other.NormalAtkId) return false; + if (DodgeId != other.DodgeId) return false; + if (SkillId != other.SkillId) return false; + if (SpecialSkillId != other.SpecialSkillId) return false; + if (UltimateId != other.UltimateId) return false; + if (AssistAIId != other.AssistAIId) return false; + if (AssistNormalAtkId != other.AssistNormalAtkId) return false; + if (AssistDodgeId != other.AssistDodgeId) return false; + if (AssistSkillId != other.AssistSkillId) return false; + if (AssistSpecialSkillId != other.AssistSpecialSkillId) return false; + if (AssistUltimateId != other.AssistUltimateId) return false; + if (TalentSkillId != other.TalentSkillId) return false; + if (AssistSkillOnStageType != other.AssistSkillOnStageType) return false; + if (AssistSkillAngle != other.AssistSkillAngle) return false; + if (AssistSkillRadius != other.AssistSkillRadius) return false; + if (AssistSkillOnStageOrientation != other.AssistSkillOnStageOrientation) return false; + if (AssistUltimateOnStageType != other.AssistUltimateOnStageType) return false; + if (AssistUltimateAngle != other.AssistUltimateAngle) return false; + if (AssistUltimateRadius != other.AssistUltimateRadius) return false; + if (AssistUltimateOnStageOrientation != other.AssistUltimateOnStageOrientation) return false; + if (SwitchCD != other.SwitchCD) return false; + if (EnergyConvRatio != other.EnergyConvRatio) return false; + if (EnergyEfficiency != other.EnergyEfficiency) return false; + if (FragmentsId != other.FragmentsId) return false; + if (TransformQty != other.TransformQty) return false; + if (RecruitmentQty != other.RecruitmentQty) return false; + if (AttributeId != other.AttributeId) return false; + if (PresentsTraitId != other.PresentsTraitId) return false; + if(!skillsUpgradeGroup_.Equals(other.skillsUpgradeGroup_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Visible != false) hash ^= Visible.GetHashCode(); + if (Available != false) hash ^= Available.GetHashCode(); + if (Grade != 0) hash ^= Grade.GetHashCode(); + if (DefaultSkinId != 0) hash ^= DefaultSkinId.GetHashCode(); + if (AdvanceSkinId != 0) hash ^= AdvanceSkinId.GetHashCode(); + if (AdvanceGroup != 0) hash ^= AdvanceGroup.GetHashCode(); + if (AdvanceSkinUnlockLevel != 0) hash ^= AdvanceSkinUnlockLevel.GetHashCode(); + if (Faction != 0) hash ^= Faction.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + if (EET != 0) hash ^= EET.GetHashCode(); + if (Class != 0) hash ^= Class.GetHashCode(); + if (CharacterAttackType != 0) hash ^= CharacterAttackType.GetHashCode(); + if (SearchTargetType != 0) hash ^= SearchTargetType.GetHashCode(); + if (AtkSpd != 0) hash ^= AtkSpd.GetHashCode(); + if (MovType != 0) hash ^= MovType.GetHashCode(); + if (WalkSpd != 0) hash ^= WalkSpd.GetHashCode(); + if (RunSpd != 0) hash ^= RunSpd.GetHashCode(); + if (SpRunSpd != 0) hash ^= SpRunSpd.GetHashCode(); + if (TransSpd != 0) hash ^= TransSpd.GetHashCode(); + if (WalkToRunDuration != 0) hash ^= WalkToRunDuration.GetHashCode(); + if (DodgeToRunAccelerationOrNot != false) hash ^= DodgeToRunAccelerationOrNot.GetHashCode(); + if (MovAcc != 0) hash ^= MovAcc.GetHashCode(); + if (RotSpd != 0) hash ^= RotSpd.GetHashCode(); + if (RotAcc != 0) hash ^= RotAcc.GetHashCode(); + if (VisionDeg != 0) hash ^= VisionDeg.GetHashCode(); + if (VisionRng != 0) hash ^= VisionRng.GetHashCode(); + if (VisionAttackRng != 0) hash ^= VisionAttackRng.GetHashCode(); + if (HearRng != 0) hash ^= HearRng.GetHashCode(); + if (HearAttackRng != 0) hash ^= HearAttackRng.GetHashCode(); + if (RaiseGunRng != 0) hash ^= RaiseGunRng.GetHashCode(); + if (BulletType != 0) hash ^= BulletType.GetHashCode(); + if (Ammo != 0) hash ^= Ammo.GetHashCode(); + if (AIId != 0) hash ^= AIId.GetHashCode(); + if (NormalAtkId != 0) hash ^= NormalAtkId.GetHashCode(); + if (DodgeId != 0) hash ^= DodgeId.GetHashCode(); + if (SkillId != 0) hash ^= SkillId.GetHashCode(); + if (SpecialSkillId != 0) hash ^= SpecialSkillId.GetHashCode(); + if (UltimateId != 0) hash ^= UltimateId.GetHashCode(); + if (AssistAIId != 0) hash ^= AssistAIId.GetHashCode(); + if (AssistNormalAtkId != 0) hash ^= AssistNormalAtkId.GetHashCode(); + if (AssistDodgeId != 0) hash ^= AssistDodgeId.GetHashCode(); + if (AssistSkillId != 0) hash ^= AssistSkillId.GetHashCode(); + if (AssistSpecialSkillId != 0) hash ^= AssistSpecialSkillId.GetHashCode(); + if (AssistUltimateId != 0) hash ^= AssistUltimateId.GetHashCode(); + if (TalentSkillId != 0) hash ^= TalentSkillId.GetHashCode(); + if (AssistSkillOnStageType != 0) hash ^= AssistSkillOnStageType.GetHashCode(); + if (AssistSkillAngle != 0) hash ^= AssistSkillAngle.GetHashCode(); + if (AssistSkillRadius != 0) hash ^= AssistSkillRadius.GetHashCode(); + if (AssistSkillOnStageOrientation != 0) hash ^= AssistSkillOnStageOrientation.GetHashCode(); + if (AssistUltimateOnStageType != 0) hash ^= AssistUltimateOnStageType.GetHashCode(); + if (AssistUltimateAngle != 0) hash ^= AssistUltimateAngle.GetHashCode(); + if (AssistUltimateRadius != 0) hash ^= AssistUltimateRadius.GetHashCode(); + if (AssistUltimateOnStageOrientation != 0) hash ^= AssistUltimateOnStageOrientation.GetHashCode(); + if (SwitchCD != 0) hash ^= SwitchCD.GetHashCode(); + if (EnergyConvRatio != 0) hash ^= EnergyConvRatio.GetHashCode(); + if (EnergyEfficiency != 0) hash ^= EnergyEfficiency.GetHashCode(); + if (FragmentsId != 0) hash ^= FragmentsId.GetHashCode(); + if (TransformQty != 0) hash ^= TransformQty.GetHashCode(); + if (RecruitmentQty != 0) hash ^= RecruitmentQty.GetHashCode(); + if (AttributeId.Length != 0) hash ^= AttributeId.GetHashCode(); + if (PresentsTraitId != 0) hash ^= PresentsTraitId.GetHashCode(); + hash ^= skillsUpgradeGroup_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Visible != false) { + output.WriteRawTag(24); + output.WriteBool(Visible); + } + if (Available != false) { + output.WriteRawTag(32); + output.WriteBool(Available); + } + if (Grade != 0) { + output.WriteRawTag(40); + output.WriteInt32(Grade); + } + if (DefaultSkinId != 0) { + output.WriteRawTag(48); + output.WriteInt32(DefaultSkinId); + } + if (AdvanceSkinId != 0) { + output.WriteRawTag(56); + output.WriteInt32(AdvanceSkinId); + } + if (AdvanceGroup != 0) { + output.WriteRawTag(64); + output.WriteInt32(AdvanceGroup); + } + if (AdvanceSkinUnlockLevel != 0) { + output.WriteRawTag(72); + output.WriteInt32(AdvanceSkinUnlockLevel); + } + if (Faction != 0) { + output.WriteRawTag(80); + output.WriteInt32(Faction); + } + if (Weight != 0) { + output.WriteRawTag(88); + output.WriteInt32(Weight); + } + if (EET != 0) { + output.WriteRawTag(96); + output.WriteInt32(EET); + } + if (Class != 0) { + output.WriteRawTag(104); + output.WriteInt32(Class); + } + if (CharacterAttackType != 0) { + output.WriteRawTag(112); + output.WriteInt32(CharacterAttackType); + } + if (SearchTargetType != 0) { + output.WriteRawTag(120); + output.WriteInt32(SearchTargetType); + } + if (AtkSpd != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AtkSpd); + } + if (MovType != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(MovType); + } + if (WalkSpd != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(WalkSpd); + } + if (RunSpd != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(RunSpd); + } + if (SpRunSpd != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(SpRunSpd); + } + if (TransSpd != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(TransSpd); + } + if (WalkToRunDuration != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(WalkToRunDuration); + } + if (DodgeToRunAccelerationOrNot != false) { + output.WriteRawTag(184, 1); + output.WriteBool(DodgeToRunAccelerationOrNot); + } + if (MovAcc != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(MovAcc); + } + if (RotSpd != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(RotSpd); + } + if (RotAcc != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(RotAcc); + } + if (VisionDeg != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(VisionDeg); + } + if (VisionRng != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(VisionRng); + } + if (VisionAttackRng != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(VisionAttackRng); + } + if (HearRng != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(HearRng); + } + if (HearAttackRng != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(HearAttackRng); + } + if (RaiseGunRng != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(RaiseGunRng); + } + if (BulletType != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(BulletType); + } + if (Ammo != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(Ammo); + } + if (AIId != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(AIId); + } + if (NormalAtkId != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(NormalAtkId); + } + if (DodgeId != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(DodgeId); + } + if (SkillId != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(SkillId); + } + if (SpecialSkillId != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(SpecialSkillId); + } + if (UltimateId != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(UltimateId); + } + if (AssistAIId != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(AssistAIId); + } + if (AssistNormalAtkId != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(AssistNormalAtkId); + } + if (AssistDodgeId != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(AssistDodgeId); + } + if (AssistSkillId != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(AssistSkillId); + } + if (AssistSpecialSkillId != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(AssistSpecialSkillId); + } + if (AssistUltimateId != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(AssistUltimateId); + } + if (TalentSkillId != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(TalentSkillId); + } + if (AssistSkillOnStageType != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(AssistSkillOnStageType); + } + if (AssistSkillAngle != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(AssistSkillAngle); + } + if (AssistSkillRadius != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(AssistSkillRadius); + } + if (AssistSkillOnStageOrientation != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(AssistSkillOnStageOrientation); + } + if (AssistUltimateOnStageType != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(AssistUltimateOnStageType); + } + if (AssistUltimateAngle != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(AssistUltimateAngle); + } + if (AssistUltimateRadius != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(AssistUltimateRadius); + } + if (AssistUltimateOnStageOrientation != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(AssistUltimateOnStageOrientation); + } + if (SwitchCD != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(SwitchCD); + } + if (EnergyConvRatio != 0) { + output.WriteRawTag(200, 3); + output.WriteInt32(EnergyConvRatio); + } + if (EnergyEfficiency != 0) { + output.WriteRawTag(208, 3); + output.WriteInt32(EnergyEfficiency); + } + if (FragmentsId != 0) { + output.WriteRawTag(216, 3); + output.WriteInt32(FragmentsId); + } + if (TransformQty != 0) { + output.WriteRawTag(224, 3); + output.WriteInt32(TransformQty); + } + if (RecruitmentQty != 0) { + output.WriteRawTag(232, 3); + output.WriteInt32(RecruitmentQty); + } + if (AttributeId.Length != 0) { + output.WriteRawTag(242, 3); + output.WriteString(AttributeId); + } + if (PresentsTraitId != 0) { + output.WriteRawTag(248, 3); + output.WriteInt32(PresentsTraitId); + } + skillsUpgradeGroup_.WriteTo(output, _repeated_skillsUpgradeGroup_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Visible != false) { + output.WriteRawTag(24); + output.WriteBool(Visible); + } + if (Available != false) { + output.WriteRawTag(32); + output.WriteBool(Available); + } + if (Grade != 0) { + output.WriteRawTag(40); + output.WriteInt32(Grade); + } + if (DefaultSkinId != 0) { + output.WriteRawTag(48); + output.WriteInt32(DefaultSkinId); + } + if (AdvanceSkinId != 0) { + output.WriteRawTag(56); + output.WriteInt32(AdvanceSkinId); + } + if (AdvanceGroup != 0) { + output.WriteRawTag(64); + output.WriteInt32(AdvanceGroup); + } + if (AdvanceSkinUnlockLevel != 0) { + output.WriteRawTag(72); + output.WriteInt32(AdvanceSkinUnlockLevel); + } + if (Faction != 0) { + output.WriteRawTag(80); + output.WriteInt32(Faction); + } + if (Weight != 0) { + output.WriteRawTag(88); + output.WriteInt32(Weight); + } + if (EET != 0) { + output.WriteRawTag(96); + output.WriteInt32(EET); + } + if (Class != 0) { + output.WriteRawTag(104); + output.WriteInt32(Class); + } + if (CharacterAttackType != 0) { + output.WriteRawTag(112); + output.WriteInt32(CharacterAttackType); + } + if (SearchTargetType != 0) { + output.WriteRawTag(120); + output.WriteInt32(SearchTargetType); + } + if (AtkSpd != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AtkSpd); + } + if (MovType != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(MovType); + } + if (WalkSpd != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(WalkSpd); + } + if (RunSpd != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(RunSpd); + } + if (SpRunSpd != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(SpRunSpd); + } + if (TransSpd != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(TransSpd); + } + if (WalkToRunDuration != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(WalkToRunDuration); + } + if (DodgeToRunAccelerationOrNot != false) { + output.WriteRawTag(184, 1); + output.WriteBool(DodgeToRunAccelerationOrNot); + } + if (MovAcc != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(MovAcc); + } + if (RotSpd != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(RotSpd); + } + if (RotAcc != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(RotAcc); + } + if (VisionDeg != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(VisionDeg); + } + if (VisionRng != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(VisionRng); + } + if (VisionAttackRng != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(VisionAttackRng); + } + if (HearRng != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(HearRng); + } + if (HearAttackRng != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(HearAttackRng); + } + if (RaiseGunRng != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(RaiseGunRng); + } + if (BulletType != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(BulletType); + } + if (Ammo != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(Ammo); + } + if (AIId != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(AIId); + } + if (NormalAtkId != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(NormalAtkId); + } + if (DodgeId != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(DodgeId); + } + if (SkillId != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(SkillId); + } + if (SpecialSkillId != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(SpecialSkillId); + } + if (UltimateId != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(UltimateId); + } + if (AssistAIId != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(AssistAIId); + } + if (AssistNormalAtkId != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(AssistNormalAtkId); + } + if (AssistDodgeId != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(AssistDodgeId); + } + if (AssistSkillId != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(AssistSkillId); + } + if (AssistSpecialSkillId != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(AssistSpecialSkillId); + } + if (AssistUltimateId != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(AssistUltimateId); + } + if (TalentSkillId != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(TalentSkillId); + } + if (AssistSkillOnStageType != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(AssistSkillOnStageType); + } + if (AssistSkillAngle != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(AssistSkillAngle); + } + if (AssistSkillRadius != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(AssistSkillRadius); + } + if (AssistSkillOnStageOrientation != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(AssistSkillOnStageOrientation); + } + if (AssistUltimateOnStageType != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(AssistUltimateOnStageType); + } + if (AssistUltimateAngle != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(AssistUltimateAngle); + } + if (AssistUltimateRadius != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(AssistUltimateRadius); + } + if (AssistUltimateOnStageOrientation != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(AssistUltimateOnStageOrientation); + } + if (SwitchCD != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(SwitchCD); + } + if (EnergyConvRatio != 0) { + output.WriteRawTag(200, 3); + output.WriteInt32(EnergyConvRatio); + } + if (EnergyEfficiency != 0) { + output.WriteRawTag(208, 3); + output.WriteInt32(EnergyEfficiency); + } + if (FragmentsId != 0) { + output.WriteRawTag(216, 3); + output.WriteInt32(FragmentsId); + } + if (TransformQty != 0) { + output.WriteRawTag(224, 3); + output.WriteInt32(TransformQty); + } + if (RecruitmentQty != 0) { + output.WriteRawTag(232, 3); + output.WriteInt32(RecruitmentQty); + } + if (AttributeId.Length != 0) { + output.WriteRawTag(242, 3); + output.WriteString(AttributeId); + } + if (PresentsTraitId != 0) { + output.WriteRawTag(248, 3); + output.WriteInt32(PresentsTraitId); + } + skillsUpgradeGroup_.WriteTo(ref output, _repeated_skillsUpgradeGroup_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Visible != false) { + size += 1 + 1; + } + if (Available != false) { + size += 1 + 1; + } + if (Grade != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Grade); + } + if (DefaultSkinId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultSkinId); + } + if (AdvanceSkinId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdvanceSkinId); + } + if (AdvanceGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdvanceGroup); + } + if (AdvanceSkinUnlockLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdvanceSkinUnlockLevel); + } + if (Faction != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Faction); + } + if (Weight != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (EET != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EET); + } + if (Class != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Class); + } + if (CharacterAttackType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterAttackType); + } + if (SearchTargetType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SearchTargetType); + } + if (AtkSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AtkSpd); + } + if (MovType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MovType); + } + if (WalkSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WalkSpd); + } + if (RunSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RunSpd); + } + if (SpRunSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SpRunSpd); + } + if (TransSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TransSpd); + } + if (WalkToRunDuration != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WalkToRunDuration); + } + if (DodgeToRunAccelerationOrNot != false) { + size += 2 + 1; + } + if (MovAcc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MovAcc); + } + if (RotSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RotSpd); + } + if (RotAcc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RotAcc); + } + if (VisionDeg != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(VisionDeg); + } + if (VisionRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(VisionRng); + } + if (VisionAttackRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(VisionAttackRng); + } + if (HearRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HearRng); + } + if (HearAttackRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HearAttackRng); + } + if (RaiseGunRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RaiseGunRng); + } + if (BulletType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(BulletType); + } + if (Ammo != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Ammo); + } + if (AIId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AIId); + } + if (NormalAtkId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalAtkId); + } + if (DodgeId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DodgeId); + } + if (SkillId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillId); + } + if (SpecialSkillId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SpecialSkillId); + } + if (UltimateId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UltimateId); + } + if (AssistAIId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistAIId); + } + if (AssistNormalAtkId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistNormalAtkId); + } + if (AssistDodgeId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistDodgeId); + } + if (AssistSkillId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistSkillId); + } + if (AssistSpecialSkillId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistSpecialSkillId); + } + if (AssistUltimateId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistUltimateId); + } + if (TalentSkillId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TalentSkillId); + } + if (AssistSkillOnStageType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistSkillOnStageType); + } + if (AssistSkillAngle != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistSkillAngle); + } + if (AssistSkillRadius != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistSkillRadius); + } + if (AssistSkillOnStageOrientation != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistSkillOnStageOrientation); + } + if (AssistUltimateOnStageType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistUltimateOnStageType); + } + if (AssistUltimateAngle != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistUltimateAngle); + } + if (AssistUltimateRadius != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistUltimateRadius); + } + if (AssistUltimateOnStageOrientation != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AssistUltimateOnStageOrientation); + } + if (SwitchCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SwitchCD); + } + if (EnergyConvRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EnergyConvRatio); + } + if (EnergyEfficiency != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EnergyEfficiency); + } + if (FragmentsId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FragmentsId); + } + if (TransformQty != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TransformQty); + } + if (RecruitmentQty != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RecruitmentQty); + } + if (AttributeId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AttributeId); + } + if (PresentsTraitId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PresentsTraitId); + } + size += skillsUpgradeGroup_.CalculateSize(_repeated_skillsUpgradeGroup_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Character other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Visible != false) { + Visible = other.Visible; + } + if (other.Available != false) { + Available = other.Available; + } + if (other.Grade != 0) { + Grade = other.Grade; + } + if (other.DefaultSkinId != 0) { + DefaultSkinId = other.DefaultSkinId; + } + if (other.AdvanceSkinId != 0) { + AdvanceSkinId = other.AdvanceSkinId; + } + if (other.AdvanceGroup != 0) { + AdvanceGroup = other.AdvanceGroup; + } + if (other.AdvanceSkinUnlockLevel != 0) { + AdvanceSkinUnlockLevel = other.AdvanceSkinUnlockLevel; + } + if (other.Faction != 0) { + Faction = other.Faction; + } + if (other.Weight != 0) { + Weight = other.Weight; + } + if (other.EET != 0) { + EET = other.EET; + } + if (other.Class != 0) { + Class = other.Class; + } + if (other.CharacterAttackType != 0) { + CharacterAttackType = other.CharacterAttackType; + } + if (other.SearchTargetType != 0) { + SearchTargetType = other.SearchTargetType; + } + if (other.AtkSpd != 0) { + AtkSpd = other.AtkSpd; + } + if (other.MovType != 0) { + MovType = other.MovType; + } + if (other.WalkSpd != 0) { + WalkSpd = other.WalkSpd; + } + if (other.RunSpd != 0) { + RunSpd = other.RunSpd; + } + if (other.SpRunSpd != 0) { + SpRunSpd = other.SpRunSpd; + } + if (other.TransSpd != 0) { + TransSpd = other.TransSpd; + } + if (other.WalkToRunDuration != 0) { + WalkToRunDuration = other.WalkToRunDuration; + } + if (other.DodgeToRunAccelerationOrNot != false) { + DodgeToRunAccelerationOrNot = other.DodgeToRunAccelerationOrNot; + } + if (other.MovAcc != 0) { + MovAcc = other.MovAcc; + } + if (other.RotSpd != 0) { + RotSpd = other.RotSpd; + } + if (other.RotAcc != 0) { + RotAcc = other.RotAcc; + } + if (other.VisionDeg != 0) { + VisionDeg = other.VisionDeg; + } + if (other.VisionRng != 0) { + VisionRng = other.VisionRng; + } + if (other.VisionAttackRng != 0) { + VisionAttackRng = other.VisionAttackRng; + } + if (other.HearRng != 0) { + HearRng = other.HearRng; + } + if (other.HearAttackRng != 0) { + HearAttackRng = other.HearAttackRng; + } + if (other.RaiseGunRng != 0) { + RaiseGunRng = other.RaiseGunRng; + } + if (other.BulletType != 0) { + BulletType = other.BulletType; + } + if (other.Ammo != 0) { + Ammo = other.Ammo; + } + if (other.AIId != 0) { + AIId = other.AIId; + } + if (other.NormalAtkId != 0) { + NormalAtkId = other.NormalAtkId; + } + if (other.DodgeId != 0) { + DodgeId = other.DodgeId; + } + if (other.SkillId != 0) { + SkillId = other.SkillId; + } + if (other.SpecialSkillId != 0) { + SpecialSkillId = other.SpecialSkillId; + } + if (other.UltimateId != 0) { + UltimateId = other.UltimateId; + } + if (other.AssistAIId != 0) { + AssistAIId = other.AssistAIId; + } + if (other.AssistNormalAtkId != 0) { + AssistNormalAtkId = other.AssistNormalAtkId; + } + if (other.AssistDodgeId != 0) { + AssistDodgeId = other.AssistDodgeId; + } + if (other.AssistSkillId != 0) { + AssistSkillId = other.AssistSkillId; + } + if (other.AssistSpecialSkillId != 0) { + AssistSpecialSkillId = other.AssistSpecialSkillId; + } + if (other.AssistUltimateId != 0) { + AssistUltimateId = other.AssistUltimateId; + } + if (other.TalentSkillId != 0) { + TalentSkillId = other.TalentSkillId; + } + if (other.AssistSkillOnStageType != 0) { + AssistSkillOnStageType = other.AssistSkillOnStageType; + } + if (other.AssistSkillAngle != 0) { + AssistSkillAngle = other.AssistSkillAngle; + } + if (other.AssistSkillRadius != 0) { + AssistSkillRadius = other.AssistSkillRadius; + } + if (other.AssistSkillOnStageOrientation != 0) { + AssistSkillOnStageOrientation = other.AssistSkillOnStageOrientation; + } + if (other.AssistUltimateOnStageType != 0) { + AssistUltimateOnStageType = other.AssistUltimateOnStageType; + } + if (other.AssistUltimateAngle != 0) { + AssistUltimateAngle = other.AssistUltimateAngle; + } + if (other.AssistUltimateRadius != 0) { + AssistUltimateRadius = other.AssistUltimateRadius; + } + if (other.AssistUltimateOnStageOrientation != 0) { + AssistUltimateOnStageOrientation = other.AssistUltimateOnStageOrientation; + } + if (other.SwitchCD != 0) { + SwitchCD = other.SwitchCD; + } + if (other.EnergyConvRatio != 0) { + EnergyConvRatio = other.EnergyConvRatio; + } + if (other.EnergyEfficiency != 0) { + EnergyEfficiency = other.EnergyEfficiency; + } + if (other.FragmentsId != 0) { + FragmentsId = other.FragmentsId; + } + if (other.TransformQty != 0) { + TransformQty = other.TransformQty; + } + if (other.RecruitmentQty != 0) { + RecruitmentQty = other.RecruitmentQty; + } + if (other.AttributeId.Length != 0) { + AttributeId = other.AttributeId; + } + if (other.PresentsTraitId != 0) { + PresentsTraitId = other.PresentsTraitId; + } + skillsUpgradeGroup_.Add(other.skillsUpgradeGroup_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Visible = input.ReadBool(); + break; + } + case 32: { + Available = input.ReadBool(); + break; + } + case 40: { + Grade = input.ReadInt32(); + break; + } + case 48: { + DefaultSkinId = input.ReadInt32(); + break; + } + case 56: { + AdvanceSkinId = input.ReadInt32(); + break; + } + case 64: { + AdvanceGroup = input.ReadInt32(); + break; + } + case 72: { + AdvanceSkinUnlockLevel = input.ReadInt32(); + break; + } + case 80: { + Faction = input.ReadInt32(); + break; + } + case 88: { + Weight = input.ReadInt32(); + break; + } + case 96: { + EET = input.ReadInt32(); + break; + } + case 104: { + Class = input.ReadInt32(); + break; + } + case 112: { + CharacterAttackType = input.ReadInt32(); + break; + } + case 120: { + SearchTargetType = input.ReadInt32(); + break; + } + case 128: { + AtkSpd = input.ReadInt32(); + break; + } + case 136: { + MovType = input.ReadInt32(); + break; + } + case 144: { + WalkSpd = input.ReadInt32(); + break; + } + case 152: { + RunSpd = input.ReadInt32(); + break; + } + case 160: { + SpRunSpd = input.ReadInt32(); + break; + } + case 168: { + TransSpd = input.ReadInt32(); + break; + } + case 176: { + WalkToRunDuration = input.ReadInt32(); + break; + } + case 184: { + DodgeToRunAccelerationOrNot = input.ReadBool(); + break; + } + case 192: { + MovAcc = input.ReadInt32(); + break; + } + case 200: { + RotSpd = input.ReadInt32(); + break; + } + case 208: { + RotAcc = input.ReadInt32(); + break; + } + case 216: { + VisionDeg = input.ReadInt32(); + break; + } + case 224: { + VisionRng = input.ReadInt32(); + break; + } + case 232: { + VisionAttackRng = input.ReadInt32(); + break; + } + case 240: { + HearRng = input.ReadInt32(); + break; + } + case 248: { + HearAttackRng = input.ReadInt32(); + break; + } + case 256: { + RaiseGunRng = input.ReadInt32(); + break; + } + case 264: { + BulletType = input.ReadInt32(); + break; + } + case 272: { + Ammo = input.ReadInt32(); + break; + } + case 280: { + AIId = input.ReadInt32(); + break; + } + case 288: { + NormalAtkId = input.ReadInt32(); + break; + } + case 296: { + DodgeId = input.ReadInt32(); + break; + } + case 304: { + SkillId = input.ReadInt32(); + break; + } + case 312: { + SpecialSkillId = input.ReadInt32(); + break; + } + case 320: { + UltimateId = input.ReadInt32(); + break; + } + case 328: { + AssistAIId = input.ReadInt32(); + break; + } + case 336: { + AssistNormalAtkId = input.ReadInt32(); + break; + } + case 344: { + AssistDodgeId = input.ReadInt32(); + break; + } + case 352: { + AssistSkillId = input.ReadInt32(); + break; + } + case 360: { + AssistSpecialSkillId = input.ReadInt32(); + break; + } + case 368: { + AssistUltimateId = input.ReadInt32(); + break; + } + case 376: { + TalentSkillId = input.ReadInt32(); + break; + } + case 384: { + AssistSkillOnStageType = input.ReadInt32(); + break; + } + case 392: { + AssistSkillAngle = input.ReadInt32(); + break; + } + case 400: { + AssistSkillRadius = input.ReadInt32(); + break; + } + case 408: { + AssistSkillOnStageOrientation = input.ReadInt32(); + break; + } + case 416: { + AssistUltimateOnStageType = input.ReadInt32(); + break; + } + case 424: { + AssistUltimateAngle = input.ReadInt32(); + break; + } + case 432: { + AssistUltimateRadius = input.ReadInt32(); + break; + } + case 440: { + AssistUltimateOnStageOrientation = input.ReadInt32(); + break; + } + case 448: { + SwitchCD = input.ReadInt32(); + break; + } + case 456: { + EnergyConvRatio = input.ReadInt32(); + break; + } + case 464: { + EnergyEfficiency = input.ReadInt32(); + break; + } + case 472: { + FragmentsId = input.ReadInt32(); + break; + } + case 480: { + TransformQty = input.ReadInt32(); + break; + } + case 488: { + RecruitmentQty = input.ReadInt32(); + break; + } + case 498: { + AttributeId = input.ReadString(); + break; + } + case 504: { + PresentsTraitId = input.ReadInt32(); + break; + } + case 514: + case 512: { + skillsUpgradeGroup_.AddEntriesFrom(input, _repeated_skillsUpgradeGroup_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Visible = input.ReadBool(); + break; + } + case 32: { + Available = input.ReadBool(); + break; + } + case 40: { + Grade = input.ReadInt32(); + break; + } + case 48: { + DefaultSkinId = input.ReadInt32(); + break; + } + case 56: { + AdvanceSkinId = input.ReadInt32(); + break; + } + case 64: { + AdvanceGroup = input.ReadInt32(); + break; + } + case 72: { + AdvanceSkinUnlockLevel = input.ReadInt32(); + break; + } + case 80: { + Faction = input.ReadInt32(); + break; + } + case 88: { + Weight = input.ReadInt32(); + break; + } + case 96: { + EET = input.ReadInt32(); + break; + } + case 104: { + Class = input.ReadInt32(); + break; + } + case 112: { + CharacterAttackType = input.ReadInt32(); + break; + } + case 120: { + SearchTargetType = input.ReadInt32(); + break; + } + case 128: { + AtkSpd = input.ReadInt32(); + break; + } + case 136: { + MovType = input.ReadInt32(); + break; + } + case 144: { + WalkSpd = input.ReadInt32(); + break; + } + case 152: { + RunSpd = input.ReadInt32(); + break; + } + case 160: { + SpRunSpd = input.ReadInt32(); + break; + } + case 168: { + TransSpd = input.ReadInt32(); + break; + } + case 176: { + WalkToRunDuration = input.ReadInt32(); + break; + } + case 184: { + DodgeToRunAccelerationOrNot = input.ReadBool(); + break; + } + case 192: { + MovAcc = input.ReadInt32(); + break; + } + case 200: { + RotSpd = input.ReadInt32(); + break; + } + case 208: { + RotAcc = input.ReadInt32(); + break; + } + case 216: { + VisionDeg = input.ReadInt32(); + break; + } + case 224: { + VisionRng = input.ReadInt32(); + break; + } + case 232: { + VisionAttackRng = input.ReadInt32(); + break; + } + case 240: { + HearRng = input.ReadInt32(); + break; + } + case 248: { + HearAttackRng = input.ReadInt32(); + break; + } + case 256: { + RaiseGunRng = input.ReadInt32(); + break; + } + case 264: { + BulletType = input.ReadInt32(); + break; + } + case 272: { + Ammo = input.ReadInt32(); + break; + } + case 280: { + AIId = input.ReadInt32(); + break; + } + case 288: { + NormalAtkId = input.ReadInt32(); + break; + } + case 296: { + DodgeId = input.ReadInt32(); + break; + } + case 304: { + SkillId = input.ReadInt32(); + break; + } + case 312: { + SpecialSkillId = input.ReadInt32(); + break; + } + case 320: { + UltimateId = input.ReadInt32(); + break; + } + case 328: { + AssistAIId = input.ReadInt32(); + break; + } + case 336: { + AssistNormalAtkId = input.ReadInt32(); + break; + } + case 344: { + AssistDodgeId = input.ReadInt32(); + break; + } + case 352: { + AssistSkillId = input.ReadInt32(); + break; + } + case 360: { + AssistSpecialSkillId = input.ReadInt32(); + break; + } + case 368: { + AssistUltimateId = input.ReadInt32(); + break; + } + case 376: { + TalentSkillId = input.ReadInt32(); + break; + } + case 384: { + AssistSkillOnStageType = input.ReadInt32(); + break; + } + case 392: { + AssistSkillAngle = input.ReadInt32(); + break; + } + case 400: { + AssistSkillRadius = input.ReadInt32(); + break; + } + case 408: { + AssistSkillOnStageOrientation = input.ReadInt32(); + break; + } + case 416: { + AssistUltimateOnStageType = input.ReadInt32(); + break; + } + case 424: { + AssistUltimateAngle = input.ReadInt32(); + break; + } + case 432: { + AssistUltimateRadius = input.ReadInt32(); + break; + } + case 440: { + AssistUltimateOnStageOrientation = input.ReadInt32(); + break; + } + case 448: { + SwitchCD = input.ReadInt32(); + break; + } + case 456: { + EnergyConvRatio = input.ReadInt32(); + break; + } + case 464: { + EnergyEfficiency = input.ReadInt32(); + break; + } + case 472: { + FragmentsId = input.ReadInt32(); + break; + } + case 480: { + TransformQty = input.ReadInt32(); + break; + } + case 488: { + RecruitmentQty = input.ReadInt32(); + break; + } + case 498: { + AttributeId = input.ReadString(); + break; + } + case 504: { + PresentsTraitId = input.ReadInt32(); + break; + } + case 514: + case 512: { + skillsUpgradeGroup_.AddEntriesFrom(ref input, _repeated_skillsUpgradeGroup_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterAdvance.cs b/NTR.Common/protos/CharacterAdvance.cs new file mode 100644 index 0000000..9357a68 --- /dev/null +++ b/NTR.Common/protos/CharacterAdvance.cs @@ -0,0 +1,1103 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterAdvance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterAdvance.proto + public static partial class CharacterAdvanceReflection { + + #region Descriptor + /// File descriptor for CharacterAdvance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterAdvanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDaGFyYWN0ZXJBZHZhbmNlLnByb3RvIuoDChBDaGFyYWN0ZXJBZHZhbmNl", + "EgoKAmlkGAEgASgFEg0KBWdyb3VwGAIgASgFEhMKC2FkdmFuY2VfbHZsGAMg", + "ASgFEgwKBHRpZDEYBCABKAUSDAoEcXR5MRgFIAEoBRIMCgR0aWQyGAYgASgF", + "EgwKBHF0eTIYByABKAUSDAoEdGlkMxgIIAEoBRIMCgRxdHkzGAkgASgFEgwK", + "BHRpZDQYCiABKAUSDAoEcXR5NBgLIAEoBRIQCghnb2xkX3F0eRgMIAEoBRIS", + "Cgphd2FyZF90aWQxGA0gASgFEhIKCmF3YXJkX3F0eTEYDiABKAUSEgoKYXdh", + "cmRfdGlkMhgPIAEoBRISCgphd2FyZF9xdHkyGBAgASgFEhIKCmF3YXJkX3Rp", + "ZDMYESABKAUSEgoKYXdhcmRfcXR5MxgSIAEoBRIbChNhZHZhbmNlX2Rlc2Nf", + "ZnJvbnQxGBMgASgJEhsKE2FkdmFuY2VfZGVzY19hZnRlcjEYFCABKAkSGwoT", + "YWR2YW5jZV9kZXNjX2Zyb250MhgVIAEoCRIbChNhZHZhbmNlX2Rlc2NfYWZ0", + "ZXIyGBYgASgJEhsKE2FkdmFuY2VfZGVzY19mcm9udDMYFyABKAkSGwoTYWR2", + "YW5jZV9kZXNjX2FmdGVyMxgYIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterAdvance), global::Nova.Client.CharacterAdvance.Parser, new[]{ "Id", "Group", "AdvanceLvl", "Tid1", "Qty1", "Tid2", "Qty2", "Tid3", "Qty3", "Tid4", "Qty4", "GoldQty", "AwardTid1", "AwardQty1", "AwardTid2", "AwardQty2", "AwardTid3", "AwardQty3", "AdvanceDescFront1", "AdvanceDescAfter1", "AdvanceDescFront2", "AdvanceDescAfter2", "AdvanceDescFront3", "AdvanceDescAfter3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterAdvance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterAdvance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterAdvanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterAdvance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterAdvance(CharacterAdvance other) : this() { + id_ = other.id_; + group_ = other.group_; + advanceLvl_ = other.advanceLvl_; + tid1_ = other.tid1_; + qty1_ = other.qty1_; + tid2_ = other.tid2_; + qty2_ = other.qty2_; + tid3_ = other.tid3_; + qty3_ = other.qty3_; + tid4_ = other.tid4_; + qty4_ = other.qty4_; + goldQty_ = other.goldQty_; + awardTid1_ = other.awardTid1_; + awardQty1_ = other.awardQty1_; + awardTid2_ = other.awardTid2_; + awardQty2_ = other.awardQty2_; + awardTid3_ = other.awardTid3_; + awardQty3_ = other.awardQty3_; + advanceDescFront1_ = other.advanceDescFront1_; + advanceDescAfter1_ = other.advanceDescAfter1_; + advanceDescFront2_ = other.advanceDescFront2_; + advanceDescAfter2_ = other.advanceDescAfter2_; + advanceDescFront3_ = other.advanceDescFront3_; + advanceDescAfter3_ = other.advanceDescAfter3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterAdvance Clone() { + return new CharacterAdvance(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 2; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "advance_lvl" field. + public const int AdvanceLvlFieldNumber = 3; + private int advanceLvl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdvanceLvl { + get { return advanceLvl_; } + set { + advanceLvl_ = value; + } + } + + /// Field number for the "tid1" field. + public const int Tid1FieldNumber = 4; + private int tid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid1 { + get { return tid1_; } + set { + tid1_ = value; + } + } + + /// Field number for the "qty1" field. + public const int Qty1FieldNumber = 5; + private int qty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty1 { + get { return qty1_; } + set { + qty1_ = value; + } + } + + /// Field number for the "tid2" field. + public const int Tid2FieldNumber = 6; + private int tid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid2 { + get { return tid2_; } + set { + tid2_ = value; + } + } + + /// Field number for the "qty2" field. + public const int Qty2FieldNumber = 7; + private int qty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty2 { + get { return qty2_; } + set { + qty2_ = value; + } + } + + /// Field number for the "tid3" field. + public const int Tid3FieldNumber = 8; + private int tid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid3 { + get { return tid3_; } + set { + tid3_ = value; + } + } + + /// Field number for the "qty3" field. + public const int Qty3FieldNumber = 9; + private int qty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty3 { + get { return qty3_; } + set { + qty3_ = value; + } + } + + /// Field number for the "tid4" field. + public const int Tid4FieldNumber = 10; + private int tid4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid4 { + get { return tid4_; } + set { + tid4_ = value; + } + } + + /// Field number for the "qty4" field. + public const int Qty4FieldNumber = 11; + private int qty4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty4 { + get { return qty4_; } + set { + qty4_ = value; + } + } + + /// Field number for the "gold_qty" field. + public const int GoldQtyFieldNumber = 12; + private int goldQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GoldQty { + get { return goldQty_; } + set { + goldQty_ = value; + } + } + + /// Field number for the "award_tid1" field. + public const int AwardTid1FieldNumber = 13; + private int awardTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardTid1 { + get { return awardTid1_; } + set { + awardTid1_ = value; + } + } + + /// Field number for the "award_qty1" field. + public const int AwardQty1FieldNumber = 14; + private int awardQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardQty1 { + get { return awardQty1_; } + set { + awardQty1_ = value; + } + } + + /// Field number for the "award_tid2" field. + public const int AwardTid2FieldNumber = 15; + private int awardTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardTid2 { + get { return awardTid2_; } + set { + awardTid2_ = value; + } + } + + /// Field number for the "award_qty2" field. + public const int AwardQty2FieldNumber = 16; + private int awardQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardQty2 { + get { return awardQty2_; } + set { + awardQty2_ = value; + } + } + + /// Field number for the "award_tid3" field. + public const int AwardTid3FieldNumber = 17; + private int awardTid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardTid3 { + get { return awardTid3_; } + set { + awardTid3_ = value; + } + } + + /// Field number for the "award_qty3" field. + public const int AwardQty3FieldNumber = 18; + private int awardQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardQty3 { + get { return awardQty3_; } + set { + awardQty3_ = value; + } + } + + /// Field number for the "advance_desc_front1" field. + public const int AdvanceDescFront1FieldNumber = 19; + private string advanceDescFront1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdvanceDescFront1 { + get { return advanceDescFront1_; } + set { + advanceDescFront1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "advance_desc_after1" field. + public const int AdvanceDescAfter1FieldNumber = 20; + private string advanceDescAfter1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdvanceDescAfter1 { + get { return advanceDescAfter1_; } + set { + advanceDescAfter1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "advance_desc_front2" field. + public const int AdvanceDescFront2FieldNumber = 21; + private string advanceDescFront2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdvanceDescFront2 { + get { return advanceDescFront2_; } + set { + advanceDescFront2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "advance_desc_after2" field. + public const int AdvanceDescAfter2FieldNumber = 22; + private string advanceDescAfter2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdvanceDescAfter2 { + get { return advanceDescAfter2_; } + set { + advanceDescAfter2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "advance_desc_front3" field. + public const int AdvanceDescFront3FieldNumber = 23; + private string advanceDescFront3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdvanceDescFront3 { + get { return advanceDescFront3_; } + set { + advanceDescFront3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "advance_desc_after3" field. + public const int AdvanceDescAfter3FieldNumber = 24; + private string advanceDescAfter3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdvanceDescAfter3 { + get { return advanceDescAfter3_; } + set { + advanceDescAfter3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterAdvance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterAdvance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Group != other.Group) return false; + if (AdvanceLvl != other.AdvanceLvl) return false; + if (Tid1 != other.Tid1) return false; + if (Qty1 != other.Qty1) return false; + if (Tid2 != other.Tid2) return false; + if (Qty2 != other.Qty2) return false; + if (Tid3 != other.Tid3) return false; + if (Qty3 != other.Qty3) return false; + if (Tid4 != other.Tid4) return false; + if (Qty4 != other.Qty4) return false; + if (GoldQty != other.GoldQty) return false; + if (AwardTid1 != other.AwardTid1) return false; + if (AwardQty1 != other.AwardQty1) return false; + if (AwardTid2 != other.AwardTid2) return false; + if (AwardQty2 != other.AwardQty2) return false; + if (AwardTid3 != other.AwardTid3) return false; + if (AwardQty3 != other.AwardQty3) return false; + if (AdvanceDescFront1 != other.AdvanceDescFront1) return false; + if (AdvanceDescAfter1 != other.AdvanceDescAfter1) return false; + if (AdvanceDescFront2 != other.AdvanceDescFront2) return false; + if (AdvanceDescAfter2 != other.AdvanceDescAfter2) return false; + if (AdvanceDescFront3 != other.AdvanceDescFront3) return false; + if (AdvanceDescAfter3 != other.AdvanceDescAfter3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (AdvanceLvl != 0) hash ^= AdvanceLvl.GetHashCode(); + if (Tid1 != 0) hash ^= Tid1.GetHashCode(); + if (Qty1 != 0) hash ^= Qty1.GetHashCode(); + if (Tid2 != 0) hash ^= Tid2.GetHashCode(); + if (Qty2 != 0) hash ^= Qty2.GetHashCode(); + if (Tid3 != 0) hash ^= Tid3.GetHashCode(); + if (Qty3 != 0) hash ^= Qty3.GetHashCode(); + if (Tid4 != 0) hash ^= Tid4.GetHashCode(); + if (Qty4 != 0) hash ^= Qty4.GetHashCode(); + if (GoldQty != 0) hash ^= GoldQty.GetHashCode(); + if (AwardTid1 != 0) hash ^= AwardTid1.GetHashCode(); + if (AwardQty1 != 0) hash ^= AwardQty1.GetHashCode(); + if (AwardTid2 != 0) hash ^= AwardTid2.GetHashCode(); + if (AwardQty2 != 0) hash ^= AwardQty2.GetHashCode(); + if (AwardTid3 != 0) hash ^= AwardTid3.GetHashCode(); + if (AwardQty3 != 0) hash ^= AwardQty3.GetHashCode(); + if (AdvanceDescFront1.Length != 0) hash ^= AdvanceDescFront1.GetHashCode(); + if (AdvanceDescAfter1.Length != 0) hash ^= AdvanceDescAfter1.GetHashCode(); + if (AdvanceDescFront2.Length != 0) hash ^= AdvanceDescFront2.GetHashCode(); + if (AdvanceDescAfter2.Length != 0) hash ^= AdvanceDescAfter2.GetHashCode(); + if (AdvanceDescFront3.Length != 0) hash ^= AdvanceDescFront3.GetHashCode(); + if (AdvanceDescAfter3.Length != 0) hash ^= AdvanceDescAfter3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (AdvanceLvl != 0) { + output.WriteRawTag(24); + output.WriteInt32(AdvanceLvl); + } + if (Tid1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Qty3); + } + if (Tid4 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Tid4); + } + if (Qty4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Qty4); + } + if (GoldQty != 0) { + output.WriteRawTag(96); + output.WriteInt32(GoldQty); + } + if (AwardTid1 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardTid1); + } + if (AwardQty1 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardQty1); + } + if (AwardTid2 != 0) { + output.WriteRawTag(120); + output.WriteInt32(AwardTid2); + } + if (AwardQty2 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AwardQty2); + } + if (AwardTid3 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AwardTid3); + } + if (AwardQty3 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(AwardQty3); + } + if (AdvanceDescFront1.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(AdvanceDescFront1); + } + if (AdvanceDescAfter1.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(AdvanceDescAfter1); + } + if (AdvanceDescFront2.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(AdvanceDescFront2); + } + if (AdvanceDescAfter2.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(AdvanceDescAfter2); + } + if (AdvanceDescFront3.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(AdvanceDescFront3); + } + if (AdvanceDescAfter3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(AdvanceDescAfter3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (AdvanceLvl != 0) { + output.WriteRawTag(24); + output.WriteInt32(AdvanceLvl); + } + if (Tid1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Qty3); + } + if (Tid4 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Tid4); + } + if (Qty4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Qty4); + } + if (GoldQty != 0) { + output.WriteRawTag(96); + output.WriteInt32(GoldQty); + } + if (AwardTid1 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardTid1); + } + if (AwardQty1 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardQty1); + } + if (AwardTid2 != 0) { + output.WriteRawTag(120); + output.WriteInt32(AwardTid2); + } + if (AwardQty2 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AwardQty2); + } + if (AwardTid3 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AwardTid3); + } + if (AwardQty3 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(AwardQty3); + } + if (AdvanceDescFront1.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(AdvanceDescFront1); + } + if (AdvanceDescAfter1.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(AdvanceDescAfter1); + } + if (AdvanceDescFront2.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(AdvanceDescFront2); + } + if (AdvanceDescAfter2.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(AdvanceDescAfter2); + } + if (AdvanceDescFront3.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(AdvanceDescFront3); + } + if (AdvanceDescAfter3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(AdvanceDescAfter3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (AdvanceLvl != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdvanceLvl); + } + if (Tid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid1); + } + if (Qty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty1); + } + if (Tid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid2); + } + if (Qty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty2); + } + if (Tid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid3); + } + if (Qty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty3); + } + if (Tid4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid4); + } + if (Qty4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty4); + } + if (GoldQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GoldQty); + } + if (AwardTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardTid1); + } + if (AwardQty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardQty1); + } + if (AwardTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardTid2); + } + if (AwardQty2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AwardQty2); + } + if (AwardTid3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AwardTid3); + } + if (AwardQty3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AwardQty3); + } + if (AdvanceDescFront1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdvanceDescFront1); + } + if (AdvanceDescAfter1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdvanceDescAfter1); + } + if (AdvanceDescFront2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdvanceDescFront2); + } + if (AdvanceDescAfter2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdvanceDescAfter2); + } + if (AdvanceDescFront3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdvanceDescFront3); + } + if (AdvanceDescAfter3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdvanceDescAfter3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterAdvance other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Group != 0) { + Group = other.Group; + } + if (other.AdvanceLvl != 0) { + AdvanceLvl = other.AdvanceLvl; + } + if (other.Tid1 != 0) { + Tid1 = other.Tid1; + } + if (other.Qty1 != 0) { + Qty1 = other.Qty1; + } + if (other.Tid2 != 0) { + Tid2 = other.Tid2; + } + if (other.Qty2 != 0) { + Qty2 = other.Qty2; + } + if (other.Tid3 != 0) { + Tid3 = other.Tid3; + } + if (other.Qty3 != 0) { + Qty3 = other.Qty3; + } + if (other.Tid4 != 0) { + Tid4 = other.Tid4; + } + if (other.Qty4 != 0) { + Qty4 = other.Qty4; + } + if (other.GoldQty != 0) { + GoldQty = other.GoldQty; + } + if (other.AwardTid1 != 0) { + AwardTid1 = other.AwardTid1; + } + if (other.AwardQty1 != 0) { + AwardQty1 = other.AwardQty1; + } + if (other.AwardTid2 != 0) { + AwardTid2 = other.AwardTid2; + } + if (other.AwardQty2 != 0) { + AwardQty2 = other.AwardQty2; + } + if (other.AwardTid3 != 0) { + AwardTid3 = other.AwardTid3; + } + if (other.AwardQty3 != 0) { + AwardQty3 = other.AwardQty3; + } + if (other.AdvanceDescFront1.Length != 0) { + AdvanceDescFront1 = other.AdvanceDescFront1; + } + if (other.AdvanceDescAfter1.Length != 0) { + AdvanceDescAfter1 = other.AdvanceDescAfter1; + } + if (other.AdvanceDescFront2.Length != 0) { + AdvanceDescFront2 = other.AdvanceDescFront2; + } + if (other.AdvanceDescAfter2.Length != 0) { + AdvanceDescAfter2 = other.AdvanceDescAfter2; + } + if (other.AdvanceDescFront3.Length != 0) { + AdvanceDescFront3 = other.AdvanceDescFront3; + } + if (other.AdvanceDescAfter3.Length != 0) { + AdvanceDescAfter3 = other.AdvanceDescAfter3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + AdvanceLvl = input.ReadInt32(); + break; + } + case 32: { + Tid1 = input.ReadInt32(); + break; + } + case 40: { + Qty1 = input.ReadInt32(); + break; + } + case 48: { + Tid2 = input.ReadInt32(); + break; + } + case 56: { + Qty2 = input.ReadInt32(); + break; + } + case 64: { + Tid3 = input.ReadInt32(); + break; + } + case 72: { + Qty3 = input.ReadInt32(); + break; + } + case 80: { + Tid4 = input.ReadInt32(); + break; + } + case 88: { + Qty4 = input.ReadInt32(); + break; + } + case 96: { + GoldQty = input.ReadInt32(); + break; + } + case 104: { + AwardTid1 = input.ReadInt32(); + break; + } + case 112: { + AwardQty1 = input.ReadInt32(); + break; + } + case 120: { + AwardTid2 = input.ReadInt32(); + break; + } + case 128: { + AwardQty2 = input.ReadInt32(); + break; + } + case 136: { + AwardTid3 = input.ReadInt32(); + break; + } + case 144: { + AwardQty3 = input.ReadInt32(); + break; + } + case 154: { + AdvanceDescFront1 = input.ReadString(); + break; + } + case 162: { + AdvanceDescAfter1 = input.ReadString(); + break; + } + case 170: { + AdvanceDescFront2 = input.ReadString(); + break; + } + case 178: { + AdvanceDescAfter2 = input.ReadString(); + break; + } + case 186: { + AdvanceDescFront3 = input.ReadString(); + break; + } + case 194: { + AdvanceDescAfter3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + AdvanceLvl = input.ReadInt32(); + break; + } + case 32: { + Tid1 = input.ReadInt32(); + break; + } + case 40: { + Qty1 = input.ReadInt32(); + break; + } + case 48: { + Tid2 = input.ReadInt32(); + break; + } + case 56: { + Qty2 = input.ReadInt32(); + break; + } + case 64: { + Tid3 = input.ReadInt32(); + break; + } + case 72: { + Qty3 = input.ReadInt32(); + break; + } + case 80: { + Tid4 = input.ReadInt32(); + break; + } + case 88: { + Qty4 = input.ReadInt32(); + break; + } + case 96: { + GoldQty = input.ReadInt32(); + break; + } + case 104: { + AwardTid1 = input.ReadInt32(); + break; + } + case 112: { + AwardQty1 = input.ReadInt32(); + break; + } + case 120: { + AwardTid2 = input.ReadInt32(); + break; + } + case 128: { + AwardQty2 = input.ReadInt32(); + break; + } + case 136: { + AwardTid3 = input.ReadInt32(); + break; + } + case 144: { + AwardQty3 = input.ReadInt32(); + break; + } + case 154: { + AdvanceDescFront1 = input.ReadString(); + break; + } + case 162: { + AdvanceDescAfter1 = input.ReadString(); + break; + } + case 170: { + AdvanceDescFront2 = input.ReadString(); + break; + } + case 178: { + AdvanceDescAfter2 = input.ReadString(); + break; + } + case 186: { + AdvanceDescFront3 = input.ReadString(); + break; + } + case 194: { + AdvanceDescAfter3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterArchive.cs b/NTR.Common/protos/CharacterArchive.cs new file mode 100644 index 0000000..54d97dc --- /dev/null +++ b/NTR.Common/protos/CharacterArchive.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterArchive.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterArchive.proto + public static partial class CharacterArchiveReflection { + + #region Descriptor + /// File descriptor for CharacterArchive.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterArchiveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDaGFyYWN0ZXJBcmNoaXZlLnByb3RvIocBChBDaGFyYWN0ZXJBcmNoaXZl", + "EgoKAmlkGAEgASgFEhEKCWFyY2hfdHlwZRgCIAEoBRIUCgxjaGFyYWN0ZXJf", + "aWQYAyABKAUSHQoVdW5sb2NrX2FmZmluaXR5X2xldmVsGAQgASgFEhEKCXJl", + "Y29yZF9pZBgFIAEoBRIMCgRzb3J0GAYgASgFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterArchive), global::Nova.Client.CharacterArchive.Parser, new[]{ "Id", "ArchType", "CharacterId", "UnlockAffinityLevel", "RecordId", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterArchive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterArchive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterArchiveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchive(CharacterArchive other) : this() { + id_ = other.id_; + archType_ = other.archType_; + characterId_ = other.characterId_; + unlockAffinityLevel_ = other.unlockAffinityLevel_; + recordId_ = other.recordId_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchive Clone() { + return new CharacterArchive(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "arch_type" field. + public const int ArchTypeFieldNumber = 2; + private int archType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ArchType { + get { return archType_; } + set { + archType_ = value; + } + } + + /// Field number for the "character_id" field. + public const int CharacterIdFieldNumber = 3; + private int characterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterId { + get { return characterId_; } + set { + characterId_ = value; + } + } + + /// Field number for the "unlock_affinity_level" field. + public const int UnlockAffinityLevelFieldNumber = 4; + private int unlockAffinityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockAffinityLevel { + get { return unlockAffinityLevel_; } + set { + unlockAffinityLevel_ = value; + } + } + + /// Field number for the "record_id" field. + public const int RecordIdFieldNumber = 5; + private int recordId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecordId { + get { return recordId_; } + set { + recordId_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 6; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterArchive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterArchive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ArchType != other.ArchType) return false; + if (CharacterId != other.CharacterId) return false; + if (UnlockAffinityLevel != other.UnlockAffinityLevel) return false; + if (RecordId != other.RecordId) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ArchType != 0) hash ^= ArchType.GetHashCode(); + if (CharacterId != 0) hash ^= CharacterId.GetHashCode(); + if (UnlockAffinityLevel != 0) hash ^= UnlockAffinityLevel.GetHashCode(); + if (RecordId != 0) hash ^= RecordId.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ArchType != 0) { + output.WriteRawTag(16); + output.WriteInt32(ArchType); + } + if (CharacterId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CharacterId); + } + if (UnlockAffinityLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockAffinityLevel); + } + if (RecordId != 0) { + output.WriteRawTag(40); + output.WriteInt32(RecordId); + } + if (Sort != 0) { + output.WriteRawTag(48); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ArchType != 0) { + output.WriteRawTag(16); + output.WriteInt32(ArchType); + } + if (CharacterId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CharacterId); + } + if (UnlockAffinityLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockAffinityLevel); + } + if (RecordId != 0) { + output.WriteRawTag(40); + output.WriteInt32(RecordId); + } + if (Sort != 0) { + output.WriteRawTag(48); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ArchType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ArchType); + } + if (CharacterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterId); + } + if (UnlockAffinityLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockAffinityLevel); + } + if (RecordId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecordId); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterArchive other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ArchType != 0) { + ArchType = other.ArchType; + } + if (other.CharacterId != 0) { + CharacterId = other.CharacterId; + } + if (other.UnlockAffinityLevel != 0) { + UnlockAffinityLevel = other.UnlockAffinityLevel; + } + if (other.RecordId != 0) { + RecordId = other.RecordId; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ArchType = input.ReadInt32(); + break; + } + case 24: { + CharacterId = input.ReadInt32(); + break; + } + case 32: { + UnlockAffinityLevel = input.ReadInt32(); + break; + } + case 40: { + RecordId = input.ReadInt32(); + break; + } + case 48: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ArchType = input.ReadInt32(); + break; + } + case 24: { + CharacterId = input.ReadInt32(); + break; + } + case 32: { + UnlockAffinityLevel = input.ReadInt32(); + break; + } + case 40: { + RecordId = input.ReadInt32(); + break; + } + case 48: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterArchiveBaseInfo.cs b/NTR.Common/protos/CharacterArchiveBaseInfo.cs new file mode 100644 index 0000000..fad895e --- /dev/null +++ b/NTR.Common/protos/CharacterArchiveBaseInfo.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterArchiveBaseInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterArchiveBaseInfo.proto + public static partial class CharacterArchiveBaseInfoReflection { + + #region Descriptor + /// File descriptor for CharacterArchiveBaseInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterArchiveBaseInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5DaGFyYWN0ZXJBcmNoaXZlQmFzZUluZm8ucHJvdG8iagoYQ2hhcmFjdGVy", + "QXJjaGl2ZUJhc2VJbmZvEgoKAmlkGAEgASgFEhQKDGNoYXJhY3Rlcl9pZBgC", + "IAEoBRINCgV0aXRsZRgDIAEoCRIPCgdjb250ZW50GAQgASgJEgwKBHNvcnQY", + "BSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterArchiveBaseInfo), global::Nova.Client.CharacterArchiveBaseInfo.Parser, new[]{ "Id", "CharacterId", "Title", "Content", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterArchiveBaseInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterArchiveBaseInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterArchiveBaseInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveBaseInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveBaseInfo(CharacterArchiveBaseInfo other) : this() { + id_ = other.id_; + characterId_ = other.characterId_; + title_ = other.title_; + content_ = other.content_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveBaseInfo Clone() { + return new CharacterArchiveBaseInfo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "character_id" field. + public const int CharacterIdFieldNumber = 2; + private int characterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterId { + get { return characterId_; } + set { + characterId_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private string content_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 5; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterArchiveBaseInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterArchiveBaseInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharacterId != other.CharacterId) return false; + if (Title != other.Title) return false; + if (Content != other.Content) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharacterId != 0) hash ^= CharacterId.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharacterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharacterId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Content.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Content); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharacterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharacterId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Content.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Content); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharacterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterId); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterArchiveBaseInfo other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharacterId != 0) { + CharacterId = other.CharacterId; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharacterId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharacterId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterArchiveContent.cs b/NTR.Common/protos/CharacterArchiveContent.cs new file mode 100644 index 0000000..0f3b411 --- /dev/null +++ b/NTR.Common/protos/CharacterArchiveContent.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterArchiveContent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterArchiveContent.proto + public static partial class CharacterArchiveContentReflection { + + #region Descriptor + /// File descriptor for CharacterArchiveContent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterArchiveContentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGFyYWN0ZXJBcmNoaXZlQ29udGVudC5wcm90byJFChdDaGFyYWN0ZXJB", + "cmNoaXZlQ29udGVudBIKCgJpZBgBIAEoBRINCgV0aXRsZRgCIAEoCRIPCgdj", + "b250ZW50GAMgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterArchiveContent), global::Nova.Client.CharacterArchiveContent.Parser, new[]{ "Id", "Title", "Content" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterArchiveContent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterArchiveContent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterArchiveContentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveContent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveContent(CharacterArchiveContent other) : this() { + id_ = other.id_; + title_ = other.title_; + content_ = other.content_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveContent Clone() { + return new CharacterArchiveContent(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 3; + private string content_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterArchiveContent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterArchiveContent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Content != other.Content) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterArchiveContent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterArchiveVoice.cs b/NTR.Common/protos/CharacterArchiveVoice.cs new file mode 100644 index 0000000..e47e3b5 --- /dev/null +++ b/NTR.Common/protos/CharacterArchiveVoice.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterArchiveVoice.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterArchiveVoice.proto + public static partial class CharacterArchiveVoiceReflection { + + #region Descriptor + /// File descriptor for CharacterArchiveVoice.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterArchiveVoiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGFyYWN0ZXJBcmNoaXZlVm9pY2UucHJvdG8iswEKFUNoYXJhY3RlckFy", + "Y2hpdmVWb2ljZRIKCgJpZBgBIAEoBRIUCgxjaGFyYWN0ZXJfaWQYAiABKAUS", + "HQoVdW5sb2NrX2FmZmluaXR5X2xldmVsGAMgASgFEhMKC3VubG9ja19wbG90", + "GAQgASgFEg0KBXRpdGxlGAUgASgJEg4KBnNvdXJjZRgGIAEoCRIXCg9hcmNo", + "X3ZvaWNlX3R5cGUYByABKAUSDAoEc29ydBgIIAEoBUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterArchiveVoice), global::Nova.Client.CharacterArchiveVoice.Parser, new[]{ "Id", "CharacterId", "UnlockAffinityLevel", "UnlockPlot", "Title", "Source", "ArchVoiceType", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterArchiveVoice : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterArchiveVoice()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterArchiveVoiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveVoice() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveVoice(CharacterArchiveVoice other) : this() { + id_ = other.id_; + characterId_ = other.characterId_; + unlockAffinityLevel_ = other.unlockAffinityLevel_; + unlockPlot_ = other.unlockPlot_; + title_ = other.title_; + source_ = other.source_; + archVoiceType_ = other.archVoiceType_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterArchiveVoice Clone() { + return new CharacterArchiveVoice(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "character_id" field. + public const int CharacterIdFieldNumber = 2; + private int characterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterId { + get { return characterId_; } + set { + characterId_ = value; + } + } + + /// Field number for the "unlock_affinity_level" field. + public const int UnlockAffinityLevelFieldNumber = 3; + private int unlockAffinityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockAffinityLevel { + get { return unlockAffinityLevel_; } + set { + unlockAffinityLevel_ = value; + } + } + + /// Field number for the "unlock_plot" field. + public const int UnlockPlotFieldNumber = 4; + private int unlockPlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockPlot { + get { return unlockPlot_; } + set { + unlockPlot_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 5; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 6; + private string source_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Source { + get { return source_; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "arch_voice_type" field. + public const int ArchVoiceTypeFieldNumber = 7; + private int archVoiceType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ArchVoiceType { + get { return archVoiceType_; } + set { + archVoiceType_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 8; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterArchiveVoice); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterArchiveVoice other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharacterId != other.CharacterId) return false; + if (UnlockAffinityLevel != other.UnlockAffinityLevel) return false; + if (UnlockPlot != other.UnlockPlot) return false; + if (Title != other.Title) return false; + if (Source != other.Source) return false; + if (ArchVoiceType != other.ArchVoiceType) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharacterId != 0) hash ^= CharacterId.GetHashCode(); + if (UnlockAffinityLevel != 0) hash ^= UnlockAffinityLevel.GetHashCode(); + if (UnlockPlot != 0) hash ^= UnlockPlot.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Source.Length != 0) hash ^= Source.GetHashCode(); + if (ArchVoiceType != 0) hash ^= ArchVoiceType.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharacterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharacterId); + } + if (UnlockAffinityLevel != 0) { + output.WriteRawTag(24); + output.WriteInt32(UnlockAffinityLevel); + } + if (UnlockPlot != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockPlot); + } + if (Title.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Title); + } + if (Source.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Source); + } + if (ArchVoiceType != 0) { + output.WriteRawTag(56); + output.WriteInt32(ArchVoiceType); + } + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharacterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharacterId); + } + if (UnlockAffinityLevel != 0) { + output.WriteRawTag(24); + output.WriteInt32(UnlockAffinityLevel); + } + if (UnlockPlot != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockPlot); + } + if (Title.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Title); + } + if (Source.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Source); + } + if (ArchVoiceType != 0) { + output.WriteRawTag(56); + output.WriteInt32(ArchVoiceType); + } + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharacterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterId); + } + if (UnlockAffinityLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockAffinityLevel); + } + if (UnlockPlot != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockPlot); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Source.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Source); + } + if (ArchVoiceType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ArchVoiceType); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterArchiveVoice other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharacterId != 0) { + CharacterId = other.CharacterId; + } + if (other.UnlockAffinityLevel != 0) { + UnlockAffinityLevel = other.UnlockAffinityLevel; + } + if (other.UnlockPlot != 0) { + UnlockPlot = other.UnlockPlot; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Source.Length != 0) { + Source = other.Source; + } + if (other.ArchVoiceType != 0) { + ArchVoiceType = other.ArchVoiceType; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharacterId = input.ReadInt32(); + break; + } + case 24: { + UnlockAffinityLevel = input.ReadInt32(); + break; + } + case 32: { + UnlockPlot = input.ReadInt32(); + break; + } + case 42: { + Title = input.ReadString(); + break; + } + case 50: { + Source = input.ReadString(); + break; + } + case 56: { + ArchVoiceType = input.ReadInt32(); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharacterId = input.ReadInt32(); + break; + } + case 24: { + UnlockAffinityLevel = input.ReadInt32(); + break; + } + case 32: { + UnlockPlot = input.ReadInt32(); + break; + } + case 42: { + Title = input.ReadString(); + break; + } + case 50: { + Source = input.ReadString(); + break; + } + case 56: { + ArchVoiceType = input.ReadInt32(); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterCG.cs b/NTR.Common/protos/CharacterCG.cs new file mode 100644 index 0000000..d27eb79 --- /dev/null +++ b/NTR.Common/protos/CharacterCG.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterCG.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterCG.proto + public static partial class CharacterCGReflection { + + #region Descriptor + /// File descriptor for CharacterCG.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterCGReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFDaGFyYWN0ZXJDRy5wcm90byJ0CgtDaGFyYWN0ZXJDRxIKCgJpZBgBIAEo", + "BRIcChRmdWxsX3NjcmVlbl9wb3J0cmFpdBgCIAEoCRIYChBmdWxsX3NjcmVl", + "bl9sMl9kGAMgASgJEhMKC3VubG9ja19wbG90GAQgASgFEgwKBG5hbWUYBSAB", + "KAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterCG), global::Nova.Client.CharacterCG.Parser, new[]{ "Id", "FullScreenPortrait", "FullScreenL2D", "UnlockPlot", "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterCG : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterCG()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterCGReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterCG() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterCG(CharacterCG other) : this() { + id_ = other.id_; + fullScreenPortrait_ = other.fullScreenPortrait_; + fullScreenL2D_ = other.fullScreenL2D_; + unlockPlot_ = other.unlockPlot_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterCG Clone() { + return new CharacterCG(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "full_screen_portrait" field. + public const int FullScreenPortraitFieldNumber = 2; + private string fullScreenPortrait_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FullScreenPortrait { + get { return fullScreenPortrait_; } + set { + fullScreenPortrait_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "full_screen_l2_d" field. + public const int FullScreenL2DFieldNumber = 3; + private string fullScreenL2D_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FullScreenL2D { + get { return fullScreenL2D_; } + set { + fullScreenL2D_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlock_plot" field. + public const int UnlockPlotFieldNumber = 4; + private int unlockPlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockPlot { + get { return unlockPlot_; } + set { + unlockPlot_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 5; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterCG); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterCG other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (FullScreenPortrait != other.FullScreenPortrait) return false; + if (FullScreenL2D != other.FullScreenL2D) return false; + if (UnlockPlot != other.UnlockPlot) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (FullScreenPortrait.Length != 0) hash ^= FullScreenPortrait.GetHashCode(); + if (FullScreenL2D.Length != 0) hash ^= FullScreenL2D.GetHashCode(); + if (UnlockPlot != 0) hash ^= UnlockPlot.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (FullScreenPortrait.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FullScreenPortrait); + } + if (FullScreenL2D.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FullScreenL2D); + } + if (UnlockPlot != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockPlot); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (FullScreenPortrait.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FullScreenPortrait); + } + if (FullScreenL2D.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FullScreenL2D); + } + if (UnlockPlot != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockPlot); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (FullScreenPortrait.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FullScreenPortrait); + } + if (FullScreenL2D.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FullScreenL2D); + } + if (UnlockPlot != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockPlot); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterCG other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.FullScreenPortrait.Length != 0) { + FullScreenPortrait = other.FullScreenPortrait; + } + if (other.FullScreenL2D.Length != 0) { + FullScreenL2D = other.FullScreenL2D; + } + if (other.UnlockPlot != 0) { + UnlockPlot = other.UnlockPlot; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + FullScreenPortrait = input.ReadString(); + break; + } + case 26: { + FullScreenL2D = input.ReadString(); + break; + } + case 32: { + UnlockPlot = input.ReadInt32(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + FullScreenPortrait = input.ReadString(); + break; + } + case 26: { + FullScreenL2D = input.ReadString(); + break; + } + case 32: { + UnlockPlot = input.ReadInt32(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterDes.cs b/NTR.Common/protos/CharacterDes.cs new file mode 100644 index 0000000..d67cc87 --- /dev/null +++ b/NTR.Common/protos/CharacterDes.cs @@ -0,0 +1,588 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterDes.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterDes.proto + public static partial class CharacterDesReflection { + + #region Descriptor + /// File descriptor for CharacterDes.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterDesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJDaGFyYWN0ZXJEZXMucHJvdG8iywEKDENoYXJhY3RlckRlcxIKCgJpZBgB", + "IAEoBRINCgVhbGlhcxgCIAEoCRINCgVjbl9jdhgDIAEoCRINCgVqcF9jdhgE", + "IAEoCRISCgpjaGFyX2NvbG9yGAUgASgJEhgKEGNoYXJfc2tpbGxfY29sb3IY", + "BiABKAkSEAoIY2hhcl9kZXMYByABKAkSCwoDdGFnGAggAygFEg0KBWZvcmNl", + "GAkgASgFEhMKC3ByZWZlcl90YWdzGAogAygFEhEKCWhhdGVfdGFncxgLIAMo", + "BUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterDes), global::Nova.Client.CharacterDes.Parser, new[]{ "Id", "Alias", "CnCv", "JpCv", "CharColor", "CharSkillColor", "CharDes", "Tag", "Force", "PreferTags", "HateTags" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterDes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterDes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterDesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterDes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterDes(CharacterDes other) : this() { + id_ = other.id_; + alias_ = other.alias_; + cnCv_ = other.cnCv_; + jpCv_ = other.jpCv_; + charColor_ = other.charColor_; + charSkillColor_ = other.charSkillColor_; + charDes_ = other.charDes_; + tag_ = other.tag_.Clone(); + force_ = other.force_; + preferTags_ = other.preferTags_.Clone(); + hateTags_ = other.hateTags_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterDes Clone() { + return new CharacterDes(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "alias" field. + public const int AliasFieldNumber = 2; + private string alias_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Alias { + get { return alias_; } + set { + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cn_cv" field. + public const int CnCvFieldNumber = 3; + private string cnCv_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CnCv { + get { return cnCv_; } + set { + cnCv_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jp_cv" field. + public const int JpCvFieldNumber = 4; + private string jpCv_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JpCv { + get { return jpCv_; } + set { + jpCv_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "char_color" field. + public const int CharColorFieldNumber = 5; + private string charColor_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CharColor { + get { return charColor_; } + set { + charColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "char_skill_color" field. + public const int CharSkillColorFieldNumber = 6; + private string charSkillColor_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CharSkillColor { + get { return charSkillColor_; } + set { + charSkillColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "char_des" field. + public const int CharDesFieldNumber = 7; + private string charDes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CharDes { + get { return charDes_; } + set { + charDes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_tag_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField tag_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tag { + get { return tag_; } + } + + /// Field number for the "force" field. + public const int ForceFieldNumber = 9; + private int force_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Force { + get { return force_; } + set { + force_ = value; + } + } + + /// Field number for the "prefer_tags" field. + public const int PreferTagsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_preferTags_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField preferTags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PreferTags { + get { return preferTags_; } + } + + /// Field number for the "hate_tags" field. + public const int HateTagsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_hateTags_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField hateTags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HateTags { + get { return hateTags_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterDes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterDes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Alias != other.Alias) return false; + if (CnCv != other.CnCv) return false; + if (JpCv != other.JpCv) return false; + if (CharColor != other.CharColor) return false; + if (CharSkillColor != other.CharSkillColor) return false; + if (CharDes != other.CharDes) return false; + if(!tag_.Equals(other.tag_)) return false; + if (Force != other.Force) return false; + if(!preferTags_.Equals(other.preferTags_)) return false; + if(!hateTags_.Equals(other.hateTags_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); + if (CnCv.Length != 0) hash ^= CnCv.GetHashCode(); + if (JpCv.Length != 0) hash ^= JpCv.GetHashCode(); + if (CharColor.Length != 0) hash ^= CharColor.GetHashCode(); + if (CharSkillColor.Length != 0) hash ^= CharSkillColor.GetHashCode(); + if (CharDes.Length != 0) hash ^= CharDes.GetHashCode(); + hash ^= tag_.GetHashCode(); + if (Force != 0) hash ^= Force.GetHashCode(); + hash ^= preferTags_.GetHashCode(); + hash ^= hateTags_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Alias.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Alias); + } + if (CnCv.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CnCv); + } + if (JpCv.Length != 0) { + output.WriteRawTag(34); + output.WriteString(JpCv); + } + if (CharColor.Length != 0) { + output.WriteRawTag(42); + output.WriteString(CharColor); + } + if (CharSkillColor.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CharSkillColor); + } + if (CharDes.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CharDes); + } + tag_.WriteTo(output, _repeated_tag_codec); + if (Force != 0) { + output.WriteRawTag(72); + output.WriteInt32(Force); + } + preferTags_.WriteTo(output, _repeated_preferTags_codec); + hateTags_.WriteTo(output, _repeated_hateTags_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Alias.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Alias); + } + if (CnCv.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CnCv); + } + if (JpCv.Length != 0) { + output.WriteRawTag(34); + output.WriteString(JpCv); + } + if (CharColor.Length != 0) { + output.WriteRawTag(42); + output.WriteString(CharColor); + } + if (CharSkillColor.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CharSkillColor); + } + if (CharDes.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CharDes); + } + tag_.WriteTo(ref output, _repeated_tag_codec); + if (Force != 0) { + output.WriteRawTag(72); + output.WriteInt32(Force); + } + preferTags_.WriteTo(ref output, _repeated_preferTags_codec); + hateTags_.WriteTo(ref output, _repeated_hateTags_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); + } + if (CnCv.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CnCv); + } + if (JpCv.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JpCv); + } + if (CharColor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CharColor); + } + if (CharSkillColor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CharSkillColor); + } + if (CharDes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CharDes); + } + size += tag_.CalculateSize(_repeated_tag_codec); + if (Force != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Force); + } + size += preferTags_.CalculateSize(_repeated_preferTags_codec); + size += hateTags_.CalculateSize(_repeated_hateTags_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterDes other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Alias.Length != 0) { + Alias = other.Alias; + } + if (other.CnCv.Length != 0) { + CnCv = other.CnCv; + } + if (other.JpCv.Length != 0) { + JpCv = other.JpCv; + } + if (other.CharColor.Length != 0) { + CharColor = other.CharColor; + } + if (other.CharSkillColor.Length != 0) { + CharSkillColor = other.CharSkillColor; + } + if (other.CharDes.Length != 0) { + CharDes = other.CharDes; + } + tag_.Add(other.tag_); + if (other.Force != 0) { + Force = other.Force; + } + preferTags_.Add(other.preferTags_); + hateTags_.Add(other.hateTags_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Alias = input.ReadString(); + break; + } + case 26: { + CnCv = input.ReadString(); + break; + } + case 34: { + JpCv = input.ReadString(); + break; + } + case 42: { + CharColor = input.ReadString(); + break; + } + case 50: { + CharSkillColor = input.ReadString(); + break; + } + case 58: { + CharDes = input.ReadString(); + break; + } + case 66: + case 64: { + tag_.AddEntriesFrom(input, _repeated_tag_codec); + break; + } + case 72: { + Force = input.ReadInt32(); + break; + } + case 82: + case 80: { + preferTags_.AddEntriesFrom(input, _repeated_preferTags_codec); + break; + } + case 90: + case 88: { + hateTags_.AddEntriesFrom(input, _repeated_hateTags_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Alias = input.ReadString(); + break; + } + case 26: { + CnCv = input.ReadString(); + break; + } + case 34: { + JpCv = input.ReadString(); + break; + } + case 42: { + CharColor = input.ReadString(); + break; + } + case 50: { + CharSkillColor = input.ReadString(); + break; + } + case 58: { + CharDes = input.ReadString(); + break; + } + case 66: + case 64: { + tag_.AddEntriesFrom(ref input, _repeated_tag_codec); + break; + } + case 72: { + Force = input.ReadInt32(); + break; + } + case 82: + case 80: { + preferTags_.AddEntriesFrom(ref input, _repeated_preferTags_codec); + break; + } + case 90: + case 88: { + hateTags_.AddEntriesFrom(ref input, _repeated_hateTags_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterSkillUpgrade.cs b/NTR.Common/protos/CharacterSkillUpgrade.cs new file mode 100644 index 0000000..d203b30 --- /dev/null +++ b/NTR.Common/protos/CharacterSkillUpgrade.cs @@ -0,0 +1,652 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterSkillUpgrade.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterSkillUpgrade.proto + public static partial class CharacterSkillUpgradeReflection { + + #region Descriptor + /// File descriptor for CharacterSkillUpgrade.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterSkillUpgradeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGFyYWN0ZXJTa2lsbFVwZ3JhZGUucHJvdG8iyQEKFUNoYXJhY3RlclNr", + "aWxsVXBncmFkZRIKCgJpZBgBIAEoBRINCgVncm91cBgCIAEoBRITCgthZHZh", + "bmNlX251bRgDIAEoBRIMCgR0aWQxGAQgASgFEgwKBHF0eTEYBSABKAUSDAoE", + "dGlkMhgGIAEoBRIMCgRxdHkyGAcgASgFEgwKBHRpZDMYCCABKAUSDAoEcXR5", + "MxgJIAEoBRIMCgR0aWQ0GAogASgFEgwKBHF0eTQYCyABKAUSEAoIZ29sZF9x", + "dHkYDCABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterSkillUpgrade), global::Nova.Client.CharacterSkillUpgrade.Parser, new[]{ "Id", "Group", "AdvanceNum", "Tid1", "Qty1", "Tid2", "Qty2", "Tid3", "Qty3", "Tid4", "Qty4", "GoldQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterSkillUpgrade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterSkillUpgrade()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterSkillUpgradeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkillUpgrade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkillUpgrade(CharacterSkillUpgrade other) : this() { + id_ = other.id_; + group_ = other.group_; + advanceNum_ = other.advanceNum_; + tid1_ = other.tid1_; + qty1_ = other.qty1_; + tid2_ = other.tid2_; + qty2_ = other.qty2_; + tid3_ = other.tid3_; + qty3_ = other.qty3_; + tid4_ = other.tid4_; + qty4_ = other.qty4_; + goldQty_ = other.goldQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkillUpgrade Clone() { + return new CharacterSkillUpgrade(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 2; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "advance_num" field. + public const int AdvanceNumFieldNumber = 3; + private int advanceNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdvanceNum { + get { return advanceNum_; } + set { + advanceNum_ = value; + } + } + + /// Field number for the "tid1" field. + public const int Tid1FieldNumber = 4; + private int tid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid1 { + get { return tid1_; } + set { + tid1_ = value; + } + } + + /// Field number for the "qty1" field. + public const int Qty1FieldNumber = 5; + private int qty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty1 { + get { return qty1_; } + set { + qty1_ = value; + } + } + + /// Field number for the "tid2" field. + public const int Tid2FieldNumber = 6; + private int tid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid2 { + get { return tid2_; } + set { + tid2_ = value; + } + } + + /// Field number for the "qty2" field. + public const int Qty2FieldNumber = 7; + private int qty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty2 { + get { return qty2_; } + set { + qty2_ = value; + } + } + + /// Field number for the "tid3" field. + public const int Tid3FieldNumber = 8; + private int tid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid3 { + get { return tid3_; } + set { + tid3_ = value; + } + } + + /// Field number for the "qty3" field. + public const int Qty3FieldNumber = 9; + private int qty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty3 { + get { return qty3_; } + set { + qty3_ = value; + } + } + + /// Field number for the "tid4" field. + public const int Tid4FieldNumber = 10; + private int tid4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid4 { + get { return tid4_; } + set { + tid4_ = value; + } + } + + /// Field number for the "qty4" field. + public const int Qty4FieldNumber = 11; + private int qty4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty4 { + get { return qty4_; } + set { + qty4_ = value; + } + } + + /// Field number for the "gold_qty" field. + public const int GoldQtyFieldNumber = 12; + private int goldQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GoldQty { + get { return goldQty_; } + set { + goldQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterSkillUpgrade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterSkillUpgrade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Group != other.Group) return false; + if (AdvanceNum != other.AdvanceNum) return false; + if (Tid1 != other.Tid1) return false; + if (Qty1 != other.Qty1) return false; + if (Tid2 != other.Tid2) return false; + if (Qty2 != other.Qty2) return false; + if (Tid3 != other.Tid3) return false; + if (Qty3 != other.Qty3) return false; + if (Tid4 != other.Tid4) return false; + if (Qty4 != other.Qty4) return false; + if (GoldQty != other.GoldQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (AdvanceNum != 0) hash ^= AdvanceNum.GetHashCode(); + if (Tid1 != 0) hash ^= Tid1.GetHashCode(); + if (Qty1 != 0) hash ^= Qty1.GetHashCode(); + if (Tid2 != 0) hash ^= Tid2.GetHashCode(); + if (Qty2 != 0) hash ^= Qty2.GetHashCode(); + if (Tid3 != 0) hash ^= Tid3.GetHashCode(); + if (Qty3 != 0) hash ^= Qty3.GetHashCode(); + if (Tid4 != 0) hash ^= Tid4.GetHashCode(); + if (Qty4 != 0) hash ^= Qty4.GetHashCode(); + if (GoldQty != 0) hash ^= GoldQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (AdvanceNum != 0) { + output.WriteRawTag(24); + output.WriteInt32(AdvanceNum); + } + if (Tid1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Qty3); + } + if (Tid4 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Tid4); + } + if (Qty4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Qty4); + } + if (GoldQty != 0) { + output.WriteRawTag(96); + output.WriteInt32(GoldQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (AdvanceNum != 0) { + output.WriteRawTag(24); + output.WriteInt32(AdvanceNum); + } + if (Tid1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Qty3); + } + if (Tid4 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Tid4); + } + if (Qty4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Qty4); + } + if (GoldQty != 0) { + output.WriteRawTag(96); + output.WriteInt32(GoldQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (AdvanceNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdvanceNum); + } + if (Tid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid1); + } + if (Qty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty1); + } + if (Tid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid2); + } + if (Qty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty2); + } + if (Tid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid3); + } + if (Qty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty3); + } + if (Tid4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid4); + } + if (Qty4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty4); + } + if (GoldQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GoldQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterSkillUpgrade other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Group != 0) { + Group = other.Group; + } + if (other.AdvanceNum != 0) { + AdvanceNum = other.AdvanceNum; + } + if (other.Tid1 != 0) { + Tid1 = other.Tid1; + } + if (other.Qty1 != 0) { + Qty1 = other.Qty1; + } + if (other.Tid2 != 0) { + Tid2 = other.Tid2; + } + if (other.Qty2 != 0) { + Qty2 = other.Qty2; + } + if (other.Tid3 != 0) { + Tid3 = other.Tid3; + } + if (other.Qty3 != 0) { + Qty3 = other.Qty3; + } + if (other.Tid4 != 0) { + Tid4 = other.Tid4; + } + if (other.Qty4 != 0) { + Qty4 = other.Qty4; + } + if (other.GoldQty != 0) { + GoldQty = other.GoldQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + AdvanceNum = input.ReadInt32(); + break; + } + case 32: { + Tid1 = input.ReadInt32(); + break; + } + case 40: { + Qty1 = input.ReadInt32(); + break; + } + case 48: { + Tid2 = input.ReadInt32(); + break; + } + case 56: { + Qty2 = input.ReadInt32(); + break; + } + case 64: { + Tid3 = input.ReadInt32(); + break; + } + case 72: { + Qty3 = input.ReadInt32(); + break; + } + case 80: { + Tid4 = input.ReadInt32(); + break; + } + case 88: { + Qty4 = input.ReadInt32(); + break; + } + case 96: { + GoldQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + AdvanceNum = input.ReadInt32(); + break; + } + case 32: { + Tid1 = input.ReadInt32(); + break; + } + case 40: { + Qty1 = input.ReadInt32(); + break; + } + case 48: { + Tid2 = input.ReadInt32(); + break; + } + case 56: { + Qty2 = input.ReadInt32(); + break; + } + case 64: { + Tid3 = input.ReadInt32(); + break; + } + case 72: { + Qty3 = input.ReadInt32(); + break; + } + case 80: { + Tid4 = input.ReadInt32(); + break; + } + case 88: { + Qty4 = input.ReadInt32(); + break; + } + case 96: { + GoldQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterSkin.cs b/NTR.Common/protos/CharacterSkin.cs new file mode 100644 index 0000000..9a4de8a --- /dev/null +++ b/NTR.Common/protos/CharacterSkin.cs @@ -0,0 +1,1290 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterSkin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterSkin.proto + public static partial class CharacterSkinReflection { + + #region Descriptor + /// File descriptor for CharacterSkin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterSkinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNDaGFyYWN0ZXJTa2luLnByb3RvItwECg1DaGFyYWN0ZXJTa2luEgoKAmlk", + "GAEgASgFEgwKBG5hbWUYAiABKAkSDAoEZGVzYxgDIAEoCRIPCgdpc19zaG93", + "GAQgASgIEg8KB2NoYXJfaWQYBSABKAUSDAoEdHlwZRgGIAEoBRITCgtzb3Vy", + "Y2VfZGVzYxgHIAEoBRIRCgl0cmFuc2Zvcm0YCCABKAkSGgoSd2Fsa19hbmlt", + "YXRpb25fc3BkGAkgASgFEhkKEXJ1bl9hbmltYXRpb25fc3BkGAogASgFEhwK", + "FHNwX3J1bl9hbmltYXRpb25fc3BkGAsgASgFEhMKC21vZGVsX3NjYWxlGAwg", + "ASgFEhYKDmNvbGxpZGVyX3NjYWxlGA0gASgFEhgKEG1vZGVsX3Nob3dfc2Nh", + "bGUYDiABKAUSFwoPbW9kZWxfZW5kX3NjYWxlGA8gASgFEhsKE2ZvcmJpZGRl", + "bl9iZWhpdF9yb3QYECABKAgSDAoEaWNvbhgRIAEoCRIQCghwb3J0cmFpdBgS", + "IAEoCRIKCgJiZxgTIAEoCRIOCgZvZmZzZXQYFCABKAkSDAoEbDJfZBgVIAEo", + "CRIVCg1jaGFyYWN0ZXJfY19nGBYgASgFEg0KBW1vZGVsGBcgASgJEhIKCm1v", + "ZGVsX3Nob3cYGCABKAkSEQoJbW9kZWxfZW5kGBkgASgJEhIKCmdhY2hhX2wy", + "X2QYGiABKAkSEgoKc2tpbl90aGVtZRgbIAEoBRIaChJlZmZlY3Rfc2NhbGVf", + "dmFsdWUYHCABKAUSHgoWdGFnX2VmZmVjdF9zY2FsZV92YWx1ZRgdIAEoBUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterSkin), global::Nova.Client.CharacterSkin.Parser, new[]{ "Id", "Name", "Desc", "IsShow", "CharId", "Type", "SourceDesc", "Transform", "WalkAnimationSpd", "RunAnimationSpd", "SpRunAnimationSpd", "ModelScale", "ColliderScale", "ModelShowScale", "ModelEndScale", "ForbiddenBehitRot", "Icon", "Portrait", "Bg", "Offset", "L2D", "CharacterCG", "Model", "ModelShow", "ModelEnd", "GachaL2D", "SkinTheme", "EffectScaleValue", "TagEffectScaleValue" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterSkin : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterSkin()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterSkinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkin(CharacterSkin other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + isShow_ = other.isShow_; + charId_ = other.charId_; + type_ = other.type_; + sourceDesc_ = other.sourceDesc_; + transform_ = other.transform_; + walkAnimationSpd_ = other.walkAnimationSpd_; + runAnimationSpd_ = other.runAnimationSpd_; + spRunAnimationSpd_ = other.spRunAnimationSpd_; + modelScale_ = other.modelScale_; + colliderScale_ = other.colliderScale_; + modelShowScale_ = other.modelShowScale_; + modelEndScale_ = other.modelEndScale_; + forbiddenBehitRot_ = other.forbiddenBehitRot_; + icon_ = other.icon_; + portrait_ = other.portrait_; + bg_ = other.bg_; + offset_ = other.offset_; + l2D_ = other.l2D_; + characterCG_ = other.characterCG_; + model_ = other.model_; + modelShow_ = other.modelShow_; + modelEnd_ = other.modelEnd_; + gachaL2D_ = other.gachaL2D_; + skinTheme_ = other.skinTheme_; + effectScaleValue_ = other.effectScaleValue_; + tagEffectScaleValue_ = other.tagEffectScaleValue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkin Clone() { + return new CharacterSkin(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_show" field. + public const int IsShowFieldNumber = 4; + private bool isShow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsShow { + get { return isShow_; } + set { + isShow_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 5; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 6; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "source_desc" field. + public const int SourceDescFieldNumber = 7; + private int sourceDesc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SourceDesc { + get { return sourceDesc_; } + set { + sourceDesc_ = value; + } + } + + /// Field number for the "transform" field. + public const int TransformFieldNumber = 8; + private string transform_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Transform { + get { return transform_; } + set { + transform_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "walk_animation_spd" field. + public const int WalkAnimationSpdFieldNumber = 9; + private int walkAnimationSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WalkAnimationSpd { + get { return walkAnimationSpd_; } + set { + walkAnimationSpd_ = value; + } + } + + /// Field number for the "run_animation_spd" field. + public const int RunAnimationSpdFieldNumber = 10; + private int runAnimationSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RunAnimationSpd { + get { return runAnimationSpd_; } + set { + runAnimationSpd_ = value; + } + } + + /// Field number for the "sp_run_animation_spd" field. + public const int SpRunAnimationSpdFieldNumber = 11; + private int spRunAnimationSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpRunAnimationSpd { + get { return spRunAnimationSpd_; } + set { + spRunAnimationSpd_ = value; + } + } + + /// Field number for the "model_scale" field. + public const int ModelScaleFieldNumber = 12; + private int modelScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ModelScale { + get { return modelScale_; } + set { + modelScale_ = value; + } + } + + /// Field number for the "collider_scale" field. + public const int ColliderScaleFieldNumber = 13; + private int colliderScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ColliderScale { + get { return colliderScale_; } + set { + colliderScale_ = value; + } + } + + /// Field number for the "model_show_scale" field. + public const int ModelShowScaleFieldNumber = 14; + private int modelShowScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ModelShowScale { + get { return modelShowScale_; } + set { + modelShowScale_ = value; + } + } + + /// Field number for the "model_end_scale" field. + public const int ModelEndScaleFieldNumber = 15; + private int modelEndScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ModelEndScale { + get { return modelEndScale_; } + set { + modelEndScale_ = value; + } + } + + /// Field number for the "forbidden_behit_rot" field. + public const int ForbiddenBehitRotFieldNumber = 16; + private bool forbiddenBehitRot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ForbiddenBehitRot { + get { return forbiddenBehitRot_; } + set { + forbiddenBehitRot_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 17; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "portrait" field. + public const int PortraitFieldNumber = 18; + private string portrait_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Portrait { + get { return portrait_; } + set { + portrait_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bg" field. + public const int BgFieldNumber = 19; + private string bg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bg { + get { return bg_; } + set { + bg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 20; + private string offset_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Offset { + get { return offset_; } + set { + offset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "l2_d" field. + public const int L2DFieldNumber = 21; + private string l2D_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string L2D { + get { return l2D_; } + set { + l2D_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "character_c_g" field. + public const int CharacterCGFieldNumber = 22; + private int characterCG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterCG { + get { return characterCG_; } + set { + characterCG_ = value; + } + } + + /// Field number for the "model" field. + public const int ModelFieldNumber = 23; + private string model_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Model { + get { return model_; } + set { + model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model_show" field. + public const int ModelShowFieldNumber = 24; + private string modelShow_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelShow { + get { return modelShow_; } + set { + modelShow_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model_end" field. + public const int ModelEndFieldNumber = 25; + private string modelEnd_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelEnd { + get { return modelEnd_; } + set { + modelEnd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gacha_l2_d" field. + public const int GachaL2DFieldNumber = 26; + private string gachaL2D_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GachaL2D { + get { return gachaL2D_; } + set { + gachaL2D_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "skin_theme" field. + public const int SkinThemeFieldNumber = 27; + private int skinTheme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkinTheme { + get { return skinTheme_; } + set { + skinTheme_ = value; + } + } + + /// Field number for the "effect_scale_value" field. + public const int EffectScaleValueFieldNumber = 28; + private int effectScaleValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectScaleValue { + get { return effectScaleValue_; } + set { + effectScaleValue_ = value; + } + } + + /// Field number for the "tag_effect_scale_value" field. + public const int TagEffectScaleValueFieldNumber = 29; + private int tagEffectScaleValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TagEffectScaleValue { + get { return tagEffectScaleValue_; } + set { + tagEffectScaleValue_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterSkin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterSkin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsShow != other.IsShow) return false; + if (CharId != other.CharId) return false; + if (Type != other.Type) return false; + if (SourceDesc != other.SourceDesc) return false; + if (Transform != other.Transform) return false; + if (WalkAnimationSpd != other.WalkAnimationSpd) return false; + if (RunAnimationSpd != other.RunAnimationSpd) return false; + if (SpRunAnimationSpd != other.SpRunAnimationSpd) return false; + if (ModelScale != other.ModelScale) return false; + if (ColliderScale != other.ColliderScale) return false; + if (ModelShowScale != other.ModelShowScale) return false; + if (ModelEndScale != other.ModelEndScale) return false; + if (ForbiddenBehitRot != other.ForbiddenBehitRot) return false; + if (Icon != other.Icon) return false; + if (Portrait != other.Portrait) return false; + if (Bg != other.Bg) return false; + if (Offset != other.Offset) return false; + if (L2D != other.L2D) return false; + if (CharacterCG != other.CharacterCG) return false; + if (Model != other.Model) return false; + if (ModelShow != other.ModelShow) return false; + if (ModelEnd != other.ModelEnd) return false; + if (GachaL2D != other.GachaL2D) return false; + if (SkinTheme != other.SkinTheme) return false; + if (EffectScaleValue != other.EffectScaleValue) return false; + if (TagEffectScaleValue != other.TagEffectScaleValue) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (IsShow != false) hash ^= IsShow.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (SourceDesc != 0) hash ^= SourceDesc.GetHashCode(); + if (Transform.Length != 0) hash ^= Transform.GetHashCode(); + if (WalkAnimationSpd != 0) hash ^= WalkAnimationSpd.GetHashCode(); + if (RunAnimationSpd != 0) hash ^= RunAnimationSpd.GetHashCode(); + if (SpRunAnimationSpd != 0) hash ^= SpRunAnimationSpd.GetHashCode(); + if (ModelScale != 0) hash ^= ModelScale.GetHashCode(); + if (ColliderScale != 0) hash ^= ColliderScale.GetHashCode(); + if (ModelShowScale != 0) hash ^= ModelShowScale.GetHashCode(); + if (ModelEndScale != 0) hash ^= ModelEndScale.GetHashCode(); + if (ForbiddenBehitRot != false) hash ^= ForbiddenBehitRot.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Portrait.Length != 0) hash ^= Portrait.GetHashCode(); + if (Bg.Length != 0) hash ^= Bg.GetHashCode(); + if (Offset.Length != 0) hash ^= Offset.GetHashCode(); + if (L2D.Length != 0) hash ^= L2D.GetHashCode(); + if (CharacterCG != 0) hash ^= CharacterCG.GetHashCode(); + if (Model.Length != 0) hash ^= Model.GetHashCode(); + if (ModelShow.Length != 0) hash ^= ModelShow.GetHashCode(); + if (ModelEnd.Length != 0) hash ^= ModelEnd.GetHashCode(); + if (GachaL2D.Length != 0) hash ^= GachaL2D.GetHashCode(); + if (SkinTheme != 0) hash ^= SkinTheme.GetHashCode(); + if (EffectScaleValue != 0) hash ^= EffectScaleValue.GetHashCode(); + if (TagEffectScaleValue != 0) hash ^= TagEffectScaleValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (IsShow != false) { + output.WriteRawTag(32); + output.WriteBool(IsShow); + } + if (CharId != 0) { + output.WriteRawTag(40); + output.WriteInt32(CharId); + } + if (Type != 0) { + output.WriteRawTag(48); + output.WriteInt32(Type); + } + if (SourceDesc != 0) { + output.WriteRawTag(56); + output.WriteInt32(SourceDesc); + } + if (Transform.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Transform); + } + if (WalkAnimationSpd != 0) { + output.WriteRawTag(72); + output.WriteInt32(WalkAnimationSpd); + } + if (RunAnimationSpd != 0) { + output.WriteRawTag(80); + output.WriteInt32(RunAnimationSpd); + } + if (SpRunAnimationSpd != 0) { + output.WriteRawTag(88); + output.WriteInt32(SpRunAnimationSpd); + } + if (ModelScale != 0) { + output.WriteRawTag(96); + output.WriteInt32(ModelScale); + } + if (ColliderScale != 0) { + output.WriteRawTag(104); + output.WriteInt32(ColliderScale); + } + if (ModelShowScale != 0) { + output.WriteRawTag(112); + output.WriteInt32(ModelShowScale); + } + if (ModelEndScale != 0) { + output.WriteRawTag(120); + output.WriteInt32(ModelEndScale); + } + if (ForbiddenBehitRot != false) { + output.WriteRawTag(128, 1); + output.WriteBool(ForbiddenBehitRot); + } + if (Icon.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Icon); + } + if (Portrait.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Portrait); + } + if (Bg.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Bg); + } + if (Offset.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Offset); + } + if (L2D.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(L2D); + } + if (CharacterCG != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(CharacterCG); + } + if (Model.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Model); + } + if (ModelShow.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(ModelShow); + } + if (ModelEnd.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(ModelEnd); + } + if (GachaL2D.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(GachaL2D); + } + if (SkinTheme != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(SkinTheme); + } + if (EffectScaleValue != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(EffectScaleValue); + } + if (TagEffectScaleValue != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(TagEffectScaleValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (IsShow != false) { + output.WriteRawTag(32); + output.WriteBool(IsShow); + } + if (CharId != 0) { + output.WriteRawTag(40); + output.WriteInt32(CharId); + } + if (Type != 0) { + output.WriteRawTag(48); + output.WriteInt32(Type); + } + if (SourceDesc != 0) { + output.WriteRawTag(56); + output.WriteInt32(SourceDesc); + } + if (Transform.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Transform); + } + if (WalkAnimationSpd != 0) { + output.WriteRawTag(72); + output.WriteInt32(WalkAnimationSpd); + } + if (RunAnimationSpd != 0) { + output.WriteRawTag(80); + output.WriteInt32(RunAnimationSpd); + } + if (SpRunAnimationSpd != 0) { + output.WriteRawTag(88); + output.WriteInt32(SpRunAnimationSpd); + } + if (ModelScale != 0) { + output.WriteRawTag(96); + output.WriteInt32(ModelScale); + } + if (ColliderScale != 0) { + output.WriteRawTag(104); + output.WriteInt32(ColliderScale); + } + if (ModelShowScale != 0) { + output.WriteRawTag(112); + output.WriteInt32(ModelShowScale); + } + if (ModelEndScale != 0) { + output.WriteRawTag(120); + output.WriteInt32(ModelEndScale); + } + if (ForbiddenBehitRot != false) { + output.WriteRawTag(128, 1); + output.WriteBool(ForbiddenBehitRot); + } + if (Icon.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Icon); + } + if (Portrait.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Portrait); + } + if (Bg.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Bg); + } + if (Offset.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Offset); + } + if (L2D.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(L2D); + } + if (CharacterCG != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(CharacterCG); + } + if (Model.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Model); + } + if (ModelShow.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(ModelShow); + } + if (ModelEnd.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(ModelEnd); + } + if (GachaL2D.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(GachaL2D); + } + if (SkinTheme != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(SkinTheme); + } + if (EffectScaleValue != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(EffectScaleValue); + } + if (TagEffectScaleValue != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(TagEffectScaleValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (IsShow != false) { + size += 1 + 1; + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (SourceDesc != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourceDesc); + } + if (Transform.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Transform); + } + if (WalkAnimationSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WalkAnimationSpd); + } + if (RunAnimationSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RunAnimationSpd); + } + if (SpRunAnimationSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpRunAnimationSpd); + } + if (ModelScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModelScale); + } + if (ColliderScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColliderScale); + } + if (ModelShowScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModelShowScale); + } + if (ModelEndScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModelEndScale); + } + if (ForbiddenBehitRot != false) { + size += 2 + 1; + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Portrait.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Portrait); + } + if (Bg.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Bg); + } + if (Offset.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Offset); + } + if (L2D.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(L2D); + } + if (CharacterCG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CharacterCG); + } + if (Model.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Model); + } + if (ModelShow.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ModelShow); + } + if (ModelEnd.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ModelEnd); + } + if (GachaL2D.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(GachaL2D); + } + if (SkinTheme != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkinTheme); + } + if (EffectScaleValue != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EffectScaleValue); + } + if (TagEffectScaleValue != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TagEffectScaleValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterSkin other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.IsShow != false) { + IsShow = other.IsShow; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.SourceDesc != 0) { + SourceDesc = other.SourceDesc; + } + if (other.Transform.Length != 0) { + Transform = other.Transform; + } + if (other.WalkAnimationSpd != 0) { + WalkAnimationSpd = other.WalkAnimationSpd; + } + if (other.RunAnimationSpd != 0) { + RunAnimationSpd = other.RunAnimationSpd; + } + if (other.SpRunAnimationSpd != 0) { + SpRunAnimationSpd = other.SpRunAnimationSpd; + } + if (other.ModelScale != 0) { + ModelScale = other.ModelScale; + } + if (other.ColliderScale != 0) { + ColliderScale = other.ColliderScale; + } + if (other.ModelShowScale != 0) { + ModelShowScale = other.ModelShowScale; + } + if (other.ModelEndScale != 0) { + ModelEndScale = other.ModelEndScale; + } + if (other.ForbiddenBehitRot != false) { + ForbiddenBehitRot = other.ForbiddenBehitRot; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Portrait.Length != 0) { + Portrait = other.Portrait; + } + if (other.Bg.Length != 0) { + Bg = other.Bg; + } + if (other.Offset.Length != 0) { + Offset = other.Offset; + } + if (other.L2D.Length != 0) { + L2D = other.L2D; + } + if (other.CharacterCG != 0) { + CharacterCG = other.CharacterCG; + } + if (other.Model.Length != 0) { + Model = other.Model; + } + if (other.ModelShow.Length != 0) { + ModelShow = other.ModelShow; + } + if (other.ModelEnd.Length != 0) { + ModelEnd = other.ModelEnd; + } + if (other.GachaL2D.Length != 0) { + GachaL2D = other.GachaL2D; + } + if (other.SkinTheme != 0) { + SkinTheme = other.SkinTheme; + } + if (other.EffectScaleValue != 0) { + EffectScaleValue = other.EffectScaleValue; + } + if (other.TagEffectScaleValue != 0) { + TagEffectScaleValue = other.TagEffectScaleValue; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + IsShow = input.ReadBool(); + break; + } + case 40: { + CharId = input.ReadInt32(); + break; + } + case 48: { + Type = input.ReadInt32(); + break; + } + case 56: { + SourceDesc = input.ReadInt32(); + break; + } + case 66: { + Transform = input.ReadString(); + break; + } + case 72: { + WalkAnimationSpd = input.ReadInt32(); + break; + } + case 80: { + RunAnimationSpd = input.ReadInt32(); + break; + } + case 88: { + SpRunAnimationSpd = input.ReadInt32(); + break; + } + case 96: { + ModelScale = input.ReadInt32(); + break; + } + case 104: { + ColliderScale = input.ReadInt32(); + break; + } + case 112: { + ModelShowScale = input.ReadInt32(); + break; + } + case 120: { + ModelEndScale = input.ReadInt32(); + break; + } + case 128: { + ForbiddenBehitRot = input.ReadBool(); + break; + } + case 138: { + Icon = input.ReadString(); + break; + } + case 146: { + Portrait = input.ReadString(); + break; + } + case 154: { + Bg = input.ReadString(); + break; + } + case 162: { + Offset = input.ReadString(); + break; + } + case 170: { + L2D = input.ReadString(); + break; + } + case 176: { + CharacterCG = input.ReadInt32(); + break; + } + case 186: { + Model = input.ReadString(); + break; + } + case 194: { + ModelShow = input.ReadString(); + break; + } + case 202: { + ModelEnd = input.ReadString(); + break; + } + case 210: { + GachaL2D = input.ReadString(); + break; + } + case 216: { + SkinTheme = input.ReadInt32(); + break; + } + case 224: { + EffectScaleValue = input.ReadInt32(); + break; + } + case 232: { + TagEffectScaleValue = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + IsShow = input.ReadBool(); + break; + } + case 40: { + CharId = input.ReadInt32(); + break; + } + case 48: { + Type = input.ReadInt32(); + break; + } + case 56: { + SourceDesc = input.ReadInt32(); + break; + } + case 66: { + Transform = input.ReadString(); + break; + } + case 72: { + WalkAnimationSpd = input.ReadInt32(); + break; + } + case 80: { + RunAnimationSpd = input.ReadInt32(); + break; + } + case 88: { + SpRunAnimationSpd = input.ReadInt32(); + break; + } + case 96: { + ModelScale = input.ReadInt32(); + break; + } + case 104: { + ColliderScale = input.ReadInt32(); + break; + } + case 112: { + ModelShowScale = input.ReadInt32(); + break; + } + case 120: { + ModelEndScale = input.ReadInt32(); + break; + } + case 128: { + ForbiddenBehitRot = input.ReadBool(); + break; + } + case 138: { + Icon = input.ReadString(); + break; + } + case 146: { + Portrait = input.ReadString(); + break; + } + case 154: { + Bg = input.ReadString(); + break; + } + case 162: { + Offset = input.ReadString(); + break; + } + case 170: { + L2D = input.ReadString(); + break; + } + case 176: { + CharacterCG = input.ReadInt32(); + break; + } + case 186: { + Model = input.ReadString(); + break; + } + case 194: { + ModelShow = input.ReadString(); + break; + } + case 202: { + ModelEnd = input.ReadString(); + break; + } + case 210: { + GachaL2D = input.ReadString(); + break; + } + case 216: { + SkinTheme = input.ReadInt32(); + break; + } + case 224: { + EffectScaleValue = input.ReadInt32(); + break; + } + case 232: { + TagEffectScaleValue = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterSkinPanelFace.cs b/NTR.Common/protos/CharacterSkinPanelFace.cs new file mode 100644 index 0000000..00a01e8 --- /dev/null +++ b/NTR.Common/protos/CharacterSkinPanelFace.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterSkinPanelFace.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterSkinPanelFace.proto + public static partial class CharacterSkinPanelFaceReflection { + + #region Descriptor + /// File descriptor for CharacterSkinPanelFace.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterSkinPanelFaceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxDaGFyYWN0ZXJTa2luUGFuZWxGYWNlLnByb3RvInMKFkNoYXJhY3RlclNr", + "aW5QYW5lbEZhY2USCgoCaWQYASABKAUSEQoJbWFpbl92aWV3GAIgASgJEhEK", + "CWNoYXJfaW5mbxgDIAEoCRISCgpiYXR0ZWxfd2luGAQgASgJEhMKC2JhdHRs", + "ZV9sb3NlGAUgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterSkinPanelFace), global::Nova.Client.CharacterSkinPanelFace.Parser, new[]{ "Id", "MainView", "CharInfo", "BattelWin", "BattleLose" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterSkinPanelFace : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterSkinPanelFace()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterSkinPanelFaceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkinPanelFace() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkinPanelFace(CharacterSkinPanelFace other) : this() { + id_ = other.id_; + mainView_ = other.mainView_; + charInfo_ = other.charInfo_; + battelWin_ = other.battelWin_; + battleLose_ = other.battleLose_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkinPanelFace Clone() { + return new CharacterSkinPanelFace(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "main_view" field. + public const int MainViewFieldNumber = 2; + private string mainView_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MainView { + get { return mainView_; } + set { + mainView_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "char_info" field. + public const int CharInfoFieldNumber = 3; + private string charInfo_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CharInfo { + get { return charInfo_; } + set { + charInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "battel_win" field. + public const int BattelWinFieldNumber = 4; + private string battelWin_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BattelWin { + get { return battelWin_; } + set { + battelWin_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "battle_lose" field. + public const int BattleLoseFieldNumber = 5; + private string battleLose_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BattleLose { + get { return battleLose_; } + set { + battleLose_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterSkinPanelFace); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterSkinPanelFace other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MainView != other.MainView) return false; + if (CharInfo != other.CharInfo) return false; + if (BattelWin != other.BattelWin) return false; + if (BattleLose != other.BattleLose) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MainView.Length != 0) hash ^= MainView.GetHashCode(); + if (CharInfo.Length != 0) hash ^= CharInfo.GetHashCode(); + if (BattelWin.Length != 0) hash ^= BattelWin.GetHashCode(); + if (BattleLose.Length != 0) hash ^= BattleLose.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MainView.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MainView); + } + if (CharInfo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CharInfo); + } + if (BattelWin.Length != 0) { + output.WriteRawTag(34); + output.WriteString(BattelWin); + } + if (BattleLose.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BattleLose); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MainView.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MainView); + } + if (CharInfo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CharInfo); + } + if (BattelWin.Length != 0) { + output.WriteRawTag(34); + output.WriteString(BattelWin); + } + if (BattleLose.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BattleLose); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MainView.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MainView); + } + if (CharInfo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CharInfo); + } + if (BattelWin.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattelWin); + } + if (BattleLose.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleLose); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterSkinPanelFace other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MainView.Length != 0) { + MainView = other.MainView; + } + if (other.CharInfo.Length != 0) { + CharInfo = other.CharInfo; + } + if (other.BattelWin.Length != 0) { + BattelWin = other.BattelWin; + } + if (other.BattleLose.Length != 0) { + BattleLose = other.BattleLose; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + MainView = input.ReadString(); + break; + } + case 26: { + CharInfo = input.ReadString(); + break; + } + case 34: { + BattelWin = input.ReadString(); + break; + } + case 42: { + BattleLose = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + MainView = input.ReadString(); + break; + } + case 26: { + CharInfo = input.ReadString(); + break; + } + case 34: { + BattelWin = input.ReadString(); + break; + } + case 42: { + BattleLose = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterSkinTheme.cs b/NTR.Common/protos/CharacterSkinTheme.cs new file mode 100644 index 0000000..0d9ffa8 --- /dev/null +++ b/NTR.Common/protos/CharacterSkinTheme.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterSkinTheme.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterSkinTheme.proto + public static partial class CharacterSkinThemeReflection { + + #region Descriptor + /// File descriptor for CharacterSkinTheme.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterSkinThemeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGFyYWN0ZXJTa2luVGhlbWUucHJvdG8iSgoSQ2hhcmFjdGVyU2tpblRo", + "ZW1lEgoKAmlkGAEgASgFEgwKBG5hbWUYAiABKAkSDAoEZGVzYxgDIAEoCRIM", + "CgRpY29uGAQgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterSkinTheme), global::Nova.Client.CharacterSkinTheme.Parser, new[]{ "Id", "Name", "Desc", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterSkinTheme : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterSkinTheme()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterSkinThemeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkinTheme() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkinTheme(CharacterSkinTheme other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterSkinTheme Clone() { + return new CharacterSkinTheme(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterSkinTheme); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterSkinTheme other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterSkinTheme other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterTag.cs b/NTR.Common/protos/CharacterTag.cs new file mode 100644 index 0000000..2f0392c --- /dev/null +++ b/NTR.Common/protos/CharacterTag.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterTag.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterTag.proto + public static partial class CharacterTagReflection { + + #region Descriptor + /// File descriptor for CharacterTag.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterTagReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJDaGFyYWN0ZXJUYWcucHJvdG8iOwoMQ2hhcmFjdGVyVGFnEgoKAmlkGAEg", + "ASgFEg0KBXRpdGxlGAIgASgJEhAKCHRhZ190eXBlGAMgASgFQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterTag), global::Nova.Client.CharacterTag.Parser, new[]{ "Id", "Title", "TagType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterTagReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterTag(CharacterTag other) : this() { + id_ = other.id_; + title_ = other.title_; + tagType_ = other.tagType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterTag Clone() { + return new CharacterTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag_type" field. + public const int TagTypeFieldNumber = 3; + private int tagType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TagType { + get { return tagType_; } + set { + tagType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (TagType != other.TagType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (TagType != 0) hash ^= TagType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (TagType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TagType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (TagType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TagType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (TagType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TagType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterTag other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.TagType != 0) { + TagType = other.TagType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + TagType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + TagType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterUpgrade.cs b/NTR.Common/protos/CharacterUpgrade.cs new file mode 100644 index 0000000..e70d90a --- /dev/null +++ b/NTR.Common/protos/CharacterUpgrade.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterUpgrade.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterUpgrade.proto + public static partial class CharacterUpgradeReflection { + + #region Descriptor + /// File descriptor for CharacterUpgrade.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterUpgradeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDaGFyYWN0ZXJVcGdyYWRlLnByb3RvIkoKEENoYXJhY3RlclVwZ3JhZGUS", + "CgoCaWQYASABKAUSDgoGcmFyaXR5GAIgASgFEg0KBWxldmVsGAMgASgFEgsK", + "A2V4cBgEIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterUpgrade), global::Nova.Client.CharacterUpgrade.Parser, new[]{ "Id", "Rarity", "Level", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterUpgrade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterUpgrade()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterUpgradeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterUpgrade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterUpgrade(CharacterUpgrade other) : this() { + id_ = other.id_; + rarity_ = other.rarity_; + level_ = other.level_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterUpgrade Clone() { + return new CharacterUpgrade(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 2; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 4; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterUpgrade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterUpgrade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Rarity != other.Rarity) return false; + if (Level != other.Level) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Rarity != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rarity); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (Exp != 0) { + output.WriteRawTag(32); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Rarity != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rarity); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (Exp != 0) { + output.WriteRawTag(32); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterUpgrade other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Rarity = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Rarity = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/CharacterVoiceControl.cs b/NTR.Common/protos/CharacterVoiceControl.cs new file mode 100644 index 0000000..486dd82 --- /dev/null +++ b/NTR.Common/protos/CharacterVoiceControl.cs @@ -0,0 +1,532 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CharacterVoiceControl.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from CharacterVoiceControl.proto + public static partial class CharacterVoiceControlReflection { + + #region Descriptor + /// File descriptor for CharacterVoiceControl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CharacterVoiceControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGFyYWN0ZXJWb2ljZUNvbnRyb2wucHJvdG8iuwEKFUNoYXJhY3RlclZv", + "aWNlQ29udHJvbBIKCgJpZBgBIAEoCRITCgtwcm9iYWJpbGl0eRgCIAEoBRIQ", + "CghyZXNfdHlwZRgDIAEoBRITCgtjb21iYXRfb25seRgEIAEoCBIZChF3b3Js", + "ZF9sZXZlbF90eXBlcxgFIAMoBRIOCgZidWJibGUYBiABKAgSCgoCY2QYByAB", + "KAISEQoJdm9fcGxheWVyGAggASgFEhAKCHByaW9yaXR5GAkgASgFQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterVoiceControl), global::Nova.Client.CharacterVoiceControl.Parser, new[]{ "Id", "Probability", "ResType", "CombatOnly", "WorldLevelTypes", "Bubble", "Cd", "VoPlayer", "Priority" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CharacterVoiceControl : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CharacterVoiceControl()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.CharacterVoiceControlReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterVoiceControl() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterVoiceControl(CharacterVoiceControl other) : this() { + id_ = other.id_; + probability_ = other.probability_; + resType_ = other.resType_; + combatOnly_ = other.combatOnly_; + worldLevelTypes_ = other.worldLevelTypes_.Clone(); + bubble_ = other.bubble_; + cd_ = other.cd_; + voPlayer_ = other.voPlayer_; + priority_ = other.priority_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CharacterVoiceControl Clone() { + return new CharacterVoiceControl(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 2; + private int probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Probability { + get { return probability_; } + set { + probability_ = value; + } + } + + /// Field number for the "res_type" field. + public const int ResTypeFieldNumber = 3; + private int resType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ResType { + get { return resType_; } + set { + resType_ = value; + } + } + + /// Field number for the "combat_only" field. + public const int CombatOnlyFieldNumber = 4; + private bool combatOnly_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CombatOnly { + get { return combatOnly_; } + set { + combatOnly_ = value; + } + } + + /// Field number for the "world_level_types" field. + public const int WorldLevelTypesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_worldLevelTypes_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField worldLevelTypes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField WorldLevelTypes { + get { return worldLevelTypes_; } + } + + /// Field number for the "bubble" field. + public const int BubbleFieldNumber = 6; + private bool bubble_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Bubble { + get { return bubble_; } + set { + bubble_ = value; + } + } + + /// Field number for the "cd" field. + public const int CdFieldNumber = 7; + private float cd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Cd { + get { return cd_; } + set { + cd_ = value; + } + } + + /// Field number for the "vo_player" field. + public const int VoPlayerFieldNumber = 8; + private int voPlayer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VoPlayer { + get { return voPlayer_; } + set { + voPlayer_ = value; + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 9; + private int priority_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CharacterVoiceControl); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CharacterVoiceControl other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Probability != other.Probability) return false; + if (ResType != other.ResType) return false; + if (CombatOnly != other.CombatOnly) return false; + if(!worldLevelTypes_.Equals(other.worldLevelTypes_)) return false; + if (Bubble != other.Bubble) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Cd, other.Cd)) return false; + if (VoPlayer != other.VoPlayer) return false; + if (Priority != other.Priority) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Probability != 0) hash ^= Probability.GetHashCode(); + if (ResType != 0) hash ^= ResType.GetHashCode(); + if (CombatOnly != false) hash ^= CombatOnly.GetHashCode(); + hash ^= worldLevelTypes_.GetHashCode(); + if (Bubble != false) hash ^= Bubble.GetHashCode(); + if (Cd != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Cd); + if (VoPlayer != 0) hash ^= VoPlayer.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Probability != 0) { + output.WriteRawTag(16); + output.WriteInt32(Probability); + } + if (ResType != 0) { + output.WriteRawTag(24); + output.WriteInt32(ResType); + } + if (CombatOnly != false) { + output.WriteRawTag(32); + output.WriteBool(CombatOnly); + } + worldLevelTypes_.WriteTo(output, _repeated_worldLevelTypes_codec); + if (Bubble != false) { + output.WriteRawTag(48); + output.WriteBool(Bubble); + } + if (Cd != 0F) { + output.WriteRawTag(61); + output.WriteFloat(Cd); + } + if (VoPlayer != 0) { + output.WriteRawTag(64); + output.WriteInt32(VoPlayer); + } + if (Priority != 0) { + output.WriteRawTag(72); + output.WriteInt32(Priority); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Probability != 0) { + output.WriteRawTag(16); + output.WriteInt32(Probability); + } + if (ResType != 0) { + output.WriteRawTag(24); + output.WriteInt32(ResType); + } + if (CombatOnly != false) { + output.WriteRawTag(32); + output.WriteBool(CombatOnly); + } + worldLevelTypes_.WriteTo(ref output, _repeated_worldLevelTypes_codec); + if (Bubble != false) { + output.WriteRawTag(48); + output.WriteBool(Bubble); + } + if (Cd != 0F) { + output.WriteRawTag(61); + output.WriteFloat(Cd); + } + if (VoPlayer != 0) { + output.WriteRawTag(64); + output.WriteInt32(VoPlayer); + } + if (Priority != 0) { + output.WriteRawTag(72); + output.WriteInt32(Priority); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Probability != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Probability); + } + if (ResType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResType); + } + if (CombatOnly != false) { + size += 1 + 1; + } + size += worldLevelTypes_.CalculateSize(_repeated_worldLevelTypes_codec); + if (Bubble != false) { + size += 1 + 1; + } + if (Cd != 0F) { + size += 1 + 4; + } + if (VoPlayer != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VoPlayer); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CharacterVoiceControl other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Probability != 0) { + Probability = other.Probability; + } + if (other.ResType != 0) { + ResType = other.ResType; + } + if (other.CombatOnly != false) { + CombatOnly = other.CombatOnly; + } + worldLevelTypes_.Add(other.worldLevelTypes_); + if (other.Bubble != false) { + Bubble = other.Bubble; + } + if (other.Cd != 0F) { + Cd = other.Cd; + } + if (other.VoPlayer != 0) { + VoPlayer = other.VoPlayer; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + Probability = input.ReadInt32(); + break; + } + case 24: { + ResType = input.ReadInt32(); + break; + } + case 32: { + CombatOnly = input.ReadBool(); + break; + } + case 42: + case 40: { + worldLevelTypes_.AddEntriesFrom(input, _repeated_worldLevelTypes_codec); + break; + } + case 48: { + Bubble = input.ReadBool(); + break; + } + case 61: { + Cd = input.ReadFloat(); + break; + } + case 64: { + VoPlayer = input.ReadInt32(); + break; + } + case 72: { + Priority = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 16: { + Probability = input.ReadInt32(); + break; + } + case 24: { + ResType = input.ReadInt32(); + break; + } + case 32: { + CombatOnly = input.ReadBool(); + break; + } + case 42: + case 40: { + worldLevelTypes_.AddEntriesFrom(ref input, _repeated_worldLevelTypes_codec); + break; + } + case 48: { + Bubble = input.ReadBool(); + break; + } + case 61: { + Cd = input.ReadFloat(); + break; + } + case 64: { + VoPlayer = input.ReadInt32(); + break; + } + case 72: { + Priority = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Chat.cs b/NTR.Common/protos/Chat.cs new file mode 100644 index 0000000..cacbcef --- /dev/null +++ b/NTR.Common/protos/Chat.cs @@ -0,0 +1,803 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Chat.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Chat.proto + public static partial class ChatReflection { + + #region Descriptor + /// File descriptor for Chat.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChatReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpDaGF0LnByb3RvIssCCgRDaGF0EgoKAmlkGAEgASgFEhcKD2FkZHJlc3Nf", + "Ym9va19pZBgCIAEoBRIQCghhX3ZfZ19pZBgDIAEoCRIWCg5hX3ZfZ19ncm91", + "cF9pZBgEIAEoCRITCgtwcmVfY2hhdF9pZBgFIAEoBRIQCghwcmlvcml0eRgG", + "IAEoBRIUCgx0cmlnZ2VyX3R5cGUYByABKAUSEwoLYXV0b19wb3BfdXAYCCAB", + "KAgSFAoMdHJpZ2dlcl9jb25kGAkgASgFEhoKEnRyaWdnZXJfY29uZF9wYXJh", + "bRgKIAEoCRIPCgdyZXdhcmQxGAsgASgFEhMKC3Jld2FyZF9xdHkxGAwgASgF", + "Eg8KB3Jld2FyZDIYDSABKAUSEwoLcmV3YXJkX3F0eTIYDiABKAUSDwoHcmV3", + "YXJkMxgPIAEoBRITCgtyZXdhcmRfcXR5MxgQIAEoBUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Chat), global::Nova.Client.Chat.Parser, new[]{ "Id", "AddressBookId", "AVGId", "AVGGroupId", "PreChatId", "Priority", "TriggerType", "AutoPopUp", "TriggerCond", "TriggerCondParam", "Reward1", "RewardQty1", "Reward2", "RewardQty2", "Reward3", "RewardQty3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Chat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Chat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ChatReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chat(Chat other) : this() { + id_ = other.id_; + addressBookId_ = other.addressBookId_; + aVGId_ = other.aVGId_; + aVGGroupId_ = other.aVGGroupId_; + preChatId_ = other.preChatId_; + priority_ = other.priority_; + triggerType_ = other.triggerType_; + autoPopUp_ = other.autoPopUp_; + triggerCond_ = other.triggerCond_; + triggerCondParam_ = other.triggerCondParam_; + reward1_ = other.reward1_; + rewardQty1_ = other.rewardQty1_; + reward2_ = other.reward2_; + rewardQty2_ = other.rewardQty2_; + reward3_ = other.reward3_; + rewardQty3_ = other.rewardQty3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chat Clone() { + return new Chat(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "address_book_id" field. + public const int AddressBookIdFieldNumber = 2; + private int addressBookId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AddressBookId { + get { return addressBookId_; } + set { + addressBookId_ = value; + } + } + + /// Field number for the "a_v_g_id" field. + public const int AVGIdFieldNumber = 3; + private string aVGId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AVGId { + get { return aVGId_; } + set { + aVGId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "a_v_g_group_id" field. + public const int AVGGroupIdFieldNumber = 4; + private string aVGGroupId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AVGGroupId { + get { return aVGGroupId_; } + set { + aVGGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pre_chat_id" field. + public const int PreChatIdFieldNumber = 5; + private int preChatId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreChatId { + get { return preChatId_; } + set { + preChatId_ = value; + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 6; + private int priority_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + /// Field number for the "trigger_type" field. + public const int TriggerTypeFieldNumber = 7; + private int triggerType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerType { + get { return triggerType_; } + set { + triggerType_ = value; + } + } + + /// Field number for the "auto_pop_up" field. + public const int AutoPopUpFieldNumber = 8; + private bool autoPopUp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoPopUp { + get { return autoPopUp_; } + set { + autoPopUp_ = value; + } + } + + /// Field number for the "trigger_cond" field. + public const int TriggerCondFieldNumber = 9; + private int triggerCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerCond { + get { return triggerCond_; } + set { + triggerCond_ = value; + } + } + + /// Field number for the "trigger_cond_param" field. + public const int TriggerCondParamFieldNumber = 10; + private string triggerCondParam_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerCondParam { + get { return triggerCondParam_; } + set { + triggerCondParam_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reward1" field. + public const int Reward1FieldNumber = 11; + private int reward1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward1 { + get { return reward1_; } + set { + reward1_ = value; + } + } + + /// Field number for the "reward_qty1" field. + public const int RewardQty1FieldNumber = 12; + private int rewardQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty1 { + get { return rewardQty1_; } + set { + rewardQty1_ = value; + } + } + + /// Field number for the "reward2" field. + public const int Reward2FieldNumber = 13; + private int reward2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward2 { + get { return reward2_; } + set { + reward2_ = value; + } + } + + /// Field number for the "reward_qty2" field. + public const int RewardQty2FieldNumber = 14; + private int rewardQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty2 { + get { return rewardQty2_; } + set { + rewardQty2_ = value; + } + } + + /// Field number for the "reward3" field. + public const int Reward3FieldNumber = 15; + private int reward3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward3 { + get { return reward3_; } + set { + reward3_ = value; + } + } + + /// Field number for the "reward_qty3" field. + public const int RewardQty3FieldNumber = 16; + private int rewardQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty3 { + get { return rewardQty3_; } + set { + rewardQty3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Chat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Chat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AddressBookId != other.AddressBookId) return false; + if (AVGId != other.AVGId) return false; + if (AVGGroupId != other.AVGGroupId) return false; + if (PreChatId != other.PreChatId) return false; + if (Priority != other.Priority) return false; + if (TriggerType != other.TriggerType) return false; + if (AutoPopUp != other.AutoPopUp) return false; + if (TriggerCond != other.TriggerCond) return false; + if (TriggerCondParam != other.TriggerCondParam) return false; + if (Reward1 != other.Reward1) return false; + if (RewardQty1 != other.RewardQty1) return false; + if (Reward2 != other.Reward2) return false; + if (RewardQty2 != other.RewardQty2) return false; + if (Reward3 != other.Reward3) return false; + if (RewardQty3 != other.RewardQty3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (AddressBookId != 0) hash ^= AddressBookId.GetHashCode(); + if (AVGId.Length != 0) hash ^= AVGId.GetHashCode(); + if (AVGGroupId.Length != 0) hash ^= AVGGroupId.GetHashCode(); + if (PreChatId != 0) hash ^= PreChatId.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + if (TriggerType != 0) hash ^= TriggerType.GetHashCode(); + if (AutoPopUp != false) hash ^= AutoPopUp.GetHashCode(); + if (TriggerCond != 0) hash ^= TriggerCond.GetHashCode(); + if (TriggerCondParam.Length != 0) hash ^= TriggerCondParam.GetHashCode(); + if (Reward1 != 0) hash ^= Reward1.GetHashCode(); + if (RewardQty1 != 0) hash ^= RewardQty1.GetHashCode(); + if (Reward2 != 0) hash ^= Reward2.GetHashCode(); + if (RewardQty2 != 0) hash ^= RewardQty2.GetHashCode(); + if (Reward3 != 0) hash ^= Reward3.GetHashCode(); + if (RewardQty3 != 0) hash ^= RewardQty3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AddressBookId != 0) { + output.WriteRawTag(16); + output.WriteInt32(AddressBookId); + } + if (AVGId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AVGId); + } + if (AVGGroupId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AVGGroupId); + } + if (PreChatId != 0) { + output.WriteRawTag(40); + output.WriteInt32(PreChatId); + } + if (Priority != 0) { + output.WriteRawTag(48); + output.WriteInt32(Priority); + } + if (TriggerType != 0) { + output.WriteRawTag(56); + output.WriteInt32(TriggerType); + } + if (AutoPopUp != false) { + output.WriteRawTag(64); + output.WriteBool(AutoPopUp); + } + if (TriggerCond != 0) { + output.WriteRawTag(72); + output.WriteInt32(TriggerCond); + } + if (TriggerCondParam.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TriggerCondParam); + } + if (Reward1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(96); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(112); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(RewardQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AddressBookId != 0) { + output.WriteRawTag(16); + output.WriteInt32(AddressBookId); + } + if (AVGId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AVGId); + } + if (AVGGroupId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AVGGroupId); + } + if (PreChatId != 0) { + output.WriteRawTag(40); + output.WriteInt32(PreChatId); + } + if (Priority != 0) { + output.WriteRawTag(48); + output.WriteInt32(Priority); + } + if (TriggerType != 0) { + output.WriteRawTag(56); + output.WriteInt32(TriggerType); + } + if (AutoPopUp != false) { + output.WriteRawTag(64); + output.WriteBool(AutoPopUp); + } + if (TriggerCond != 0) { + output.WriteRawTag(72); + output.WriteInt32(TriggerCond); + } + if (TriggerCondParam.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TriggerCondParam); + } + if (Reward1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(96); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(112); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(RewardQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (AddressBookId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AddressBookId); + } + if (AVGId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AVGId); + } + if (AVGGroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AVGGroupId); + } + if (PreChatId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreChatId); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + if (TriggerType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerType); + } + if (AutoPopUp != false) { + size += 1 + 1; + } + if (TriggerCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerCond); + } + if (TriggerCondParam.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerCondParam); + } + if (Reward1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward1); + } + if (RewardQty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty1); + } + if (Reward2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward2); + } + if (RewardQty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty2); + } + if (Reward3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward3); + } + if (RewardQty3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RewardQty3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Chat other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AddressBookId != 0) { + AddressBookId = other.AddressBookId; + } + if (other.AVGId.Length != 0) { + AVGId = other.AVGId; + } + if (other.AVGGroupId.Length != 0) { + AVGGroupId = other.AVGGroupId; + } + if (other.PreChatId != 0) { + PreChatId = other.PreChatId; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + if (other.TriggerType != 0) { + TriggerType = other.TriggerType; + } + if (other.AutoPopUp != false) { + AutoPopUp = other.AutoPopUp; + } + if (other.TriggerCond != 0) { + TriggerCond = other.TriggerCond; + } + if (other.TriggerCondParam.Length != 0) { + TriggerCondParam = other.TriggerCondParam; + } + if (other.Reward1 != 0) { + Reward1 = other.Reward1; + } + if (other.RewardQty1 != 0) { + RewardQty1 = other.RewardQty1; + } + if (other.Reward2 != 0) { + Reward2 = other.Reward2; + } + if (other.RewardQty2 != 0) { + RewardQty2 = other.RewardQty2; + } + if (other.Reward3 != 0) { + Reward3 = other.Reward3; + } + if (other.RewardQty3 != 0) { + RewardQty3 = other.RewardQty3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AddressBookId = input.ReadInt32(); + break; + } + case 26: { + AVGId = input.ReadString(); + break; + } + case 34: { + AVGGroupId = input.ReadString(); + break; + } + case 40: { + PreChatId = input.ReadInt32(); + break; + } + case 48: { + Priority = input.ReadInt32(); + break; + } + case 56: { + TriggerType = input.ReadInt32(); + break; + } + case 64: { + AutoPopUp = input.ReadBool(); + break; + } + case 72: { + TriggerCond = input.ReadInt32(); + break; + } + case 82: { + TriggerCondParam = input.ReadString(); + break; + } + case 88: { + Reward1 = input.ReadInt32(); + break; + } + case 96: { + RewardQty1 = input.ReadInt32(); + break; + } + case 104: { + Reward2 = input.ReadInt32(); + break; + } + case 112: { + RewardQty2 = input.ReadInt32(); + break; + } + case 120: { + Reward3 = input.ReadInt32(); + break; + } + case 128: { + RewardQty3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AddressBookId = input.ReadInt32(); + break; + } + case 26: { + AVGId = input.ReadString(); + break; + } + case 34: { + AVGGroupId = input.ReadString(); + break; + } + case 40: { + PreChatId = input.ReadInt32(); + break; + } + case 48: { + Priority = input.ReadInt32(); + break; + } + case 56: { + TriggerType = input.ReadInt32(); + break; + } + case 64: { + AutoPopUp = input.ReadBool(); + break; + } + case 72: { + TriggerCond = input.ReadInt32(); + break; + } + case 82: { + TriggerCondParam = input.ReadString(); + break; + } + case 88: { + Reward1 = input.ReadInt32(); + break; + } + case 96: { + RewardQty1 = input.ReadInt32(); + break; + } + case 104: { + Reward2 = input.ReadInt32(); + break; + } + case 112: { + RewardQty2 = input.ReadInt32(); + break; + } + case 120: { + Reward3 = input.ReadInt32(); + break; + } + case 128: { + RewardQty3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Chest.cs b/NTR.Common/protos/Chest.cs new file mode 100644 index 0000000..9180869 --- /dev/null +++ b/NTR.Common/protos/Chest.cs @@ -0,0 +1,802 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Chest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Chest.proto + public static partial class ChestReflection { + + #region Descriptor + /// File descriptor for Chest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtDaGVzdC5wcm90byKZAgoFQ2hlc3QSCgoCaWQYASABKAUSDQoFZ3JvdXAY", + "AiABKAUSDQoFbGFiZWwYAyABKAUSEQoJbG93X2Zsb29yGAQgASgFEhIKCmhp", + "Z2hfZmxvb3IYBSABKAUSGAoQdG50ZXJhY3Rpb25fdHlwZRgGIAEoBRIRCglh", + "dXRvX29wZW4YByABKAUSEgoKbW9kZWxfcGF0aBgIIAEoCRINCgVpdGVtMRgJ", + "IAEoBRIPCgdudW1iZXIxGAogASgFEg0KBWl0ZW0yGAsgASgFEg8KB251bWJl", + "cjIYDCABKAUSDQoFaXRlbTMYDSABKAUSDwoHbnVtYmVyMxgOIAEoBRINCgVp", + "dGVtNBgPIAEoBRIPCgdudW1iZXI0GBAgASgFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Chest), global::Nova.Client.Chest.Parser, new[]{ "Id", "Group", "Label", "LowFloor", "HighFloor", "TnteractionType", "AutoOpen", "ModelPath", "Item1", "Number1", "Item2", "Number2", "Item3", "Number3", "Item4", "Number4" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Chest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Chest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ChestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chest(Chest other) : this() { + id_ = other.id_; + group_ = other.group_; + label_ = other.label_; + lowFloor_ = other.lowFloor_; + highFloor_ = other.highFloor_; + tnteractionType_ = other.tnteractionType_; + autoOpen_ = other.autoOpen_; + modelPath_ = other.modelPath_; + item1_ = other.item1_; + number1_ = other.number1_; + item2_ = other.item2_; + number2_ = other.number2_; + item3_ = other.item3_; + number3_ = other.number3_; + item4_ = other.item4_; + number4_ = other.number4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Chest Clone() { + return new Chest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 2; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "label" field. + public const int LabelFieldNumber = 3; + private int label_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Label { + get { return label_; } + set { + label_ = value; + } + } + + /// Field number for the "low_floor" field. + public const int LowFloorFieldNumber = 4; + private int lowFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LowFloor { + get { return lowFloor_; } + set { + lowFloor_ = value; + } + } + + /// Field number for the "high_floor" field. + public const int HighFloorFieldNumber = 5; + private int highFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HighFloor { + get { return highFloor_; } + set { + highFloor_ = value; + } + } + + /// Field number for the "tnteraction_type" field. + public const int TnteractionTypeFieldNumber = 6; + private int tnteractionType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TnteractionType { + get { return tnteractionType_; } + set { + tnteractionType_ = value; + } + } + + /// Field number for the "auto_open" field. + public const int AutoOpenFieldNumber = 7; + private int autoOpen_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AutoOpen { + get { return autoOpen_; } + set { + autoOpen_ = value; + } + } + + /// Field number for the "model_path" field. + public const int ModelPathFieldNumber = 8; + private string modelPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelPath { + get { return modelPath_; } + set { + modelPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item1" field. + public const int Item1FieldNumber = 9; + private int item1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Item1 { + get { return item1_; } + set { + item1_ = value; + } + } + + /// Field number for the "number1" field. + public const int Number1FieldNumber = 10; + private int number1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number1 { + get { return number1_; } + set { + number1_ = value; + } + } + + /// Field number for the "item2" field. + public const int Item2FieldNumber = 11; + private int item2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Item2 { + get { return item2_; } + set { + item2_ = value; + } + } + + /// Field number for the "number2" field. + public const int Number2FieldNumber = 12; + private int number2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number2 { + get { return number2_; } + set { + number2_ = value; + } + } + + /// Field number for the "item3" field. + public const int Item3FieldNumber = 13; + private int item3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Item3 { + get { return item3_; } + set { + item3_ = value; + } + } + + /// Field number for the "number3" field. + public const int Number3FieldNumber = 14; + private int number3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number3 { + get { return number3_; } + set { + number3_ = value; + } + } + + /// Field number for the "item4" field. + public const int Item4FieldNumber = 15; + private int item4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Item4 { + get { return item4_; } + set { + item4_ = value; + } + } + + /// Field number for the "number4" field. + public const int Number4FieldNumber = 16; + private int number4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number4 { + get { return number4_; } + set { + number4_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Chest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Chest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Group != other.Group) return false; + if (Label != other.Label) return false; + if (LowFloor != other.LowFloor) return false; + if (HighFloor != other.HighFloor) return false; + if (TnteractionType != other.TnteractionType) return false; + if (AutoOpen != other.AutoOpen) return false; + if (ModelPath != other.ModelPath) return false; + if (Item1 != other.Item1) return false; + if (Number1 != other.Number1) return false; + if (Item2 != other.Item2) return false; + if (Number2 != other.Number2) return false; + if (Item3 != other.Item3) return false; + if (Number3 != other.Number3) return false; + if (Item4 != other.Item4) return false; + if (Number4 != other.Number4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (Label != 0) hash ^= Label.GetHashCode(); + if (LowFloor != 0) hash ^= LowFloor.GetHashCode(); + if (HighFloor != 0) hash ^= HighFloor.GetHashCode(); + if (TnteractionType != 0) hash ^= TnteractionType.GetHashCode(); + if (AutoOpen != 0) hash ^= AutoOpen.GetHashCode(); + if (ModelPath.Length != 0) hash ^= ModelPath.GetHashCode(); + if (Item1 != 0) hash ^= Item1.GetHashCode(); + if (Number1 != 0) hash ^= Number1.GetHashCode(); + if (Item2 != 0) hash ^= Item2.GetHashCode(); + if (Number2 != 0) hash ^= Number2.GetHashCode(); + if (Item3 != 0) hash ^= Item3.GetHashCode(); + if (Number3 != 0) hash ^= Number3.GetHashCode(); + if (Item4 != 0) hash ^= Item4.GetHashCode(); + if (Number4 != 0) hash ^= Number4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (Label != 0) { + output.WriteRawTag(24); + output.WriteInt32(Label); + } + if (LowFloor != 0) { + output.WriteRawTag(32); + output.WriteInt32(LowFloor); + } + if (HighFloor != 0) { + output.WriteRawTag(40); + output.WriteInt32(HighFloor); + } + if (TnteractionType != 0) { + output.WriteRawTag(48); + output.WriteInt32(TnteractionType); + } + if (AutoOpen != 0) { + output.WriteRawTag(56); + output.WriteInt32(AutoOpen); + } + if (ModelPath.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ModelPath); + } + if (Item1 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Item1); + } + if (Number1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Number1); + } + if (Item2 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Item2); + } + if (Number2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(Number2); + } + if (Item3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Item3); + } + if (Number3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(Number3); + } + if (Item4 != 0) { + output.WriteRawTag(120); + output.WriteInt32(Item4); + } + if (Number4 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Number4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (Label != 0) { + output.WriteRawTag(24); + output.WriteInt32(Label); + } + if (LowFloor != 0) { + output.WriteRawTag(32); + output.WriteInt32(LowFloor); + } + if (HighFloor != 0) { + output.WriteRawTag(40); + output.WriteInt32(HighFloor); + } + if (TnteractionType != 0) { + output.WriteRawTag(48); + output.WriteInt32(TnteractionType); + } + if (AutoOpen != 0) { + output.WriteRawTag(56); + output.WriteInt32(AutoOpen); + } + if (ModelPath.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ModelPath); + } + if (Item1 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Item1); + } + if (Number1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Number1); + } + if (Item2 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Item2); + } + if (Number2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(Number2); + } + if (Item3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Item3); + } + if (Number3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(Number3); + } + if (Item4 != 0) { + output.WriteRawTag(120); + output.WriteInt32(Item4); + } + if (Number4 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Number4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (Label != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Label); + } + if (LowFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LowFloor); + } + if (HighFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HighFloor); + } + if (TnteractionType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TnteractionType); + } + if (AutoOpen != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AutoOpen); + } + if (ModelPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelPath); + } + if (Item1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item1); + } + if (Number1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number1); + } + if (Item2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item2); + } + if (Number2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number2); + } + if (Item3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item3); + } + if (Number3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number3); + } + if (Item4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item4); + } + if (Number4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Number4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Chest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Group != 0) { + Group = other.Group; + } + if (other.Label != 0) { + Label = other.Label; + } + if (other.LowFloor != 0) { + LowFloor = other.LowFloor; + } + if (other.HighFloor != 0) { + HighFloor = other.HighFloor; + } + if (other.TnteractionType != 0) { + TnteractionType = other.TnteractionType; + } + if (other.AutoOpen != 0) { + AutoOpen = other.AutoOpen; + } + if (other.ModelPath.Length != 0) { + ModelPath = other.ModelPath; + } + if (other.Item1 != 0) { + Item1 = other.Item1; + } + if (other.Number1 != 0) { + Number1 = other.Number1; + } + if (other.Item2 != 0) { + Item2 = other.Item2; + } + if (other.Number2 != 0) { + Number2 = other.Number2; + } + if (other.Item3 != 0) { + Item3 = other.Item3; + } + if (other.Number3 != 0) { + Number3 = other.Number3; + } + if (other.Item4 != 0) { + Item4 = other.Item4; + } + if (other.Number4 != 0) { + Number4 = other.Number4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + Label = input.ReadInt32(); + break; + } + case 32: { + LowFloor = input.ReadInt32(); + break; + } + case 40: { + HighFloor = input.ReadInt32(); + break; + } + case 48: { + TnteractionType = input.ReadInt32(); + break; + } + case 56: { + AutoOpen = input.ReadInt32(); + break; + } + case 66: { + ModelPath = input.ReadString(); + break; + } + case 72: { + Item1 = input.ReadInt32(); + break; + } + case 80: { + Number1 = input.ReadInt32(); + break; + } + case 88: { + Item2 = input.ReadInt32(); + break; + } + case 96: { + Number2 = input.ReadInt32(); + break; + } + case 104: { + Item3 = input.ReadInt32(); + break; + } + case 112: { + Number3 = input.ReadInt32(); + break; + } + case 120: { + Item4 = input.ReadInt32(); + break; + } + case 128: { + Number4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + Label = input.ReadInt32(); + break; + } + case 32: { + LowFloor = input.ReadInt32(); + break; + } + case 40: { + HighFloor = input.ReadInt32(); + break; + } + case 48: { + TnteractionType = input.ReadInt32(); + break; + } + case 56: { + AutoOpen = input.ReadInt32(); + break; + } + case 66: { + ModelPath = input.ReadString(); + break; + } + case 72: { + Item1 = input.ReadInt32(); + break; + } + case 80: { + Number1 = input.ReadInt32(); + break; + } + case 88: { + Item2 = input.ReadInt32(); + break; + } + case 96: { + Number2 = input.ReadInt32(); + break; + } + case 104: { + Item3 = input.ReadInt32(); + break; + } + case 112: { + Number3 = input.ReadInt32(); + break; + } + case 120: { + Item4 = input.ReadInt32(); + break; + } + case 128: { + Number4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ClientDiff.cs b/NTR.Common/protos/ClientDiff.cs new file mode 100644 index 0000000..2b099c4 --- /dev/null +++ b/NTR.Common/protos/ClientDiff.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientDiff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Pb { + + /// Holder for reflection information generated from ClientDiff.proto + public static partial class ClientDiffReflection { + + #region Descriptor + /// File descriptor for ClientDiff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClientDiffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBDbGllbnREaWZmLnByb3RvGg5GaWxlRGlmZi5wcm90byIlCgpDbGllbnRE", + "aWZmEhcKBGRpZmYYASADKAsyCS5GaWxlRGlmZkIFqgICUGJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Pb.FileDiffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.ClientDiff), global::Pb.ClientDiff.Parser, new[]{ "Diff" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ClientDiff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientDiff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.ClientDiffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientDiff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientDiff(ClientDiff other) : this() { + diff_ = other.diff_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientDiff Clone() { + return new ClientDiff(this); + } + + /// Field number for the "diff" field. + public const int DiffFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_diff_codec + = pb::FieldCodec.ForMessage(10, global::Pb.FileDiff.Parser); + private readonly pbc::RepeatedField diff_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Diff { + get { return diff_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClientDiff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClientDiff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!diff_.Equals(other.diff_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= diff_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + diff_.WriteTo(output, _repeated_diff_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + diff_.WriteTo(ref output, _repeated_diff_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += diff_.CalculateSize(_repeated_diff_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClientDiff other) { + if (other == null) { + return; + } + diff_.Add(other.diff_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + diff_.AddEntriesFrom(input, _repeated_diff_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + diff_.AddEntriesFrom(ref input, _repeated_diff_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Config.cs b/NTR.Common/protos/Config.cs new file mode 100644 index 0000000..c2249d0 --- /dev/null +++ b/NTR.Common/protos/Config.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Config.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Config.proto + public static partial class ConfigReflection { + + #region Descriptor + /// File descriptor for Config.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxDb25maWcucHJvdG8iIwoGQ29uZmlnEgoKAmlkGAEgASgJEg0KBXZhbHVl", + "GAIgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Config), global::Nova.Client.Config.Parser, new[]{ "Id", "Value" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Config : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Config()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Config() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Config(Config other) : this() { + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Config Clone() { + return new Config(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private string value_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Config); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Config other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Value.Length != 0) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Config other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ContentWord.cs b/NTR.Common/protos/ContentWord.cs new file mode 100644 index 0000000..141a094 --- /dev/null +++ b/NTR.Common/protos/ContentWord.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ContentWord.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ContentWord.proto + public static partial class ContentWordReflection { + + #region Descriptor + /// File descriptor for ContentWord.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ContentWordReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFDb250ZW50V29yZC5wcm90byI9CgtDb250ZW50V29yZBIKCgJpZBgBIAEo", + "BRIUCgxwcmVzZXRfY29sb3IYAiABKAkSDAoEd29yZBgDIAEoCUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ContentWord), global::Nova.Client.ContentWord.Parser, new[]{ "Id", "PresetColor", "Word" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ContentWord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentWord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ContentWordReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContentWord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContentWord(ContentWord other) : this() { + id_ = other.id_; + presetColor_ = other.presetColor_; + word_ = other.word_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContentWord Clone() { + return new ContentWord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "preset_color" field. + public const int PresetColorFieldNumber = 2; + private string presetColor_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PresetColor { + get { return presetColor_; } + set { + presetColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "word" field. + public const int WordFieldNumber = 3; + private string word_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Word { + get { return word_; } + set { + word_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ContentWord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContentWord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (PresetColor != other.PresetColor) return false; + if (Word != other.Word) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (PresetColor.Length != 0) hash ^= PresetColor.GetHashCode(); + if (Word.Length != 0) hash ^= Word.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PresetColor.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PresetColor); + } + if (Word.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Word); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PresetColor.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PresetColor); + } + if (Word.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Word); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (PresetColor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PresetColor); + } + if (Word.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Word); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContentWord other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.PresetColor.Length != 0) { + PresetColor = other.PresetColor; + } + if (other.Word.Length != 0) { + Word = other.Word; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + PresetColor = input.ReadString(); + break; + } + case 26: { + Word = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + PresetColor = input.ReadString(); + break; + } + case 26: { + Word = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyInstance.cs b/NTR.Common/protos/DailyInstance.cs new file mode 100644 index 0000000..fbfdf66 --- /dev/null +++ b/NTR.Common/protos/DailyInstance.cs @@ -0,0 +1,945 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyInstance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyInstance.proto + public static partial class DailyInstanceReflection { + + #region Descriptor + /// File descriptor for DailyInstance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyInstanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNEYWlseUluc3RhbmNlLnByb3RvIuMDCg1EYWlseUluc3RhbmNlEgoKAmlk", + "GAEgASgFEhIKCmRhaWx5X3R5cGUYAiABKAUSEgoKZGlmZmljdWx0eRgDIAEo", + "BRIMCgRuYW1lGAQgASgJEgwKBGRlc2MYBSABKAkSFwoPc3VnZ2VzdGVkX3Bv", + "d2VyGAYgASgFEhQKDHByZV9sZXZlbF9pZBgHIAEoBRIWCg5wcmVfbGV2ZWxf", + "c3RhchgIIAEoBRIYChBuZWVkX3dvcmxkX2NsYXNzGAkgASgFEhAKCGZsb29y", + "X2lkGAogASgFEhUKDW9uZV9zdGFyX2Rlc2MYCyABKAkSFQoNdHdvX3N0YXJf", + "ZGVzYxgMIAEoCRIXCg90aHJlZV9zdGFyX2Rlc2MYDSABKAkSHwoXb25lX3N0", + "YXJfZW5lcmd5X2NvbnN1bWUYDiABKAUSHwoXdHdvX3N0YXJfZW5lcmd5X2Nv", + "bnN1bWUYDyABKAUSIQoZdGhyZWVfc3Rhcl9lbmVyZ3lfY29uc3VtZRgQIAEo", + "BRIVCg1hd2FyZF9kcm9wX2lkGBEgASgFEiAKGHByZXZpZXdfbW9uc3Rlcl9n", + "cm91cF9pZBgSIAEoBRIMCgRpY29uGBMgASgJEhwKFGZpcnN0X3Jld2FyZF9w", + "cmV2aWV3GBQgAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyInstance), global::Nova.Client.DailyInstance.Parser, new[]{ "Id", "DailyType", "Difficulty", "Name", "Desc", "SuggestedPower", "PreLevelId", "PreLevelStar", "NeedWorldClass", "FloorId", "OneStarDesc", "TwoStarDesc", "ThreeStarDesc", "OneStarEnergyConsume", "TwoStarEnergyConsume", "ThreeStarEnergyConsume", "AwardDropId", "PreviewMonsterGroupId", "Icon", "FirstRewardPreview" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyInstance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyInstance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyInstanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstance(DailyInstance other) : this() { + id_ = other.id_; + dailyType_ = other.dailyType_; + difficulty_ = other.difficulty_; + name_ = other.name_; + desc_ = other.desc_; + suggestedPower_ = other.suggestedPower_; + preLevelId_ = other.preLevelId_; + preLevelStar_ = other.preLevelStar_; + needWorldClass_ = other.needWorldClass_; + floorId_ = other.floorId_; + oneStarDesc_ = other.oneStarDesc_; + twoStarDesc_ = other.twoStarDesc_; + threeStarDesc_ = other.threeStarDesc_; + oneStarEnergyConsume_ = other.oneStarEnergyConsume_; + twoStarEnergyConsume_ = other.twoStarEnergyConsume_; + threeStarEnergyConsume_ = other.threeStarEnergyConsume_; + awardDropId_ = other.awardDropId_; + previewMonsterGroupId_ = other.previewMonsterGroupId_; + icon_ = other.icon_; + firstRewardPreview_ = other.firstRewardPreview_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstance Clone() { + return new DailyInstance(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "daily_type" field. + public const int DailyTypeFieldNumber = 2; + private int dailyType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DailyType { + get { return dailyType_; } + set { + dailyType_ = value; + } + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "suggested_power" field. + public const int SuggestedPowerFieldNumber = 6; + private int suggestedPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuggestedPower { + get { return suggestedPower_; } + set { + suggestedPower_ = value; + } + } + + /// Field number for the "pre_level_id" field. + public const int PreLevelIdFieldNumber = 7; + private int preLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelId { + get { return preLevelId_; } + set { + preLevelId_ = value; + } + } + + /// Field number for the "pre_level_star" field. + public const int PreLevelStarFieldNumber = 8; + private int preLevelStar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelStar { + get { return preLevelStar_; } + set { + preLevelStar_ = value; + } + } + + /// Field number for the "need_world_class" field. + public const int NeedWorldClassFieldNumber = 9; + private int needWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedWorldClass { + get { return needWorldClass_; } + set { + needWorldClass_ = value; + } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 10; + private int floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// Field number for the "one_star_desc" field. + public const int OneStarDescFieldNumber = 11; + private string oneStarDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OneStarDesc { + get { return oneStarDesc_; } + set { + oneStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "two_star_desc" field. + public const int TwoStarDescFieldNumber = 12; + private string twoStarDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TwoStarDesc { + get { return twoStarDesc_; } + set { + twoStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "three_star_desc" field. + public const int ThreeStarDescFieldNumber = 13; + private string threeStarDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ThreeStarDesc { + get { return threeStarDesc_; } + set { + threeStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "one_star_energy_consume" field. + public const int OneStarEnergyConsumeFieldNumber = 14; + private int oneStarEnergyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OneStarEnergyConsume { + get { return oneStarEnergyConsume_; } + set { + oneStarEnergyConsume_ = value; + } + } + + /// Field number for the "two_star_energy_consume" field. + public const int TwoStarEnergyConsumeFieldNumber = 15; + private int twoStarEnergyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TwoStarEnergyConsume { + get { return twoStarEnergyConsume_; } + set { + twoStarEnergyConsume_ = value; + } + } + + /// Field number for the "three_star_energy_consume" field. + public const int ThreeStarEnergyConsumeFieldNumber = 16; + private int threeStarEnergyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThreeStarEnergyConsume { + get { return threeStarEnergyConsume_; } + set { + threeStarEnergyConsume_ = value; + } + } + + /// Field number for the "award_drop_id" field. + public const int AwardDropIdFieldNumber = 17; + private int awardDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardDropId { + get { return awardDropId_; } + set { + awardDropId_ = value; + } + } + + /// Field number for the "preview_monster_group_id" field. + public const int PreviewMonsterGroupIdFieldNumber = 18; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 19; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "first_reward_preview" field. + public const int FirstRewardPreviewFieldNumber = 20; + private static readonly pb::FieldCodec _repeated_firstRewardPreview_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField firstRewardPreview_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FirstRewardPreview { + get { return firstRewardPreview_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyInstance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyInstance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (DailyType != other.DailyType) return false; + if (Difficulty != other.Difficulty) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (SuggestedPower != other.SuggestedPower) return false; + if (PreLevelId != other.PreLevelId) return false; + if (PreLevelStar != other.PreLevelStar) return false; + if (NeedWorldClass != other.NeedWorldClass) return false; + if (FloorId != other.FloorId) return false; + if (OneStarDesc != other.OneStarDesc) return false; + if (TwoStarDesc != other.TwoStarDesc) return false; + if (ThreeStarDesc != other.ThreeStarDesc) return false; + if (OneStarEnergyConsume != other.OneStarEnergyConsume) return false; + if (TwoStarEnergyConsume != other.TwoStarEnergyConsume) return false; + if (ThreeStarEnergyConsume != other.ThreeStarEnergyConsume) return false; + if (AwardDropId != other.AwardDropId) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if (Icon != other.Icon) return false; + if(!firstRewardPreview_.Equals(other.firstRewardPreview_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (DailyType != 0) hash ^= DailyType.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (SuggestedPower != 0) hash ^= SuggestedPower.GetHashCode(); + if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode(); + if (PreLevelStar != 0) hash ^= PreLevelStar.GetHashCode(); + if (NeedWorldClass != 0) hash ^= NeedWorldClass.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (OneStarDesc.Length != 0) hash ^= OneStarDesc.GetHashCode(); + if (TwoStarDesc.Length != 0) hash ^= TwoStarDesc.GetHashCode(); + if (ThreeStarDesc.Length != 0) hash ^= ThreeStarDesc.GetHashCode(); + if (OneStarEnergyConsume != 0) hash ^= OneStarEnergyConsume.GetHashCode(); + if (TwoStarEnergyConsume != 0) hash ^= TwoStarEnergyConsume.GetHashCode(); + if (ThreeStarEnergyConsume != 0) hash ^= ThreeStarEnergyConsume.GetHashCode(); + if (AwardDropId != 0) hash ^= AwardDropId.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + hash ^= firstRewardPreview_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DailyType != 0) { + output.WriteRawTag(16); + output.WriteInt32(DailyType); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (PreLevelId != 0) { + output.WriteRawTag(56); + output.WriteInt32(PreLevelId); + } + if (PreLevelStar != 0) { + output.WriteRawTag(64); + output.WriteInt32(PreLevelStar); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(72); + output.WriteInt32(NeedWorldClass); + } + if (FloorId != 0) { + output.WriteRawTag(80); + output.WriteInt32(FloorId); + } + if (OneStarDesc.Length != 0) { + output.WriteRawTag(90); + output.WriteString(OneStarDesc); + } + if (TwoStarDesc.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TwoStarDesc); + } + if (ThreeStarDesc.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ThreeStarDesc); + } + if (OneStarEnergyConsume != 0) { + output.WriteRawTag(112); + output.WriteInt32(OneStarEnergyConsume); + } + if (TwoStarEnergyConsume != 0) { + output.WriteRawTag(120); + output.WriteInt32(TwoStarEnergyConsume); + } + if (ThreeStarEnergyConsume != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ThreeStarEnergyConsume); + } + if (AwardDropId != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AwardDropId); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Icon.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Icon); + } + firstRewardPreview_.WriteTo(output, _repeated_firstRewardPreview_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DailyType != 0) { + output.WriteRawTag(16); + output.WriteInt32(DailyType); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (PreLevelId != 0) { + output.WriteRawTag(56); + output.WriteInt32(PreLevelId); + } + if (PreLevelStar != 0) { + output.WriteRawTag(64); + output.WriteInt32(PreLevelStar); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(72); + output.WriteInt32(NeedWorldClass); + } + if (FloorId != 0) { + output.WriteRawTag(80); + output.WriteInt32(FloorId); + } + if (OneStarDesc.Length != 0) { + output.WriteRawTag(90); + output.WriteString(OneStarDesc); + } + if (TwoStarDesc.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TwoStarDesc); + } + if (ThreeStarDesc.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ThreeStarDesc); + } + if (OneStarEnergyConsume != 0) { + output.WriteRawTag(112); + output.WriteInt32(OneStarEnergyConsume); + } + if (TwoStarEnergyConsume != 0) { + output.WriteRawTag(120); + output.WriteInt32(TwoStarEnergyConsume); + } + if (ThreeStarEnergyConsume != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ThreeStarEnergyConsume); + } + if (AwardDropId != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AwardDropId); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Icon.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Icon); + } + firstRewardPreview_.WriteTo(ref output, _repeated_firstRewardPreview_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (DailyType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DailyType); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (SuggestedPower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SuggestedPower); + } + if (PreLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId); + } + if (PreLevelStar != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelStar); + } + if (NeedWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedWorldClass); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId); + } + if (OneStarDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OneStarDesc); + } + if (TwoStarDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TwoStarDesc); + } + if (ThreeStarDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ThreeStarDesc); + } + if (OneStarEnergyConsume != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneStarEnergyConsume); + } + if (TwoStarEnergyConsume != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TwoStarEnergyConsume); + } + if (ThreeStarEnergyConsume != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThreeStarEnergyConsume); + } + if (AwardDropId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AwardDropId); + } + if (PreviewMonsterGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + size += firstRewardPreview_.CalculateSize(_repeated_firstRewardPreview_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyInstance other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.DailyType != 0) { + DailyType = other.DailyType; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.SuggestedPower != 0) { + SuggestedPower = other.SuggestedPower; + } + if (other.PreLevelId != 0) { + PreLevelId = other.PreLevelId; + } + if (other.PreLevelStar != 0) { + PreLevelStar = other.PreLevelStar; + } + if (other.NeedWorldClass != 0) { + NeedWorldClass = other.NeedWorldClass; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.OneStarDesc.Length != 0) { + OneStarDesc = other.OneStarDesc; + } + if (other.TwoStarDesc.Length != 0) { + TwoStarDesc = other.TwoStarDesc; + } + if (other.ThreeStarDesc.Length != 0) { + ThreeStarDesc = other.ThreeStarDesc; + } + if (other.OneStarEnergyConsume != 0) { + OneStarEnergyConsume = other.OneStarEnergyConsume; + } + if (other.TwoStarEnergyConsume != 0) { + TwoStarEnergyConsume = other.TwoStarEnergyConsume; + } + if (other.ThreeStarEnergyConsume != 0) { + ThreeStarEnergyConsume = other.ThreeStarEnergyConsume; + } + if (other.AwardDropId != 0) { + AwardDropId = other.AwardDropId; + } + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + firstRewardPreview_.Add(other.firstRewardPreview_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DailyType = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + PreLevelId = input.ReadInt32(); + break; + } + case 64: { + PreLevelStar = input.ReadInt32(); + break; + } + case 72: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 80: { + FloorId = input.ReadInt32(); + break; + } + case 90: { + OneStarDesc = input.ReadString(); + break; + } + case 98: { + TwoStarDesc = input.ReadString(); + break; + } + case 106: { + ThreeStarDesc = input.ReadString(); + break; + } + case 112: { + OneStarEnergyConsume = input.ReadInt32(); + break; + } + case 120: { + TwoStarEnergyConsume = input.ReadInt32(); + break; + } + case 128: { + ThreeStarEnergyConsume = input.ReadInt32(); + break; + } + case 136: { + AwardDropId = input.ReadInt32(); + break; + } + case 144: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 154: { + Icon = input.ReadString(); + break; + } + case 162: + case 160: { + firstRewardPreview_.AddEntriesFrom(input, _repeated_firstRewardPreview_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DailyType = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + PreLevelId = input.ReadInt32(); + break; + } + case 64: { + PreLevelStar = input.ReadInt32(); + break; + } + case 72: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 80: { + FloorId = input.ReadInt32(); + break; + } + case 90: { + OneStarDesc = input.ReadString(); + break; + } + case 98: { + TwoStarDesc = input.ReadString(); + break; + } + case 106: { + ThreeStarDesc = input.ReadString(); + break; + } + case 112: { + OneStarEnergyConsume = input.ReadInt32(); + break; + } + case 120: { + TwoStarEnergyConsume = input.ReadInt32(); + break; + } + case 128: { + ThreeStarEnergyConsume = input.ReadInt32(); + break; + } + case 136: { + AwardDropId = input.ReadInt32(); + break; + } + case 144: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 154: { + Icon = input.ReadString(); + break; + } + case 162: + case 160: { + firstRewardPreview_.AddEntriesFrom(ref input, _repeated_firstRewardPreview_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyInstanceFloor.cs b/NTR.Common/protos/DailyInstanceFloor.cs new file mode 100644 index 0000000..72d398a --- /dev/null +++ b/NTR.Common/protos/DailyInstanceFloor.cs @@ -0,0 +1,842 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyInstanceFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyInstanceFloor.proto + public static partial class DailyInstanceFloorReflection { + + #region Descriptor + /// File descriptor for DailyInstanceFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyInstanceFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhEYWlseUluc3RhbmNlRmxvb3IucHJvdG8iqwMKEkRhaWx5SW5zdGFuY2VG", + "bG9vchIKCgJpZBgBIAEoBRISCgpzY2VuZV9uYW1lGAIgASgJEhoKEmNvbmZp", + "Z19wcmVmYWJfbmFtZRgDIAEoCRINCgV0aGVtZRgEIAEoBRINCgViX2dfbRgF", + "IAEoCRIbChNsZWF2ZV90cmlnZ2VyX2V2ZW50GAYgASgJEhIKCm1vbnN0ZXJf", + "aWQYByABKAUSGgoSb25lX3N0YXJfY29uZGl0aW9uGAggASgFEhoKEnR3b19z", + "dGFyX2NvbmRpdGlvbhgJIAEoBRIcChR0aHJlZV9zdGFyX2NvbmRpdGlvbhgK", + "IAEoBRIYChBsZXZlbF90b3RhbF90aW1lGAsgASgFEhsKE3RpbWVfZW5kX3Nl", + "dHRsZW1lbnQYDCABKAgSGwoTc3Rhcl9jb25kaXRpb25fdHlwZRgNIAEoBRIS", + "Cgptb25zdGVyX2x2GA4gASgFEhwKFGRyb3BfZW50aXR5X2dyb3VwX2lkGA8g", + "ASgFEhgKEGRyb3BfZW50aXR5X3JhdGUYECABKAUSFAoMZHJvcF9tYXhfbnVt", + "GBEgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyInstanceFloor), global::Nova.Client.DailyInstanceFloor.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent", "MonsterId", "OneStarCondition", "TwoStarCondition", "ThreeStarCondition", "LevelTotalTime", "TimeEndSettlement", "StarConditionType", "MonsterLv", "DropEntityGroupId", "DropEntityRate", "DropMaxNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyInstanceFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyInstanceFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyInstanceFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceFloor(DailyInstanceFloor other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + monsterId_ = other.monsterId_; + oneStarCondition_ = other.oneStarCondition_; + twoStarCondition_ = other.twoStarCondition_; + threeStarCondition_ = other.threeStarCondition_; + levelTotalTime_ = other.levelTotalTime_; + timeEndSettlement_ = other.timeEndSettlement_; + starConditionType_ = other.starConditionType_; + monsterLv_ = other.monsterLv_; + dropEntityGroupId_ = other.dropEntityGroupId_; + dropEntityRate_ = other.dropEntityRate_; + dropMaxNum_ = other.dropMaxNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceFloor Clone() { + return new DailyInstanceFloor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "scene_name" field. + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_prefab_name" field. + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "b_g_m" field. + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "leave_trigger_event" field. + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 7; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "one_star_condition" field. + public const int OneStarConditionFieldNumber = 8; + private int oneStarCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OneStarCondition { + get { return oneStarCondition_; } + set { + oneStarCondition_ = value; + } + } + + /// Field number for the "two_star_condition" field. + public const int TwoStarConditionFieldNumber = 9; + private int twoStarCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TwoStarCondition { + get { return twoStarCondition_; } + set { + twoStarCondition_ = value; + } + } + + /// Field number for the "three_star_condition" field. + public const int ThreeStarConditionFieldNumber = 10; + private int threeStarCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThreeStarCondition { + get { return threeStarCondition_; } + set { + threeStarCondition_ = value; + } + } + + /// Field number for the "level_total_time" field. + public const int LevelTotalTimeFieldNumber = 11; + private int levelTotalTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTotalTime { + get { return levelTotalTime_; } + set { + levelTotalTime_ = value; + } + } + + /// Field number for the "time_end_settlement" field. + public const int TimeEndSettlementFieldNumber = 12; + private bool timeEndSettlement_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool TimeEndSettlement { + get { return timeEndSettlement_; } + set { + timeEndSettlement_ = value; + } + } + + /// Field number for the "star_condition_type" field. + public const int StarConditionTypeFieldNumber = 13; + private int starConditionType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StarConditionType { + get { return starConditionType_; } + set { + starConditionType_ = value; + } + } + + /// Field number for the "monster_lv" field. + public const int MonsterLvFieldNumber = 14; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + /// Field number for the "drop_entity_group_id" field. + public const int DropEntityGroupIdFieldNumber = 15; + private int dropEntityGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropEntityGroupId { + get { return dropEntityGroupId_; } + set { + dropEntityGroupId_ = value; + } + } + + /// Field number for the "drop_entity_rate" field. + public const int DropEntityRateFieldNumber = 16; + private int dropEntityRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropEntityRate { + get { return dropEntityRate_; } + set { + dropEntityRate_ = value; + } + } + + /// Field number for the "drop_max_num" field. + public const int DropMaxNumFieldNumber = 17; + private int dropMaxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropMaxNum { + get { return dropMaxNum_; } + set { + dropMaxNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyInstanceFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyInstanceFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + if (MonsterId != other.MonsterId) return false; + if (OneStarCondition != other.OneStarCondition) return false; + if (TwoStarCondition != other.TwoStarCondition) return false; + if (ThreeStarCondition != other.ThreeStarCondition) return false; + if (LevelTotalTime != other.LevelTotalTime) return false; + if (TimeEndSettlement != other.TimeEndSettlement) return false; + if (StarConditionType != other.StarConditionType) return false; + if (MonsterLv != other.MonsterLv) return false; + if (DropEntityGroupId != other.DropEntityGroupId) return false; + if (DropEntityRate != other.DropEntityRate) return false; + if (DropMaxNum != other.DropMaxNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (OneStarCondition != 0) hash ^= OneStarCondition.GetHashCode(); + if (TwoStarCondition != 0) hash ^= TwoStarCondition.GetHashCode(); + if (ThreeStarCondition != 0) hash ^= ThreeStarCondition.GetHashCode(); + if (LevelTotalTime != 0) hash ^= LevelTotalTime.GetHashCode(); + if (TimeEndSettlement != false) hash ^= TimeEndSettlement.GetHashCode(); + if (StarConditionType != 0) hash ^= StarConditionType.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (DropEntityGroupId != 0) hash ^= DropEntityGroupId.GetHashCode(); + if (DropEntityRate != 0) hash ^= DropEntityRate.GetHashCode(); + if (DropMaxNum != 0) hash ^= DropMaxNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterId != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterId); + } + if (OneStarCondition != 0) { + output.WriteRawTag(64); + output.WriteInt32(OneStarCondition); + } + if (TwoStarCondition != 0) { + output.WriteRawTag(72); + output.WriteInt32(TwoStarCondition); + } + if (ThreeStarCondition != 0) { + output.WriteRawTag(80); + output.WriteInt32(ThreeStarCondition); + } + if (LevelTotalTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(LevelTotalTime); + } + if (TimeEndSettlement != false) { + output.WriteRawTag(96); + output.WriteBool(TimeEndSettlement); + } + if (StarConditionType != 0) { + output.WriteRawTag(104); + output.WriteInt32(StarConditionType); + } + if (MonsterLv != 0) { + output.WriteRawTag(112); + output.WriteInt32(MonsterLv); + } + if (DropEntityGroupId != 0) { + output.WriteRawTag(120); + output.WriteInt32(DropEntityGroupId); + } + if (DropEntityRate != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(DropEntityRate); + } + if (DropMaxNum != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(DropMaxNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterId != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterId); + } + if (OneStarCondition != 0) { + output.WriteRawTag(64); + output.WriteInt32(OneStarCondition); + } + if (TwoStarCondition != 0) { + output.WriteRawTag(72); + output.WriteInt32(TwoStarCondition); + } + if (ThreeStarCondition != 0) { + output.WriteRawTag(80); + output.WriteInt32(ThreeStarCondition); + } + if (LevelTotalTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(LevelTotalTime); + } + if (TimeEndSettlement != false) { + output.WriteRawTag(96); + output.WriteBool(TimeEndSettlement); + } + if (StarConditionType != 0) { + output.WriteRawTag(104); + output.WriteInt32(StarConditionType); + } + if (MonsterLv != 0) { + output.WriteRawTag(112); + output.WriteInt32(MonsterLv); + } + if (DropEntityGroupId != 0) { + output.WriteRawTag(120); + output.WriteInt32(DropEntityGroupId); + } + if (DropEntityRate != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(DropEntityRate); + } + if (DropMaxNum != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(DropMaxNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (OneStarCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneStarCondition); + } + if (TwoStarCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TwoStarCondition); + } + if (ThreeStarCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThreeStarCondition); + } + if (LevelTotalTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTotalTime); + } + if (TimeEndSettlement != false) { + size += 1 + 1; + } + if (StarConditionType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StarConditionType); + } + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (DropEntityGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropEntityGroupId); + } + if (DropEntityRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DropEntityRate); + } + if (DropMaxNum != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DropMaxNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyInstanceFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.OneStarCondition != 0) { + OneStarCondition = other.OneStarCondition; + } + if (other.TwoStarCondition != 0) { + TwoStarCondition = other.TwoStarCondition; + } + if (other.ThreeStarCondition != 0) { + ThreeStarCondition = other.ThreeStarCondition; + } + if (other.LevelTotalTime != 0) { + LevelTotalTime = other.LevelTotalTime; + } + if (other.TimeEndSettlement != false) { + TimeEndSettlement = other.TimeEndSettlement; + } + if (other.StarConditionType != 0) { + StarConditionType = other.StarConditionType; + } + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + if (other.DropEntityGroupId != 0) { + DropEntityGroupId = other.DropEntityGroupId; + } + if (other.DropEntityRate != 0) { + DropEntityRate = other.DropEntityRate; + } + if (other.DropMaxNum != 0) { + DropMaxNum = other.DropMaxNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterId = input.ReadInt32(); + break; + } + case 64: { + OneStarCondition = input.ReadInt32(); + break; + } + case 72: { + TwoStarCondition = input.ReadInt32(); + break; + } + case 80: { + ThreeStarCondition = input.ReadInt32(); + break; + } + case 88: { + LevelTotalTime = input.ReadInt32(); + break; + } + case 96: { + TimeEndSettlement = input.ReadBool(); + break; + } + case 104: { + StarConditionType = input.ReadInt32(); + break; + } + case 112: { + MonsterLv = input.ReadInt32(); + break; + } + case 120: { + DropEntityGroupId = input.ReadInt32(); + break; + } + case 128: { + DropEntityRate = input.ReadInt32(); + break; + } + case 136: { + DropMaxNum = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterId = input.ReadInt32(); + break; + } + case 64: { + OneStarCondition = input.ReadInt32(); + break; + } + case 72: { + TwoStarCondition = input.ReadInt32(); + break; + } + case 80: { + ThreeStarCondition = input.ReadInt32(); + break; + } + case 88: { + LevelTotalTime = input.ReadInt32(); + break; + } + case 96: { + TimeEndSettlement = input.ReadBool(); + break; + } + case 104: { + StarConditionType = input.ReadInt32(); + break; + } + case 112: { + MonsterLv = input.ReadInt32(); + break; + } + case 120: { + DropEntityGroupId = input.ReadInt32(); + break; + } + case 128: { + DropEntityRate = input.ReadInt32(); + break; + } + case 136: { + DropMaxNum = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyInstanceRewardGroup.cs b/NTR.Common/protos/DailyInstanceRewardGroup.cs new file mode 100644 index 0000000..ffd892c --- /dev/null +++ b/NTR.Common/protos/DailyInstanceRewardGroup.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyInstanceRewardGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyInstanceRewardGroup.proto + public static partial class DailyInstanceRewardGroupReflection { + + #region Descriptor + /// File descriptor for DailyInstanceRewardGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyInstanceRewardGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5EYWlseUluc3RhbmNlUmV3YXJkR3JvdXAucHJvdG8ivgEKGERhaWx5SW5z", + "dGFuY2VSZXdhcmRHcm91cBIKCgJpZBgBIAEoBRIQCghncm91cF9pZBgCIAEo", + "BRIZChFkYWlseV9yZXdhcmRfdHlwZRgDIAEoBRITCgtyZXdhcmRfbmFtZRgE", + "IAEoCRISCgpyZXdhcmRfZGVzGAUgASgJEhMKC3Jld2FyZF9pY29uGAYgASgJ", + "Eg8KB2Ryb3BfaWQYByABKAUSGgoSYmFzZV9hd2FyZF9wcmV2aWV3GAggASgJ", + "Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyInstanceRewardGroup), global::Nova.Client.DailyInstanceRewardGroup.Parser, new[]{ "Id", "GroupId", "DailyRewardType", "RewardName", "RewardDes", "RewardIcon", "DropId", "BaseAwardPreview" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyInstanceRewardGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyInstanceRewardGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyInstanceRewardGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceRewardGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceRewardGroup(DailyInstanceRewardGroup other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + dailyRewardType_ = other.dailyRewardType_; + rewardName_ = other.rewardName_; + rewardDes_ = other.rewardDes_; + rewardIcon_ = other.rewardIcon_; + dropId_ = other.dropId_; + baseAwardPreview_ = other.baseAwardPreview_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceRewardGroup Clone() { + return new DailyInstanceRewardGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "daily_reward_type" field. + public const int DailyRewardTypeFieldNumber = 3; + private int dailyRewardType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DailyRewardType { + get { return dailyRewardType_; } + set { + dailyRewardType_ = value; + } + } + + /// Field number for the "reward_name" field. + public const int RewardNameFieldNumber = 4; + private string rewardName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardName { + get { return rewardName_; } + set { + rewardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reward_des" field. + public const int RewardDesFieldNumber = 5; + private string rewardDes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardDes { + get { return rewardDes_; } + set { + rewardDes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reward_icon" field. + public const int RewardIconFieldNumber = 6; + private string rewardIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardIcon { + get { return rewardIcon_; } + set { + rewardIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 7; + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { return dropId_; } + set { + dropId_ = value; + } + } + + /// Field number for the "base_award_preview" field. + public const int BaseAwardPreviewFieldNumber = 8; + private string baseAwardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseAwardPreview { + get { return baseAwardPreview_; } + set { + baseAwardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyInstanceRewardGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyInstanceRewardGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (DailyRewardType != other.DailyRewardType) return false; + if (RewardName != other.RewardName) return false; + if (RewardDes != other.RewardDes) return false; + if (RewardIcon != other.RewardIcon) return false; + if (DropId != other.DropId) return false; + if (BaseAwardPreview != other.BaseAwardPreview) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (DailyRewardType != 0) hash ^= DailyRewardType.GetHashCode(); + if (RewardName.Length != 0) hash ^= RewardName.GetHashCode(); + if (RewardDes.Length != 0) hash ^= RewardDes.GetHashCode(); + if (RewardIcon.Length != 0) hash ^= RewardIcon.GetHashCode(); + if (DropId != 0) hash ^= DropId.GetHashCode(); + if (BaseAwardPreview.Length != 0) hash ^= BaseAwardPreview.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (DailyRewardType != 0) { + output.WriteRawTag(24); + output.WriteInt32(DailyRewardType); + } + if (RewardName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RewardName); + } + if (RewardDes.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RewardDes); + } + if (RewardIcon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RewardIcon); + } + if (DropId != 0) { + output.WriteRawTag(56); + output.WriteInt32(DropId); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(66); + output.WriteString(BaseAwardPreview); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (DailyRewardType != 0) { + output.WriteRawTag(24); + output.WriteInt32(DailyRewardType); + } + if (RewardName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RewardName); + } + if (RewardDes.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RewardDes); + } + if (RewardIcon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RewardIcon); + } + if (DropId != 0) { + output.WriteRawTag(56); + output.WriteInt32(DropId); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(66); + output.WriteString(BaseAwardPreview); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (DailyRewardType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DailyRewardType); + } + if (RewardName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardName); + } + if (RewardDes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardDes); + } + if (RewardIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardIcon); + } + if (DropId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (BaseAwardPreview.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseAwardPreview); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyInstanceRewardGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.DailyRewardType != 0) { + DailyRewardType = other.DailyRewardType; + } + if (other.RewardName.Length != 0) { + RewardName = other.RewardName; + } + if (other.RewardDes.Length != 0) { + RewardDes = other.RewardDes; + } + if (other.RewardIcon.Length != 0) { + RewardIcon = other.RewardIcon; + } + if (other.DropId != 0) { + DropId = other.DropId; + } + if (other.BaseAwardPreview.Length != 0) { + BaseAwardPreview = other.BaseAwardPreview; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + DailyRewardType = input.ReadInt32(); + break; + } + case 34: { + RewardName = input.ReadString(); + break; + } + case 42: { + RewardDes = input.ReadString(); + break; + } + case 50: { + RewardIcon = input.ReadString(); + break; + } + case 56: { + DropId = input.ReadInt32(); + break; + } + case 66: { + BaseAwardPreview = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + DailyRewardType = input.ReadInt32(); + break; + } + case 34: { + RewardName = input.ReadString(); + break; + } + case 42: { + RewardDes = input.ReadString(); + break; + } + case 50: { + RewardIcon = input.ReadString(); + break; + } + case 56: { + DropId = input.ReadInt32(); + break; + } + case 66: { + BaseAwardPreview = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyInstanceType.cs b/NTR.Common/protos/DailyInstanceType.cs new file mode 100644 index 0000000..71883be --- /dev/null +++ b/NTR.Common/protos/DailyInstanceType.cs @@ -0,0 +1,494 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyInstanceType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyInstanceType.proto + public static partial class DailyInstanceTypeReflection { + + #region Descriptor + /// File descriptor for DailyInstanceType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyInstanceTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdEYWlseUluc3RhbmNlVHlwZS5wcm90byKgAQoRRGFpbHlJbnN0YW5jZVR5", + "cGUSCgoCaWQYASABKAUSDAoEbmFtZRgCIAEoCRIUCgxtYWluX2xpbmVfaWQY", + "AyABKAUSGQoRd29ybGRfY2xhc3NfbGV2ZWwYBCABKAUSDwoHZXBpc29kZRgF", + "IAEoCRINCgVpbWFnZRgGIAEoCRIMCgRzb3J0GAcgASgFEhIKCmhvd19yZXdh", + "cmQYCCADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyInstanceType), global::Nova.Client.DailyInstanceType.Parser, new[]{ "Id", "Name", "MainLineId", "WorldClassLevel", "Episode", "Image", "Sort", "HowReward" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyInstanceType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyInstanceType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyInstanceTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceType(DailyInstanceType other) : this() { + id_ = other.id_; + name_ = other.name_; + mainLineId_ = other.mainLineId_; + worldClassLevel_ = other.worldClassLevel_; + episode_ = other.episode_; + image_ = other.image_; + sort_ = other.sort_; + howReward_ = other.howReward_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyInstanceType Clone() { + return new DailyInstanceType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "main_line_id" field. + public const int MainLineIdFieldNumber = 3; + private int mainLineId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainLineId { + get { return mainLineId_; } + set { + mainLineId_ = value; + } + } + + /// Field number for the "world_class_level" field. + public const int WorldClassLevelFieldNumber = 4; + private int worldClassLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClassLevel { + get { return worldClassLevel_; } + set { + worldClassLevel_ = value; + } + } + + /// Field number for the "episode" field. + public const int EpisodeFieldNumber = 5; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 6; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 7; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "how_reward" field. + public const int HowRewardFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_howReward_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField howReward_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HowReward { + get { return howReward_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyInstanceType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyInstanceType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MainLineId != other.MainLineId) return false; + if (WorldClassLevel != other.WorldClassLevel) return false; + if (Episode != other.Episode) return false; + if (Image != other.Image) return false; + if (Sort != other.Sort) return false; + if(!howReward_.Equals(other.howReward_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (MainLineId != 0) hash ^= MainLineId.GetHashCode(); + if (WorldClassLevel != 0) hash ^= WorldClassLevel.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + hash ^= howReward_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (MainLineId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MainLineId); + } + if (WorldClassLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(WorldClassLevel); + } + if (Episode.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Image); + } + if (Sort != 0) { + output.WriteRawTag(56); + output.WriteInt32(Sort); + } + howReward_.WriteTo(output, _repeated_howReward_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (MainLineId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MainLineId); + } + if (WorldClassLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(WorldClassLevel); + } + if (Episode.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Image); + } + if (Sort != 0) { + output.WriteRawTag(56); + output.WriteInt32(Sort); + } + howReward_.WriteTo(ref output, _repeated_howReward_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (MainLineId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainLineId); + } + if (WorldClassLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClassLevel); + } + if (Episode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Image.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Image); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + size += howReward_.CalculateSize(_repeated_howReward_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyInstanceType other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.MainLineId != 0) { + MainLineId = other.MainLineId; + } + if (other.WorldClassLevel != 0) { + WorldClassLevel = other.WorldClassLevel; + } + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + howReward_.Add(other.howReward_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MainLineId = input.ReadInt32(); + break; + } + case 32: { + WorldClassLevel = input.ReadInt32(); + break; + } + case 42: { + Episode = input.ReadString(); + break; + } + case 50: { + Image = input.ReadString(); + break; + } + case 56: { + Sort = input.ReadInt32(); + break; + } + case 66: + case 64: { + howReward_.AddEntriesFrom(input, _repeated_howReward_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MainLineId = input.ReadInt32(); + break; + } + case 32: { + WorldClassLevel = input.ReadInt32(); + break; + } + case 42: { + Episode = input.ReadString(); + break; + } + case 50: { + Image = input.ReadString(); + break; + } + case 56: { + Sort = input.ReadInt32(); + break; + } + case 66: + case 64: { + howReward_.AddEntriesFrom(ref input, _repeated_howReward_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyQuest.cs b/NTR.Common/protos/DailyQuest.cs new file mode 100644 index 0000000..3a9fae7 --- /dev/null +++ b/NTR.Common/protos/DailyQuest.cs @@ -0,0 +1,748 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyQuest.proto + public static partial class DailyQuestReflection { + + #region Descriptor + /// File descriptor for DailyQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBEYWlseVF1ZXN0LnByb3RvIsUCCgpEYWlseVF1ZXN0EgoKAmlkGAEgASgF", + "Eg0KBXRpdGxlGAIgASgJEgwKBGRlc2MYAyABKAkSDwoHanVtcF90bxgEIAEo", + "BRINCgVvcmRlchgFIAEoBRIOCgZhY3RpdmUYBiABKAUSDQoFYXBlYXIYByAB", + "KAgSFgoOYWNjZXB0X3BhcmFtczIYCCABKAkSFQoNY29tcGxldGVfY29uZBgJ", + "IAEoBRIcChRjb21wbGV0ZV9jb25kX3BhcmFtcxgKIAEoCRIcChRjb21wbGV0", + "ZV9jb25kX2NsaWVudBgLIAEoBRIfChdjbGllbnRfY29tcGxldGVfcGFyYW1z", + "MRgMIAMoBRIfChdjbGllbnRfY29tcGxldGVfcGFyYW1zMhgNIAMoBRIQCghp", + "dGVtX3RpZBgOIAEoBRIQCghpdGVtX3F0eRgPIAEoBUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyQuest), global::Nova.Client.DailyQuest.Parser, new[]{ "Id", "Title", "Desc", "JumpTo", "Order", "Active", "Apear", "AcceptParams2", "CompleteCond", "CompleteCondParams", "CompleteCondClient", "ClientCompleteParams1", "ClientCompleteParams2", "ItemTid", "ItemQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuest(DailyQuest other) : this() { + id_ = other.id_; + title_ = other.title_; + desc_ = other.desc_; + jumpTo_ = other.jumpTo_; + order_ = other.order_; + active_ = other.active_; + apear_ = other.apear_; + acceptParams2_ = other.acceptParams2_; + completeCond_ = other.completeCond_; + completeCondParams_ = other.completeCondParams_; + completeCondClient_ = other.completeCondClient_; + clientCompleteParams1_ = other.clientCompleteParams1_.Clone(); + clientCompleteParams2_ = other.clientCompleteParams2_.Clone(); + itemTid_ = other.itemTid_; + itemQty_ = other.itemQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuest Clone() { + return new DailyQuest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jump_to" field. + public const int JumpToFieldNumber = 4; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// Field number for the "order" field. + public const int OrderFieldNumber = 5; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 6; + private int active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Active { + get { return active_; } + set { + active_ = value; + } + } + + /// Field number for the "apear" field. + public const int ApearFieldNumber = 7; + private bool apear_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Apear { + get { return apear_; } + set { + apear_ = value; + } + } + + /// Field number for the "accept_params2" field. + public const int AcceptParams2FieldNumber = 8; + private string acceptParams2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AcceptParams2 { + get { return acceptParams2_; } + set { + acceptParams2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "complete_cond" field. + public const int CompleteCondFieldNumber = 9; + private int completeCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCond { + get { return completeCond_; } + set { + completeCond_ = value; + } + } + + /// Field number for the "complete_cond_params" field. + public const int CompleteCondParamsFieldNumber = 10; + private string completeCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteCondParams { + get { return completeCondParams_; } + set { + completeCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "complete_cond_client" field. + public const int CompleteCondClientFieldNumber = 11; + private int completeCondClient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCondClient { + get { return completeCondClient_; } + set { + completeCondClient_ = value; + } + } + + /// Field number for the "client_complete_params1" field. + public const int ClientCompleteParams1FieldNumber = 12; + private static readonly pb::FieldCodec _repeated_clientCompleteParams1_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField clientCompleteParams1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientCompleteParams1 { + get { return clientCompleteParams1_; } + } + + /// Field number for the "client_complete_params2" field. + public const int ClientCompleteParams2FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_clientCompleteParams2_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField clientCompleteParams2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientCompleteParams2 { + get { return clientCompleteParams2_; } + } + + /// Field number for the "item_tid" field. + public const int ItemTidFieldNumber = 14; + private int itemTid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemTid { + get { return itemTid_; } + set { + itemTid_ = value; + } + } + + /// Field number for the "item_qty" field. + public const int ItemQtyFieldNumber = 15; + private int itemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty { + get { return itemQty_; } + set { + itemQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (JumpTo != other.JumpTo) return false; + if (Order != other.Order) return false; + if (Active != other.Active) return false; + if (Apear != other.Apear) return false; + if (AcceptParams2 != other.AcceptParams2) return false; + if (CompleteCond != other.CompleteCond) return false; + if (CompleteCondParams != other.CompleteCondParams) return false; + if (CompleteCondClient != other.CompleteCondClient) return false; + if(!clientCompleteParams1_.Equals(other.clientCompleteParams1_)) return false; + if(!clientCompleteParams2_.Equals(other.clientCompleteParams2_)) return false; + if (ItemTid != other.ItemTid) return false; + if (ItemQty != other.ItemQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (Active != 0) hash ^= Active.GetHashCode(); + if (Apear != false) hash ^= Apear.GetHashCode(); + if (AcceptParams2.Length != 0) hash ^= AcceptParams2.GetHashCode(); + if (CompleteCond != 0) hash ^= CompleteCond.GetHashCode(); + if (CompleteCondParams.Length != 0) hash ^= CompleteCondParams.GetHashCode(); + if (CompleteCondClient != 0) hash ^= CompleteCondClient.GetHashCode(); + hash ^= clientCompleteParams1_.GetHashCode(); + hash ^= clientCompleteParams2_.GetHashCode(); + if (ItemTid != 0) hash ^= ItemTid.GetHashCode(); + if (ItemQty != 0) hash ^= ItemQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(40); + output.WriteInt32(Order); + } + if (Active != 0) { + output.WriteRawTag(48); + output.WriteInt32(Active); + } + if (Apear != false) { + output.WriteRawTag(56); + output.WriteBool(Apear); + } + if (AcceptParams2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(AcceptParams2); + } + if (CompleteCond != 0) { + output.WriteRawTag(72); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CompleteCondParams); + } + if (CompleteCondClient != 0) { + output.WriteRawTag(88); + output.WriteInt32(CompleteCondClient); + } + clientCompleteParams1_.WriteTo(output, _repeated_clientCompleteParams1_codec); + clientCompleteParams2_.WriteTo(output, _repeated_clientCompleteParams2_codec); + if (ItemTid != 0) { + output.WriteRawTag(112); + output.WriteInt32(ItemTid); + } + if (ItemQty != 0) { + output.WriteRawTag(120); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(40); + output.WriteInt32(Order); + } + if (Active != 0) { + output.WriteRawTag(48); + output.WriteInt32(Active); + } + if (Apear != false) { + output.WriteRawTag(56); + output.WriteBool(Apear); + } + if (AcceptParams2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(AcceptParams2); + } + if (CompleteCond != 0) { + output.WriteRawTag(72); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CompleteCondParams); + } + if (CompleteCondClient != 0) { + output.WriteRawTag(88); + output.WriteInt32(CompleteCondClient); + } + clientCompleteParams1_.WriteTo(ref output, _repeated_clientCompleteParams1_codec); + clientCompleteParams2_.WriteTo(ref output, _repeated_clientCompleteParams2_codec); + if (ItemTid != 0) { + output.WriteRawTag(112); + output.WriteInt32(ItemTid); + } + if (ItemQty != 0) { + output.WriteRawTag(120); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (Active != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Active); + } + if (Apear != false) { + size += 1 + 1; + } + if (AcceptParams2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AcceptParams2); + } + if (CompleteCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteCondParams); + } + if (CompleteCondClient != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCondClient); + } + size += clientCompleteParams1_.CalculateSize(_repeated_clientCompleteParams1_codec); + size += clientCompleteParams2_.CalculateSize(_repeated_clientCompleteParams2_codec); + if (ItemTid != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemTid); + } + if (ItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.Active != 0) { + Active = other.Active; + } + if (other.Apear != false) { + Apear = other.Apear; + } + if (other.AcceptParams2.Length != 0) { + AcceptParams2 = other.AcceptParams2; + } + if (other.CompleteCond != 0) { + CompleteCond = other.CompleteCond; + } + if (other.CompleteCondParams.Length != 0) { + CompleteCondParams = other.CompleteCondParams; + } + if (other.CompleteCondClient != 0) { + CompleteCondClient = other.CompleteCondClient; + } + clientCompleteParams1_.Add(other.clientCompleteParams1_); + clientCompleteParams2_.Add(other.clientCompleteParams2_); + if (other.ItemTid != 0) { + ItemTid = other.ItemTid; + } + if (other.ItemQty != 0) { + ItemQty = other.ItemQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Order = input.ReadInt32(); + break; + } + case 48: { + Active = input.ReadInt32(); + break; + } + case 56: { + Apear = input.ReadBool(); + break; + } + case 66: { + AcceptParams2 = input.ReadString(); + break; + } + case 72: { + CompleteCond = input.ReadInt32(); + break; + } + case 82: { + CompleteCondParams = input.ReadString(); + break; + } + case 88: { + CompleteCondClient = input.ReadInt32(); + break; + } + case 98: + case 96: { + clientCompleteParams1_.AddEntriesFrom(input, _repeated_clientCompleteParams1_codec); + break; + } + case 106: + case 104: { + clientCompleteParams2_.AddEntriesFrom(input, _repeated_clientCompleteParams2_codec); + break; + } + case 112: { + ItemTid = input.ReadInt32(); + break; + } + case 120: { + ItemQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Order = input.ReadInt32(); + break; + } + case 48: { + Active = input.ReadInt32(); + break; + } + case 56: { + Apear = input.ReadBool(); + break; + } + case 66: { + AcceptParams2 = input.ReadString(); + break; + } + case 72: { + CompleteCond = input.ReadInt32(); + break; + } + case 82: { + CompleteCondParams = input.ReadString(); + break; + } + case 88: { + CompleteCondClient = input.ReadInt32(); + break; + } + case 98: + case 96: { + clientCompleteParams1_.AddEntriesFrom(ref input, _repeated_clientCompleteParams1_codec); + break; + } + case 106: + case 104: { + clientCompleteParams2_.AddEntriesFrom(ref input, _repeated_clientCompleteParams2_codec); + break; + } + case 112: { + ItemTid = input.ReadInt32(); + break; + } + case 120: { + ItemQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyQuestActive.cs b/NTR.Common/protos/DailyQuestActive.cs new file mode 100644 index 0000000..895ff2c --- /dev/null +++ b/NTR.Common/protos/DailyQuestActive.cs @@ -0,0 +1,428 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyQuestActive.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyQuestActive.proto + public static partial class DailyQuestActiveReflection { + + #region Descriptor + /// File descriptor for DailyQuestActive.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyQuestActiveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZEYWlseVF1ZXN0QWN0aXZlLnByb3RvInYKEERhaWx5UXVlc3RBY3RpdmUS", + "CgoCaWQYASABKAUSDgoGYWN0aXZlGAIgASgFEhEKCWl0ZW1fdGlkMRgDIAEo", + "BRIPCgdudW1iZXIxGAQgASgFEhEKCWl0ZW1fdGlkMhgFIAEoBRIPCgdudW1i", + "ZXIyGAYgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyQuestActive), global::Nova.Client.DailyQuestActive.Parser, new[]{ "Id", "Active", "ItemTid1", "Number1", "ItemTid2", "Number2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyQuestActive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyQuestActive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyQuestActiveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuestActive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuestActive(DailyQuestActive other) : this() { + id_ = other.id_; + active_ = other.active_; + itemTid1_ = other.itemTid1_; + number1_ = other.number1_; + itemTid2_ = other.itemTid2_; + number2_ = other.number2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuestActive Clone() { + return new DailyQuestActive(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 2; + private int active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Active { + get { return active_; } + set { + active_ = value; + } + } + + /// Field number for the "item_tid1" field. + public const int ItemTid1FieldNumber = 3; + private int itemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemTid1 { + get { return itemTid1_; } + set { + itemTid1_ = value; + } + } + + /// Field number for the "number1" field. + public const int Number1FieldNumber = 4; + private int number1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number1 { + get { return number1_; } + set { + number1_ = value; + } + } + + /// Field number for the "item_tid2" field. + public const int ItemTid2FieldNumber = 5; + private int itemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemTid2 { + get { return itemTid2_; } + set { + itemTid2_ = value; + } + } + + /// Field number for the "number2" field. + public const int Number2FieldNumber = 6; + private int number2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number2 { + get { return number2_; } + set { + number2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyQuestActive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyQuestActive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Active != other.Active) return false; + if (ItemTid1 != other.ItemTid1) return false; + if (Number1 != other.Number1) return false; + if (ItemTid2 != other.ItemTid2) return false; + if (Number2 != other.Number2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Active != 0) hash ^= Active.GetHashCode(); + if (ItemTid1 != 0) hash ^= ItemTid1.GetHashCode(); + if (Number1 != 0) hash ^= Number1.GetHashCode(); + if (ItemTid2 != 0) hash ^= ItemTid2.GetHashCode(); + if (Number2 != 0) hash ^= Number2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Active != 0) { + output.WriteRawTag(16); + output.WriteInt32(Active); + } + if (ItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(ItemTid1); + } + if (Number1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Number1); + } + if (ItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemTid2); + } + if (Number2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Number2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Active != 0) { + output.WriteRawTag(16); + output.WriteInt32(Active); + } + if (ItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(ItemTid1); + } + if (Number1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Number1); + } + if (ItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemTid2); + } + if (Number2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Number2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Active != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Active); + } + if (ItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemTid1); + } + if (Number1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number1); + } + if (ItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemTid2); + } + if (Number2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyQuestActive other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Active != 0) { + Active = other.Active; + } + if (other.ItemTid1 != 0) { + ItemTid1 = other.ItemTid1; + } + if (other.Number1 != 0) { + Number1 = other.Number1; + } + if (other.ItemTid2 != 0) { + ItemTid2 = other.ItemTid2; + } + if (other.Number2 != 0) { + Number2 = other.Number2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Active = input.ReadInt32(); + break; + } + case 24: { + ItemTid1 = input.ReadInt32(); + break; + } + case 32: { + Number1 = input.ReadInt32(); + break; + } + case 40: { + ItemTid2 = input.ReadInt32(); + break; + } + case 48: { + Number2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Active = input.ReadInt32(); + break; + } + case 24: { + ItemTid1 = input.ReadInt32(); + break; + } + case 32: { + Number1 = input.ReadInt32(); + break; + } + case 40: { + ItemTid2 = input.ReadInt32(); + break; + } + case 48: { + Number2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DailyQuestAward.cs b/NTR.Common/protos/DailyQuestAward.cs new file mode 100644 index 0000000..c7b9036 --- /dev/null +++ b/NTR.Common/protos/DailyQuestAward.cs @@ -0,0 +1,503 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyQuestAward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DailyQuestAward.proto + public static partial class DailyQuestAwardReflection { + + #region Descriptor + /// File descriptor for DailyQuestAward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyQuestAwardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVEYWlseVF1ZXN0QXdhcmQucHJvdG8imgEKD0RhaWx5UXVlc3RBd2FyZBIK", + "CgJpZBgBIAEoBRINCgV0aXRsZRgCIAEoCRISCgpuZWVkX3BvaW50GAMgASgF", + "EhAKCG51bV9zaG93GAQgASgFEhEKCWl0ZW1fdGlkMRgFIAEoBRIPCgdudW1i", + "ZXIxGAYgASgFEhEKCWl0ZW1fdGlkMhgHIAEoBRIPCgdudW1iZXIyGAggASgF", + "Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DailyQuestAward), global::Nova.Client.DailyQuestAward.Parser, new[]{ "Id", "Title", "NeedPoint", "NumShow", "ItemTid1", "Number1", "ItemTid2", "Number2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyQuestAward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyQuestAward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DailyQuestAwardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuestAward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuestAward(DailyQuestAward other) : this() { + id_ = other.id_; + title_ = other.title_; + needPoint_ = other.needPoint_; + numShow_ = other.numShow_; + itemTid1_ = other.itemTid1_; + number1_ = other.number1_; + itemTid2_ = other.itemTid2_; + number2_ = other.number2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyQuestAward Clone() { + return new DailyQuestAward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "need_point" field. + public const int NeedPointFieldNumber = 3; + private int needPoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedPoint { + get { return needPoint_; } + set { + needPoint_ = value; + } + } + + /// Field number for the "num_show" field. + public const int NumShowFieldNumber = 4; + private int numShow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumShow { + get { return numShow_; } + set { + numShow_ = value; + } + } + + /// Field number for the "item_tid1" field. + public const int ItemTid1FieldNumber = 5; + private int itemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemTid1 { + get { return itemTid1_; } + set { + itemTid1_ = value; + } + } + + /// Field number for the "number1" field. + public const int Number1FieldNumber = 6; + private int number1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number1 { + get { return number1_; } + set { + number1_ = value; + } + } + + /// Field number for the "item_tid2" field. + public const int ItemTid2FieldNumber = 7; + private int itemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemTid2 { + get { return itemTid2_; } + set { + itemTid2_ = value; + } + } + + /// Field number for the "number2" field. + public const int Number2FieldNumber = 8; + private int number2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Number2 { + get { return number2_; } + set { + number2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyQuestAward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyQuestAward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (NeedPoint != other.NeedPoint) return false; + if (NumShow != other.NumShow) return false; + if (ItemTid1 != other.ItemTid1) return false; + if (Number1 != other.Number1) return false; + if (ItemTid2 != other.ItemTid2) return false; + if (Number2 != other.Number2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (NeedPoint != 0) hash ^= NeedPoint.GetHashCode(); + if (NumShow != 0) hash ^= NumShow.GetHashCode(); + if (ItemTid1 != 0) hash ^= ItemTid1.GetHashCode(); + if (Number1 != 0) hash ^= Number1.GetHashCode(); + if (ItemTid2 != 0) hash ^= ItemTid2.GetHashCode(); + if (Number2 != 0) hash ^= Number2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (NeedPoint != 0) { + output.WriteRawTag(24); + output.WriteInt32(NeedPoint); + } + if (NumShow != 0) { + output.WriteRawTag(32); + output.WriteInt32(NumShow); + } + if (ItemTid1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemTid1); + } + if (Number1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Number1); + } + if (ItemTid2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemTid2); + } + if (Number2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Number2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (NeedPoint != 0) { + output.WriteRawTag(24); + output.WriteInt32(NeedPoint); + } + if (NumShow != 0) { + output.WriteRawTag(32); + output.WriteInt32(NumShow); + } + if (ItemTid1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemTid1); + } + if (Number1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Number1); + } + if (ItemTid2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemTid2); + } + if (Number2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Number2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (NeedPoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedPoint); + } + if (NumShow != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumShow); + } + if (ItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemTid1); + } + if (Number1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number1); + } + if (ItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemTid2); + } + if (Number2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyQuestAward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.NeedPoint != 0) { + NeedPoint = other.NeedPoint; + } + if (other.NumShow != 0) { + NumShow = other.NumShow; + } + if (other.ItemTid1 != 0) { + ItemTid1 = other.ItemTid1; + } + if (other.Number1 != 0) { + Number1 = other.Number1; + } + if (other.ItemTid2 != 0) { + ItemTid2 = other.ItemTid2; + } + if (other.Number2 != 0) { + Number2 = other.Number2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + NeedPoint = input.ReadInt32(); + break; + } + case 32: { + NumShow = input.ReadInt32(); + break; + } + case 40: { + ItemTid1 = input.ReadInt32(); + break; + } + case 48: { + Number1 = input.ReadInt32(); + break; + } + case 56: { + ItemTid2 = input.ReadInt32(); + break; + } + case 64: { + Number2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + NeedPoint = input.ReadInt32(); + break; + } + case 32: { + NumShow = input.ReadInt32(); + break; + } + case 40: { + ItemTid1 = input.ReadInt32(); + break; + } + case 48: { + Number1 = input.ReadInt32(); + break; + } + case 56: { + ItemTid2 = input.ReadInt32(); + break; + } + case 64: { + Number2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DatingCharResponse.cs b/NTR.Common/protos/DatingCharResponse.cs new file mode 100644 index 0000000..914d331 --- /dev/null +++ b/NTR.Common/protos/DatingCharResponse.cs @@ -0,0 +1,466 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DatingCharResponse.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DatingCharResponse.proto + public static partial class DatingCharResponseReflection { + + #region Descriptor + /// File descriptor for DatingCharResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DatingCharResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhEYXRpbmdDaGFyUmVzcG9uc2UucHJvdG8ihwEKEkRhdGluZ0NoYXJSZXNw", + "b25zZRIKCgJpZBgBIAEoBRIPCgdjaGFyX2lkGAIgASgFEgwKBHR5cGUYAyAB", + "KAkSEQoJdm9pY2Vfa2V5GAQgASgJEg4KBmFjdGlvbhgFIAEoCRINCgV3b3Jk", + "cxgGIAEoCRIUCgxidWJibGVfZW1vamkYByABKAlCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DatingCharResponse), global::Nova.Client.DatingCharResponse.Parser, new[]{ "Id", "CharId", "Type", "VoiceKey", "Action", "Words", "BubbleEmoji" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DatingCharResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatingCharResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DatingCharResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingCharResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingCharResponse(DatingCharResponse other) : this() { + id_ = other.id_; + charId_ = other.charId_; + type_ = other.type_; + voiceKey_ = other.voiceKey_; + action_ = other.action_; + words_ = other.words_; + bubbleEmoji_ = other.bubbleEmoji_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingCharResponse Clone() { + return new DatingCharResponse(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private string type_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "voice_key" field. + public const int VoiceKeyFieldNumber = 4; + private string voiceKey_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VoiceKey { + get { return voiceKey_; } + set { + voiceKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "action" field. + public const int ActionFieldNumber = 5; + private string action_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Action { + get { return action_; } + set { + action_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "words" field. + public const int WordsFieldNumber = 6; + private string words_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Words { + get { return words_; } + set { + words_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bubble_emoji" field. + public const int BubbleEmojiFieldNumber = 7; + private string bubbleEmoji_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BubbleEmoji { + get { return bubbleEmoji_; } + set { + bubbleEmoji_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatingCharResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatingCharResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharId != other.CharId) return false; + if (Type != other.Type) return false; + if (VoiceKey != other.VoiceKey) return false; + if (Action != other.Action) return false; + if (Words != other.Words) return false; + if (BubbleEmoji != other.BubbleEmoji) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (VoiceKey.Length != 0) hash ^= VoiceKey.GetHashCode(); + if (Action.Length != 0) hash ^= Action.GetHashCode(); + if (Words.Length != 0) hash ^= Words.GetHashCode(); + if (BubbleEmoji.Length != 0) hash ^= BubbleEmoji.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (Type.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Type); + } + if (VoiceKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(VoiceKey); + } + if (Action.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Action); + } + if (Words.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Words); + } + if (BubbleEmoji.Length != 0) { + output.WriteRawTag(58); + output.WriteString(BubbleEmoji); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (Type.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Type); + } + if (VoiceKey.Length != 0) { + output.WriteRawTag(34); + output.WriteString(VoiceKey); + } + if (Action.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Action); + } + if (Words.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Words); + } + if (BubbleEmoji.Length != 0) { + output.WriteRawTag(58); + output.WriteString(BubbleEmoji); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (VoiceKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VoiceKey); + } + if (Action.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Action); + } + if (Words.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Words); + } + if (BubbleEmoji.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BubbleEmoji); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DatingCharResponse other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.VoiceKey.Length != 0) { + VoiceKey = other.VoiceKey; + } + if (other.Action.Length != 0) { + Action = other.Action; + } + if (other.Words.Length != 0) { + Words = other.Words; + } + if (other.BubbleEmoji.Length != 0) { + BubbleEmoji = other.BubbleEmoji; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 26: { + Type = input.ReadString(); + break; + } + case 34: { + VoiceKey = input.ReadString(); + break; + } + case 42: { + Action = input.ReadString(); + break; + } + case 50: { + Words = input.ReadString(); + break; + } + case 58: { + BubbleEmoji = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 26: { + Type = input.ReadString(); + break; + } + case 34: { + VoiceKey = input.ReadString(); + break; + } + case 42: { + Action = input.ReadString(); + break; + } + case 50: { + Words = input.ReadString(); + break; + } + case 58: { + BubbleEmoji = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DatingEvent.cs b/NTR.Common/protos/DatingEvent.cs new file mode 100644 index 0000000..ed29124 --- /dev/null +++ b/NTR.Common/protos/DatingEvent.cs @@ -0,0 +1,709 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DatingEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DatingEvent.proto + public static partial class DatingEventReflection { + + #region Descriptor + /// File descriptor for DatingEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DatingEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFEYXRpbmdFdmVudC5wcm90byKDAgoLRGF0aW5nRXZlbnQSCgoCaWQYASAB", + "KAUSGQoRZGF0aW5nX2V2ZW50X3R5cGUYAiABKAUSGwoTZGF0aW5nX2V2ZW50", + "X3BhcmFtcxgDIAMoBRIRCgltdXRleF90YWcYBCABKAUSEAoIc29ydF90YWcY", + "BSABKAUSEAoIYWZmaW5pdHkYBiABKAUSDgoGcmV3YXJkGAcgAygFEg0KBWRl", + "c2MxGAggASgJEg0KBWRlc2MyGAkgASgJEg0KBWRlc2MzGAogASgJEhAKCHJl", + "c3BvbnNlGAsgASgJEgwKBG5hbWUYDCABKAkSDAoEY2x1ZRgNIAEoCRIOCgZt", + "ZW1vcnkYDiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DatingEvent), global::Nova.Client.DatingEvent.Parser, new[]{ "Id", "DatingEventType", "DatingEventParams", "MutexTag", "SortTag", "Affinity", "Reward", "Desc1", "Desc2", "Desc3", "Response", "Name", "Clue", "Memory" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DatingEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatingEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DatingEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingEvent(DatingEvent other) : this() { + id_ = other.id_; + datingEventType_ = other.datingEventType_; + datingEventParams_ = other.datingEventParams_.Clone(); + mutexTag_ = other.mutexTag_; + sortTag_ = other.sortTag_; + affinity_ = other.affinity_; + reward_ = other.reward_.Clone(); + desc1_ = other.desc1_; + desc2_ = other.desc2_; + desc3_ = other.desc3_; + response_ = other.response_; + name_ = other.name_; + clue_ = other.clue_; + memory_ = other.memory_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingEvent Clone() { + return new DatingEvent(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "dating_event_type" field. + public const int DatingEventTypeFieldNumber = 2; + private int datingEventType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DatingEventType { + get { return datingEventType_; } + set { + datingEventType_ = value; + } + } + + /// Field number for the "dating_event_params" field. + public const int DatingEventParamsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_datingEventParams_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField datingEventParams_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DatingEventParams { + get { return datingEventParams_; } + } + + /// Field number for the "mutex_tag" field. + public const int MutexTagFieldNumber = 4; + private int mutexTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MutexTag { + get { return mutexTag_; } + set { + mutexTag_ = value; + } + } + + /// Field number for the "sort_tag" field. + public const int SortTagFieldNumber = 5; + private int sortTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortTag { + get { return sortTag_; } + set { + sortTag_ = value; + } + } + + /// Field number for the "affinity" field. + public const int AffinityFieldNumber = 6; + private int affinity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affinity { + get { return affinity_; } + set { + affinity_ = value; + } + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_reward_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField reward_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Reward { + get { return reward_; } + } + + /// Field number for the "desc1" field. + public const int Desc1FieldNumber = 8; + private string desc1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc1 { + get { return desc1_; } + set { + desc1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc2" field. + public const int Desc2FieldNumber = 9; + private string desc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc2 { + get { return desc2_; } + set { + desc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc3" field. + public const int Desc3FieldNumber = 10; + private string desc3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc3 { + get { return desc3_; } + set { + desc3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "response" field. + public const int ResponseFieldNumber = 11; + private string response_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Response { + get { return response_; } + set { + response_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 12; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "clue" field. + public const int ClueFieldNumber = 13; + private string clue_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Clue { + get { return clue_; } + set { + clue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "memory" field. + public const int MemoryFieldNumber = 14; + private string memory_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memory { + get { return memory_; } + set { + memory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatingEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatingEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (DatingEventType != other.DatingEventType) return false; + if(!datingEventParams_.Equals(other.datingEventParams_)) return false; + if (MutexTag != other.MutexTag) return false; + if (SortTag != other.SortTag) return false; + if (Affinity != other.Affinity) return false; + if(!reward_.Equals(other.reward_)) return false; + if (Desc1 != other.Desc1) return false; + if (Desc2 != other.Desc2) return false; + if (Desc3 != other.Desc3) return false; + if (Response != other.Response) return false; + if (Name != other.Name) return false; + if (Clue != other.Clue) return false; + if (Memory != other.Memory) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (DatingEventType != 0) hash ^= DatingEventType.GetHashCode(); + hash ^= datingEventParams_.GetHashCode(); + if (MutexTag != 0) hash ^= MutexTag.GetHashCode(); + if (SortTag != 0) hash ^= SortTag.GetHashCode(); + if (Affinity != 0) hash ^= Affinity.GetHashCode(); + hash ^= reward_.GetHashCode(); + if (Desc1.Length != 0) hash ^= Desc1.GetHashCode(); + if (Desc2.Length != 0) hash ^= Desc2.GetHashCode(); + if (Desc3.Length != 0) hash ^= Desc3.GetHashCode(); + if (Response.Length != 0) hash ^= Response.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Clue.Length != 0) hash ^= Clue.GetHashCode(); + if (Memory.Length != 0) hash ^= Memory.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DatingEventType != 0) { + output.WriteRawTag(16); + output.WriteInt32(DatingEventType); + } + datingEventParams_.WriteTo(output, _repeated_datingEventParams_codec); + if (MutexTag != 0) { + output.WriteRawTag(32); + output.WriteInt32(MutexTag); + } + if (SortTag != 0) { + output.WriteRawTag(40); + output.WriteInt32(SortTag); + } + if (Affinity != 0) { + output.WriteRawTag(48); + output.WriteInt32(Affinity); + } + reward_.WriteTo(output, _repeated_reward_codec); + if (Desc1.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Desc1); + } + if (Desc2.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc2); + } + if (Desc3.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Desc3); + } + if (Response.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Response); + } + if (Name.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Name); + } + if (Clue.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Clue); + } + if (Memory.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Memory); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DatingEventType != 0) { + output.WriteRawTag(16); + output.WriteInt32(DatingEventType); + } + datingEventParams_.WriteTo(ref output, _repeated_datingEventParams_codec); + if (MutexTag != 0) { + output.WriteRawTag(32); + output.WriteInt32(MutexTag); + } + if (SortTag != 0) { + output.WriteRawTag(40); + output.WriteInt32(SortTag); + } + if (Affinity != 0) { + output.WriteRawTag(48); + output.WriteInt32(Affinity); + } + reward_.WriteTo(ref output, _repeated_reward_codec); + if (Desc1.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Desc1); + } + if (Desc2.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc2); + } + if (Desc3.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Desc3); + } + if (Response.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Response); + } + if (Name.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Name); + } + if (Clue.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Clue); + } + if (Memory.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Memory); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (DatingEventType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DatingEventType); + } + size += datingEventParams_.CalculateSize(_repeated_datingEventParams_codec); + if (MutexTag != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MutexTag); + } + if (SortTag != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SortTag); + } + if (Affinity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Affinity); + } + size += reward_.CalculateSize(_repeated_reward_codec); + if (Desc1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc1); + } + if (Desc2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc2); + } + if (Desc3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc3); + } + if (Response.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Response); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Clue.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Clue); + } + if (Memory.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memory); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DatingEvent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.DatingEventType != 0) { + DatingEventType = other.DatingEventType; + } + datingEventParams_.Add(other.datingEventParams_); + if (other.MutexTag != 0) { + MutexTag = other.MutexTag; + } + if (other.SortTag != 0) { + SortTag = other.SortTag; + } + if (other.Affinity != 0) { + Affinity = other.Affinity; + } + reward_.Add(other.reward_); + if (other.Desc1.Length != 0) { + Desc1 = other.Desc1; + } + if (other.Desc2.Length != 0) { + Desc2 = other.Desc2; + } + if (other.Desc3.Length != 0) { + Desc3 = other.Desc3; + } + if (other.Response.Length != 0) { + Response = other.Response; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Clue.Length != 0) { + Clue = other.Clue; + } + if (other.Memory.Length != 0) { + Memory = other.Memory; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DatingEventType = input.ReadInt32(); + break; + } + case 26: + case 24: { + datingEventParams_.AddEntriesFrom(input, _repeated_datingEventParams_codec); + break; + } + case 32: { + MutexTag = input.ReadInt32(); + break; + } + case 40: { + SortTag = input.ReadInt32(); + break; + } + case 48: { + Affinity = input.ReadInt32(); + break; + } + case 58: + case 56: { + reward_.AddEntriesFrom(input, _repeated_reward_codec); + break; + } + case 66: { + Desc1 = input.ReadString(); + break; + } + case 74: { + Desc2 = input.ReadString(); + break; + } + case 82: { + Desc3 = input.ReadString(); + break; + } + case 90: { + Response = input.ReadString(); + break; + } + case 98: { + Name = input.ReadString(); + break; + } + case 106: { + Clue = input.ReadString(); + break; + } + case 114: { + Memory = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DatingEventType = input.ReadInt32(); + break; + } + case 26: + case 24: { + datingEventParams_.AddEntriesFrom(ref input, _repeated_datingEventParams_codec); + break; + } + case 32: { + MutexTag = input.ReadInt32(); + break; + } + case 40: { + SortTag = input.ReadInt32(); + break; + } + case 48: { + Affinity = input.ReadInt32(); + break; + } + case 58: + case 56: { + reward_.AddEntriesFrom(ref input, _repeated_reward_codec); + break; + } + case 66: { + Desc1 = input.ReadString(); + break; + } + case 74: { + Desc2 = input.ReadString(); + break; + } + case 82: { + Desc3 = input.ReadString(); + break; + } + case 90: { + Response = input.ReadString(); + break; + } + case 98: { + Name = input.ReadString(); + break; + } + case 106: { + Clue = input.ReadString(); + break; + } + case 114: { + Memory = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DatingLandmark.cs b/NTR.Common/protos/DatingLandmark.cs new file mode 100644 index 0000000..1cbfad0 --- /dev/null +++ b/NTR.Common/protos/DatingLandmark.cs @@ -0,0 +1,390 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DatingLandmark.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DatingLandmark.proto + public static partial class DatingLandmarkReflection { + + #region Descriptor + /// File descriptor for DatingLandmark.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DatingLandmarkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChREYXRpbmdMYW5kbWFyay5wcm90byJSCg5EYXRpbmdMYW5kbWFyaxIKCgJp", + "ZBgBIAEoBRIMCgRuYW1lGAIgASgJEgwKBGRlc2MYAyABKAkSDAoEaWNvbhgE", + "IAEoCRIKCgJiZxgFIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DatingLandmark), global::Nova.Client.DatingLandmark.Parser, new[]{ "Id", "Name", "Desc", "Icon", "Bg" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DatingLandmark : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatingLandmark()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DatingLandmarkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingLandmark() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingLandmark(DatingLandmark other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + bg_ = other.bg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DatingLandmark Clone() { + return new DatingLandmark(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bg" field. + public const int BgFieldNumber = 5; + private string bg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bg { + get { return bg_; } + set { + bg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DatingLandmark); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DatingLandmark other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (Bg != other.Bg) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Bg.Length != 0) hash ^= Bg.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (Bg.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Bg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (Bg.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Bg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Bg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bg); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DatingLandmark other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Bg.Length != 0) { + Bg = other.Bg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + Bg = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + Bg = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DestroyObject.cs b/NTR.Common/protos/DestroyObject.cs new file mode 100644 index 0000000..63ba8a9 --- /dev/null +++ b/NTR.Common/protos/DestroyObject.cs @@ -0,0 +1,428 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DestroyObject.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DestroyObject.proto + public static partial class DestroyObjectReflection { + + #region Descriptor + /// File descriptor for DestroyObject.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DestroyObjectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNEZXN0cm95T2JqZWN0LnByb3RvIm4KDURlc3Ryb3lPYmplY3QSCgoCaWQY", + "ASABKAUSDAoEbmFtZRgCIAEoCRIKCgJsdhgDIAEoBRIUCgxhdHRyaWJ1dGVf", + "aWQYBCABKAkSEAoIdGVtcGxldGUYBSABKAUSDwoHZmFjdGlvbhgGIAEoBUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DestroyObject), global::Nova.Client.DestroyObject.Parser, new[]{ "Id", "Name", "Lv", "AttributeId", "Templete", "Faction" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DestroyObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroyObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DestroyObjectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestroyObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestroyObject(DestroyObject other) : this() { + id_ = other.id_; + name_ = other.name_; + lv_ = other.lv_; + attributeId_ = other.attributeId_; + templete_ = other.templete_; + faction_ = other.faction_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestroyObject Clone() { + return new DestroyObject(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "lv" field. + public const int LvFieldNumber = 3; + private int lv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Lv { + get { return lv_; } + set { + lv_ = value; + } + } + + /// Field number for the "attribute_id" field. + public const int AttributeIdFieldNumber = 4; + private string attributeId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AttributeId { + get { return attributeId_; } + set { + attributeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "templete" field. + public const int TempleteFieldNumber = 5; + private int templete_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Templete { + get { return templete_; } + set { + templete_ = value; + } + } + + /// Field number for the "faction" field. + public const int FactionFieldNumber = 6; + private int faction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Faction { + get { return faction_; } + set { + faction_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DestroyObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DestroyObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Lv != other.Lv) return false; + if (AttributeId != other.AttributeId) return false; + if (Templete != other.Templete) return false; + if (Faction != other.Faction) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Lv != 0) hash ^= Lv.GetHashCode(); + if (AttributeId.Length != 0) hash ^= AttributeId.GetHashCode(); + if (Templete != 0) hash ^= Templete.GetHashCode(); + if (Faction != 0) hash ^= Faction.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Lv != 0) { + output.WriteRawTag(24); + output.WriteInt32(Lv); + } + if (AttributeId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AttributeId); + } + if (Templete != 0) { + output.WriteRawTag(40); + output.WriteInt32(Templete); + } + if (Faction != 0) { + output.WriteRawTag(48); + output.WriteInt32(Faction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Lv != 0) { + output.WriteRawTag(24); + output.WriteInt32(Lv); + } + if (AttributeId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AttributeId); + } + if (Templete != 0) { + output.WriteRawTag(40); + output.WriteInt32(Templete); + } + if (Faction != 0) { + output.WriteRawTag(48); + output.WriteInt32(Faction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Lv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Lv); + } + if (AttributeId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AttributeId); + } + if (Templete != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Templete); + } + if (Faction != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Faction); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DestroyObject other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Lv != 0) { + Lv = other.Lv; + } + if (other.AttributeId.Length != 0) { + AttributeId = other.AttributeId; + } + if (other.Templete != 0) { + Templete = other.Templete; + } + if (other.Faction != 0) { + Faction = other.Faction; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Lv = input.ReadInt32(); + break; + } + case 34: { + AttributeId = input.ReadString(); + break; + } + case 40: { + Templete = input.ReadInt32(); + break; + } + case 48: { + Faction = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Lv = input.ReadInt32(); + break; + } + case 34: { + AttributeId = input.ReadString(); + break; + } + case 40: { + Templete = input.ReadInt32(); + break; + } + case 48: { + Faction = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DictionaryDiagram.cs b/NTR.Common/protos/DictionaryDiagram.cs new file mode 100644 index 0000000..3b62e4d --- /dev/null +++ b/NTR.Common/protos/DictionaryDiagram.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DictionaryDiagram.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DictionaryDiagram.proto + public static partial class DictionaryDiagramReflection { + + #region Descriptor + /// File descriptor for DictionaryDiagram.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DictionaryDiagramReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdEaWN0aW9uYXJ5RGlhZ3JhbS5wcm90byJKChFEaWN0aW9uYXJ5RGlhZ3Jh", + "bRIKCgJpZBgBIAEoBRINCgV0aXRsZRgCIAEoCRIMCgRkZXNjGAMgASgJEgwK", + "BGljb24YBCABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DictionaryDiagram), global::Nova.Client.DictionaryDiagram.Parser, new[]{ "Id", "Title", "Desc", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DictionaryDiagram : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DictionaryDiagram()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DictionaryDiagramReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryDiagram() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryDiagram(DictionaryDiagram other) : this() { + id_ = other.id_; + title_ = other.title_; + desc_ = other.desc_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryDiagram Clone() { + return new DictionaryDiagram(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DictionaryDiagram); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DictionaryDiagram other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DictionaryDiagram other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DictionaryEntry.cs b/NTR.Common/protos/DictionaryEntry.cs new file mode 100644 index 0000000..3f9e686 --- /dev/null +++ b/NTR.Common/protos/DictionaryEntry.cs @@ -0,0 +1,531 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DictionaryEntry.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DictionaryEntry.proto + public static partial class DictionaryEntryReflection { + + #region Descriptor + /// File descriptor for DictionaryEntry.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DictionaryEntryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVEaWN0aW9uYXJ5RW50cnkucHJvdG8imQEKD0RpY3Rpb25hcnlFbnRyeRIK", + "CgJpZBgBIAEoBRINCgVpbmRleBgCIAEoBRINCgV0aXRsZRgDIAEoCRILCgN0", + "YWIYBCABKAUSDwoHaXRlbV9pZBgFIAEoBRILCgNxdHkYBiABKAUSFAoMZGlh", + "Z3JhbV9saXN0GAcgAygFEgwKBHNvcnQYCCABKAUSDQoFcG9wdXAYCSABKAhC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DictionaryEntry), global::Nova.Client.DictionaryEntry.Parser, new[]{ "Id", "Index", "Title", "Tab", "ItemId", "Qty", "DiagramList", "Sort", "Popup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DictionaryEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DictionaryEntry()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DictionaryEntryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryEntry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryEntry(DictionaryEntry other) : this() { + id_ = other.id_; + index_ = other.index_; + title_ = other.title_; + tab_ = other.tab_; + itemId_ = other.itemId_; + qty_ = other.qty_; + diagramList_ = other.diagramList_.Clone(); + sort_ = other.sort_; + popup_ = other.popup_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryEntry Clone() { + return new DictionaryEntry(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 2; + private int index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tab" field. + public const int TabFieldNumber = 4; + private int tab_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tab { + get { return tab_; } + set { + tab_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 5; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "qty" field. + public const int QtyFieldNumber = 6; + private int qty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty { + get { return qty_; } + set { + qty_ = value; + } + } + + /// Field number for the "diagram_list" field. + public const int DiagramListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_diagramList_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField diagramList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DiagramList { + get { return diagramList_; } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 8; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "popup" field. + public const int PopupFieldNumber = 9; + private bool popup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Popup { + get { return popup_; } + set { + popup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DictionaryEntry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DictionaryEntry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Index != other.Index) return false; + if (Title != other.Title) return false; + if (Tab != other.Tab) return false; + if (ItemId != other.ItemId) return false; + if (Qty != other.Qty) return false; + if(!diagramList_.Equals(other.diagramList_)) return false; + if (Sort != other.Sort) return false; + if (Popup != other.Popup) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Tab != 0) hash ^= Tab.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (Qty != 0) hash ^= Qty.GetHashCode(); + hash ^= diagramList_.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Popup != false) hash ^= Popup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Index != 0) { + output.WriteRawTag(16); + output.WriteInt32(Index); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Tab != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tab); + } + if (ItemId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemId); + } + if (Qty != 0) { + output.WriteRawTag(48); + output.WriteInt32(Qty); + } + diagramList_.WriteTo(output, _repeated_diagramList_codec); + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + if (Popup != false) { + output.WriteRawTag(72); + output.WriteBool(Popup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Index != 0) { + output.WriteRawTag(16); + output.WriteInt32(Index); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Tab != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tab); + } + if (ItemId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemId); + } + if (Qty != 0) { + output.WriteRawTag(48); + output.WriteInt32(Qty); + } + diagramList_.WriteTo(ref output, _repeated_diagramList_codec); + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + if (Popup != false) { + output.WriteRawTag(72); + output.WriteBool(Popup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Tab != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tab); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (Qty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty); + } + size += diagramList_.CalculateSize(_repeated_diagramList_codec); + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Popup != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DictionaryEntry other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Tab != 0) { + Tab = other.Tab; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.Qty != 0) { + Qty = other.Qty; + } + diagramList_.Add(other.diagramList_); + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Popup != false) { + Popup = other.Popup; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Index = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + Tab = input.ReadInt32(); + break; + } + case 40: { + ItemId = input.ReadInt32(); + break; + } + case 48: { + Qty = input.ReadInt32(); + break; + } + case 58: + case 56: { + diagramList_.AddEntriesFrom(input, _repeated_diagramList_codec); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + case 72: { + Popup = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Index = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + Tab = input.ReadInt32(); + break; + } + case 40: { + ItemId = input.ReadInt32(); + break; + } + case 48: { + Qty = input.ReadInt32(); + break; + } + case 58: + case 56: { + diagramList_.AddEntriesFrom(ref input, _repeated_diagramList_codec); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + case 72: { + Popup = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DictionaryTab.cs b/NTR.Common/protos/DictionaryTab.cs new file mode 100644 index 0000000..a3571a6 --- /dev/null +++ b/NTR.Common/protos/DictionaryTab.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DictionaryTab.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DictionaryTab.proto + public static partial class DictionaryTabReflection { + + #region Descriptor + /// File descriptor for DictionaryTab.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DictionaryTabReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNEaWN0aW9uYXJ5VGFiLnByb3RvImMKDURpY3Rpb25hcnlUYWISDgoGdGFi", + "X2lkGAEgASgFEgwKBGljb24YAiABKAkSDQoFaWNvbjIYAyABKAkSDQoFdGl0", + "bGUYBCABKAkSFgoOaGlkZV9pbl9iYXR0bGUYBSABKAhCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DictionaryTab), global::Nova.Client.DictionaryTab.Parser, new[]{ "TabId", "Icon", "Icon2", "Title", "HideInBattle" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DictionaryTab : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DictionaryTab()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DictionaryTabReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryTab() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryTab(DictionaryTab other) : this() { + tabId_ = other.tabId_; + icon_ = other.icon_; + icon2_ = other.icon2_; + title_ = other.title_; + hideInBattle_ = other.hideInBattle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryTab Clone() { + return new DictionaryTab(this); + } + + /// Field number for the "tab_id" field. + public const int TabIdFieldNumber = 1; + private int tabId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TabId { + get { return tabId_; } + set { + tabId_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 2; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon2" field. + public const int Icon2FieldNumber = 3; + private string icon2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon2 { + get { return icon2_; } + set { + icon2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 4; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hide_in_battle" field. + public const int HideInBattleFieldNumber = 5; + private bool hideInBattle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HideInBattle { + get { return hideInBattle_; } + set { + hideInBattle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DictionaryTab); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DictionaryTab other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TabId != other.TabId) return false; + if (Icon != other.Icon) return false; + if (Icon2 != other.Icon2) return false; + if (Title != other.Title) return false; + if (HideInBattle != other.HideInBattle) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TabId != 0) hash ^= TabId.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Icon2.Length != 0) hash ^= Icon2.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (HideInBattle != false) hash ^= HideInBattle.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TabId != 0) { + output.WriteRawTag(8); + output.WriteInt32(TabId); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (Icon2.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon2); + } + if (Title.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title); + } + if (HideInBattle != false) { + output.WriteRawTag(40); + output.WriteBool(HideInBattle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TabId != 0) { + output.WriteRawTag(8); + output.WriteInt32(TabId); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (Icon2.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon2); + } + if (Title.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title); + } + if (HideInBattle != false) { + output.WriteRawTag(40); + output.WriteBool(HideInBattle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TabId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TabId); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Icon2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon2); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HideInBattle != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DictionaryTab other) { + if (other == null) { + return; + } + if (other.TabId != 0) { + TabId = other.TabId; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Icon2.Length != 0) { + Icon2 = other.Icon2; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.HideInBattle != false) { + HideInBattle = other.HideInBattle; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TabId = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + case 26: { + Icon2 = input.ReadString(); + break; + } + case 34: { + Title = input.ReadString(); + break; + } + case 40: { + HideInBattle = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TabId = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + case 26: { + Icon2 = input.ReadString(); + break; + } + case 34: { + Title = input.ReadString(); + break; + } + case 40: { + HideInBattle = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DictionaryTopBarEntry.cs b/NTR.Common/protos/DictionaryTopBarEntry.cs new file mode 100644 index 0000000..91ffc81 --- /dev/null +++ b/NTR.Common/protos/DictionaryTopBarEntry.cs @@ -0,0 +1,307 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DictionaryTopBarEntry.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DictionaryTopBarEntry.proto + public static partial class DictionaryTopBarEntryReflection { + + #region Descriptor + /// File descriptor for DictionaryTopBarEntry.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DictionaryTopBarEntryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtEaWN0aW9uYXJ5VG9wQmFyRW50cnkucHJvdG8iSAoVRGljdGlvbmFyeVRv", + "cEJhckVudHJ5EgoKAmlkGAEgASgFEg0KBXRpdGxlGAIgASgJEhQKDGRpYWdy", + "YW1fbGlzdBgDIAMoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DictionaryTopBarEntry), global::Nova.Client.DictionaryTopBarEntry.Parser, new[]{ "Id", "Title", "DiagramList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DictionaryTopBarEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DictionaryTopBarEntry()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DictionaryTopBarEntryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryTopBarEntry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryTopBarEntry(DictionaryTopBarEntry other) : this() { + id_ = other.id_; + title_ = other.title_; + diagramList_ = other.diagramList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DictionaryTopBarEntry Clone() { + return new DictionaryTopBarEntry(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "diagram_list" field. + public const int DiagramListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_diagramList_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField diagramList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DiagramList { + get { return diagramList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DictionaryTopBarEntry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DictionaryTopBarEntry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if(!diagramList_.Equals(other.diagramList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + hash ^= diagramList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + diagramList_.WriteTo(output, _repeated_diagramList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + diagramList_.WriteTo(ref output, _repeated_diagramList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + size += diagramList_.CalculateSize(_repeated_diagramList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DictionaryTopBarEntry other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + diagramList_.Add(other.diagramList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: + case 24: { + diagramList_.AddEntriesFrom(input, _repeated_diagramList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: + case 24: { + diagramList_.AddEntriesFrom(ref input, _repeated_diagramList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Disc.cs b/NTR.Common/protos/Disc.cs new file mode 100644 index 0000000..208f08f --- /dev/null +++ b/NTR.Common/protos/Disc.cs @@ -0,0 +1,1328 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Disc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Disc.proto + public static partial class DiscReflection { + + #region Descriptor + /// File descriptor for Disc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpEaXNjLnByb3RvIvkECgREaXNjEgoKAmlkGAEgASgFEg0KBWVfZV90GAIg", + "ASgFEgwKBHRhZ3MYAyADKAUSDwoHdmlzaWJsZRgEIAEoCBIRCglhdmFpbGFi", + "bGUYBSABKAgSDQoFaW1hZ2UYBiABKAkSDAoEbm90ZRgHIAMoBRIPCgdkaXNj", + "X2JnGAggASgJEgwKBGNhcmQYCSABKAkSEAoIZ2FjaGFfYmcYCiABKAkSGwoT", + "c3RyZW5ndGhlbl9ncm91cF9pZBgLIAEoBRIaChJhdHRyX2Jhc2VfZ3JvdXBf", + "aWQYDCABKAUSGAoQcHJvbW90ZV9ncm91cF9pZBgNIAEoBRIZChF0cmFuc2Zv", + "cm1faXRlbV9pZBgOIAEoBRIfChdtYXhfc3Rhcl90cmFuc2Zvcm1faXRlbRgP", + "IAMoBRIeChZwYXNzaXZlX3NraWxsX2dyb3VwX2lkGBAgASgFEhgKEGNvbW1v", + "bl9za2lsbF9pZDEYESABKAUSGAoQY29tbW9uX3NraWxsX2lkMhgSIAEoBRIT", + "CgtyZWFkX3Jld2FyZBgTIAMoBRIPCgd2b19maWxlGBQgASgJEhEKCXZvX2Jl", + "Z2luMRgVIAEoAhIQCgh2b19sb29wMRgWIAEoAhIQCgh2b19uYW1lMRgXIAEo", + "CRIRCgl2b19iZWdpbjIYGCABKAISEAoIdm9fbG9vcDIYGSABKAISEAoIdm9f", + "bmFtZTIYGiABKAkSEAoIdm9fc3RvcnkYGyABKAkSEgoKc3RvcnlfbmFtZRgc", + "IAEoCRISCgpzdG9yeV9kZXNjGB0gASgJEg8KB2NoYXJfaWQYHiABKAUSFAoM", + "c2tpbGxfc2NyaXB0GB8gASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Disc), global::Nova.Client.Disc.Parser, new[]{ "Id", "EET", "Tags", "Visible", "Available", "Image", "Note", "DiscBg", "Card", "GachaBg", "StrengthenGroupId", "AttrBaseGroupId", "PromoteGroupId", "TransformItemId", "MaxStarTransformItem", "PassiveSkillGroupId", "CommonSkillId1", "CommonSkillId2", "ReadReward", "VoFile", "VoBegin1", "VoLoop1", "VoName1", "VoBegin2", "VoLoop2", "VoName2", "VoStory", "StoryName", "StoryDesc", "CharId", "SkillScript" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Disc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Disc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disc(Disc other) : this() { + id_ = other.id_; + eET_ = other.eET_; + tags_ = other.tags_.Clone(); + visible_ = other.visible_; + available_ = other.available_; + image_ = other.image_; + note_ = other.note_.Clone(); + discBg_ = other.discBg_; + card_ = other.card_; + gachaBg_ = other.gachaBg_; + strengthenGroupId_ = other.strengthenGroupId_; + attrBaseGroupId_ = other.attrBaseGroupId_; + promoteGroupId_ = other.promoteGroupId_; + transformItemId_ = other.transformItemId_; + maxStarTransformItem_ = other.maxStarTransformItem_.Clone(); + passiveSkillGroupId_ = other.passiveSkillGroupId_; + commonSkillId1_ = other.commonSkillId1_; + commonSkillId2_ = other.commonSkillId2_; + readReward_ = other.readReward_.Clone(); + voFile_ = other.voFile_; + voBegin1_ = other.voBegin1_; + voLoop1_ = other.voLoop1_; + voName1_ = other.voName1_; + voBegin2_ = other.voBegin2_; + voLoop2_ = other.voLoop2_; + voName2_ = other.voName2_; + voStory_ = other.voStory_; + storyName_ = other.storyName_; + storyDesc_ = other.storyDesc_; + charId_ = other.charId_; + skillScript_ = other.skillScript_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disc Clone() { + return new Disc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 2; + private int eET_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EET { + get { return eET_; } + set { + eET_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_tags_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tags { + get { return tags_; } + } + + /// Field number for the "visible" field. + public const int VisibleFieldNumber = 4; + private bool visible_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Visible { + get { return visible_; } + set { + visible_ = value; + } + } + + /// Field number for the "available" field. + public const int AvailableFieldNumber = 5; + private bool available_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Available { + get { return available_; } + set { + available_ = value; + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 6; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "note" field. + public const int NoteFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_note_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField note_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Note { + get { return note_; } + } + + /// Field number for the "disc_bg" field. + public const int DiscBgFieldNumber = 8; + private string discBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscBg { + get { return discBg_; } + set { + discBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "card" field. + public const int CardFieldNumber = 9; + private string card_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Card { + get { return card_; } + set { + card_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gacha_bg" field. + public const int GachaBgFieldNumber = 10; + private string gachaBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GachaBg { + get { return gachaBg_; } + set { + gachaBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "strengthen_group_id" field. + public const int StrengthenGroupIdFieldNumber = 11; + private int strengthenGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StrengthenGroupId { + get { return strengthenGroupId_; } + set { + strengthenGroupId_ = value; + } + } + + /// Field number for the "attr_base_group_id" field. + public const int AttrBaseGroupIdFieldNumber = 12; + private int attrBaseGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrBaseGroupId { + get { return attrBaseGroupId_; } + set { + attrBaseGroupId_ = value; + } + } + + /// Field number for the "promote_group_id" field. + public const int PromoteGroupIdFieldNumber = 13; + private int promoteGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PromoteGroupId { + get { return promoteGroupId_; } + set { + promoteGroupId_ = value; + } + } + + /// Field number for the "transform_item_id" field. + public const int TransformItemIdFieldNumber = 14; + private int transformItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TransformItemId { + get { return transformItemId_; } + set { + transformItemId_ = value; + } + } + + /// Field number for the "max_star_transform_item" field. + public const int MaxStarTransformItemFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_maxStarTransformItem_codec + = pb::FieldCodec.ForInt32(122); + private readonly pbc::RepeatedField maxStarTransformItem_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MaxStarTransformItem { + get { return maxStarTransformItem_; } + } + + /// Field number for the "passive_skill_group_id" field. + public const int PassiveSkillGroupIdFieldNumber = 16; + private int passiveSkillGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PassiveSkillGroupId { + get { return passiveSkillGroupId_; } + set { + passiveSkillGroupId_ = value; + } + } + + /// Field number for the "common_skill_id1" field. + public const int CommonSkillId1FieldNumber = 17; + private int commonSkillId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CommonSkillId1 { + get { return commonSkillId1_; } + set { + commonSkillId1_ = value; + } + } + + /// Field number for the "common_skill_id2" field. + public const int CommonSkillId2FieldNumber = 18; + private int commonSkillId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CommonSkillId2 { + get { return commonSkillId2_; } + set { + commonSkillId2_ = value; + } + } + + /// Field number for the "read_reward" field. + public const int ReadRewardFieldNumber = 19; + private static readonly pb::FieldCodec _repeated_readReward_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField readReward_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReadReward { + get { return readReward_; } + } + + /// Field number for the "vo_file" field. + public const int VoFileFieldNumber = 20; + private string voFile_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VoFile { + get { return voFile_; } + set { + voFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vo_begin1" field. + public const int VoBegin1FieldNumber = 21; + private float voBegin1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float VoBegin1 { + get { return voBegin1_; } + set { + voBegin1_ = value; + } + } + + /// Field number for the "vo_loop1" field. + public const int VoLoop1FieldNumber = 22; + private float voLoop1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float VoLoop1 { + get { return voLoop1_; } + set { + voLoop1_ = value; + } + } + + /// Field number for the "vo_name1" field. + public const int VoName1FieldNumber = 23; + private string voName1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VoName1 { + get { return voName1_; } + set { + voName1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vo_begin2" field. + public const int VoBegin2FieldNumber = 24; + private float voBegin2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float VoBegin2 { + get { return voBegin2_; } + set { + voBegin2_ = value; + } + } + + /// Field number for the "vo_loop2" field. + public const int VoLoop2FieldNumber = 25; + private float voLoop2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float VoLoop2 { + get { return voLoop2_; } + set { + voLoop2_ = value; + } + } + + /// Field number for the "vo_name2" field. + public const int VoName2FieldNumber = 26; + private string voName2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VoName2 { + get { return voName2_; } + set { + voName2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "vo_story" field. + public const int VoStoryFieldNumber = 27; + private string voStory_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VoStory { + get { return voStory_; } + set { + voStory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "story_name" field. + public const int StoryNameFieldNumber = 28; + private string storyName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StoryName { + get { return storyName_; } + set { + storyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "story_desc" field. + public const int StoryDescFieldNumber = 29; + private string storyDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StoryDesc { + get { return storyDesc_; } + set { + storyDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 30; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "skill_script" field. + public const int SkillScriptFieldNumber = 31; + private string skillScript_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SkillScript { + get { return skillScript_; } + set { + skillScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Disc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Disc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (EET != other.EET) return false; + if(!tags_.Equals(other.tags_)) return false; + if (Visible != other.Visible) return false; + if (Available != other.Available) return false; + if (Image != other.Image) return false; + if(!note_.Equals(other.note_)) return false; + if (DiscBg != other.DiscBg) return false; + if (Card != other.Card) return false; + if (GachaBg != other.GachaBg) return false; + if (StrengthenGroupId != other.StrengthenGroupId) return false; + if (AttrBaseGroupId != other.AttrBaseGroupId) return false; + if (PromoteGroupId != other.PromoteGroupId) return false; + if (TransformItemId != other.TransformItemId) return false; + if(!maxStarTransformItem_.Equals(other.maxStarTransformItem_)) return false; + if (PassiveSkillGroupId != other.PassiveSkillGroupId) return false; + if (CommonSkillId1 != other.CommonSkillId1) return false; + if (CommonSkillId2 != other.CommonSkillId2) return false; + if(!readReward_.Equals(other.readReward_)) return false; + if (VoFile != other.VoFile) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VoBegin1, other.VoBegin1)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VoLoop1, other.VoLoop1)) return false; + if (VoName1 != other.VoName1) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VoBegin2, other.VoBegin2)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VoLoop2, other.VoLoop2)) return false; + if (VoName2 != other.VoName2) return false; + if (VoStory != other.VoStory) return false; + if (StoryName != other.StoryName) return false; + if (StoryDesc != other.StoryDesc) return false; + if (CharId != other.CharId) return false; + if (SkillScript != other.SkillScript) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (EET != 0) hash ^= EET.GetHashCode(); + hash ^= tags_.GetHashCode(); + if (Visible != false) hash ^= Visible.GetHashCode(); + if (Available != false) hash ^= Available.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + hash ^= note_.GetHashCode(); + if (DiscBg.Length != 0) hash ^= DiscBg.GetHashCode(); + if (Card.Length != 0) hash ^= Card.GetHashCode(); + if (GachaBg.Length != 0) hash ^= GachaBg.GetHashCode(); + if (StrengthenGroupId != 0) hash ^= StrengthenGroupId.GetHashCode(); + if (AttrBaseGroupId != 0) hash ^= AttrBaseGroupId.GetHashCode(); + if (PromoteGroupId != 0) hash ^= PromoteGroupId.GetHashCode(); + if (TransformItemId != 0) hash ^= TransformItemId.GetHashCode(); + hash ^= maxStarTransformItem_.GetHashCode(); + if (PassiveSkillGroupId != 0) hash ^= PassiveSkillGroupId.GetHashCode(); + if (CommonSkillId1 != 0) hash ^= CommonSkillId1.GetHashCode(); + if (CommonSkillId2 != 0) hash ^= CommonSkillId2.GetHashCode(); + hash ^= readReward_.GetHashCode(); + if (VoFile.Length != 0) hash ^= VoFile.GetHashCode(); + if (VoBegin1 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VoBegin1); + if (VoLoop1 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VoLoop1); + if (VoName1.Length != 0) hash ^= VoName1.GetHashCode(); + if (VoBegin2 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VoBegin2); + if (VoLoop2 != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VoLoop2); + if (VoName2.Length != 0) hash ^= VoName2.GetHashCode(); + if (VoStory.Length != 0) hash ^= VoStory.GetHashCode(); + if (StoryName.Length != 0) hash ^= StoryName.GetHashCode(); + if (StoryDesc.Length != 0) hash ^= StoryDesc.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (SkillScript.Length != 0) hash ^= SkillScript.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EET != 0) { + output.WriteRawTag(16); + output.WriteInt32(EET); + } + tags_.WriteTo(output, _repeated_tags_codec); + if (Visible != false) { + output.WriteRawTag(32); + output.WriteBool(Visible); + } + if (Available != false) { + output.WriteRawTag(40); + output.WriteBool(Available); + } + if (Image.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Image); + } + note_.WriteTo(output, _repeated_note_codec); + if (DiscBg.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DiscBg); + } + if (Card.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Card); + } + if (GachaBg.Length != 0) { + output.WriteRawTag(82); + output.WriteString(GachaBg); + } + if (StrengthenGroupId != 0) { + output.WriteRawTag(88); + output.WriteInt32(StrengthenGroupId); + } + if (AttrBaseGroupId != 0) { + output.WriteRawTag(96); + output.WriteInt32(AttrBaseGroupId); + } + if (PromoteGroupId != 0) { + output.WriteRawTag(104); + output.WriteInt32(PromoteGroupId); + } + if (TransformItemId != 0) { + output.WriteRawTag(112); + output.WriteInt32(TransformItemId); + } + maxStarTransformItem_.WriteTo(output, _repeated_maxStarTransformItem_codec); + if (PassiveSkillGroupId != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(PassiveSkillGroupId); + } + if (CommonSkillId1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(CommonSkillId1); + } + if (CommonSkillId2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(CommonSkillId2); + } + readReward_.WriteTo(output, _repeated_readReward_codec); + if (VoFile.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(VoFile); + } + if (VoBegin1 != 0F) { + output.WriteRawTag(173, 1); + output.WriteFloat(VoBegin1); + } + if (VoLoop1 != 0F) { + output.WriteRawTag(181, 1); + output.WriteFloat(VoLoop1); + } + if (VoName1.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(VoName1); + } + if (VoBegin2 != 0F) { + output.WriteRawTag(197, 1); + output.WriteFloat(VoBegin2); + } + if (VoLoop2 != 0F) { + output.WriteRawTag(205, 1); + output.WriteFloat(VoLoop2); + } + if (VoName2.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(VoName2); + } + if (VoStory.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(VoStory); + } + if (StoryName.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(StoryName); + } + if (StoryDesc.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(StoryDesc); + } + if (CharId != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(CharId); + } + if (SkillScript.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(SkillScript); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EET != 0) { + output.WriteRawTag(16); + output.WriteInt32(EET); + } + tags_.WriteTo(ref output, _repeated_tags_codec); + if (Visible != false) { + output.WriteRawTag(32); + output.WriteBool(Visible); + } + if (Available != false) { + output.WriteRawTag(40); + output.WriteBool(Available); + } + if (Image.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Image); + } + note_.WriteTo(ref output, _repeated_note_codec); + if (DiscBg.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DiscBg); + } + if (Card.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Card); + } + if (GachaBg.Length != 0) { + output.WriteRawTag(82); + output.WriteString(GachaBg); + } + if (StrengthenGroupId != 0) { + output.WriteRawTag(88); + output.WriteInt32(StrengthenGroupId); + } + if (AttrBaseGroupId != 0) { + output.WriteRawTag(96); + output.WriteInt32(AttrBaseGroupId); + } + if (PromoteGroupId != 0) { + output.WriteRawTag(104); + output.WriteInt32(PromoteGroupId); + } + if (TransformItemId != 0) { + output.WriteRawTag(112); + output.WriteInt32(TransformItemId); + } + maxStarTransformItem_.WriteTo(ref output, _repeated_maxStarTransformItem_codec); + if (PassiveSkillGroupId != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(PassiveSkillGroupId); + } + if (CommonSkillId1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(CommonSkillId1); + } + if (CommonSkillId2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(CommonSkillId2); + } + readReward_.WriteTo(ref output, _repeated_readReward_codec); + if (VoFile.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(VoFile); + } + if (VoBegin1 != 0F) { + output.WriteRawTag(173, 1); + output.WriteFloat(VoBegin1); + } + if (VoLoop1 != 0F) { + output.WriteRawTag(181, 1); + output.WriteFloat(VoLoop1); + } + if (VoName1.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(VoName1); + } + if (VoBegin2 != 0F) { + output.WriteRawTag(197, 1); + output.WriteFloat(VoBegin2); + } + if (VoLoop2 != 0F) { + output.WriteRawTag(205, 1); + output.WriteFloat(VoLoop2); + } + if (VoName2.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(VoName2); + } + if (VoStory.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(VoStory); + } + if (StoryName.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(StoryName); + } + if (StoryDesc.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(StoryDesc); + } + if (CharId != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(CharId); + } + if (SkillScript.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(SkillScript); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (EET != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EET); + } + size += tags_.CalculateSize(_repeated_tags_codec); + if (Visible != false) { + size += 1 + 1; + } + if (Available != false) { + size += 1 + 1; + } + if (Image.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Image); + } + size += note_.CalculateSize(_repeated_note_codec); + if (DiscBg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscBg); + } + if (Card.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Card); + } + if (GachaBg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GachaBg); + } + if (StrengthenGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StrengthenGroupId); + } + if (AttrBaseGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrBaseGroupId); + } + if (PromoteGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PromoteGroupId); + } + if (TransformItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TransformItemId); + } + size += maxStarTransformItem_.CalculateSize(_repeated_maxStarTransformItem_codec); + if (PassiveSkillGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PassiveSkillGroupId); + } + if (CommonSkillId1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CommonSkillId1); + } + if (CommonSkillId2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CommonSkillId2); + } + size += readReward_.CalculateSize(_repeated_readReward_codec); + if (VoFile.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(VoFile); + } + if (VoBegin1 != 0F) { + size += 2 + 4; + } + if (VoLoop1 != 0F) { + size += 2 + 4; + } + if (VoName1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(VoName1); + } + if (VoBegin2 != 0F) { + size += 2 + 4; + } + if (VoLoop2 != 0F) { + size += 2 + 4; + } + if (VoName2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(VoName2); + } + if (VoStory.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(VoStory); + } + if (StoryName.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(StoryName); + } + if (StoryDesc.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(StoryDesc); + } + if (CharId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (SkillScript.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SkillScript); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Disc other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.EET != 0) { + EET = other.EET; + } + tags_.Add(other.tags_); + if (other.Visible != false) { + Visible = other.Visible; + } + if (other.Available != false) { + Available = other.Available; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + note_.Add(other.note_); + if (other.DiscBg.Length != 0) { + DiscBg = other.DiscBg; + } + if (other.Card.Length != 0) { + Card = other.Card; + } + if (other.GachaBg.Length != 0) { + GachaBg = other.GachaBg; + } + if (other.StrengthenGroupId != 0) { + StrengthenGroupId = other.StrengthenGroupId; + } + if (other.AttrBaseGroupId != 0) { + AttrBaseGroupId = other.AttrBaseGroupId; + } + if (other.PromoteGroupId != 0) { + PromoteGroupId = other.PromoteGroupId; + } + if (other.TransformItemId != 0) { + TransformItemId = other.TransformItemId; + } + maxStarTransformItem_.Add(other.maxStarTransformItem_); + if (other.PassiveSkillGroupId != 0) { + PassiveSkillGroupId = other.PassiveSkillGroupId; + } + if (other.CommonSkillId1 != 0) { + CommonSkillId1 = other.CommonSkillId1; + } + if (other.CommonSkillId2 != 0) { + CommonSkillId2 = other.CommonSkillId2; + } + readReward_.Add(other.readReward_); + if (other.VoFile.Length != 0) { + VoFile = other.VoFile; + } + if (other.VoBegin1 != 0F) { + VoBegin1 = other.VoBegin1; + } + if (other.VoLoop1 != 0F) { + VoLoop1 = other.VoLoop1; + } + if (other.VoName1.Length != 0) { + VoName1 = other.VoName1; + } + if (other.VoBegin2 != 0F) { + VoBegin2 = other.VoBegin2; + } + if (other.VoLoop2 != 0F) { + VoLoop2 = other.VoLoop2; + } + if (other.VoName2.Length != 0) { + VoName2 = other.VoName2; + } + if (other.VoStory.Length != 0) { + VoStory = other.VoStory; + } + if (other.StoryName.Length != 0) { + StoryName = other.StoryName; + } + if (other.StoryDesc.Length != 0) { + StoryDesc = other.StoryDesc; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.SkillScript.Length != 0) { + SkillScript = other.SkillScript; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + EET = input.ReadInt32(); + break; + } + case 26: + case 24: { + tags_.AddEntriesFrom(input, _repeated_tags_codec); + break; + } + case 32: { + Visible = input.ReadBool(); + break; + } + case 40: { + Available = input.ReadBool(); + break; + } + case 50: { + Image = input.ReadString(); + break; + } + case 58: + case 56: { + note_.AddEntriesFrom(input, _repeated_note_codec); + break; + } + case 66: { + DiscBg = input.ReadString(); + break; + } + case 74: { + Card = input.ReadString(); + break; + } + case 82: { + GachaBg = input.ReadString(); + break; + } + case 88: { + StrengthenGroupId = input.ReadInt32(); + break; + } + case 96: { + AttrBaseGroupId = input.ReadInt32(); + break; + } + case 104: { + PromoteGroupId = input.ReadInt32(); + break; + } + case 112: { + TransformItemId = input.ReadInt32(); + break; + } + case 122: + case 120: { + maxStarTransformItem_.AddEntriesFrom(input, _repeated_maxStarTransformItem_codec); + break; + } + case 128: { + PassiveSkillGroupId = input.ReadInt32(); + break; + } + case 136: { + CommonSkillId1 = input.ReadInt32(); + break; + } + case 144: { + CommonSkillId2 = input.ReadInt32(); + break; + } + case 154: + case 152: { + readReward_.AddEntriesFrom(input, _repeated_readReward_codec); + break; + } + case 162: { + VoFile = input.ReadString(); + break; + } + case 173: { + VoBegin1 = input.ReadFloat(); + break; + } + case 181: { + VoLoop1 = input.ReadFloat(); + break; + } + case 186: { + VoName1 = input.ReadString(); + break; + } + case 197: { + VoBegin2 = input.ReadFloat(); + break; + } + case 205: { + VoLoop2 = input.ReadFloat(); + break; + } + case 210: { + VoName2 = input.ReadString(); + break; + } + case 218: { + VoStory = input.ReadString(); + break; + } + case 226: { + StoryName = input.ReadString(); + break; + } + case 234: { + StoryDesc = input.ReadString(); + break; + } + case 240: { + CharId = input.ReadInt32(); + break; + } + case 250: { + SkillScript = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + EET = input.ReadInt32(); + break; + } + case 26: + case 24: { + tags_.AddEntriesFrom(ref input, _repeated_tags_codec); + break; + } + case 32: { + Visible = input.ReadBool(); + break; + } + case 40: { + Available = input.ReadBool(); + break; + } + case 50: { + Image = input.ReadString(); + break; + } + case 58: + case 56: { + note_.AddEntriesFrom(ref input, _repeated_note_codec); + break; + } + case 66: { + DiscBg = input.ReadString(); + break; + } + case 74: { + Card = input.ReadString(); + break; + } + case 82: { + GachaBg = input.ReadString(); + break; + } + case 88: { + StrengthenGroupId = input.ReadInt32(); + break; + } + case 96: { + AttrBaseGroupId = input.ReadInt32(); + break; + } + case 104: { + PromoteGroupId = input.ReadInt32(); + break; + } + case 112: { + TransformItemId = input.ReadInt32(); + break; + } + case 122: + case 120: { + maxStarTransformItem_.AddEntriesFrom(ref input, _repeated_maxStarTransformItem_codec); + break; + } + case 128: { + PassiveSkillGroupId = input.ReadInt32(); + break; + } + case 136: { + CommonSkillId1 = input.ReadInt32(); + break; + } + case 144: { + CommonSkillId2 = input.ReadInt32(); + break; + } + case 154: + case 152: { + readReward_.AddEntriesFrom(ref input, _repeated_readReward_codec); + break; + } + case 162: { + VoFile = input.ReadString(); + break; + } + case 173: { + VoBegin1 = input.ReadFloat(); + break; + } + case 181: { + VoLoop1 = input.ReadFloat(); + break; + } + case 186: { + VoName1 = input.ReadString(); + break; + } + case 197: { + VoBegin2 = input.ReadFloat(); + break; + } + case 205: { + VoLoop2 = input.ReadFloat(); + break; + } + case 210: { + VoName2 = input.ReadString(); + break; + } + case 218: { + VoStory = input.ReadString(); + break; + } + case 226: { + StoryName = input.ReadString(); + break; + } + case 234: { + StoryDesc = input.ReadString(); + break; + } + case 240: { + CharId = input.ReadInt32(); + break; + } + case 250: { + SkillScript = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscCommonSkill.cs b/NTR.Common/protos/DiscCommonSkill.cs new file mode 100644 index 0000000..f968eec --- /dev/null +++ b/NTR.Common/protos/DiscCommonSkill.cs @@ -0,0 +1,919 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscCommonSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscCommonSkill.proto + public static partial class DiscCommonSkillReflection { + + #region Descriptor + /// File descriptor for DiscCommonSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscCommonSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVEaXNjQ29tbW9uU2tpbGwucHJvdG8iyQMKD0Rpc2NDb21tb25Ta2lsbBIK", + "CgJpZBgBIAEoBRIYChBhY3RpdmVfbm90ZV90eXBlGAIgAygFEhcKD2FjdGl2", + "ZV9ub3RlX251bRgDIAMoBRISCgplZmZlY3RfaWQxGAQgAygFEhIKCmVmZmVj", + "dF9pZDIYBSADKAUSEgoKZWZmZWN0X2lkMxgGIAMoBRISCgplZmZlY3RfaWQ0", + "GAcgAygFEhIKCmVmZmVjdF9pZDUYCCADKAUSEgoKZWZmZWN0X2lkNhgJIAMo", + "BRISCgplZmZlY3RfaWQ3GAogAygFEhIKCmVmZmVjdF9pZDgYCyADKAUSEgoK", + "ZWZmZWN0X2lkORgMIAMoBRITCgtlZmZlY3RfaWQxMBgNIAMoBRITCgtsYXll", + "cl9zY29yZRgOIAMoBRIMCgRuYW1lGA8gASgJEgwKBGljb24YECABKAkSDwoH", + "aWNvbl9iZxgRIAEoCRIMCgRkZXNjGBIgASgJEg4KBnBhcmFtMRgTIAMoCRIO", + "CgZwYXJhbTIYFCADKAkSDgoGcGFyYW0zGBUgAygJEg4KBnBhcmFtNBgWIAMo", + "CRIOCgZwYXJhbTUYFyADKAkSDgoGcGFyYW02GBggAygJQg6qAgtOb3ZhLkNs", + "aWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscCommonSkill), global::Nova.Client.DiscCommonSkill.Parser, new[]{ "Id", "ActiveNoteType", "ActiveNoteNum", "EffectId1", "EffectId2", "EffectId3", "EffectId4", "EffectId5", "EffectId6", "EffectId7", "EffectId8", "EffectId9", "EffectId10", "LayerScore", "Name", "Icon", "IconBg", "Desc", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscCommonSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscCommonSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscCommonSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscCommonSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscCommonSkill(DiscCommonSkill other) : this() { + id_ = other.id_; + activeNoteType_ = other.activeNoteType_.Clone(); + activeNoteNum_ = other.activeNoteNum_.Clone(); + effectId1_ = other.effectId1_.Clone(); + effectId2_ = other.effectId2_.Clone(); + effectId3_ = other.effectId3_.Clone(); + effectId4_ = other.effectId4_.Clone(); + effectId5_ = other.effectId5_.Clone(); + effectId6_ = other.effectId6_.Clone(); + effectId7_ = other.effectId7_.Clone(); + effectId8_ = other.effectId8_.Clone(); + effectId9_ = other.effectId9_.Clone(); + effectId10_ = other.effectId10_.Clone(); + layerScore_ = other.layerScore_.Clone(); + name_ = other.name_; + icon_ = other.icon_; + iconBg_ = other.iconBg_; + desc_ = other.desc_; + param1_ = other.param1_.Clone(); + param2_ = other.param2_.Clone(); + param3_ = other.param3_.Clone(); + param4_ = other.param4_.Clone(); + param5_ = other.param5_.Clone(); + param6_ = other.param6_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscCommonSkill Clone() { + return new DiscCommonSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "active_note_type" field. + public const int ActiveNoteTypeFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_activeNoteType_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField activeNoteType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActiveNoteType { + get { return activeNoteType_; } + } + + /// Field number for the "active_note_num" field. + public const int ActiveNoteNumFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_activeNoteNum_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField activeNoteNum_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActiveNoteNum { + get { return activeNoteNum_; } + } + + /// Field number for the "effect_id1" field. + public const int EffectId1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_effectId1_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField effectId1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId1 { + get { return effectId1_; } + } + + /// Field number for the "effect_id2" field. + public const int EffectId2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_effectId2_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField effectId2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId2 { + get { return effectId2_; } + } + + /// Field number for the "effect_id3" field. + public const int EffectId3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_effectId3_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField effectId3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId3 { + get { return effectId3_; } + } + + /// Field number for the "effect_id4" field. + public const int EffectId4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_effectId4_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField effectId4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId4 { + get { return effectId4_; } + } + + /// Field number for the "effect_id5" field. + public const int EffectId5FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_effectId5_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField effectId5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId5 { + get { return effectId5_; } + } + + /// Field number for the "effect_id6" field. + public const int EffectId6FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_effectId6_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField effectId6_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId6 { + get { return effectId6_; } + } + + /// Field number for the "effect_id7" field. + public const int EffectId7FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_effectId7_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField effectId7_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId7 { + get { return effectId7_; } + } + + /// Field number for the "effect_id8" field. + public const int EffectId8FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_effectId8_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField effectId8_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId8 { + get { return effectId8_; } + } + + /// Field number for the "effect_id9" field. + public const int EffectId9FieldNumber = 12; + private static readonly pb::FieldCodec _repeated_effectId9_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField effectId9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId9 { + get { return effectId9_; } + } + + /// Field number for the "effect_id10" field. + public const int EffectId10FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_effectId10_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField effectId10_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId10 { + get { return effectId10_; } + } + + /// Field number for the "layer_score" field. + public const int LayerScoreFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_layerScore_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField layerScore_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LayerScore { + get { return layerScore_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 15; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 16; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon_bg" field. + public const int IconBgFieldNumber = 17; + private string iconBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBg { + get { return iconBg_; } + set { + iconBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 18; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 19; + private static readonly pb::FieldCodec _repeated_param1_codec + = pb::FieldCodec.ForString(154); + private readonly pbc::RepeatedField param1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param1 { + get { return param1_; } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 20; + private static readonly pb::FieldCodec _repeated_param2_codec + = pb::FieldCodec.ForString(162); + private readonly pbc::RepeatedField param2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param2 { + get { return param2_; } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_param3_codec + = pb::FieldCodec.ForString(170); + private readonly pbc::RepeatedField param3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param3 { + get { return param3_; } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_param4_codec + = pb::FieldCodec.ForString(178); + private readonly pbc::RepeatedField param4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param4 { + get { return param4_; } + } + + /// Field number for the "param5" field. + public const int Param5FieldNumber = 23; + private static readonly pb::FieldCodec _repeated_param5_codec + = pb::FieldCodec.ForString(186); + private readonly pbc::RepeatedField param5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param5 { + get { return param5_; } + } + + /// Field number for the "param6" field. + public const int Param6FieldNumber = 24; + private static readonly pb::FieldCodec _repeated_param6_codec + = pb::FieldCodec.ForString(194); + private readonly pbc::RepeatedField param6_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param6 { + get { return param6_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscCommonSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscCommonSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!activeNoteType_.Equals(other.activeNoteType_)) return false; + if(!activeNoteNum_.Equals(other.activeNoteNum_)) return false; + if(!effectId1_.Equals(other.effectId1_)) return false; + if(!effectId2_.Equals(other.effectId2_)) return false; + if(!effectId3_.Equals(other.effectId3_)) return false; + if(!effectId4_.Equals(other.effectId4_)) return false; + if(!effectId5_.Equals(other.effectId5_)) return false; + if(!effectId6_.Equals(other.effectId6_)) return false; + if(!effectId7_.Equals(other.effectId7_)) return false; + if(!effectId8_.Equals(other.effectId8_)) return false; + if(!effectId9_.Equals(other.effectId9_)) return false; + if(!effectId10_.Equals(other.effectId10_)) return false; + if(!layerScore_.Equals(other.layerScore_)) return false; + if (Name != other.Name) return false; + if (Icon != other.Icon) return false; + if (IconBg != other.IconBg) return false; + if (Desc != other.Desc) return false; + if(!param1_.Equals(other.param1_)) return false; + if(!param2_.Equals(other.param2_)) return false; + if(!param3_.Equals(other.param3_)) return false; + if(!param4_.Equals(other.param4_)) return false; + if(!param5_.Equals(other.param5_)) return false; + if(!param6_.Equals(other.param6_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= activeNoteType_.GetHashCode(); + hash ^= activeNoteNum_.GetHashCode(); + hash ^= effectId1_.GetHashCode(); + hash ^= effectId2_.GetHashCode(); + hash ^= effectId3_.GetHashCode(); + hash ^= effectId4_.GetHashCode(); + hash ^= effectId5_.GetHashCode(); + hash ^= effectId6_.GetHashCode(); + hash ^= effectId7_.GetHashCode(); + hash ^= effectId8_.GetHashCode(); + hash ^= effectId9_.GetHashCode(); + hash ^= effectId10_.GetHashCode(); + hash ^= layerScore_.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (IconBg.Length != 0) hash ^= IconBg.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + hash ^= param1_.GetHashCode(); + hash ^= param2_.GetHashCode(); + hash ^= param3_.GetHashCode(); + hash ^= param4_.GetHashCode(); + hash ^= param5_.GetHashCode(); + hash ^= param6_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + activeNoteType_.WriteTo(output, _repeated_activeNoteType_codec); + activeNoteNum_.WriteTo(output, _repeated_activeNoteNum_codec); + effectId1_.WriteTo(output, _repeated_effectId1_codec); + effectId2_.WriteTo(output, _repeated_effectId2_codec); + effectId3_.WriteTo(output, _repeated_effectId3_codec); + effectId4_.WriteTo(output, _repeated_effectId4_codec); + effectId5_.WriteTo(output, _repeated_effectId5_codec); + effectId6_.WriteTo(output, _repeated_effectId6_codec); + effectId7_.WriteTo(output, _repeated_effectId7_codec); + effectId8_.WriteTo(output, _repeated_effectId8_codec); + effectId9_.WriteTo(output, _repeated_effectId9_codec); + effectId10_.WriteTo(output, _repeated_effectId10_codec); + layerScore_.WriteTo(output, _repeated_layerScore_codec); + if (Name.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(IconBg); + } + if (Desc.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Desc); + } + param1_.WriteTo(output, _repeated_param1_codec); + param2_.WriteTo(output, _repeated_param2_codec); + param3_.WriteTo(output, _repeated_param3_codec); + param4_.WriteTo(output, _repeated_param4_codec); + param5_.WriteTo(output, _repeated_param5_codec); + param6_.WriteTo(output, _repeated_param6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + activeNoteType_.WriteTo(ref output, _repeated_activeNoteType_codec); + activeNoteNum_.WriteTo(ref output, _repeated_activeNoteNum_codec); + effectId1_.WriteTo(ref output, _repeated_effectId1_codec); + effectId2_.WriteTo(ref output, _repeated_effectId2_codec); + effectId3_.WriteTo(ref output, _repeated_effectId3_codec); + effectId4_.WriteTo(ref output, _repeated_effectId4_codec); + effectId5_.WriteTo(ref output, _repeated_effectId5_codec); + effectId6_.WriteTo(ref output, _repeated_effectId6_codec); + effectId7_.WriteTo(ref output, _repeated_effectId7_codec); + effectId8_.WriteTo(ref output, _repeated_effectId8_codec); + effectId9_.WriteTo(ref output, _repeated_effectId9_codec); + effectId10_.WriteTo(ref output, _repeated_effectId10_codec); + layerScore_.WriteTo(ref output, _repeated_layerScore_codec); + if (Name.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(IconBg); + } + if (Desc.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Desc); + } + param1_.WriteTo(ref output, _repeated_param1_codec); + param2_.WriteTo(ref output, _repeated_param2_codec); + param3_.WriteTo(ref output, _repeated_param3_codec); + param4_.WriteTo(ref output, _repeated_param4_codec); + param5_.WriteTo(ref output, _repeated_param5_codec); + param6_.WriteTo(ref output, _repeated_param6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += activeNoteType_.CalculateSize(_repeated_activeNoteType_codec); + size += activeNoteNum_.CalculateSize(_repeated_activeNoteNum_codec); + size += effectId1_.CalculateSize(_repeated_effectId1_codec); + size += effectId2_.CalculateSize(_repeated_effectId2_codec); + size += effectId3_.CalculateSize(_repeated_effectId3_codec); + size += effectId4_.CalculateSize(_repeated_effectId4_codec); + size += effectId5_.CalculateSize(_repeated_effectId5_codec); + size += effectId6_.CalculateSize(_repeated_effectId6_codec); + size += effectId7_.CalculateSize(_repeated_effectId7_codec); + size += effectId8_.CalculateSize(_repeated_effectId8_codec); + size += effectId9_.CalculateSize(_repeated_effectId9_codec); + size += effectId10_.CalculateSize(_repeated_effectId10_codec); + size += layerScore_.CalculateSize(_repeated_layerScore_codec); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (IconBg.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(IconBg); + } + if (Desc.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += param1_.CalculateSize(_repeated_param1_codec); + size += param2_.CalculateSize(_repeated_param2_codec); + size += param3_.CalculateSize(_repeated_param3_codec); + size += param4_.CalculateSize(_repeated_param4_codec); + size += param5_.CalculateSize(_repeated_param5_codec); + size += param6_.CalculateSize(_repeated_param6_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscCommonSkill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + activeNoteType_.Add(other.activeNoteType_); + activeNoteNum_.Add(other.activeNoteNum_); + effectId1_.Add(other.effectId1_); + effectId2_.Add(other.effectId2_); + effectId3_.Add(other.effectId3_); + effectId4_.Add(other.effectId4_); + effectId5_.Add(other.effectId5_); + effectId6_.Add(other.effectId6_); + effectId7_.Add(other.effectId7_); + effectId8_.Add(other.effectId8_); + effectId9_.Add(other.effectId9_); + effectId10_.Add(other.effectId10_); + layerScore_.Add(other.layerScore_); + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.IconBg.Length != 0) { + IconBg = other.IconBg; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + param1_.Add(other.param1_); + param2_.Add(other.param2_); + param3_.Add(other.param3_); + param4_.Add(other.param4_); + param5_.Add(other.param5_); + param6_.Add(other.param6_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + activeNoteType_.AddEntriesFrom(input, _repeated_activeNoteType_codec); + break; + } + case 26: + case 24: { + activeNoteNum_.AddEntriesFrom(input, _repeated_activeNoteNum_codec); + break; + } + case 34: + case 32: { + effectId1_.AddEntriesFrom(input, _repeated_effectId1_codec); + break; + } + case 42: + case 40: { + effectId2_.AddEntriesFrom(input, _repeated_effectId2_codec); + break; + } + case 50: + case 48: { + effectId3_.AddEntriesFrom(input, _repeated_effectId3_codec); + break; + } + case 58: + case 56: { + effectId4_.AddEntriesFrom(input, _repeated_effectId4_codec); + break; + } + case 66: + case 64: { + effectId5_.AddEntriesFrom(input, _repeated_effectId5_codec); + break; + } + case 74: + case 72: { + effectId6_.AddEntriesFrom(input, _repeated_effectId6_codec); + break; + } + case 82: + case 80: { + effectId7_.AddEntriesFrom(input, _repeated_effectId7_codec); + break; + } + case 90: + case 88: { + effectId8_.AddEntriesFrom(input, _repeated_effectId8_codec); + break; + } + case 98: + case 96: { + effectId9_.AddEntriesFrom(input, _repeated_effectId9_codec); + break; + } + case 106: + case 104: { + effectId10_.AddEntriesFrom(input, _repeated_effectId10_codec); + break; + } + case 114: + case 112: { + layerScore_.AddEntriesFrom(input, _repeated_layerScore_codec); + break; + } + case 122: { + Name = input.ReadString(); + break; + } + case 130: { + Icon = input.ReadString(); + break; + } + case 138: { + IconBg = input.ReadString(); + break; + } + case 146: { + Desc = input.ReadString(); + break; + } + case 154: { + param1_.AddEntriesFrom(input, _repeated_param1_codec); + break; + } + case 162: { + param2_.AddEntriesFrom(input, _repeated_param2_codec); + break; + } + case 170: { + param3_.AddEntriesFrom(input, _repeated_param3_codec); + break; + } + case 178: { + param4_.AddEntriesFrom(input, _repeated_param4_codec); + break; + } + case 186: { + param5_.AddEntriesFrom(input, _repeated_param5_codec); + break; + } + case 194: { + param6_.AddEntriesFrom(input, _repeated_param6_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + activeNoteType_.AddEntriesFrom(ref input, _repeated_activeNoteType_codec); + break; + } + case 26: + case 24: { + activeNoteNum_.AddEntriesFrom(ref input, _repeated_activeNoteNum_codec); + break; + } + case 34: + case 32: { + effectId1_.AddEntriesFrom(ref input, _repeated_effectId1_codec); + break; + } + case 42: + case 40: { + effectId2_.AddEntriesFrom(ref input, _repeated_effectId2_codec); + break; + } + case 50: + case 48: { + effectId3_.AddEntriesFrom(ref input, _repeated_effectId3_codec); + break; + } + case 58: + case 56: { + effectId4_.AddEntriesFrom(ref input, _repeated_effectId4_codec); + break; + } + case 66: + case 64: { + effectId5_.AddEntriesFrom(ref input, _repeated_effectId5_codec); + break; + } + case 74: + case 72: { + effectId6_.AddEntriesFrom(ref input, _repeated_effectId6_codec); + break; + } + case 82: + case 80: { + effectId7_.AddEntriesFrom(ref input, _repeated_effectId7_codec); + break; + } + case 90: + case 88: { + effectId8_.AddEntriesFrom(ref input, _repeated_effectId8_codec); + break; + } + case 98: + case 96: { + effectId9_.AddEntriesFrom(ref input, _repeated_effectId9_codec); + break; + } + case 106: + case 104: { + effectId10_.AddEntriesFrom(ref input, _repeated_effectId10_codec); + break; + } + case 114: + case 112: { + layerScore_.AddEntriesFrom(ref input, _repeated_layerScore_codec); + break; + } + case 122: { + Name = input.ReadString(); + break; + } + case 130: { + Icon = input.ReadString(); + break; + } + case 138: { + IconBg = input.ReadString(); + break; + } + case 146: { + Desc = input.ReadString(); + break; + } + case 154: { + param1_.AddEntriesFrom(ref input, _repeated_param1_codec); + break; + } + case 162: { + param2_.AddEntriesFrom(ref input, _repeated_param2_codec); + break; + } + case 170: { + param3_.AddEntriesFrom(ref input, _repeated_param3_codec); + break; + } + case 178: { + param4_.AddEntriesFrom(ref input, _repeated_param4_codec); + break; + } + case 186: { + param5_.AddEntriesFrom(ref input, _repeated_param5_codec); + break; + } + case 194: { + param6_.AddEntriesFrom(ref input, _repeated_param6_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscItemExp.cs b/NTR.Common/protos/DiscItemExp.cs new file mode 100644 index 0000000..f9c0679 --- /dev/null +++ b/NTR.Common/protos/DiscItemExp.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscItemExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscItemExp.proto + public static partial class DiscItemExpReflection { + + #region Descriptor + /// File descriptor for DiscItemExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscItemExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFEaXNjSXRlbUV4cC5wcm90byI3CgtEaXNjSXRlbUV4cBIKCgJpZBgBIAEo", + "BRIPCgdpdGVtX2lkGAIgASgFEgsKA2V4cBgDIAEoBUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscItemExp), global::Nova.Client.DiscItemExp.Parser, new[]{ "Id", "ItemId", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscItemExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscItemExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscItemExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscItemExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscItemExp(DiscItemExp other) : this() { + id_ = other.id_; + itemId_ = other.itemId_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscItemExp Clone() { + return new DiscItemExp(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 2; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 3; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscItemExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscItemExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ItemId != other.ItemId) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscItemExp other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscPassiveSkill.cs b/NTR.Common/protos/DiscPassiveSkill.cs new file mode 100644 index 0000000..a048736 --- /dev/null +++ b/NTR.Common/protos/DiscPassiveSkill.cs @@ -0,0 +1,1272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscPassiveSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscPassiveSkill.proto + public static partial class DiscPassiveSkillReflection { + + #region Descriptor + /// File descriptor for DiscPassiveSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscPassiveSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZEaXNjUGFzc2l2ZVNraWxsLnByb3RvIqUEChBEaXNjUGFzc2l2ZVNraWxs", + "EgoKAmlkGAEgASgFEhAKCGdyb3VwX2lkGAIgASgFEg0KBWxldmVsGAMgASgF", + "Eg0KBWJyZWFrGAQgASgFEhEKCW1haW5fbm90ZRgFIAEoBRIVCg1hY3RpdmVf", + "cGFyYW0xGAYgASgJEhIKCmVmZmVjdF9pZDEYByADKAUSFQoNYWN0aXZlX3Bh", + "cmFtMhgIIAEoCRISCgplZmZlY3RfaWQyGAkgAygFEhUKDWFjdGl2ZV9wYXJh", + "bTMYCiABKAkSEgoKZWZmZWN0X2lkMxgLIAMoBRIVCg1hY3RpdmVfcGFyYW00", + "GAwgASgJEhIKCmVmZmVjdF9pZDQYDSADKAUSFQoNYWN0aXZlX3BhcmFtNRgO", + "IAEoCRISCgplZmZlY3RfaWQ1GA8gAygFEhMKC2xheWVyX3Njb3JlGBAgAygF", + "EgwKBG5hbWUYESABKAkSDAoEaWNvbhgSIAEoCRIPCgdpY29uX2JnGBMgASgJ", + "Eg0KBWRlc2MxGBQgASgJEg0KBWRlc2MyGBUgASgJEg0KBWRlc2MzGBYgASgJ", + "Eg0KBWRlc2M0GBcgASgJEg0KBWRlc2M1GBggASgJEg4KBnBhcmFtMRgZIAEo", + "CRIOCgZwYXJhbTIYGiABKAkSDgoGcGFyYW0zGBsgASgJEg4KBnBhcmFtNBgc", + "IAEoCRIOCgZwYXJhbTUYHSABKAkSDgoGcGFyYW02GB4gASgJQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscPassiveSkill), global::Nova.Client.DiscPassiveSkill.Parser, new[]{ "Id", "GroupId", "Level", "Break", "MainNote", "ActiveParam1", "EffectId1", "ActiveParam2", "EffectId2", "ActiveParam3", "EffectId3", "ActiveParam4", "EffectId4", "ActiveParam5", "EffectId5", "LayerScore", "Name", "Icon", "IconBg", "Desc1", "Desc2", "Desc3", "Desc4", "Desc5", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscPassiveSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscPassiveSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscPassiveSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPassiveSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPassiveSkill(DiscPassiveSkill other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + level_ = other.level_; + break_ = other.break_; + mainNote_ = other.mainNote_; + activeParam1_ = other.activeParam1_; + effectId1_ = other.effectId1_.Clone(); + activeParam2_ = other.activeParam2_; + effectId2_ = other.effectId2_.Clone(); + activeParam3_ = other.activeParam3_; + effectId3_ = other.effectId3_.Clone(); + activeParam4_ = other.activeParam4_; + effectId4_ = other.effectId4_.Clone(); + activeParam5_ = other.activeParam5_; + effectId5_ = other.effectId5_.Clone(); + layerScore_ = other.layerScore_.Clone(); + name_ = other.name_; + icon_ = other.icon_; + iconBg_ = other.iconBg_; + desc1_ = other.desc1_; + desc2_ = other.desc2_; + desc3_ = other.desc3_; + desc4_ = other.desc4_; + desc5_ = other.desc5_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + param5_ = other.param5_; + param6_ = other.param6_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPassiveSkill Clone() { + return new DiscPassiveSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "break" field. + public const int BreakFieldNumber = 4; + private int break_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Break { + get { return break_; } + set { + break_ = value; + } + } + + /// Field number for the "main_note" field. + public const int MainNoteFieldNumber = 5; + private int mainNote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainNote { + get { return mainNote_; } + set { + mainNote_ = value; + } + } + + /// Field number for the "active_param1" field. + public const int ActiveParam1FieldNumber = 6; + private string activeParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam1 { + get { return activeParam1_; } + set { + activeParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_id1" field. + public const int EffectId1FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_effectId1_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField effectId1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId1 { + get { return effectId1_; } + } + + /// Field number for the "active_param2" field. + public const int ActiveParam2FieldNumber = 8; + private string activeParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam2 { + get { return activeParam2_; } + set { + activeParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_id2" field. + public const int EffectId2FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_effectId2_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField effectId2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId2 { + get { return effectId2_; } + } + + /// Field number for the "active_param3" field. + public const int ActiveParam3FieldNumber = 10; + private string activeParam3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam3 { + get { return activeParam3_; } + set { + activeParam3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_id3" field. + public const int EffectId3FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_effectId3_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField effectId3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId3 { + get { return effectId3_; } + } + + /// Field number for the "active_param4" field. + public const int ActiveParam4FieldNumber = 12; + private string activeParam4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam4 { + get { return activeParam4_; } + set { + activeParam4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_id4" field. + public const int EffectId4FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_effectId4_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField effectId4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId4 { + get { return effectId4_; } + } + + /// Field number for the "active_param5" field. + public const int ActiveParam5FieldNumber = 14; + private string activeParam5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam5 { + get { return activeParam5_; } + set { + activeParam5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_id5" field. + public const int EffectId5FieldNumber = 15; + private static readonly pb::FieldCodec _repeated_effectId5_codec + = pb::FieldCodec.ForInt32(122); + private readonly pbc::RepeatedField effectId5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId5 { + get { return effectId5_; } + } + + /// Field number for the "layer_score" field. + public const int LayerScoreFieldNumber = 16; + private static readonly pb::FieldCodec _repeated_layerScore_codec + = pb::FieldCodec.ForInt32(130); + private readonly pbc::RepeatedField layerScore_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LayerScore { + get { return layerScore_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 17; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 18; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon_bg" field. + public const int IconBgFieldNumber = 19; + private string iconBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBg { + get { return iconBg_; } + set { + iconBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc1" field. + public const int Desc1FieldNumber = 20; + private string desc1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc1 { + get { return desc1_; } + set { + desc1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc2" field. + public const int Desc2FieldNumber = 21; + private string desc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc2 { + get { return desc2_; } + set { + desc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc3" field. + public const int Desc3FieldNumber = 22; + private string desc3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc3 { + get { return desc3_; } + set { + desc3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc4" field. + public const int Desc4FieldNumber = 23; + private string desc4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc4 { + get { return desc4_; } + set { + desc4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc5" field. + public const int Desc5FieldNumber = 24; + private string desc5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc5 { + get { return desc5_; } + set { + desc5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 25; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 26; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 27; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 28; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param5" field. + public const int Param5FieldNumber = 29; + private string param5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param5 { + get { return param5_; } + set { + param5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param6" field. + public const int Param6FieldNumber = 30; + private string param6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param6 { + get { return param6_; } + set { + param6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscPassiveSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscPassiveSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Level != other.Level) return false; + if (Break != other.Break) return false; + if (MainNote != other.MainNote) return false; + if (ActiveParam1 != other.ActiveParam1) return false; + if(!effectId1_.Equals(other.effectId1_)) return false; + if (ActiveParam2 != other.ActiveParam2) return false; + if(!effectId2_.Equals(other.effectId2_)) return false; + if (ActiveParam3 != other.ActiveParam3) return false; + if(!effectId3_.Equals(other.effectId3_)) return false; + if (ActiveParam4 != other.ActiveParam4) return false; + if(!effectId4_.Equals(other.effectId4_)) return false; + if (ActiveParam5 != other.ActiveParam5) return false; + if(!effectId5_.Equals(other.effectId5_)) return false; + if(!layerScore_.Equals(other.layerScore_)) return false; + if (Name != other.Name) return false; + if (Icon != other.Icon) return false; + if (IconBg != other.IconBg) return false; + if (Desc1 != other.Desc1) return false; + if (Desc2 != other.Desc2) return false; + if (Desc3 != other.Desc3) return false; + if (Desc4 != other.Desc4) return false; + if (Desc5 != other.Desc5) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + if (Param5 != other.Param5) return false; + if (Param6 != other.Param6) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Break != 0) hash ^= Break.GetHashCode(); + if (MainNote != 0) hash ^= MainNote.GetHashCode(); + if (ActiveParam1.Length != 0) hash ^= ActiveParam1.GetHashCode(); + hash ^= effectId1_.GetHashCode(); + if (ActiveParam2.Length != 0) hash ^= ActiveParam2.GetHashCode(); + hash ^= effectId2_.GetHashCode(); + if (ActiveParam3.Length != 0) hash ^= ActiveParam3.GetHashCode(); + hash ^= effectId3_.GetHashCode(); + if (ActiveParam4.Length != 0) hash ^= ActiveParam4.GetHashCode(); + hash ^= effectId4_.GetHashCode(); + if (ActiveParam5.Length != 0) hash ^= ActiveParam5.GetHashCode(); + hash ^= effectId5_.GetHashCode(); + hash ^= layerScore_.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (IconBg.Length != 0) hash ^= IconBg.GetHashCode(); + if (Desc1.Length != 0) hash ^= Desc1.GetHashCode(); + if (Desc2.Length != 0) hash ^= Desc2.GetHashCode(); + if (Desc3.Length != 0) hash ^= Desc3.GetHashCode(); + if (Desc4.Length != 0) hash ^= Desc4.GetHashCode(); + if (Desc5.Length != 0) hash ^= Desc5.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (Param5.Length != 0) hash ^= Param5.GetHashCode(); + if (Param6.Length != 0) hash ^= Param6.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (Break != 0) { + output.WriteRawTag(32); + output.WriteInt32(Break); + } + if (MainNote != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainNote); + } + if (ActiveParam1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ActiveParam1); + } + effectId1_.WriteTo(output, _repeated_effectId1_codec); + if (ActiveParam2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ActiveParam2); + } + effectId2_.WriteTo(output, _repeated_effectId2_codec); + if (ActiveParam3.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ActiveParam3); + } + effectId3_.WriteTo(output, _repeated_effectId3_codec); + if (ActiveParam4.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ActiveParam4); + } + effectId4_.WriteTo(output, _repeated_effectId4_codec); + if (ActiveParam5.Length != 0) { + output.WriteRawTag(114); + output.WriteString(ActiveParam5); + } + effectId5_.WriteTo(output, _repeated_effectId5_codec); + layerScore_.WriteTo(output, _repeated_layerScore_codec); + if (Name.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(IconBg); + } + if (Desc1.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Desc1); + } + if (Desc2.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Desc2); + } + if (Desc3.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Desc3); + } + if (Desc4.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Desc4); + } + if (Desc5.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Desc5); + } + if (Param1.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(Param6); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (Break != 0) { + output.WriteRawTag(32); + output.WriteInt32(Break); + } + if (MainNote != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainNote); + } + if (ActiveParam1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ActiveParam1); + } + effectId1_.WriteTo(ref output, _repeated_effectId1_codec); + if (ActiveParam2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ActiveParam2); + } + effectId2_.WriteTo(ref output, _repeated_effectId2_codec); + if (ActiveParam3.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ActiveParam3); + } + effectId3_.WriteTo(ref output, _repeated_effectId3_codec); + if (ActiveParam4.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ActiveParam4); + } + effectId4_.WriteTo(ref output, _repeated_effectId4_codec); + if (ActiveParam5.Length != 0) { + output.WriteRawTag(114); + output.WriteString(ActiveParam5); + } + effectId5_.WriteTo(ref output, _repeated_effectId5_codec); + layerScore_.WriteTo(ref output, _repeated_layerScore_codec); + if (Name.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(IconBg); + } + if (Desc1.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Desc1); + } + if (Desc2.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Desc2); + } + if (Desc3.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Desc3); + } + if (Desc4.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Desc4); + } + if (Desc5.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Desc5); + } + if (Param1.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(Param6); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Break != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Break); + } + if (MainNote != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainNote); + } + if (ActiveParam1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActiveParam1); + } + size += effectId1_.CalculateSize(_repeated_effectId1_codec); + if (ActiveParam2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActiveParam2); + } + size += effectId2_.CalculateSize(_repeated_effectId2_codec); + if (ActiveParam3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActiveParam3); + } + size += effectId3_.CalculateSize(_repeated_effectId3_codec); + if (ActiveParam4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActiveParam4); + } + size += effectId4_.CalculateSize(_repeated_effectId4_codec); + if (ActiveParam5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActiveParam5); + } + size += effectId5_.CalculateSize(_repeated_effectId5_codec); + size += layerScore_.CalculateSize(_repeated_layerScore_codec); + if (Name.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (IconBg.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(IconBg); + } + if (Desc1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc1); + } + if (Desc2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc2); + } + if (Desc3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc3); + } + if (Desc4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc4); + } + if (Desc5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc5); + } + if (Param1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (Param5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param5); + } + if (Param6.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param6); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscPassiveSkill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Break != 0) { + Break = other.Break; + } + if (other.MainNote != 0) { + MainNote = other.MainNote; + } + if (other.ActiveParam1.Length != 0) { + ActiveParam1 = other.ActiveParam1; + } + effectId1_.Add(other.effectId1_); + if (other.ActiveParam2.Length != 0) { + ActiveParam2 = other.ActiveParam2; + } + effectId2_.Add(other.effectId2_); + if (other.ActiveParam3.Length != 0) { + ActiveParam3 = other.ActiveParam3; + } + effectId3_.Add(other.effectId3_); + if (other.ActiveParam4.Length != 0) { + ActiveParam4 = other.ActiveParam4; + } + effectId4_.Add(other.effectId4_); + if (other.ActiveParam5.Length != 0) { + ActiveParam5 = other.ActiveParam5; + } + effectId5_.Add(other.effectId5_); + layerScore_.Add(other.layerScore_); + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.IconBg.Length != 0) { + IconBg = other.IconBg; + } + if (other.Desc1.Length != 0) { + Desc1 = other.Desc1; + } + if (other.Desc2.Length != 0) { + Desc2 = other.Desc2; + } + if (other.Desc3.Length != 0) { + Desc3 = other.Desc3; + } + if (other.Desc4.Length != 0) { + Desc4 = other.Desc4; + } + if (other.Desc5.Length != 0) { + Desc5 = other.Desc5; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + if (other.Param5.Length != 0) { + Param5 = other.Param5; + } + if (other.Param6.Length != 0) { + Param6 = other.Param6; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + Break = input.ReadInt32(); + break; + } + case 40: { + MainNote = input.ReadInt32(); + break; + } + case 50: { + ActiveParam1 = input.ReadString(); + break; + } + case 58: + case 56: { + effectId1_.AddEntriesFrom(input, _repeated_effectId1_codec); + break; + } + case 66: { + ActiveParam2 = input.ReadString(); + break; + } + case 74: + case 72: { + effectId2_.AddEntriesFrom(input, _repeated_effectId2_codec); + break; + } + case 82: { + ActiveParam3 = input.ReadString(); + break; + } + case 90: + case 88: { + effectId3_.AddEntriesFrom(input, _repeated_effectId3_codec); + break; + } + case 98: { + ActiveParam4 = input.ReadString(); + break; + } + case 106: + case 104: { + effectId4_.AddEntriesFrom(input, _repeated_effectId4_codec); + break; + } + case 114: { + ActiveParam5 = input.ReadString(); + break; + } + case 122: + case 120: { + effectId5_.AddEntriesFrom(input, _repeated_effectId5_codec); + break; + } + case 130: + case 128: { + layerScore_.AddEntriesFrom(input, _repeated_layerScore_codec); + break; + } + case 138: { + Name = input.ReadString(); + break; + } + case 146: { + Icon = input.ReadString(); + break; + } + case 154: { + IconBg = input.ReadString(); + break; + } + case 162: { + Desc1 = input.ReadString(); + break; + } + case 170: { + Desc2 = input.ReadString(); + break; + } + case 178: { + Desc3 = input.ReadString(); + break; + } + case 186: { + Desc4 = input.ReadString(); + break; + } + case 194: { + Desc5 = input.ReadString(); + break; + } + case 202: { + Param1 = input.ReadString(); + break; + } + case 210: { + Param2 = input.ReadString(); + break; + } + case 218: { + Param3 = input.ReadString(); + break; + } + case 226: { + Param4 = input.ReadString(); + break; + } + case 234: { + Param5 = input.ReadString(); + break; + } + case 242: { + Param6 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + Break = input.ReadInt32(); + break; + } + case 40: { + MainNote = input.ReadInt32(); + break; + } + case 50: { + ActiveParam1 = input.ReadString(); + break; + } + case 58: + case 56: { + effectId1_.AddEntriesFrom(ref input, _repeated_effectId1_codec); + break; + } + case 66: { + ActiveParam2 = input.ReadString(); + break; + } + case 74: + case 72: { + effectId2_.AddEntriesFrom(ref input, _repeated_effectId2_codec); + break; + } + case 82: { + ActiveParam3 = input.ReadString(); + break; + } + case 90: + case 88: { + effectId3_.AddEntriesFrom(ref input, _repeated_effectId3_codec); + break; + } + case 98: { + ActiveParam4 = input.ReadString(); + break; + } + case 106: + case 104: { + effectId4_.AddEntriesFrom(ref input, _repeated_effectId4_codec); + break; + } + case 114: { + ActiveParam5 = input.ReadString(); + break; + } + case 122: + case 120: { + effectId5_.AddEntriesFrom(ref input, _repeated_effectId5_codec); + break; + } + case 130: + case 128: { + layerScore_.AddEntriesFrom(ref input, _repeated_layerScore_codec); + break; + } + case 138: { + Name = input.ReadString(); + break; + } + case 146: { + Icon = input.ReadString(); + break; + } + case 154: { + IconBg = input.ReadString(); + break; + } + case 162: { + Desc1 = input.ReadString(); + break; + } + case 170: { + Desc2 = input.ReadString(); + break; + } + case 178: { + Desc3 = input.ReadString(); + break; + } + case 186: { + Desc4 = input.ReadString(); + break; + } + case 194: { + Desc5 = input.ReadString(); + break; + } + case 202: { + Param1 = input.ReadString(); + break; + } + case 210: { + Param2 = input.ReadString(); + break; + } + case 218: { + Param3 = input.ReadString(); + break; + } + case 226: { + Param4 = input.ReadString(); + break; + } + case 234: { + Param5 = input.ReadString(); + break; + } + case 242: { + Param6 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscPromote.cs b/NTR.Common/protos/DiscPromote.cs new file mode 100644 index 0000000..0ca17aa --- /dev/null +++ b/NTR.Common/protos/DiscPromote.cs @@ -0,0 +1,577 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscPromote.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscPromote.proto + public static partial class DiscPromoteReflection { + + #region Descriptor + /// File descriptor for DiscPromote.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscPromoteReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFEaXNjUHJvbW90ZS5wcm90byKvAQoLRGlzY1Byb21vdGUSCgoCaWQYASAB", + "KAUSEAoIaXRlbV9pZDEYAiABKAUSDAoEbnVtMRgDIAEoBRIQCghpdGVtX2lk", + "MhgEIAEoBRIMCgRudW0yGAUgASgFEhAKCGl0ZW1faWQzGAYgASgFEgwKBG51", + "bTMYByABKAUSEAoIaXRlbV9pZDQYCCABKAUSDAoEbnVtNBgJIAEoBRIUCgxl", + "eHBlbnNlX2dvbGQYCiABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscPromote), global::Nova.Client.DiscPromote.Parser, new[]{ "Id", "ItemId1", "Num1", "ItemId2", "Num2", "ItemId3", "Num3", "ItemId4", "Num4", "ExpenseGold" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscPromote : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscPromote()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscPromoteReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPromote() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPromote(DiscPromote other) : this() { + id_ = other.id_; + itemId1_ = other.itemId1_; + num1_ = other.num1_; + itemId2_ = other.itemId2_; + num2_ = other.num2_; + itemId3_ = other.itemId3_; + num3_ = other.num3_; + itemId4_ = other.itemId4_; + num4_ = other.num4_; + expenseGold_ = other.expenseGold_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPromote Clone() { + return new DiscPromote(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "item_id1" field. + public const int ItemId1FieldNumber = 2; + private int itemId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId1 { + get { return itemId1_; } + set { + itemId1_ = value; + } + } + + /// Field number for the "num1" field. + public const int Num1FieldNumber = 3; + private int num1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num1 { + get { return num1_; } + set { + num1_ = value; + } + } + + /// Field number for the "item_id2" field. + public const int ItemId2FieldNumber = 4; + private int itemId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId2 { + get { return itemId2_; } + set { + itemId2_ = value; + } + } + + /// Field number for the "num2" field. + public const int Num2FieldNumber = 5; + private int num2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num2 { + get { return num2_; } + set { + num2_ = value; + } + } + + /// Field number for the "item_id3" field. + public const int ItemId3FieldNumber = 6; + private int itemId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId3 { + get { return itemId3_; } + set { + itemId3_ = value; + } + } + + /// Field number for the "num3" field. + public const int Num3FieldNumber = 7; + private int num3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num3 { + get { return num3_; } + set { + num3_ = value; + } + } + + /// Field number for the "item_id4" field. + public const int ItemId4FieldNumber = 8; + private int itemId4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId4 { + get { return itemId4_; } + set { + itemId4_ = value; + } + } + + /// Field number for the "num4" field. + public const int Num4FieldNumber = 9; + private int num4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num4 { + get { return num4_; } + set { + num4_ = value; + } + } + + /// Field number for the "expense_gold" field. + public const int ExpenseGoldFieldNumber = 10; + private int expenseGold_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExpenseGold { + get { return expenseGold_; } + set { + expenseGold_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscPromote); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscPromote other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ItemId1 != other.ItemId1) return false; + if (Num1 != other.Num1) return false; + if (ItemId2 != other.ItemId2) return false; + if (Num2 != other.Num2) return false; + if (ItemId3 != other.ItemId3) return false; + if (Num3 != other.Num3) return false; + if (ItemId4 != other.ItemId4) return false; + if (Num4 != other.Num4) return false; + if (ExpenseGold != other.ExpenseGold) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ItemId1 != 0) hash ^= ItemId1.GetHashCode(); + if (Num1 != 0) hash ^= Num1.GetHashCode(); + if (ItemId2 != 0) hash ^= ItemId2.GetHashCode(); + if (Num2 != 0) hash ^= Num2.GetHashCode(); + if (ItemId3 != 0) hash ^= ItemId3.GetHashCode(); + if (Num3 != 0) hash ^= Num3.GetHashCode(); + if (ItemId4 != 0) hash ^= ItemId4.GetHashCode(); + if (Num4 != 0) hash ^= Num4.GetHashCode(); + if (ExpenseGold != 0) hash ^= ExpenseGold.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId1); + } + if (Num1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(Num1); + } + if (ItemId2 != 0) { + output.WriteRawTag(32); + output.WriteInt32(ItemId2); + } + if (Num2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Num2); + } + if (ItemId3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(ItemId3); + } + if (Num3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Num3); + } + if (ItemId4 != 0) { + output.WriteRawTag(64); + output.WriteInt32(ItemId4); + } + if (Num4 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Num4); + } + if (ExpenseGold != 0) { + output.WriteRawTag(80); + output.WriteInt32(ExpenseGold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId1); + } + if (Num1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(Num1); + } + if (ItemId2 != 0) { + output.WriteRawTag(32); + output.WriteInt32(ItemId2); + } + if (Num2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Num2); + } + if (ItemId3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(ItemId3); + } + if (Num3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Num3); + } + if (ItemId4 != 0) { + output.WriteRawTag(64); + output.WriteInt32(ItemId4); + } + if (Num4 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Num4); + } + if (ExpenseGold != 0) { + output.WriteRawTag(80); + output.WriteInt32(ExpenseGold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ItemId1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId1); + } + if (Num1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num1); + } + if (ItemId2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId2); + } + if (Num2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num2); + } + if (ItemId3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId3); + } + if (Num3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num3); + } + if (ItemId4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId4); + } + if (Num4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num4); + } + if (ExpenseGold != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExpenseGold); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscPromote other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ItemId1 != 0) { + ItemId1 = other.ItemId1; + } + if (other.Num1 != 0) { + Num1 = other.Num1; + } + if (other.ItemId2 != 0) { + ItemId2 = other.ItemId2; + } + if (other.Num2 != 0) { + Num2 = other.Num2; + } + if (other.ItemId3 != 0) { + ItemId3 = other.ItemId3; + } + if (other.Num3 != 0) { + Num3 = other.Num3; + } + if (other.ItemId4 != 0) { + ItemId4 = other.ItemId4; + } + if (other.Num4 != 0) { + Num4 = other.Num4; + } + if (other.ExpenseGold != 0) { + ExpenseGold = other.ExpenseGold; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId1 = input.ReadInt32(); + break; + } + case 24: { + Num1 = input.ReadInt32(); + break; + } + case 32: { + ItemId2 = input.ReadInt32(); + break; + } + case 40: { + Num2 = input.ReadInt32(); + break; + } + case 48: { + ItemId3 = input.ReadInt32(); + break; + } + case 56: { + Num3 = input.ReadInt32(); + break; + } + case 64: { + ItemId4 = input.ReadInt32(); + break; + } + case 72: { + Num4 = input.ReadInt32(); + break; + } + case 80: { + ExpenseGold = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId1 = input.ReadInt32(); + break; + } + case 24: { + Num1 = input.ReadInt32(); + break; + } + case 32: { + ItemId2 = input.ReadInt32(); + break; + } + case 40: { + Num2 = input.ReadInt32(); + break; + } + case 48: { + ItemId3 = input.ReadInt32(); + break; + } + case 56: { + Num3 = input.ReadInt32(); + break; + } + case 64: { + ItemId4 = input.ReadInt32(); + break; + } + case 72: { + Num4 = input.ReadInt32(); + break; + } + case 80: { + ExpenseGold = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscPromoteLimit.cs b/NTR.Common/protos/DiscPromoteLimit.cs new file mode 100644 index 0000000..075545c --- /dev/null +++ b/NTR.Common/protos/DiscPromoteLimit.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscPromoteLimit.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscPromoteLimit.proto + public static partial class DiscPromoteLimitReflection { + + #region Descriptor + /// File descriptor for DiscPromoteLimit.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscPromoteLimitReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZEaXNjUHJvbW90ZUxpbWl0LnByb3RvIlAKEERpc2NQcm9tb3RlTGltaXQS", + "CgoCaWQYASABKAUSDgoGcmFyaXR5GAIgASgFEg0KBXBoYXNlGAMgASgJEhEK", + "CW1heF9sZXZlbBgEIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscPromoteLimit), global::Nova.Client.DiscPromoteLimit.Parser, new[]{ "Id", "Rarity", "Phase", "MaxLevel" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscPromoteLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscPromoteLimit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscPromoteLimitReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPromoteLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPromoteLimit(DiscPromoteLimit other) : this() { + id_ = other.id_; + rarity_ = other.rarity_; + phase_ = other.phase_; + maxLevel_ = other.maxLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscPromoteLimit Clone() { + return new DiscPromoteLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 2; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + /// Field number for the "phase" field. + public const int PhaseFieldNumber = 3; + private string phase_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Phase { + get { return phase_; } + set { + phase_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "max_level" field. + public const int MaxLevelFieldNumber = 4; + private string maxLevel_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MaxLevel { + get { return maxLevel_; } + set { + maxLevel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscPromoteLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscPromoteLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Rarity != other.Rarity) return false; + if (Phase != other.Phase) return false; + if (MaxLevel != other.MaxLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + if (Phase.Length != 0) hash ^= Phase.GetHashCode(); + if (MaxLevel.Length != 0) hash ^= MaxLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Rarity != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rarity); + } + if (Phase.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Phase); + } + if (MaxLevel.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MaxLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Rarity != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rarity); + } + if (Phase.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Phase); + } + if (MaxLevel.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MaxLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + if (Phase.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Phase); + } + if (MaxLevel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MaxLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscPromoteLimit other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + if (other.Phase.Length != 0) { + Phase = other.Phase; + } + if (other.MaxLevel.Length != 0) { + MaxLevel = other.MaxLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Rarity = input.ReadInt32(); + break; + } + case 26: { + Phase = input.ReadString(); + break; + } + case 34: { + MaxLevel = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Rarity = input.ReadInt32(); + break; + } + case 26: { + Phase = input.ReadString(); + break; + } + case 34: { + MaxLevel = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscStrengthen.cs b/NTR.Common/protos/DiscStrengthen.cs new file mode 100644 index 0000000..8f6ec84 --- /dev/null +++ b/NTR.Common/protos/DiscStrengthen.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscStrengthen.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscStrengthen.proto + public static partial class DiscStrengthenReflection { + + #region Descriptor + /// File descriptor for DiscStrengthen.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscStrengthenReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChREaXNjU3RyZW5ndGhlbi5wcm90byIpCg5EaXNjU3RyZW5ndGhlbhIKCgJp", + "ZBgBIAEoBRILCgNleHAYAiABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscStrengthen), global::Nova.Client.DiscStrengthen.Parser, new[]{ "Id", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscStrengthen : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscStrengthen()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscStrengthenReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscStrengthen() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscStrengthen(DiscStrengthen other) : this() { + id_ = other.id_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscStrengthen Clone() { + return new DiscStrengthen(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 2; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscStrengthen); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscStrengthen other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscStrengthen other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DiscTag.cs b/NTR.Common/protos/DiscTag.cs new file mode 100644 index 0000000..4cff55c --- /dev/null +++ b/NTR.Common/protos/DiscTag.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscTag.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DiscTag.proto + public static partial class DiscTagReflection { + + #region Descriptor + /// File descriptor for DiscTag.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscTagReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1EaXNjVGFnLnByb3RvIiQKB0Rpc2NUYWcSCgoCaWQYASABKAUSDQoFdGl0", + "bGUYAiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DiscTag), global::Nova.Client.DiscTag.Parser, new[]{ "Id", "Title" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DiscTagReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscTag(DiscTag other) : this() { + id_ = other.id_; + title_ = other.title_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscTag Clone() { + return new DiscTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscTag other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Drop.cs b/NTR.Common/protos/Drop.cs new file mode 100644 index 0000000..9dfebf3 --- /dev/null +++ b/NTR.Common/protos/Drop.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Drop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Drop.proto + public static partial class DropReflection { + + #region Descriptor + /// File descriptor for Drop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DropReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpEcm9wLnByb3RvIicKBERyb3ASDwoHZHJvcF9pZBgBIAEoBRIOCgZwa2df", + "aWQYAiABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Drop), global::Nova.Client.Drop.Parser, new[]{ "DropId", "PkgId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Drop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Drop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DropReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Drop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Drop(Drop other) : this() { + dropId_ = other.dropId_; + pkgId_ = other.pkgId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Drop Clone() { + return new Drop(this); + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 1; + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { return dropId_; } + set { + dropId_ = value; + } + } + + /// Field number for the "pkg_id" field. + public const int PkgIdFieldNumber = 2; + private int pkgId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PkgId { + get { return pkgId_; } + set { + pkgId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Drop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Drop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DropId != other.DropId) return false; + if (PkgId != other.PkgId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DropId != 0) hash ^= DropId.GetHashCode(); + if (PkgId != 0) hash ^= PkgId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DropId != 0) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (PkgId != 0) { + output.WriteRawTag(16); + output.WriteInt32(PkgId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DropId != 0) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (PkgId != 0) { + output.WriteRawTag(16); + output.WriteInt32(PkgId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DropId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (PkgId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PkgId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Drop other) { + if (other == null) { + return; + } + if (other.DropId != 0) { + DropId = other.DropId; + } + if (other.PkgId != 0) { + PkgId = other.PkgId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + PkgId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + PkgId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DropItemShow.cs b/NTR.Common/protos/DropItemShow.cs new file mode 100644 index 0000000..3d74f8e --- /dev/null +++ b/NTR.Common/protos/DropItemShow.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DropItemShow.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DropItemShow.proto + public static partial class DropItemShowReflection { + + #region Descriptor + /// File descriptor for DropItemShow.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DropItemShowReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJEcm9wSXRlbVNob3cucHJvdG8iQgoMRHJvcEl0ZW1TaG93Eg8KB2Ryb3Bf", + "aWQYASABKAUSDwoHaXRlbV9pZBgCIAEoBRIQCghpdGVtX3F0eRgDIAEoBUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DropItemShow), global::Nova.Client.DropItemShow.Parser, new[]{ "DropId", "ItemId", "ItemQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DropItemShow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DropItemShow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DropItemShowReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropItemShow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropItemShow(DropItemShow other) : this() { + dropId_ = other.dropId_; + itemId_ = other.itemId_; + itemQty_ = other.itemQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropItemShow Clone() { + return new DropItemShow(this); + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 1; + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { return dropId_; } + set { + dropId_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 2; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_qty" field. + public const int ItemQtyFieldNumber = 3; + private int itemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty { + get { return itemQty_; } + set { + itemQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DropItemShow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DropItemShow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DropId != other.DropId) return false; + if (ItemId != other.ItemId) return false; + if (ItemQty != other.ItemQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DropId != 0) hash ^= DropId.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemQty != 0) hash ^= ItemQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DropId != 0) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(24); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DropId != 0) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(24); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DropId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DropItemShow other) { + if (other == null) { + return; + } + if (other.DropId != 0) { + DropId = other.DropId; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemQty != 0) { + ItemQty = other.ItemQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + ItemQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + ItemQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DropObject.cs b/NTR.Common/protos/DropObject.cs new file mode 100644 index 0000000..b72477c --- /dev/null +++ b/NTR.Common/protos/DropObject.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DropObject.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DropObject.proto + public static partial class DropObjectReflection { + + #region Descriptor + /// File descriptor for DropObject.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DropObjectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBEcm9wT2JqZWN0LnByb3RvIjEKCkRyb3BPYmplY3QSCgoCaWQYASABKAUS", + "FwoPZHJvcF9vYmplY3RfcmVzGAIgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DropObject), global::Nova.Client.DropObject.Parser, new[]{ "Id", "DropObjectRes" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DropObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DropObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DropObjectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropObject(DropObject other) : this() { + id_ = other.id_; + dropObjectRes_ = other.dropObjectRes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropObject Clone() { + return new DropObject(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "drop_object_res" field. + public const int DropObjectResFieldNumber = 2; + private string dropObjectRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DropObjectRes { + get { return dropObjectRes_; } + set { + dropObjectRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DropObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DropObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (DropObjectRes != other.DropObjectRes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (DropObjectRes.Length != 0) hash ^= DropObjectRes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DropObjectRes.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DropObjectRes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DropObjectRes.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DropObjectRes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (DropObjectRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DropObjectRes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DropObject other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.DropObjectRes.Length != 0) { + DropObjectRes = other.DropObjectRes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + DropObjectRes = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + DropObjectRes = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DropObjectGroup.cs b/NTR.Common/protos/DropObjectGroup.cs new file mode 100644 index 0000000..d627e4c --- /dev/null +++ b/NTR.Common/protos/DropObjectGroup.cs @@ -0,0 +1,317 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DropObjectGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DropObjectGroup.proto + public static partial class DropObjectGroupReflection { + + #region Descriptor + /// File descriptor for DropObjectGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DropObjectGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVEcm9wT2JqZWN0R3JvdXAucHJvdG8iVwoPRHJvcE9iamVjdEdyb3VwEhwK", + "FGRyb3Bfb2JqZWN0X2dyb3VwX2lkGAEgASgFEhYKDmRyb3Bfb2JqZWN0X2lk", + "GAIgASgFEg4KBndlaWdodBgDIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DropObjectGroup), global::Nova.Client.DropObjectGroup.Parser, new[]{ "DropObjectGroupId", "DropObjectId", "Weight" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DropObjectGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DropObjectGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DropObjectGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropObjectGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropObjectGroup(DropObjectGroup other) : this() { + dropObjectGroupId_ = other.dropObjectGroupId_; + dropObjectId_ = other.dropObjectId_; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropObjectGroup Clone() { + return new DropObjectGroup(this); + } + + /// Field number for the "drop_object_group_id" field. + public const int DropObjectGroupIdFieldNumber = 1; + private int dropObjectGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropObjectGroupId { + get { return dropObjectGroupId_; } + set { + dropObjectGroupId_ = value; + } + } + + /// Field number for the "drop_object_id" field. + public const int DropObjectIdFieldNumber = 2; + private int dropObjectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropObjectId { + get { return dropObjectId_; } + set { + dropObjectId_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 3; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DropObjectGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DropObjectGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DropObjectGroupId != other.DropObjectGroupId) return false; + if (DropObjectId != other.DropObjectId) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DropObjectGroupId != 0) hash ^= DropObjectGroupId.GetHashCode(); + if (DropObjectId != 0) hash ^= DropObjectId.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DropObjectGroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(DropObjectGroupId); + } + if (DropObjectId != 0) { + output.WriteRawTag(16); + output.WriteInt32(DropObjectId); + } + if (Weight != 0) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DropObjectGroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(DropObjectGroupId); + } + if (DropObjectId != 0) { + output.WriteRawTag(16); + output.WriteInt32(DropObjectId); + } + if (Weight != 0) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DropObjectGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropObjectGroupId); + } + if (DropObjectId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropObjectId); + } + if (Weight != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DropObjectGroup other) { + if (other == null) { + return; + } + if (other.DropObjectGroupId != 0) { + DropObjectGroupId = other.DropObjectGroupId; + } + if (other.DropObjectId != 0) { + DropObjectId = other.DropObjectId; + } + if (other.Weight != 0) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DropObjectGroupId = input.ReadInt32(); + break; + } + case 16: { + DropObjectId = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DropObjectGroupId = input.ReadInt32(); + break; + } + case 16: { + DropObjectId = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/DropPkg.cs b/NTR.Common/protos/DropPkg.cs new file mode 100644 index 0000000..ab8a947 --- /dev/null +++ b/NTR.Common/protos/DropPkg.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DropPkg.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from DropPkg.proto + public static partial class DropPkgReflection { + + #region Descriptor + /// File descriptor for DropPkg.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DropPkgReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1Ecm9wUGtnLnByb3RvIioKB0Ryb3BQa2cSDgoGcGtnX2lkGAEgASgFEg8K", + "B2l0ZW1faWQYAiABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.DropPkg), global::Nova.Client.DropPkg.Parser, new[]{ "PkgId", "ItemId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DropPkg : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DropPkg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.DropPkgReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropPkg() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropPkg(DropPkg other) : this() { + pkgId_ = other.pkgId_; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropPkg Clone() { + return new DropPkg(this); + } + + /// Field number for the "pkg_id" field. + public const int PkgIdFieldNumber = 1; + private int pkgId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PkgId { + get { return pkgId_; } + set { + pkgId_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 2; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DropPkg); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DropPkg other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PkgId != other.PkgId) return false; + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PkgId != 0) hash ^= PkgId.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PkgId != 0) { + output.WriteRawTag(8); + output.WriteInt32(PkgId); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PkgId != 0) { + output.WriteRawTag(8); + output.WriteInt32(PkgId); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PkgId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PkgId); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DropPkg other) { + if (other == null) { + return; + } + if (other.PkgId != 0) { + PkgId = other.PkgId; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PkgId = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PkgId = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Effect.cs b/NTR.Common/protos/Effect.cs new file mode 100644 index 0000000..a6e7b1c --- /dev/null +++ b/NTR.Common/protos/Effect.cs @@ -0,0 +1,1856 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Effect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Effect.proto + public static partial class EffectReflection { + + #region Descriptor + /// File descriptor for Effect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EffectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxFZmZlY3QucHJvdG8i3ggKBkVmZmVjdBIKCgJpZBgBIAEoBRIMCgRuYW1l", + "GAIgASgJEhcKD2xldmVsX3R5cGVfZGF0YRgDIAEoBRISCgpsZXZlbF9kYXRh", + "GAQgASgFEhcKD21haW5fb3Jfc3VwcG9ydBgFIAEoBRIPCgd0cmlnZ2VyGAYg", + "ASgFEhYKDnRyaWdnZXJfdGFyZ2V0GAcgASgFEhoKEnRyaWdnZXJfY29uZGl0", + "aW9uMRgIIAEoBRIWCg50cmlnZ2VyX3BhcmFtMRgJIAEoCRIWCg50cmlnZ2Vy", + "X3BhcmFtMhgKIAEoCRIWCg50cmlnZ2VyX3BhcmFtMxgLIAEoCRIWCg50cmln", + "Z2VyX3BhcmFtNBgMIAEoCRIXCg90cmlnZ2VyX3RhcmdldDIYDSABKAUSGgoS", + "dHJpZ2dlcl9jb25kaXRpb24yGA4gASgFEhcKD3RyaWdnZXIyX3BhcmFtMRgP", + "IAEoCRIXCg90cmlnZ2VyMl9wYXJhbTIYECABKAkSFwoPdHJpZ2dlcjJfcGFy", + "YW0zGBEgASgJEhcKD3RyaWdnZXIyX3BhcmFtNBgSIAEoCRIaChJ0cmlnZ2Vy", + "X2xvZ2ljX3R5cGUYEyABKAUSGwoTdGFrZV9lZmZlY3RfdGFyZ2V0MRgUIAEo", + "BRIeChZ0YWtlX2VmZmVjdF9jb25kaXRpb24xGBUgASgFEhoKEnRha2VfZWZm", + "ZWN0X3BhcmFtMRgWIAEoCRIaChJ0YWtlX2VmZmVjdF9wYXJhbTIYFyABKAkS", + "GgoSdGFrZV9lZmZlY3RfcGFyYW0zGBggASgJEhoKEnRha2VfZWZmZWN0X3Bh", + "cmFtNBgZIAEoCRIbChN0YWtlX2VmZmVjdF90YXJnZXQyGBogASgFEh4KFnRh", + "a2VfZWZmZWN0X2NvbmRpdGlvbjIYGyABKAUSGwoTdGFrZV9lZmZlY3QyX3Bh", + "cmFtMRgcIAEoCRIbChN0YWtlX2VmZmVjdDJfcGFyYW0yGB0gASgJEhsKE3Rh", + "a2VfZWZmZWN0Ml9wYXJhbTMYHiABKAkSGwoTdGFrZV9lZmZlY3QyX3BhcmFt", + "NBgfIAEoCRIeChZ0YWtlX2VmZmVjdF9sb2dpY190eXBlGCAgASgFEg8KB3Rh", + "cmdldDEYISABKAUSGQoRdGFyZ2V0X2NvbmRpdGlvbjEYIiABKAUSFQoNdGFy", + "Z2V0X3BhcmFtMRgjIAEoCRIVCg10YXJnZXRfcGFyYW0yGCQgASgJEhUKDXRh", + "cmdldF9wYXJhbTMYJSABKAkSFQoNdGFyZ2V0X3BhcmFtNBgmIAEoCRIZChF0", + "YXJnZXRfY29uZGl0aW9uMhgnIAEoBRIWCg50YXJnZXQyX3BhcmFtMRgoIAEo", + "CRIWCg50YXJnZXQyX3BhcmFtMhgpIAEoCRIWCg50YXJnZXQyX3BhcmFtMxgq", + "IAEoCRIWCg50YXJnZXQyX3BhcmFtNBgrIAEoCRIZChFmaWx0ZXJfbG9naWNf", + "dHlwZRgsIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Effect), global::Nova.Client.Effect.Parser, new[]{ "Id", "Name", "LevelTypeData", "LevelData", "MainOrSupport", "Trigger", "TriggerTarget", "TriggerCondition1", "TriggerParam1", "TriggerParam2", "TriggerParam3", "TriggerParam4", "TriggerTarget2", "TriggerCondition2", "Trigger2Param1", "Trigger2Param2", "Trigger2Param3", "Trigger2Param4", "TriggerLogicType", "TakeEffectTarget1", "TakeEffectCondition1", "TakeEffectParam1", "TakeEffectParam2", "TakeEffectParam3", "TakeEffectParam4", "TakeEffectTarget2", "TakeEffectCondition2", "TakeEffect2Param1", "TakeEffect2Param2", "TakeEffect2Param3", "TakeEffect2Param4", "TakeEffectLogicType", "Target1", "TargetCondition1", "TargetParam1", "TargetParam2", "TargetParam3", "TargetParam4", "TargetCondition2", "Target2Param1", "Target2Param2", "Target2Param3", "Target2Param4", "FilterLogicType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Effect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Effect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EffectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Effect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Effect(Effect other) : this() { + id_ = other.id_; + name_ = other.name_; + levelTypeData_ = other.levelTypeData_; + levelData_ = other.levelData_; + mainOrSupport_ = other.mainOrSupport_; + trigger_ = other.trigger_; + triggerTarget_ = other.triggerTarget_; + triggerCondition1_ = other.triggerCondition1_; + triggerParam1_ = other.triggerParam1_; + triggerParam2_ = other.triggerParam2_; + triggerParam3_ = other.triggerParam3_; + triggerParam4_ = other.triggerParam4_; + triggerTarget2_ = other.triggerTarget2_; + triggerCondition2_ = other.triggerCondition2_; + trigger2Param1_ = other.trigger2Param1_; + trigger2Param2_ = other.trigger2Param2_; + trigger2Param3_ = other.trigger2Param3_; + trigger2Param4_ = other.trigger2Param4_; + triggerLogicType_ = other.triggerLogicType_; + takeEffectTarget1_ = other.takeEffectTarget1_; + takeEffectCondition1_ = other.takeEffectCondition1_; + takeEffectParam1_ = other.takeEffectParam1_; + takeEffectParam2_ = other.takeEffectParam2_; + takeEffectParam3_ = other.takeEffectParam3_; + takeEffectParam4_ = other.takeEffectParam4_; + takeEffectTarget2_ = other.takeEffectTarget2_; + takeEffectCondition2_ = other.takeEffectCondition2_; + takeEffect2Param1_ = other.takeEffect2Param1_; + takeEffect2Param2_ = other.takeEffect2Param2_; + takeEffect2Param3_ = other.takeEffect2Param3_; + takeEffect2Param4_ = other.takeEffect2Param4_; + takeEffectLogicType_ = other.takeEffectLogicType_; + target1_ = other.target1_; + targetCondition1_ = other.targetCondition1_; + targetParam1_ = other.targetParam1_; + targetParam2_ = other.targetParam2_; + targetParam3_ = other.targetParam3_; + targetParam4_ = other.targetParam4_; + targetCondition2_ = other.targetCondition2_; + target2Param1_ = other.target2Param1_; + target2Param2_ = other.target2Param2_; + target2Param3_ = other.target2Param3_; + target2Param4_ = other.target2Param4_; + filterLogicType_ = other.filterLogicType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Effect Clone() { + return new Effect(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "level_type_data" field. + public const int LevelTypeDataFieldNumber = 3; + private int levelTypeData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTypeData { + get { return levelTypeData_; } + set { + levelTypeData_ = value; + } + } + + /// Field number for the "level_data" field. + public const int LevelDataFieldNumber = 4; + private int levelData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelData { + get { return levelData_; } + set { + levelData_ = value; + } + } + + /// Field number for the "main_or_support" field. + public const int MainOrSupportFieldNumber = 5; + private int mainOrSupport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainOrSupport { + get { return mainOrSupport_; } + set { + mainOrSupport_ = value; + } + } + + /// Field number for the "trigger" field. + public const int TriggerFieldNumber = 6; + private int trigger_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Trigger { + get { return trigger_; } + set { + trigger_ = value; + } + } + + /// Field number for the "trigger_target" field. + public const int TriggerTargetFieldNumber = 7; + private int triggerTarget_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerTarget { + get { return triggerTarget_; } + set { + triggerTarget_ = value; + } + } + + /// Field number for the "trigger_condition1" field. + public const int TriggerCondition1FieldNumber = 8; + private int triggerCondition1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerCondition1 { + get { return triggerCondition1_; } + set { + triggerCondition1_ = value; + } + } + + /// Field number for the "trigger_param1" field. + public const int TriggerParam1FieldNumber = 9; + private string triggerParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParam1 { + get { return triggerParam1_; } + set { + triggerParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_param2" field. + public const int TriggerParam2FieldNumber = 10; + private string triggerParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParam2 { + get { return triggerParam2_; } + set { + triggerParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_param3" field. + public const int TriggerParam3FieldNumber = 11; + private string triggerParam3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParam3 { + get { return triggerParam3_; } + set { + triggerParam3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_param4" field. + public const int TriggerParam4FieldNumber = 12; + private string triggerParam4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParam4 { + get { return triggerParam4_; } + set { + triggerParam4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_target2" field. + public const int TriggerTarget2FieldNumber = 13; + private int triggerTarget2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerTarget2 { + get { return triggerTarget2_; } + set { + triggerTarget2_ = value; + } + } + + /// Field number for the "trigger_condition2" field. + public const int TriggerCondition2FieldNumber = 14; + private int triggerCondition2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerCondition2 { + get { return triggerCondition2_; } + set { + triggerCondition2_ = value; + } + } + + /// Field number for the "trigger2_param1" field. + public const int Trigger2Param1FieldNumber = 15; + private string trigger2Param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Trigger2Param1 { + get { return trigger2Param1_; } + set { + trigger2Param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger2_param2" field. + public const int Trigger2Param2FieldNumber = 16; + private string trigger2Param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Trigger2Param2 { + get { return trigger2Param2_; } + set { + trigger2Param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger2_param3" field. + public const int Trigger2Param3FieldNumber = 17; + private string trigger2Param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Trigger2Param3 { + get { return trigger2Param3_; } + set { + trigger2Param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger2_param4" field. + public const int Trigger2Param4FieldNumber = 18; + private string trigger2Param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Trigger2Param4 { + get { return trigger2Param4_; } + set { + trigger2Param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_logic_type" field. + public const int TriggerLogicTypeFieldNumber = 19; + private int triggerLogicType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerLogicType { + get { return triggerLogicType_; } + set { + triggerLogicType_ = value; + } + } + + /// Field number for the "take_effect_target1" field. + public const int TakeEffectTarget1FieldNumber = 20; + private int takeEffectTarget1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TakeEffectTarget1 { + get { return takeEffectTarget1_; } + set { + takeEffectTarget1_ = value; + } + } + + /// Field number for the "take_effect_condition1" field. + public const int TakeEffectCondition1FieldNumber = 21; + private int takeEffectCondition1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TakeEffectCondition1 { + get { return takeEffectCondition1_; } + set { + takeEffectCondition1_ = value; + } + } + + /// Field number for the "take_effect_param1" field. + public const int TakeEffectParam1FieldNumber = 22; + private string takeEffectParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffectParam1 { + get { return takeEffectParam1_; } + set { + takeEffectParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect_param2" field. + public const int TakeEffectParam2FieldNumber = 23; + private string takeEffectParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffectParam2 { + get { return takeEffectParam2_; } + set { + takeEffectParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect_param3" field. + public const int TakeEffectParam3FieldNumber = 24; + private string takeEffectParam3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffectParam3 { + get { return takeEffectParam3_; } + set { + takeEffectParam3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect_param4" field. + public const int TakeEffectParam4FieldNumber = 25; + private string takeEffectParam4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffectParam4 { + get { return takeEffectParam4_; } + set { + takeEffectParam4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect_target2" field. + public const int TakeEffectTarget2FieldNumber = 26; + private int takeEffectTarget2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TakeEffectTarget2 { + get { return takeEffectTarget2_; } + set { + takeEffectTarget2_ = value; + } + } + + /// Field number for the "take_effect_condition2" field. + public const int TakeEffectCondition2FieldNumber = 27; + private int takeEffectCondition2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TakeEffectCondition2 { + get { return takeEffectCondition2_; } + set { + takeEffectCondition2_ = value; + } + } + + /// Field number for the "take_effect2_param1" field. + public const int TakeEffect2Param1FieldNumber = 28; + private string takeEffect2Param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffect2Param1 { + get { return takeEffect2Param1_; } + set { + takeEffect2Param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect2_param2" field. + public const int TakeEffect2Param2FieldNumber = 29; + private string takeEffect2Param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffect2Param2 { + get { return takeEffect2Param2_; } + set { + takeEffect2Param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect2_param3" field. + public const int TakeEffect2Param3FieldNumber = 30; + private string takeEffect2Param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffect2Param3 { + get { return takeEffect2Param3_; } + set { + takeEffect2Param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect2_param4" field. + public const int TakeEffect2Param4FieldNumber = 31; + private string takeEffect2Param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TakeEffect2Param4 { + get { return takeEffect2Param4_; } + set { + takeEffect2Param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect_logic_type" field. + public const int TakeEffectLogicTypeFieldNumber = 32; + private int takeEffectLogicType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TakeEffectLogicType { + get { return takeEffectLogicType_; } + set { + takeEffectLogicType_ = value; + } + } + + /// Field number for the "target1" field. + public const int Target1FieldNumber = 33; + private int target1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Target1 { + get { return target1_; } + set { + target1_ = value; + } + } + + /// Field number for the "target_condition1" field. + public const int TargetCondition1FieldNumber = 34; + private int targetCondition1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TargetCondition1 { + get { return targetCondition1_; } + set { + targetCondition1_ = value; + } + } + + /// Field number for the "target_param1" field. + public const int TargetParam1FieldNumber = 35; + private string targetParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetParam1 { + get { return targetParam1_; } + set { + targetParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_param2" field. + public const int TargetParam2FieldNumber = 36; + private string targetParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetParam2 { + get { return targetParam2_; } + set { + targetParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_param3" field. + public const int TargetParam3FieldNumber = 37; + private string targetParam3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetParam3 { + get { return targetParam3_; } + set { + targetParam3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_param4" field. + public const int TargetParam4FieldNumber = 38; + private string targetParam4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetParam4 { + get { return targetParam4_; } + set { + targetParam4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target_condition2" field. + public const int TargetCondition2FieldNumber = 39; + private int targetCondition2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TargetCondition2 { + get { return targetCondition2_; } + set { + targetCondition2_ = value; + } + } + + /// Field number for the "target2_param1" field. + public const int Target2Param1FieldNumber = 40; + private string target2Param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target2Param1 { + get { return target2Param1_; } + set { + target2Param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target2_param2" field. + public const int Target2Param2FieldNumber = 41; + private string target2Param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target2Param2 { + get { return target2Param2_; } + set { + target2Param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target2_param3" field. + public const int Target2Param3FieldNumber = 42; + private string target2Param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target2Param3 { + get { return target2Param3_; } + set { + target2Param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "target2_param4" field. + public const int Target2Param4FieldNumber = 43; + private string target2Param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target2Param4 { + get { return target2Param4_; } + set { + target2Param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter_logic_type" field. + public const int FilterLogicTypeFieldNumber = 44; + private int filterLogicType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FilterLogicType { + get { return filterLogicType_; } + set { + filterLogicType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Effect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Effect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (LevelTypeData != other.LevelTypeData) return false; + if (LevelData != other.LevelData) return false; + if (MainOrSupport != other.MainOrSupport) return false; + if (Trigger != other.Trigger) return false; + if (TriggerTarget != other.TriggerTarget) return false; + if (TriggerCondition1 != other.TriggerCondition1) return false; + if (TriggerParam1 != other.TriggerParam1) return false; + if (TriggerParam2 != other.TriggerParam2) return false; + if (TriggerParam3 != other.TriggerParam3) return false; + if (TriggerParam4 != other.TriggerParam4) return false; + if (TriggerTarget2 != other.TriggerTarget2) return false; + if (TriggerCondition2 != other.TriggerCondition2) return false; + if (Trigger2Param1 != other.Trigger2Param1) return false; + if (Trigger2Param2 != other.Trigger2Param2) return false; + if (Trigger2Param3 != other.Trigger2Param3) return false; + if (Trigger2Param4 != other.Trigger2Param4) return false; + if (TriggerLogicType != other.TriggerLogicType) return false; + if (TakeEffectTarget1 != other.TakeEffectTarget1) return false; + if (TakeEffectCondition1 != other.TakeEffectCondition1) return false; + if (TakeEffectParam1 != other.TakeEffectParam1) return false; + if (TakeEffectParam2 != other.TakeEffectParam2) return false; + if (TakeEffectParam3 != other.TakeEffectParam3) return false; + if (TakeEffectParam4 != other.TakeEffectParam4) return false; + if (TakeEffectTarget2 != other.TakeEffectTarget2) return false; + if (TakeEffectCondition2 != other.TakeEffectCondition2) return false; + if (TakeEffect2Param1 != other.TakeEffect2Param1) return false; + if (TakeEffect2Param2 != other.TakeEffect2Param2) return false; + if (TakeEffect2Param3 != other.TakeEffect2Param3) return false; + if (TakeEffect2Param4 != other.TakeEffect2Param4) return false; + if (TakeEffectLogicType != other.TakeEffectLogicType) return false; + if (Target1 != other.Target1) return false; + if (TargetCondition1 != other.TargetCondition1) return false; + if (TargetParam1 != other.TargetParam1) return false; + if (TargetParam2 != other.TargetParam2) return false; + if (TargetParam3 != other.TargetParam3) return false; + if (TargetParam4 != other.TargetParam4) return false; + if (TargetCondition2 != other.TargetCondition2) return false; + if (Target2Param1 != other.Target2Param1) return false; + if (Target2Param2 != other.Target2Param2) return false; + if (Target2Param3 != other.Target2Param3) return false; + if (Target2Param4 != other.Target2Param4) return false; + if (FilterLogicType != other.FilterLogicType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (LevelTypeData != 0) hash ^= LevelTypeData.GetHashCode(); + if (LevelData != 0) hash ^= LevelData.GetHashCode(); + if (MainOrSupport != 0) hash ^= MainOrSupport.GetHashCode(); + if (Trigger != 0) hash ^= Trigger.GetHashCode(); + if (TriggerTarget != 0) hash ^= TriggerTarget.GetHashCode(); + if (TriggerCondition1 != 0) hash ^= TriggerCondition1.GetHashCode(); + if (TriggerParam1.Length != 0) hash ^= TriggerParam1.GetHashCode(); + if (TriggerParam2.Length != 0) hash ^= TriggerParam2.GetHashCode(); + if (TriggerParam3.Length != 0) hash ^= TriggerParam3.GetHashCode(); + if (TriggerParam4.Length != 0) hash ^= TriggerParam4.GetHashCode(); + if (TriggerTarget2 != 0) hash ^= TriggerTarget2.GetHashCode(); + if (TriggerCondition2 != 0) hash ^= TriggerCondition2.GetHashCode(); + if (Trigger2Param1.Length != 0) hash ^= Trigger2Param1.GetHashCode(); + if (Trigger2Param2.Length != 0) hash ^= Trigger2Param2.GetHashCode(); + if (Trigger2Param3.Length != 0) hash ^= Trigger2Param3.GetHashCode(); + if (Trigger2Param4.Length != 0) hash ^= Trigger2Param4.GetHashCode(); + if (TriggerLogicType != 0) hash ^= TriggerLogicType.GetHashCode(); + if (TakeEffectTarget1 != 0) hash ^= TakeEffectTarget1.GetHashCode(); + if (TakeEffectCondition1 != 0) hash ^= TakeEffectCondition1.GetHashCode(); + if (TakeEffectParam1.Length != 0) hash ^= TakeEffectParam1.GetHashCode(); + if (TakeEffectParam2.Length != 0) hash ^= TakeEffectParam2.GetHashCode(); + if (TakeEffectParam3.Length != 0) hash ^= TakeEffectParam3.GetHashCode(); + if (TakeEffectParam4.Length != 0) hash ^= TakeEffectParam4.GetHashCode(); + if (TakeEffectTarget2 != 0) hash ^= TakeEffectTarget2.GetHashCode(); + if (TakeEffectCondition2 != 0) hash ^= TakeEffectCondition2.GetHashCode(); + if (TakeEffect2Param1.Length != 0) hash ^= TakeEffect2Param1.GetHashCode(); + if (TakeEffect2Param2.Length != 0) hash ^= TakeEffect2Param2.GetHashCode(); + if (TakeEffect2Param3.Length != 0) hash ^= TakeEffect2Param3.GetHashCode(); + if (TakeEffect2Param4.Length != 0) hash ^= TakeEffect2Param4.GetHashCode(); + if (TakeEffectLogicType != 0) hash ^= TakeEffectLogicType.GetHashCode(); + if (Target1 != 0) hash ^= Target1.GetHashCode(); + if (TargetCondition1 != 0) hash ^= TargetCondition1.GetHashCode(); + if (TargetParam1.Length != 0) hash ^= TargetParam1.GetHashCode(); + if (TargetParam2.Length != 0) hash ^= TargetParam2.GetHashCode(); + if (TargetParam3.Length != 0) hash ^= TargetParam3.GetHashCode(); + if (TargetParam4.Length != 0) hash ^= TargetParam4.GetHashCode(); + if (TargetCondition2 != 0) hash ^= TargetCondition2.GetHashCode(); + if (Target2Param1.Length != 0) hash ^= Target2Param1.GetHashCode(); + if (Target2Param2.Length != 0) hash ^= Target2Param2.GetHashCode(); + if (Target2Param3.Length != 0) hash ^= Target2Param3.GetHashCode(); + if (Target2Param4.Length != 0) hash ^= Target2Param4.GetHashCode(); + if (FilterLogicType != 0) hash ^= FilterLogicType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (LevelTypeData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainOrSupport); + } + if (Trigger != 0) { + output.WriteRawTag(48); + output.WriteInt32(Trigger); + } + if (TriggerTarget != 0) { + output.WriteRawTag(56); + output.WriteInt32(TriggerTarget); + } + if (TriggerCondition1 != 0) { + output.WriteRawTag(64); + output.WriteInt32(TriggerCondition1); + } + if (TriggerParam1.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TriggerParam1); + } + if (TriggerParam2.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TriggerParam2); + } + if (TriggerParam3.Length != 0) { + output.WriteRawTag(90); + output.WriteString(TriggerParam3); + } + if (TriggerParam4.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TriggerParam4); + } + if (TriggerTarget2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(TriggerTarget2); + } + if (TriggerCondition2 != 0) { + output.WriteRawTag(112); + output.WriteInt32(TriggerCondition2); + } + if (Trigger2Param1.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Trigger2Param1); + } + if (Trigger2Param2.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Trigger2Param2); + } + if (Trigger2Param3.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Trigger2Param3); + } + if (Trigger2Param4.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Trigger2Param4); + } + if (TriggerLogicType != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(TriggerLogicType); + } + if (TakeEffectTarget1 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(TakeEffectTarget1); + } + if (TakeEffectCondition1 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(TakeEffectCondition1); + } + if (TakeEffectParam1.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(TakeEffectParam1); + } + if (TakeEffectParam2.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(TakeEffectParam2); + } + if (TakeEffectParam3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(TakeEffectParam3); + } + if (TakeEffectParam4.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(TakeEffectParam4); + } + if (TakeEffectTarget2 != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(TakeEffectTarget2); + } + if (TakeEffectCondition2 != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(TakeEffectCondition2); + } + if (TakeEffect2Param1.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(TakeEffect2Param1); + } + if (TakeEffect2Param2.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(TakeEffect2Param2); + } + if (TakeEffect2Param3.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(TakeEffect2Param3); + } + if (TakeEffect2Param4.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(TakeEffect2Param4); + } + if (TakeEffectLogicType != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(TakeEffectLogicType); + } + if (Target1 != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(Target1); + } + if (TargetCondition1 != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(TargetCondition1); + } + if (TargetParam1.Length != 0) { + output.WriteRawTag(154, 2); + output.WriteString(TargetParam1); + } + if (TargetParam2.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(TargetParam2); + } + if (TargetParam3.Length != 0) { + output.WriteRawTag(170, 2); + output.WriteString(TargetParam3); + } + if (TargetParam4.Length != 0) { + output.WriteRawTag(178, 2); + output.WriteString(TargetParam4); + } + if (TargetCondition2 != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(TargetCondition2); + } + if (Target2Param1.Length != 0) { + output.WriteRawTag(194, 2); + output.WriteString(Target2Param1); + } + if (Target2Param2.Length != 0) { + output.WriteRawTag(202, 2); + output.WriteString(Target2Param2); + } + if (Target2Param3.Length != 0) { + output.WriteRawTag(210, 2); + output.WriteString(Target2Param3); + } + if (Target2Param4.Length != 0) { + output.WriteRawTag(218, 2); + output.WriteString(Target2Param4); + } + if (FilterLogicType != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(FilterLogicType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (LevelTypeData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainOrSupport); + } + if (Trigger != 0) { + output.WriteRawTag(48); + output.WriteInt32(Trigger); + } + if (TriggerTarget != 0) { + output.WriteRawTag(56); + output.WriteInt32(TriggerTarget); + } + if (TriggerCondition1 != 0) { + output.WriteRawTag(64); + output.WriteInt32(TriggerCondition1); + } + if (TriggerParam1.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TriggerParam1); + } + if (TriggerParam2.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TriggerParam2); + } + if (TriggerParam3.Length != 0) { + output.WriteRawTag(90); + output.WriteString(TriggerParam3); + } + if (TriggerParam4.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TriggerParam4); + } + if (TriggerTarget2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(TriggerTarget2); + } + if (TriggerCondition2 != 0) { + output.WriteRawTag(112); + output.WriteInt32(TriggerCondition2); + } + if (Trigger2Param1.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Trigger2Param1); + } + if (Trigger2Param2.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Trigger2Param2); + } + if (Trigger2Param3.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Trigger2Param3); + } + if (Trigger2Param4.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Trigger2Param4); + } + if (TriggerLogicType != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(TriggerLogicType); + } + if (TakeEffectTarget1 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(TakeEffectTarget1); + } + if (TakeEffectCondition1 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(TakeEffectCondition1); + } + if (TakeEffectParam1.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(TakeEffectParam1); + } + if (TakeEffectParam2.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(TakeEffectParam2); + } + if (TakeEffectParam3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(TakeEffectParam3); + } + if (TakeEffectParam4.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(TakeEffectParam4); + } + if (TakeEffectTarget2 != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(TakeEffectTarget2); + } + if (TakeEffectCondition2 != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(TakeEffectCondition2); + } + if (TakeEffect2Param1.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(TakeEffect2Param1); + } + if (TakeEffect2Param2.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(TakeEffect2Param2); + } + if (TakeEffect2Param3.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(TakeEffect2Param3); + } + if (TakeEffect2Param4.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(TakeEffect2Param4); + } + if (TakeEffectLogicType != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(TakeEffectLogicType); + } + if (Target1 != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(Target1); + } + if (TargetCondition1 != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(TargetCondition1); + } + if (TargetParam1.Length != 0) { + output.WriteRawTag(154, 2); + output.WriteString(TargetParam1); + } + if (TargetParam2.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(TargetParam2); + } + if (TargetParam3.Length != 0) { + output.WriteRawTag(170, 2); + output.WriteString(TargetParam3); + } + if (TargetParam4.Length != 0) { + output.WriteRawTag(178, 2); + output.WriteString(TargetParam4); + } + if (TargetCondition2 != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(TargetCondition2); + } + if (Target2Param1.Length != 0) { + output.WriteRawTag(194, 2); + output.WriteString(Target2Param1); + } + if (Target2Param2.Length != 0) { + output.WriteRawTag(202, 2); + output.WriteString(Target2Param2); + } + if (Target2Param3.Length != 0) { + output.WriteRawTag(210, 2); + output.WriteString(Target2Param3); + } + if (Target2Param4.Length != 0) { + output.WriteRawTag(218, 2); + output.WriteString(Target2Param4); + } + if (FilterLogicType != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(FilterLogicType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (LevelTypeData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTypeData); + } + if (LevelData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelData); + } + if (MainOrSupport != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainOrSupport); + } + if (Trigger != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Trigger); + } + if (TriggerTarget != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerTarget); + } + if (TriggerCondition1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerCondition1); + } + if (TriggerParam1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParam1); + } + if (TriggerParam2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParam2); + } + if (TriggerParam3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParam3); + } + if (TriggerParam4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParam4); + } + if (TriggerTarget2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerTarget2); + } + if (TriggerCondition2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerCondition2); + } + if (Trigger2Param1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Trigger2Param1); + } + if (Trigger2Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Trigger2Param2); + } + if (Trigger2Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Trigger2Param3); + } + if (Trigger2Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Trigger2Param4); + } + if (TriggerLogicType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TriggerLogicType); + } + if (TakeEffectTarget1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TakeEffectTarget1); + } + if (TakeEffectCondition1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TakeEffectCondition1); + } + if (TakeEffectParam1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffectParam1); + } + if (TakeEffectParam2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffectParam2); + } + if (TakeEffectParam3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffectParam3); + } + if (TakeEffectParam4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffectParam4); + } + if (TakeEffectTarget2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TakeEffectTarget2); + } + if (TakeEffectCondition2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TakeEffectCondition2); + } + if (TakeEffect2Param1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffect2Param1); + } + if (TakeEffect2Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffect2Param2); + } + if (TakeEffect2Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffect2Param3); + } + if (TakeEffect2Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TakeEffect2Param4); + } + if (TakeEffectLogicType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TakeEffectLogicType); + } + if (Target1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Target1); + } + if (TargetCondition1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TargetCondition1); + } + if (TargetParam1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetParam1); + } + if (TargetParam2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetParam2); + } + if (TargetParam3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetParam3); + } + if (TargetParam4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetParam4); + } + if (TargetCondition2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TargetCondition2); + } + if (Target2Param1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Target2Param1); + } + if (Target2Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Target2Param2); + } + if (Target2Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Target2Param3); + } + if (Target2Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Target2Param4); + } + if (FilterLogicType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FilterLogicType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Effect other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.LevelTypeData != 0) { + LevelTypeData = other.LevelTypeData; + } + if (other.LevelData != 0) { + LevelData = other.LevelData; + } + if (other.MainOrSupport != 0) { + MainOrSupport = other.MainOrSupport; + } + if (other.Trigger != 0) { + Trigger = other.Trigger; + } + if (other.TriggerTarget != 0) { + TriggerTarget = other.TriggerTarget; + } + if (other.TriggerCondition1 != 0) { + TriggerCondition1 = other.TriggerCondition1; + } + if (other.TriggerParam1.Length != 0) { + TriggerParam1 = other.TriggerParam1; + } + if (other.TriggerParam2.Length != 0) { + TriggerParam2 = other.TriggerParam2; + } + if (other.TriggerParam3.Length != 0) { + TriggerParam3 = other.TriggerParam3; + } + if (other.TriggerParam4.Length != 0) { + TriggerParam4 = other.TriggerParam4; + } + if (other.TriggerTarget2 != 0) { + TriggerTarget2 = other.TriggerTarget2; + } + if (other.TriggerCondition2 != 0) { + TriggerCondition2 = other.TriggerCondition2; + } + if (other.Trigger2Param1.Length != 0) { + Trigger2Param1 = other.Trigger2Param1; + } + if (other.Trigger2Param2.Length != 0) { + Trigger2Param2 = other.Trigger2Param2; + } + if (other.Trigger2Param3.Length != 0) { + Trigger2Param3 = other.Trigger2Param3; + } + if (other.Trigger2Param4.Length != 0) { + Trigger2Param4 = other.Trigger2Param4; + } + if (other.TriggerLogicType != 0) { + TriggerLogicType = other.TriggerLogicType; + } + if (other.TakeEffectTarget1 != 0) { + TakeEffectTarget1 = other.TakeEffectTarget1; + } + if (other.TakeEffectCondition1 != 0) { + TakeEffectCondition1 = other.TakeEffectCondition1; + } + if (other.TakeEffectParam1.Length != 0) { + TakeEffectParam1 = other.TakeEffectParam1; + } + if (other.TakeEffectParam2.Length != 0) { + TakeEffectParam2 = other.TakeEffectParam2; + } + if (other.TakeEffectParam3.Length != 0) { + TakeEffectParam3 = other.TakeEffectParam3; + } + if (other.TakeEffectParam4.Length != 0) { + TakeEffectParam4 = other.TakeEffectParam4; + } + if (other.TakeEffectTarget2 != 0) { + TakeEffectTarget2 = other.TakeEffectTarget2; + } + if (other.TakeEffectCondition2 != 0) { + TakeEffectCondition2 = other.TakeEffectCondition2; + } + if (other.TakeEffect2Param1.Length != 0) { + TakeEffect2Param1 = other.TakeEffect2Param1; + } + if (other.TakeEffect2Param2.Length != 0) { + TakeEffect2Param2 = other.TakeEffect2Param2; + } + if (other.TakeEffect2Param3.Length != 0) { + TakeEffect2Param3 = other.TakeEffect2Param3; + } + if (other.TakeEffect2Param4.Length != 0) { + TakeEffect2Param4 = other.TakeEffect2Param4; + } + if (other.TakeEffectLogicType != 0) { + TakeEffectLogicType = other.TakeEffectLogicType; + } + if (other.Target1 != 0) { + Target1 = other.Target1; + } + if (other.TargetCondition1 != 0) { + TargetCondition1 = other.TargetCondition1; + } + if (other.TargetParam1.Length != 0) { + TargetParam1 = other.TargetParam1; + } + if (other.TargetParam2.Length != 0) { + TargetParam2 = other.TargetParam2; + } + if (other.TargetParam3.Length != 0) { + TargetParam3 = other.TargetParam3; + } + if (other.TargetParam4.Length != 0) { + TargetParam4 = other.TargetParam4; + } + if (other.TargetCondition2 != 0) { + TargetCondition2 = other.TargetCondition2; + } + if (other.Target2Param1.Length != 0) { + Target2Param1 = other.Target2Param1; + } + if (other.Target2Param2.Length != 0) { + Target2Param2 = other.Target2Param2; + } + if (other.Target2Param3.Length != 0) { + Target2Param3 = other.Target2Param3; + } + if (other.Target2Param4.Length != 0) { + Target2Param4 = other.Target2Param4; + } + if (other.FilterLogicType != 0) { + FilterLogicType = other.FilterLogicType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + LevelTypeData = input.ReadInt32(); + break; + } + case 32: { + LevelData = input.ReadInt32(); + break; + } + case 40: { + MainOrSupport = input.ReadInt32(); + break; + } + case 48: { + Trigger = input.ReadInt32(); + break; + } + case 56: { + TriggerTarget = input.ReadInt32(); + break; + } + case 64: { + TriggerCondition1 = input.ReadInt32(); + break; + } + case 74: { + TriggerParam1 = input.ReadString(); + break; + } + case 82: { + TriggerParam2 = input.ReadString(); + break; + } + case 90: { + TriggerParam3 = input.ReadString(); + break; + } + case 98: { + TriggerParam4 = input.ReadString(); + break; + } + case 104: { + TriggerTarget2 = input.ReadInt32(); + break; + } + case 112: { + TriggerCondition2 = input.ReadInt32(); + break; + } + case 122: { + Trigger2Param1 = input.ReadString(); + break; + } + case 130: { + Trigger2Param2 = input.ReadString(); + break; + } + case 138: { + Trigger2Param3 = input.ReadString(); + break; + } + case 146: { + Trigger2Param4 = input.ReadString(); + break; + } + case 152: { + TriggerLogicType = input.ReadInt32(); + break; + } + case 160: { + TakeEffectTarget1 = input.ReadInt32(); + break; + } + case 168: { + TakeEffectCondition1 = input.ReadInt32(); + break; + } + case 178: { + TakeEffectParam1 = input.ReadString(); + break; + } + case 186: { + TakeEffectParam2 = input.ReadString(); + break; + } + case 194: { + TakeEffectParam3 = input.ReadString(); + break; + } + case 202: { + TakeEffectParam4 = input.ReadString(); + break; + } + case 208: { + TakeEffectTarget2 = input.ReadInt32(); + break; + } + case 216: { + TakeEffectCondition2 = input.ReadInt32(); + break; + } + case 226: { + TakeEffect2Param1 = input.ReadString(); + break; + } + case 234: { + TakeEffect2Param2 = input.ReadString(); + break; + } + case 242: { + TakeEffect2Param3 = input.ReadString(); + break; + } + case 250: { + TakeEffect2Param4 = input.ReadString(); + break; + } + case 256: { + TakeEffectLogicType = input.ReadInt32(); + break; + } + case 264: { + Target1 = input.ReadInt32(); + break; + } + case 272: { + TargetCondition1 = input.ReadInt32(); + break; + } + case 282: { + TargetParam1 = input.ReadString(); + break; + } + case 290: { + TargetParam2 = input.ReadString(); + break; + } + case 298: { + TargetParam3 = input.ReadString(); + break; + } + case 306: { + TargetParam4 = input.ReadString(); + break; + } + case 312: { + TargetCondition2 = input.ReadInt32(); + break; + } + case 322: { + Target2Param1 = input.ReadString(); + break; + } + case 330: { + Target2Param2 = input.ReadString(); + break; + } + case 338: { + Target2Param3 = input.ReadString(); + break; + } + case 346: { + Target2Param4 = input.ReadString(); + break; + } + case 352: { + FilterLogicType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + LevelTypeData = input.ReadInt32(); + break; + } + case 32: { + LevelData = input.ReadInt32(); + break; + } + case 40: { + MainOrSupport = input.ReadInt32(); + break; + } + case 48: { + Trigger = input.ReadInt32(); + break; + } + case 56: { + TriggerTarget = input.ReadInt32(); + break; + } + case 64: { + TriggerCondition1 = input.ReadInt32(); + break; + } + case 74: { + TriggerParam1 = input.ReadString(); + break; + } + case 82: { + TriggerParam2 = input.ReadString(); + break; + } + case 90: { + TriggerParam3 = input.ReadString(); + break; + } + case 98: { + TriggerParam4 = input.ReadString(); + break; + } + case 104: { + TriggerTarget2 = input.ReadInt32(); + break; + } + case 112: { + TriggerCondition2 = input.ReadInt32(); + break; + } + case 122: { + Trigger2Param1 = input.ReadString(); + break; + } + case 130: { + Trigger2Param2 = input.ReadString(); + break; + } + case 138: { + Trigger2Param3 = input.ReadString(); + break; + } + case 146: { + Trigger2Param4 = input.ReadString(); + break; + } + case 152: { + TriggerLogicType = input.ReadInt32(); + break; + } + case 160: { + TakeEffectTarget1 = input.ReadInt32(); + break; + } + case 168: { + TakeEffectCondition1 = input.ReadInt32(); + break; + } + case 178: { + TakeEffectParam1 = input.ReadString(); + break; + } + case 186: { + TakeEffectParam2 = input.ReadString(); + break; + } + case 194: { + TakeEffectParam3 = input.ReadString(); + break; + } + case 202: { + TakeEffectParam4 = input.ReadString(); + break; + } + case 208: { + TakeEffectTarget2 = input.ReadInt32(); + break; + } + case 216: { + TakeEffectCondition2 = input.ReadInt32(); + break; + } + case 226: { + TakeEffect2Param1 = input.ReadString(); + break; + } + case 234: { + TakeEffect2Param2 = input.ReadString(); + break; + } + case 242: { + TakeEffect2Param3 = input.ReadString(); + break; + } + case 250: { + TakeEffect2Param4 = input.ReadString(); + break; + } + case 256: { + TakeEffectLogicType = input.ReadInt32(); + break; + } + case 264: { + Target1 = input.ReadInt32(); + break; + } + case 272: { + TargetCondition1 = input.ReadInt32(); + break; + } + case 282: { + TargetParam1 = input.ReadString(); + break; + } + case 290: { + TargetParam2 = input.ReadString(); + break; + } + case 298: { + TargetParam3 = input.ReadString(); + break; + } + case 306: { + TargetParam4 = input.ReadString(); + break; + } + case 312: { + TargetCondition2 = input.ReadInt32(); + break; + } + case 322: { + Target2Param1 = input.ReadString(); + break; + } + case 330: { + Target2Param2 = input.ReadString(); + break; + } + case 338: { + Target2Param3 = input.ReadString(); + break; + } + case 346: { + Target2Param4 = input.ReadString(); + break; + } + case 352: { + FilterLogicType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EffectDesc.cs b/NTR.Common/protos/EffectDesc.cs new file mode 100644 index 0000000..f118e85 --- /dev/null +++ b/NTR.Common/protos/EffectDesc.cs @@ -0,0 +1,578 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EffectDesc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EffectDesc.proto + public static partial class EffectDescReflection { + + #region Descriptor + /// File descriptor for EffectDesc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EffectDescReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBFZmZlY3REZXNjLnByb3RvIrwBCgpFZmZlY3REZXNjEgoKAmlkGAEgASgF", + "EhAKCHR5cGVfaV9kGAIgASgFEhEKCXR5cGUyX2lfZBgDIAEoBRIMCgRkZXNj", + "GAQgASgJEhgKEHJhbmRvbV9hdHRyX2Rlc2MYBSABKAkSEQoJYXR0cmlidXRl", + "GAYgASgJEhAKCHdvcmRfaV9kGAcgASgFEhIKCmlzX3BlcmNlbnQYCCABKAgS", + "DAoEaWNvbhgJIAEoCRIOCgZmb3JtYXQYCiABKAVCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EffectDesc), global::Nova.Client.EffectDesc.Parser, new[]{ "Id", "TypeID", "Type2ID", "Desc", "RandomAttrDesc", "Attribute", "WordID", "IsPercent", "Icon", "Format" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EffectDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EffectDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EffectDescReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectDesc(EffectDesc other) : this() { + id_ = other.id_; + typeID_ = other.typeID_; + type2ID_ = other.type2ID_; + desc_ = other.desc_; + randomAttrDesc_ = other.randomAttrDesc_; + attribute_ = other.attribute_; + wordID_ = other.wordID_; + isPercent_ = other.isPercent_; + icon_ = other.icon_; + format_ = other.format_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectDesc Clone() { + return new EffectDesc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type_i_d" field. + public const int TypeIDFieldNumber = 2; + private int typeID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TypeID { + get { return typeID_; } + set { + typeID_ = value; + } + } + + /// Field number for the "type2_i_d" field. + public const int Type2IDFieldNumber = 3; + private int type2ID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type2ID { + get { return type2ID_; } + set { + type2ID_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "random_attr_desc" field. + public const int RandomAttrDescFieldNumber = 5; + private string randomAttrDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RandomAttrDesc { + get { return randomAttrDesc_; } + set { + randomAttrDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "attribute" field. + public const int AttributeFieldNumber = 6; + private string attribute_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Attribute { + get { return attribute_; } + set { + attribute_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "word_i_d" field. + public const int WordIDFieldNumber = 7; + private int wordID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WordID { + get { return wordID_; } + set { + wordID_ = value; + } + } + + /// Field number for the "is_percent" field. + public const int IsPercentFieldNumber = 8; + private bool isPercent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsPercent { + get { return isPercent_; } + set { + isPercent_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 9; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "format" field. + public const int FormatFieldNumber = 10; + private int format_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Format { + get { return format_; } + set { + format_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EffectDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EffectDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TypeID != other.TypeID) return false; + if (Type2ID != other.Type2ID) return false; + if (Desc != other.Desc) return false; + if (RandomAttrDesc != other.RandomAttrDesc) return false; + if (Attribute != other.Attribute) return false; + if (WordID != other.WordID) return false; + if (IsPercent != other.IsPercent) return false; + if (Icon != other.Icon) return false; + if (Format != other.Format) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (TypeID != 0) hash ^= TypeID.GetHashCode(); + if (Type2ID != 0) hash ^= Type2ID.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (RandomAttrDesc.Length != 0) hash ^= RandomAttrDesc.GetHashCode(); + if (Attribute.Length != 0) hash ^= Attribute.GetHashCode(); + if (WordID != 0) hash ^= WordID.GetHashCode(); + if (IsPercent != false) hash ^= IsPercent.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Format != 0) hash ^= Format.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (TypeID != 0) { + output.WriteRawTag(16); + output.WriteInt32(TypeID); + } + if (Type2ID != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type2ID); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (RandomAttrDesc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RandomAttrDesc); + } + if (Attribute.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Attribute); + } + if (WordID != 0) { + output.WriteRawTag(56); + output.WriteInt32(WordID); + } + if (IsPercent != false) { + output.WriteRawTag(64); + output.WriteBool(IsPercent); + } + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (Format != 0) { + output.WriteRawTag(80); + output.WriteInt32(Format); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (TypeID != 0) { + output.WriteRawTag(16); + output.WriteInt32(TypeID); + } + if (Type2ID != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type2ID); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (RandomAttrDesc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RandomAttrDesc); + } + if (Attribute.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Attribute); + } + if (WordID != 0) { + output.WriteRawTag(56); + output.WriteInt32(WordID); + } + if (IsPercent != false) { + output.WriteRawTag(64); + output.WriteBool(IsPercent); + } + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (Format != 0) { + output.WriteRawTag(80); + output.WriteInt32(Format); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (TypeID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TypeID); + } + if (Type2ID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type2ID); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (RandomAttrDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RandomAttrDesc); + } + if (Attribute.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Attribute); + } + if (WordID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WordID); + } + if (IsPercent != false) { + size += 1 + 1; + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Format != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Format); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EffectDesc other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.TypeID != 0) { + TypeID = other.TypeID; + } + if (other.Type2ID != 0) { + Type2ID = other.Type2ID; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.RandomAttrDesc.Length != 0) { + RandomAttrDesc = other.RandomAttrDesc; + } + if (other.Attribute.Length != 0) { + Attribute = other.Attribute; + } + if (other.WordID != 0) { + WordID = other.WordID; + } + if (other.IsPercent != false) { + IsPercent = other.IsPercent; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Format != 0) { + Format = other.Format; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + TypeID = input.ReadInt32(); + break; + } + case 24: { + Type2ID = input.ReadInt32(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + RandomAttrDesc = input.ReadString(); + break; + } + case 50: { + Attribute = input.ReadString(); + break; + } + case 56: { + WordID = input.ReadInt32(); + break; + } + case 64: { + IsPercent = input.ReadBool(); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + case 80: { + Format = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + TypeID = input.ReadInt32(); + break; + } + case 24: { + Type2ID = input.ReadInt32(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + RandomAttrDesc = input.ReadString(); + break; + } + case 50: { + Attribute = input.ReadString(); + break; + } + case 56: { + WordID = input.ReadInt32(); + break; + } + case 64: { + IsPercent = input.ReadBool(); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + case 80: { + Format = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EffectValue.cs b/NTR.Common/protos/EffectValue.cs new file mode 100644 index 0000000..d7f21a7 --- /dev/null +++ b/NTR.Common/protos/EffectValue.cs @@ -0,0 +1,842 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EffectValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EffectValue.proto + public static partial class EffectValueReflection { + + #region Descriptor + /// File descriptor for EffectValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EffectValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFFZmZlY3RWYWx1ZS5wcm90byKhAwoLRWZmZWN0VmFsdWUSCgoCaWQYASAB", + "KAUSDAoEbmFtZRgCIAEoCRILCgN0YWcYAyABKAkSGQoRdGFrZV9lZmZlY3Rf", + "bGltaXQYBCABKAUSDgoGcmVtb3ZlGAUgASgIEgsKA2NfZBgGIAEoBRITCgtl", + "ZmZlY3RfcmF0ZRgHIAEoBRITCgtlZmZlY3RfdHlwZRgIIAEoBRIhChllZmZl", + "Y3RfdHlwZV9maXJzdF9zdWJ0eXBlGAkgASgFEiIKGmVmZmVjdF90eXBlX3Nl", + "Y29uZF9zdWJ0eXBlGAogASgFEhoKEmVmZmVjdF90eXBlX3BhcmFtMRgLIAEo", + "CRIaChJlZmZlY3RfdHlwZV9wYXJhbTIYDCABKAkSGgoSZWZmZWN0X3R5cGVf", + "cGFyYW0zGA0gASgJEhoKEmVmZmVjdF90eXBlX3BhcmFtNBgOIAEoCRIaChJl", + "ZmZlY3RfdHlwZV9wYXJhbTUYDyABKAkSGgoSZWZmZWN0X3R5cGVfcGFyYW02", + "GBAgASgJEhoKEmVmZmVjdF90eXBlX3BhcmFtNxgRIAEoCUIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EffectValue), global::Nova.Client.EffectValue.Parser, new[]{ "Id", "Name", "Tag", "TakeEffectLimit", "Remove", "CD", "EffectRate", "EffectType", "EffectTypeFirstSubtype", "EffectTypeSecondSubtype", "EffectTypeParam1", "EffectTypeParam2", "EffectTypeParam3", "EffectTypeParam4", "EffectTypeParam5", "EffectTypeParam6", "EffectTypeParam7" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EffectValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EffectValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EffectValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectValue(EffectValue other) : this() { + id_ = other.id_; + name_ = other.name_; + tag_ = other.tag_; + takeEffectLimit_ = other.takeEffectLimit_; + remove_ = other.remove_; + cD_ = other.cD_; + effectRate_ = other.effectRate_; + effectType_ = other.effectType_; + effectTypeFirstSubtype_ = other.effectTypeFirstSubtype_; + effectTypeSecondSubtype_ = other.effectTypeSecondSubtype_; + effectTypeParam1_ = other.effectTypeParam1_; + effectTypeParam2_ = other.effectTypeParam2_; + effectTypeParam3_ = other.effectTypeParam3_; + effectTypeParam4_ = other.effectTypeParam4_; + effectTypeParam5_ = other.effectTypeParam5_; + effectTypeParam6_ = other.effectTypeParam6_; + effectTypeParam7_ = other.effectTypeParam7_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectValue Clone() { + return new EffectValue(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 3; + private string tag_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag { + get { return tag_; } + set { + tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "take_effect_limit" field. + public const int TakeEffectLimitFieldNumber = 4; + private int takeEffectLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TakeEffectLimit { + get { return takeEffectLimit_; } + set { + takeEffectLimit_ = value; + } + } + + /// Field number for the "remove" field. + public const int RemoveFieldNumber = 5; + private bool remove_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Remove { + get { return remove_; } + set { + remove_ = value; + } + } + + /// Field number for the "c_d" field. + public const int CDFieldNumber = 6; + private int cD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CD { + get { return cD_; } + set { + cD_ = value; + } + } + + /// Field number for the "effect_rate" field. + public const int EffectRateFieldNumber = 7; + private int effectRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectRate { + get { return effectRate_; } + set { + effectRate_ = value; + } + } + + /// Field number for the "effect_type" field. + public const int EffectTypeFieldNumber = 8; + private int effectType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectType { + get { return effectType_; } + set { + effectType_ = value; + } + } + + /// Field number for the "effect_type_first_subtype" field. + public const int EffectTypeFirstSubtypeFieldNumber = 9; + private int effectTypeFirstSubtype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectTypeFirstSubtype { + get { return effectTypeFirstSubtype_; } + set { + effectTypeFirstSubtype_ = value; + } + } + + /// Field number for the "effect_type_second_subtype" field. + public const int EffectTypeSecondSubtypeFieldNumber = 10; + private int effectTypeSecondSubtype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectTypeSecondSubtype { + get { return effectTypeSecondSubtype_; } + set { + effectTypeSecondSubtype_ = value; + } + } + + /// Field number for the "effect_type_param1" field. + public const int EffectTypeParam1FieldNumber = 11; + private string effectTypeParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam1 { + get { return effectTypeParam1_; } + set { + effectTypeParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_type_param2" field. + public const int EffectTypeParam2FieldNumber = 12; + private string effectTypeParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam2 { + get { return effectTypeParam2_; } + set { + effectTypeParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_type_param3" field. + public const int EffectTypeParam3FieldNumber = 13; + private string effectTypeParam3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam3 { + get { return effectTypeParam3_; } + set { + effectTypeParam3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_type_param4" field. + public const int EffectTypeParam4FieldNumber = 14; + private string effectTypeParam4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam4 { + get { return effectTypeParam4_; } + set { + effectTypeParam4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_type_param5" field. + public const int EffectTypeParam5FieldNumber = 15; + private string effectTypeParam5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam5 { + get { return effectTypeParam5_; } + set { + effectTypeParam5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_type_param6" field. + public const int EffectTypeParam6FieldNumber = 16; + private string effectTypeParam6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam6 { + get { return effectTypeParam6_; } + set { + effectTypeParam6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_type_param7" field. + public const int EffectTypeParam7FieldNumber = 17; + private string effectTypeParam7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EffectTypeParam7 { + get { return effectTypeParam7_; } + set { + effectTypeParam7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EffectValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EffectValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Tag != other.Tag) return false; + if (TakeEffectLimit != other.TakeEffectLimit) return false; + if (Remove != other.Remove) return false; + if (CD != other.CD) return false; + if (EffectRate != other.EffectRate) return false; + if (EffectType != other.EffectType) return false; + if (EffectTypeFirstSubtype != other.EffectTypeFirstSubtype) return false; + if (EffectTypeSecondSubtype != other.EffectTypeSecondSubtype) return false; + if (EffectTypeParam1 != other.EffectTypeParam1) return false; + if (EffectTypeParam2 != other.EffectTypeParam2) return false; + if (EffectTypeParam3 != other.EffectTypeParam3) return false; + if (EffectTypeParam4 != other.EffectTypeParam4) return false; + if (EffectTypeParam5 != other.EffectTypeParam5) return false; + if (EffectTypeParam6 != other.EffectTypeParam6) return false; + if (EffectTypeParam7 != other.EffectTypeParam7) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Tag.Length != 0) hash ^= Tag.GetHashCode(); + if (TakeEffectLimit != 0) hash ^= TakeEffectLimit.GetHashCode(); + if (Remove != false) hash ^= Remove.GetHashCode(); + if (CD != 0) hash ^= CD.GetHashCode(); + if (EffectRate != 0) hash ^= EffectRate.GetHashCode(); + if (EffectType != 0) hash ^= EffectType.GetHashCode(); + if (EffectTypeFirstSubtype != 0) hash ^= EffectTypeFirstSubtype.GetHashCode(); + if (EffectTypeSecondSubtype != 0) hash ^= EffectTypeSecondSubtype.GetHashCode(); + if (EffectTypeParam1.Length != 0) hash ^= EffectTypeParam1.GetHashCode(); + if (EffectTypeParam2.Length != 0) hash ^= EffectTypeParam2.GetHashCode(); + if (EffectTypeParam3.Length != 0) hash ^= EffectTypeParam3.GetHashCode(); + if (EffectTypeParam4.Length != 0) hash ^= EffectTypeParam4.GetHashCode(); + if (EffectTypeParam5.Length != 0) hash ^= EffectTypeParam5.GetHashCode(); + if (EffectTypeParam6.Length != 0) hash ^= EffectTypeParam6.GetHashCode(); + if (EffectTypeParam7.Length != 0) hash ^= EffectTypeParam7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Tag.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Tag); + } + if (TakeEffectLimit != 0) { + output.WriteRawTag(32); + output.WriteInt32(TakeEffectLimit); + } + if (Remove != false) { + output.WriteRawTag(40); + output.WriteBool(Remove); + } + if (CD != 0) { + output.WriteRawTag(48); + output.WriteInt32(CD); + } + if (EffectRate != 0) { + output.WriteRawTag(56); + output.WriteInt32(EffectRate); + } + if (EffectType != 0) { + output.WriteRawTag(64); + output.WriteInt32(EffectType); + } + if (EffectTypeFirstSubtype != 0) { + output.WriteRawTag(72); + output.WriteInt32(EffectTypeFirstSubtype); + } + if (EffectTypeSecondSubtype != 0) { + output.WriteRawTag(80); + output.WriteInt32(EffectTypeSecondSubtype); + } + if (EffectTypeParam1.Length != 0) { + output.WriteRawTag(90); + output.WriteString(EffectTypeParam1); + } + if (EffectTypeParam2.Length != 0) { + output.WriteRawTag(98); + output.WriteString(EffectTypeParam2); + } + if (EffectTypeParam3.Length != 0) { + output.WriteRawTag(106); + output.WriteString(EffectTypeParam3); + } + if (EffectTypeParam4.Length != 0) { + output.WriteRawTag(114); + output.WriteString(EffectTypeParam4); + } + if (EffectTypeParam5.Length != 0) { + output.WriteRawTag(122); + output.WriteString(EffectTypeParam5); + } + if (EffectTypeParam6.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(EffectTypeParam6); + } + if (EffectTypeParam7.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(EffectTypeParam7); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Tag.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Tag); + } + if (TakeEffectLimit != 0) { + output.WriteRawTag(32); + output.WriteInt32(TakeEffectLimit); + } + if (Remove != false) { + output.WriteRawTag(40); + output.WriteBool(Remove); + } + if (CD != 0) { + output.WriteRawTag(48); + output.WriteInt32(CD); + } + if (EffectRate != 0) { + output.WriteRawTag(56); + output.WriteInt32(EffectRate); + } + if (EffectType != 0) { + output.WriteRawTag(64); + output.WriteInt32(EffectType); + } + if (EffectTypeFirstSubtype != 0) { + output.WriteRawTag(72); + output.WriteInt32(EffectTypeFirstSubtype); + } + if (EffectTypeSecondSubtype != 0) { + output.WriteRawTag(80); + output.WriteInt32(EffectTypeSecondSubtype); + } + if (EffectTypeParam1.Length != 0) { + output.WriteRawTag(90); + output.WriteString(EffectTypeParam1); + } + if (EffectTypeParam2.Length != 0) { + output.WriteRawTag(98); + output.WriteString(EffectTypeParam2); + } + if (EffectTypeParam3.Length != 0) { + output.WriteRawTag(106); + output.WriteString(EffectTypeParam3); + } + if (EffectTypeParam4.Length != 0) { + output.WriteRawTag(114); + output.WriteString(EffectTypeParam4); + } + if (EffectTypeParam5.Length != 0) { + output.WriteRawTag(122); + output.WriteString(EffectTypeParam5); + } + if (EffectTypeParam6.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(EffectTypeParam6); + } + if (EffectTypeParam7.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(EffectTypeParam7); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Tag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag); + } + if (TakeEffectLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TakeEffectLimit); + } + if (Remove != false) { + size += 1 + 1; + } + if (CD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CD); + } + if (EffectRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectRate); + } + if (EffectType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectType); + } + if (EffectTypeFirstSubtype != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectTypeFirstSubtype); + } + if (EffectTypeSecondSubtype != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectTypeSecondSubtype); + } + if (EffectTypeParam1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam1); + } + if (EffectTypeParam2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam2); + } + if (EffectTypeParam3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam3); + } + if (EffectTypeParam4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam4); + } + if (EffectTypeParam5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam5); + } + if (EffectTypeParam6.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam6); + } + if (EffectTypeParam7.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(EffectTypeParam7); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EffectValue other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Tag.Length != 0) { + Tag = other.Tag; + } + if (other.TakeEffectLimit != 0) { + TakeEffectLimit = other.TakeEffectLimit; + } + if (other.Remove != false) { + Remove = other.Remove; + } + if (other.CD != 0) { + CD = other.CD; + } + if (other.EffectRate != 0) { + EffectRate = other.EffectRate; + } + if (other.EffectType != 0) { + EffectType = other.EffectType; + } + if (other.EffectTypeFirstSubtype != 0) { + EffectTypeFirstSubtype = other.EffectTypeFirstSubtype; + } + if (other.EffectTypeSecondSubtype != 0) { + EffectTypeSecondSubtype = other.EffectTypeSecondSubtype; + } + if (other.EffectTypeParam1.Length != 0) { + EffectTypeParam1 = other.EffectTypeParam1; + } + if (other.EffectTypeParam2.Length != 0) { + EffectTypeParam2 = other.EffectTypeParam2; + } + if (other.EffectTypeParam3.Length != 0) { + EffectTypeParam3 = other.EffectTypeParam3; + } + if (other.EffectTypeParam4.Length != 0) { + EffectTypeParam4 = other.EffectTypeParam4; + } + if (other.EffectTypeParam5.Length != 0) { + EffectTypeParam5 = other.EffectTypeParam5; + } + if (other.EffectTypeParam6.Length != 0) { + EffectTypeParam6 = other.EffectTypeParam6; + } + if (other.EffectTypeParam7.Length != 0) { + EffectTypeParam7 = other.EffectTypeParam7; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Tag = input.ReadString(); + break; + } + case 32: { + TakeEffectLimit = input.ReadInt32(); + break; + } + case 40: { + Remove = input.ReadBool(); + break; + } + case 48: { + CD = input.ReadInt32(); + break; + } + case 56: { + EffectRate = input.ReadInt32(); + break; + } + case 64: { + EffectType = input.ReadInt32(); + break; + } + case 72: { + EffectTypeFirstSubtype = input.ReadInt32(); + break; + } + case 80: { + EffectTypeSecondSubtype = input.ReadInt32(); + break; + } + case 90: { + EffectTypeParam1 = input.ReadString(); + break; + } + case 98: { + EffectTypeParam2 = input.ReadString(); + break; + } + case 106: { + EffectTypeParam3 = input.ReadString(); + break; + } + case 114: { + EffectTypeParam4 = input.ReadString(); + break; + } + case 122: { + EffectTypeParam5 = input.ReadString(); + break; + } + case 130: { + EffectTypeParam6 = input.ReadString(); + break; + } + case 138: { + EffectTypeParam7 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Tag = input.ReadString(); + break; + } + case 32: { + TakeEffectLimit = input.ReadInt32(); + break; + } + case 40: { + Remove = input.ReadBool(); + break; + } + case 48: { + CD = input.ReadInt32(); + break; + } + case 56: { + EffectRate = input.ReadInt32(); + break; + } + case 64: { + EffectType = input.ReadInt32(); + break; + } + case 72: { + EffectTypeFirstSubtype = input.ReadInt32(); + break; + } + case 80: { + EffectTypeSecondSubtype = input.ReadInt32(); + break; + } + case 90: { + EffectTypeParam1 = input.ReadString(); + break; + } + case 98: { + EffectTypeParam2 = input.ReadString(); + break; + } + case 106: { + EffectTypeParam3 = input.ReadString(); + break; + } + case 114: { + EffectTypeParam4 = input.ReadString(); + break; + } + case 122: { + EffectTypeParam5 = input.ReadString(); + break; + } + case 130: { + EffectTypeParam6 = input.ReadString(); + break; + } + case 138: { + EffectTypeParam7 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EndSceneType.cs b/NTR.Common/protos/EndSceneType.cs new file mode 100644 index 0000000..f3d5030 --- /dev/null +++ b/NTR.Common/protos/EndSceneType.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EndSceneType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EndSceneType.proto + public static partial class EndSceneTypeReflection { + + #region Descriptor + /// File descriptor for EndSceneType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EndSceneTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJFbmRTY2VuZVR5cGUucHJvdG8iUAoMRW5kU2NlbmVUeXBlEgoKAmlkGAEg", + "ASgFEg0KBXRoZW1lGAIgASgFEhYKDmVuZF9zY2VuZV9uYW1lGAMgASgJEg0K", + "BWJfZ19tGAQgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EndSceneType), global::Nova.Client.EndSceneType.Parser, new[]{ "Id", "Theme", "EndSceneName", "BGM" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EndSceneType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EndSceneType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EndSceneTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EndSceneType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EndSceneType(EndSceneType other) : this() { + id_ = other.id_; + theme_ = other.theme_; + endSceneName_ = other.endSceneName_; + bGM_ = other.bGM_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EndSceneType Clone() { + return new EndSceneType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 2; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "end_scene_name" field. + public const int EndSceneNameFieldNumber = 3; + private string endSceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndSceneName { + get { return endSceneName_; } + set { + endSceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "b_g_m" field. + public const int BGMFieldNumber = 4; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EndSceneType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EndSceneType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Theme != other.Theme) return false; + if (EndSceneName != other.EndSceneName) return false; + if (BGM != other.BGM) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (EndSceneName.Length != 0) hash ^= EndSceneName.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Theme != 0) { + output.WriteRawTag(16); + output.WriteInt32(Theme); + } + if (EndSceneName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(EndSceneName); + } + if (BGM.Length != 0) { + output.WriteRawTag(34); + output.WriteString(BGM); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Theme != 0) { + output.WriteRawTag(16); + output.WriteInt32(Theme); + } + if (EndSceneName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(EndSceneName); + } + if (BGM.Length != 0) { + output.WriteRawTag(34); + output.WriteString(BGM); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (EndSceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndSceneName); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EndSceneType other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.EndSceneName.Length != 0) { + EndSceneName = other.EndSceneName; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Theme = input.ReadInt32(); + break; + } + case 26: { + EndSceneName = input.ReadString(); + break; + } + case 34: { + BGM = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Theme = input.ReadInt32(); + break; + } + case 26: { + EndSceneName = input.ReadString(); + break; + } + case 34: { + BGM = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EnergyBuy.cs b/NTR.Common/protos/EnergyBuy.cs new file mode 100644 index 0000000..20c2098 --- /dev/null +++ b/NTR.Common/protos/EnergyBuy.cs @@ -0,0 +1,354 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnergyBuy.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EnergyBuy.proto + public static partial class EnergyBuyReflection { + + #region Descriptor + /// File descriptor for EnergyBuy.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnergyBuyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9FbmVyZ3lCdXkucHJvdG8iYgoJRW5lcmd5QnV5EgoKAmlkGAEgASgFEhgK", + "EGN1cnJlbmN5X2l0ZW1faWQYAiABKAUSGQoRY3VycmVuY3lfaXRlbV9xdHkY", + "AyABKAUSFAoMZW5lcmd5X3ZhbHVlGAQgASgFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EnergyBuy), global::Nova.Client.EnergyBuy.Parser, new[]{ "Id", "CurrencyItemId", "CurrencyItemQty", "EnergyValue" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnergyBuy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnergyBuy()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EnergyBuyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnergyBuy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnergyBuy(EnergyBuy other) : this() { + id_ = other.id_; + currencyItemId_ = other.currencyItemId_; + currencyItemQty_ = other.currencyItemQty_; + energyValue_ = other.energyValue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnergyBuy Clone() { + return new EnergyBuy(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "currency_item_id" field. + public const int CurrencyItemIdFieldNumber = 2; + private int currencyItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyItemId { + get { return currencyItemId_; } + set { + currencyItemId_ = value; + } + } + + /// Field number for the "currency_item_qty" field. + public const int CurrencyItemQtyFieldNumber = 3; + private int currencyItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyItemQty { + get { return currencyItemQty_; } + set { + currencyItemQty_ = value; + } + } + + /// Field number for the "energy_value" field. + public const int EnergyValueFieldNumber = 4; + private int energyValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyValue { + get { return energyValue_; } + set { + energyValue_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnergyBuy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnergyBuy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CurrencyItemId != other.CurrencyItemId) return false; + if (CurrencyItemQty != other.CurrencyItemQty) return false; + if (EnergyValue != other.EnergyValue) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CurrencyItemId != 0) hash ^= CurrencyItemId.GetHashCode(); + if (CurrencyItemQty != 0) hash ^= CurrencyItemQty.GetHashCode(); + if (EnergyValue != 0) hash ^= EnergyValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CurrencyItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CurrencyItemId); + } + if (CurrencyItemQty != 0) { + output.WriteRawTag(24); + output.WriteInt32(CurrencyItemQty); + } + if (EnergyValue != 0) { + output.WriteRawTag(32); + output.WriteInt32(EnergyValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CurrencyItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CurrencyItemId); + } + if (CurrencyItemQty != 0) { + output.WriteRawTag(24); + output.WriteInt32(CurrencyItemQty); + } + if (EnergyValue != 0) { + output.WriteRawTag(32); + output.WriteInt32(EnergyValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CurrencyItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemId); + } + if (CurrencyItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemQty); + } + if (EnergyValue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnergyBuy other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CurrencyItemId != 0) { + CurrencyItemId = other.CurrencyItemId; + } + if (other.CurrencyItemQty != 0) { + CurrencyItemQty = other.CurrencyItemQty; + } + if (other.EnergyValue != 0) { + EnergyValue = other.EnergyValue; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CurrencyItemId = input.ReadInt32(); + break; + } + case 24: { + CurrencyItemQty = input.ReadInt32(); + break; + } + case 32: { + EnergyValue = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CurrencyItemId = input.ReadInt32(); + break; + } + case 24: { + CurrencyItemQty = input.ReadInt32(); + break; + } + case 32: { + EnergyValue = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EnumDesc.cs b/NTR.Common/protos/EnumDesc.cs new file mode 100644 index 0000000..094812b --- /dev/null +++ b/NTR.Common/protos/EnumDesc.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnumDesc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EnumDesc.proto + public static partial class EnumDescReflection { + + #region Descriptor + /// File descriptor for EnumDesc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnumDescReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5FbnVtRGVzYy5wcm90byI5CghFbnVtRGVzYxIRCgllbnVtX25hbWUYASAB", + "KAkSDQoFdmFsdWUYAiABKAUSCwoDa2V5GAMgASgJQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EnumDesc), global::Nova.Client.EnumDesc.Parser, new[]{ "EnumName", "Value", "Key" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnumDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnumDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EnumDescReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnumDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnumDesc(EnumDesc other) : this() { + enumName_ = other.enumName_; + value_ = other.value_; + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnumDesc Clone() { + return new EnumDesc(this); + } + + /// Field number for the "enum_name" field. + public const int EnumNameFieldNumber = 1; + private string enumName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnumName { + get { return enumName_; } + set { + enumName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 3; + private string key_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Key { + get { return key_; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnumDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnumDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EnumName != other.EnumName) return false; + if (Value != other.Value) return false; + if (Key != other.Key) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EnumName.Length != 0) hash ^= EnumName.GetHashCode(); + if (Value != 0) hash ^= Value.GetHashCode(); + if (Key.Length != 0) hash ^= Key.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EnumName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(EnumName); + } + if (Value != 0) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (Key.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EnumName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(EnumName); + } + if (Value != 0) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (Key.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EnumName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnumName); + } + if (Value != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnumDesc other) { + if (other == null) { + return; + } + if (other.EnumName.Length != 0) { + EnumName = other.EnumName; + } + if (other.Value != 0) { + Value = other.Value; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + EnumName = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + case 26: { + Key = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + EnumName = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + case 26: { + Key = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Equipment.cs b/NTR.Common/protos/Equipment.cs new file mode 100644 index 0000000..db457b9 --- /dev/null +++ b/NTR.Common/protos/Equipment.cs @@ -0,0 +1,691 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Equipment.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Equipment.proto + public static partial class EquipmentReflection { + + #region Descriptor + /// File descriptor for Equipment.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9FcXVpcG1lbnQucHJvdG8iqwIKCUVxdWlwbWVudBIKCgJpZBgBIAEoBRIM", + "CgRuYW1lGAIgASgJEhYKDmVxdWlwbWVudF90eXBlGAMgASgFEhUKDWF0dHJf", + "Z3JvdXBfaWQYBCABKAUSFAoMZXhwX2dyb3VwX2lkGAUgASgFEhEKCW1heF9s", + "ZXZlbBgGIAEoBRIZChFyYW5kb21fYXR0cl9jb3VudBgHIAEoBRIaChJhdHRy", + "MV91bmxvY2tfbGV2ZWwYCCABKAUSGgoSYXR0cjJfdW5sb2NrX2xldmVsGAkg", + "ASgFEhoKEmF0dHIzX3VubG9ja19sZXZlbBgKIAEoBRIaChJhdHRyNF91bmxv", + "Y2tfbGV2ZWwYCyABKAUSEwoLcHJvdmlkZV9leHAYDCABKAUSDAoEaWNvbhgN", + "IAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Equipment), global::Nova.Client.Equipment.Parser, new[]{ "Id", "Name", "EquipmentType", "AttrGroupId", "ExpGroupId", "MaxLevel", "RandomAttrCount", "Attr1UnlockLevel", "Attr2UnlockLevel", "Attr3UnlockLevel", "Attr4UnlockLevel", "ProvideExp", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Equipment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Equipment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Equipment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Equipment(Equipment other) : this() { + id_ = other.id_; + name_ = other.name_; + equipmentType_ = other.equipmentType_; + attrGroupId_ = other.attrGroupId_; + expGroupId_ = other.expGroupId_; + maxLevel_ = other.maxLevel_; + randomAttrCount_ = other.randomAttrCount_; + attr1UnlockLevel_ = other.attr1UnlockLevel_; + attr2UnlockLevel_ = other.attr2UnlockLevel_; + attr3UnlockLevel_ = other.attr3UnlockLevel_; + attr4UnlockLevel_ = other.attr4UnlockLevel_; + provideExp_ = other.provideExp_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Equipment Clone() { + return new Equipment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "equipment_type" field. + public const int EquipmentTypeFieldNumber = 3; + private int equipmentType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EquipmentType { + get { return equipmentType_; } + set { + equipmentType_ = value; + } + } + + /// Field number for the "attr_group_id" field. + public const int AttrGroupIdFieldNumber = 4; + private int attrGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrGroupId { + get { return attrGroupId_; } + set { + attrGroupId_ = value; + } + } + + /// Field number for the "exp_group_id" field. + public const int ExpGroupIdFieldNumber = 5; + private int expGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExpGroupId { + get { return expGroupId_; } + set { + expGroupId_ = value; + } + } + + /// Field number for the "max_level" field. + public const int MaxLevelFieldNumber = 6; + private int maxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxLevel { + get { return maxLevel_; } + set { + maxLevel_ = value; + } + } + + /// Field number for the "random_attr_count" field. + public const int RandomAttrCountFieldNumber = 7; + private int randomAttrCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RandomAttrCount { + get { return randomAttrCount_; } + set { + randomAttrCount_ = value; + } + } + + /// Field number for the "attr1_unlock_level" field. + public const int Attr1UnlockLevelFieldNumber = 8; + private int attr1UnlockLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attr1UnlockLevel { + get { return attr1UnlockLevel_; } + set { + attr1UnlockLevel_ = value; + } + } + + /// Field number for the "attr2_unlock_level" field. + public const int Attr2UnlockLevelFieldNumber = 9; + private int attr2UnlockLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attr2UnlockLevel { + get { return attr2UnlockLevel_; } + set { + attr2UnlockLevel_ = value; + } + } + + /// Field number for the "attr3_unlock_level" field. + public const int Attr3UnlockLevelFieldNumber = 10; + private int attr3UnlockLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attr3UnlockLevel { + get { return attr3UnlockLevel_; } + set { + attr3UnlockLevel_ = value; + } + } + + /// Field number for the "attr4_unlock_level" field. + public const int Attr4UnlockLevelFieldNumber = 11; + private int attr4UnlockLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attr4UnlockLevel { + get { return attr4UnlockLevel_; } + set { + attr4UnlockLevel_ = value; + } + } + + /// Field number for the "provide_exp" field. + public const int ProvideExpFieldNumber = 12; + private int provideExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProvideExp { + get { return provideExp_; } + set { + provideExp_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 13; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Equipment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Equipment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (EquipmentType != other.EquipmentType) return false; + if (AttrGroupId != other.AttrGroupId) return false; + if (ExpGroupId != other.ExpGroupId) return false; + if (MaxLevel != other.MaxLevel) return false; + if (RandomAttrCount != other.RandomAttrCount) return false; + if (Attr1UnlockLevel != other.Attr1UnlockLevel) return false; + if (Attr2UnlockLevel != other.Attr2UnlockLevel) return false; + if (Attr3UnlockLevel != other.Attr3UnlockLevel) return false; + if (Attr4UnlockLevel != other.Attr4UnlockLevel) return false; + if (ProvideExp != other.ProvideExp) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (EquipmentType != 0) hash ^= EquipmentType.GetHashCode(); + if (AttrGroupId != 0) hash ^= AttrGroupId.GetHashCode(); + if (ExpGroupId != 0) hash ^= ExpGroupId.GetHashCode(); + if (MaxLevel != 0) hash ^= MaxLevel.GetHashCode(); + if (RandomAttrCount != 0) hash ^= RandomAttrCount.GetHashCode(); + if (Attr1UnlockLevel != 0) hash ^= Attr1UnlockLevel.GetHashCode(); + if (Attr2UnlockLevel != 0) hash ^= Attr2UnlockLevel.GetHashCode(); + if (Attr3UnlockLevel != 0) hash ^= Attr3UnlockLevel.GetHashCode(); + if (Attr4UnlockLevel != 0) hash ^= Attr4UnlockLevel.GetHashCode(); + if (ProvideExp != 0) hash ^= ProvideExp.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (EquipmentType != 0) { + output.WriteRawTag(24); + output.WriteInt32(EquipmentType); + } + if (AttrGroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(AttrGroupId); + } + if (ExpGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ExpGroupId); + } + if (MaxLevel != 0) { + output.WriteRawTag(48); + output.WriteInt32(MaxLevel); + } + if (RandomAttrCount != 0) { + output.WriteRawTag(56); + output.WriteInt32(RandomAttrCount); + } + if (Attr1UnlockLevel != 0) { + output.WriteRawTag(64); + output.WriteInt32(Attr1UnlockLevel); + } + if (Attr2UnlockLevel != 0) { + output.WriteRawTag(72); + output.WriteInt32(Attr2UnlockLevel); + } + if (Attr3UnlockLevel != 0) { + output.WriteRawTag(80); + output.WriteInt32(Attr3UnlockLevel); + } + if (Attr4UnlockLevel != 0) { + output.WriteRawTag(88); + output.WriteInt32(Attr4UnlockLevel); + } + if (ProvideExp != 0) { + output.WriteRawTag(96); + output.WriteInt32(ProvideExp); + } + if (Icon.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (EquipmentType != 0) { + output.WriteRawTag(24); + output.WriteInt32(EquipmentType); + } + if (AttrGroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(AttrGroupId); + } + if (ExpGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ExpGroupId); + } + if (MaxLevel != 0) { + output.WriteRawTag(48); + output.WriteInt32(MaxLevel); + } + if (RandomAttrCount != 0) { + output.WriteRawTag(56); + output.WriteInt32(RandomAttrCount); + } + if (Attr1UnlockLevel != 0) { + output.WriteRawTag(64); + output.WriteInt32(Attr1UnlockLevel); + } + if (Attr2UnlockLevel != 0) { + output.WriteRawTag(72); + output.WriteInt32(Attr2UnlockLevel); + } + if (Attr3UnlockLevel != 0) { + output.WriteRawTag(80); + output.WriteInt32(Attr3UnlockLevel); + } + if (Attr4UnlockLevel != 0) { + output.WriteRawTag(88); + output.WriteInt32(Attr4UnlockLevel); + } + if (ProvideExp != 0) { + output.WriteRawTag(96); + output.WriteInt32(ProvideExp); + } + if (Icon.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (EquipmentType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EquipmentType); + } + if (AttrGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrGroupId); + } + if (ExpGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExpGroupId); + } + if (MaxLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxLevel); + } + if (RandomAttrCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RandomAttrCount); + } + if (Attr1UnlockLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attr1UnlockLevel); + } + if (Attr2UnlockLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attr2UnlockLevel); + } + if (Attr3UnlockLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attr3UnlockLevel); + } + if (Attr4UnlockLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attr4UnlockLevel); + } + if (ProvideExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProvideExp); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Equipment other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.EquipmentType != 0) { + EquipmentType = other.EquipmentType; + } + if (other.AttrGroupId != 0) { + AttrGroupId = other.AttrGroupId; + } + if (other.ExpGroupId != 0) { + ExpGroupId = other.ExpGroupId; + } + if (other.MaxLevel != 0) { + MaxLevel = other.MaxLevel; + } + if (other.RandomAttrCount != 0) { + RandomAttrCount = other.RandomAttrCount; + } + if (other.Attr1UnlockLevel != 0) { + Attr1UnlockLevel = other.Attr1UnlockLevel; + } + if (other.Attr2UnlockLevel != 0) { + Attr2UnlockLevel = other.Attr2UnlockLevel; + } + if (other.Attr3UnlockLevel != 0) { + Attr3UnlockLevel = other.Attr3UnlockLevel; + } + if (other.Attr4UnlockLevel != 0) { + Attr4UnlockLevel = other.Attr4UnlockLevel; + } + if (other.ProvideExp != 0) { + ProvideExp = other.ProvideExp; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + EquipmentType = input.ReadInt32(); + break; + } + case 32: { + AttrGroupId = input.ReadInt32(); + break; + } + case 40: { + ExpGroupId = input.ReadInt32(); + break; + } + case 48: { + MaxLevel = input.ReadInt32(); + break; + } + case 56: { + RandomAttrCount = input.ReadInt32(); + break; + } + case 64: { + Attr1UnlockLevel = input.ReadInt32(); + break; + } + case 72: { + Attr2UnlockLevel = input.ReadInt32(); + break; + } + case 80: { + Attr3UnlockLevel = input.ReadInt32(); + break; + } + case 88: { + Attr4UnlockLevel = input.ReadInt32(); + break; + } + case 96: { + ProvideExp = input.ReadInt32(); + break; + } + case 106: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + EquipmentType = input.ReadInt32(); + break; + } + case 32: { + AttrGroupId = input.ReadInt32(); + break; + } + case 40: { + ExpGroupId = input.ReadInt32(); + break; + } + case 48: { + MaxLevel = input.ReadInt32(); + break; + } + case 56: { + RandomAttrCount = input.ReadInt32(); + break; + } + case 64: { + Attr1UnlockLevel = input.ReadInt32(); + break; + } + case 72: { + Attr2UnlockLevel = input.ReadInt32(); + break; + } + case 80: { + Attr3UnlockLevel = input.ReadInt32(); + break; + } + case 88: { + Attr4UnlockLevel = input.ReadInt32(); + break; + } + case 96: { + ProvideExp = input.ReadInt32(); + break; + } + case 106: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EquipmentGroupExp.cs b/NTR.Common/protos/EquipmentGroupExp.cs new file mode 100644 index 0000000..c72100f --- /dev/null +++ b/NTR.Common/protos/EquipmentGroupExp.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipmentGroupExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EquipmentGroupExp.proto + public static partial class EquipmentGroupExpReflection { + + #region Descriptor + /// File descriptor for EquipmentGroupExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentGroupExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdFcXVpcG1lbnRHcm91cEV4cC5wcm90byJlChFFcXVpcG1lbnRHcm91cEV4", + "cBIKCgJpZBgBIAEoBRIQCghncm91cF9pZBgCIAEoBRINCgVsZXZlbBgDIAEo", + "BRIQCghuZWVkX2V4cBgEIAEoBRIRCgl0b3RhbF9leHAYBSABKAVCDqoCC05v", + "dmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentGroupExp), global::Nova.Client.EquipmentGroupExp.Parser, new[]{ "Id", "GroupId", "Level", "NeedExp", "TotalExp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipmentGroupExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipmentGroupExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentGroupExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentGroupExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentGroupExp(EquipmentGroupExp other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + level_ = other.level_; + needExp_ = other.needExp_; + totalExp_ = other.totalExp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentGroupExp Clone() { + return new EquipmentGroupExp(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "need_exp" field. + public const int NeedExpFieldNumber = 4; + private int needExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedExp { + get { return needExp_; } + set { + needExp_ = value; + } + } + + /// Field number for the "total_exp" field. + public const int TotalExpFieldNumber = 5; + private int totalExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TotalExp { + get { return totalExp_; } + set { + totalExp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipmentGroupExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipmentGroupExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Level != other.Level) return false; + if (NeedExp != other.NeedExp) return false; + if (TotalExp != other.TotalExp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (NeedExp != 0) hash ^= NeedExp.GetHashCode(); + if (TotalExp != 0) hash ^= TotalExp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (NeedExp != 0) { + output.WriteRawTag(32); + output.WriteInt32(NeedExp); + } + if (TotalExp != 0) { + output.WriteRawTag(40); + output.WriteInt32(TotalExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (NeedExp != 0) { + output.WriteRawTag(32); + output.WriteInt32(NeedExp); + } + if (TotalExp != 0) { + output.WriteRawTag(40); + output.WriteInt32(TotalExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (NeedExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedExp); + } + if (TotalExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalExp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipmentGroupExp other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.NeedExp != 0) { + NeedExp = other.NeedExp; + } + if (other.TotalExp != 0) { + TotalExp = other.TotalExp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + NeedExp = input.ReadInt32(); + break; + } + case 40: { + TotalExp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + NeedExp = input.ReadInt32(); + break; + } + case 40: { + TotalExp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EquipmentInstance.cs b/NTR.Common/protos/EquipmentInstance.cs new file mode 100644 index 0000000..d63f934 --- /dev/null +++ b/NTR.Common/protos/EquipmentInstance.cs @@ -0,0 +1,917 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipmentInstance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EquipmentInstance.proto + public static partial class EquipmentInstanceReflection { + + #region Descriptor + /// File descriptor for EquipmentInstance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentInstanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdFcXVpcG1lbnRJbnN0YW5jZS5wcm90byLSAwoRRXF1aXBtZW50SW5zdGFu", + "Y2USCgoCaWQYASABKAUSFgoOZXF1aXBtZW50X3R5cGUYAiABKAUSEgoKZGlm", + "ZmljdWx0eRgDIAEoBRIMCgRuYW1lGAQgASgJEgwKBGRlc2MYBSABKAkSFwoP", + "c3VnZ2VzdGVkX3Bvd2VyGAYgASgFEhQKDHByZV9sZXZlbF9pZBgHIAEoBRIW", + "Cg5wcmVfbGV2ZWxfc3RhchgIIAEoBRIYChBuZWVkX3dvcmxkX2NsYXNzGAkg", + "ASgFEhAKCGZsb29yX2lkGAogASgFEhUKDW9uZV9zdGFyX2Rlc2MYCyABKAkS", + "FQoNdHdvX3N0YXJfZGVzYxgMIAEoCRIXCg90aHJlZV9zdGFyX2Rlc2MYDSAB", + "KAkSHwoXb25lX3N0YXJfZW5lcmd5X2NvbnN1bWUYDiABKAUSHwoXdHdvX3N0", + "YXJfZW5lcmd5X2NvbnN1bWUYDyABKAUSIQoZdGhyZWVfc3Rhcl9lbmVyZ3lf", + "Y29uc3VtZRgQIAEoBRIaChJiYXNlX2F3YXJkX3ByZXZpZXcYESABKAkSIAoY", + "cHJldmlld19tb25zdGVyX2dyb3VwX2lkGBIgASgFEgwKBGljb24YEyABKAlC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentInstance), global::Nova.Client.EquipmentInstance.Parser, new[]{ "Id", "EquipmentType", "Difficulty", "Name", "Desc", "SuggestedPower", "PreLevelId", "PreLevelStar", "NeedWorldClass", "FloorId", "OneStarDesc", "TwoStarDesc", "ThreeStarDesc", "OneStarEnergyConsume", "TwoStarEnergyConsume", "ThreeStarEnergyConsume", "BaseAwardPreview", "PreviewMonsterGroupId", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipmentInstance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipmentInstance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentInstanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstance(EquipmentInstance other) : this() { + id_ = other.id_; + equipmentType_ = other.equipmentType_; + difficulty_ = other.difficulty_; + name_ = other.name_; + desc_ = other.desc_; + suggestedPower_ = other.suggestedPower_; + preLevelId_ = other.preLevelId_; + preLevelStar_ = other.preLevelStar_; + needWorldClass_ = other.needWorldClass_; + floorId_ = other.floorId_; + oneStarDesc_ = other.oneStarDesc_; + twoStarDesc_ = other.twoStarDesc_; + threeStarDesc_ = other.threeStarDesc_; + oneStarEnergyConsume_ = other.oneStarEnergyConsume_; + twoStarEnergyConsume_ = other.twoStarEnergyConsume_; + threeStarEnergyConsume_ = other.threeStarEnergyConsume_; + baseAwardPreview_ = other.baseAwardPreview_; + previewMonsterGroupId_ = other.previewMonsterGroupId_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstance Clone() { + return new EquipmentInstance(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "equipment_type" field. + public const int EquipmentTypeFieldNumber = 2; + private int equipmentType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EquipmentType { + get { return equipmentType_; } + set { + equipmentType_ = value; + } + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "suggested_power" field. + public const int SuggestedPowerFieldNumber = 6; + private int suggestedPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuggestedPower { + get { return suggestedPower_; } + set { + suggestedPower_ = value; + } + } + + /// Field number for the "pre_level_id" field. + public const int PreLevelIdFieldNumber = 7; + private int preLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelId { + get { return preLevelId_; } + set { + preLevelId_ = value; + } + } + + /// Field number for the "pre_level_star" field. + public const int PreLevelStarFieldNumber = 8; + private int preLevelStar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelStar { + get { return preLevelStar_; } + set { + preLevelStar_ = value; + } + } + + /// Field number for the "need_world_class" field. + public const int NeedWorldClassFieldNumber = 9; + private int needWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedWorldClass { + get { return needWorldClass_; } + set { + needWorldClass_ = value; + } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 10; + private int floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// Field number for the "one_star_desc" field. + public const int OneStarDescFieldNumber = 11; + private string oneStarDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OneStarDesc { + get { return oneStarDesc_; } + set { + oneStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "two_star_desc" field. + public const int TwoStarDescFieldNumber = 12; + private string twoStarDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TwoStarDesc { + get { return twoStarDesc_; } + set { + twoStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "three_star_desc" field. + public const int ThreeStarDescFieldNumber = 13; + private string threeStarDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ThreeStarDesc { + get { return threeStarDesc_; } + set { + threeStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "one_star_energy_consume" field. + public const int OneStarEnergyConsumeFieldNumber = 14; + private int oneStarEnergyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OneStarEnergyConsume { + get { return oneStarEnergyConsume_; } + set { + oneStarEnergyConsume_ = value; + } + } + + /// Field number for the "two_star_energy_consume" field. + public const int TwoStarEnergyConsumeFieldNumber = 15; + private int twoStarEnergyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TwoStarEnergyConsume { + get { return twoStarEnergyConsume_; } + set { + twoStarEnergyConsume_ = value; + } + } + + /// Field number for the "three_star_energy_consume" field. + public const int ThreeStarEnergyConsumeFieldNumber = 16; + private int threeStarEnergyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThreeStarEnergyConsume { + get { return threeStarEnergyConsume_; } + set { + threeStarEnergyConsume_ = value; + } + } + + /// Field number for the "base_award_preview" field. + public const int BaseAwardPreviewFieldNumber = 17; + private string baseAwardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseAwardPreview { + get { return baseAwardPreview_; } + set { + baseAwardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "preview_monster_group_id" field. + public const int PreviewMonsterGroupIdFieldNumber = 18; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 19; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipmentInstance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipmentInstance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (EquipmentType != other.EquipmentType) return false; + if (Difficulty != other.Difficulty) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (SuggestedPower != other.SuggestedPower) return false; + if (PreLevelId != other.PreLevelId) return false; + if (PreLevelStar != other.PreLevelStar) return false; + if (NeedWorldClass != other.NeedWorldClass) return false; + if (FloorId != other.FloorId) return false; + if (OneStarDesc != other.OneStarDesc) return false; + if (TwoStarDesc != other.TwoStarDesc) return false; + if (ThreeStarDesc != other.ThreeStarDesc) return false; + if (OneStarEnergyConsume != other.OneStarEnergyConsume) return false; + if (TwoStarEnergyConsume != other.TwoStarEnergyConsume) return false; + if (ThreeStarEnergyConsume != other.ThreeStarEnergyConsume) return false; + if (BaseAwardPreview != other.BaseAwardPreview) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (EquipmentType != 0) hash ^= EquipmentType.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (SuggestedPower != 0) hash ^= SuggestedPower.GetHashCode(); + if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode(); + if (PreLevelStar != 0) hash ^= PreLevelStar.GetHashCode(); + if (NeedWorldClass != 0) hash ^= NeedWorldClass.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (OneStarDesc.Length != 0) hash ^= OneStarDesc.GetHashCode(); + if (TwoStarDesc.Length != 0) hash ^= TwoStarDesc.GetHashCode(); + if (ThreeStarDesc.Length != 0) hash ^= ThreeStarDesc.GetHashCode(); + if (OneStarEnergyConsume != 0) hash ^= OneStarEnergyConsume.GetHashCode(); + if (TwoStarEnergyConsume != 0) hash ^= TwoStarEnergyConsume.GetHashCode(); + if (ThreeStarEnergyConsume != 0) hash ^= ThreeStarEnergyConsume.GetHashCode(); + if (BaseAwardPreview.Length != 0) hash ^= BaseAwardPreview.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EquipmentType != 0) { + output.WriteRawTag(16); + output.WriteInt32(EquipmentType); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (PreLevelId != 0) { + output.WriteRawTag(56); + output.WriteInt32(PreLevelId); + } + if (PreLevelStar != 0) { + output.WriteRawTag(64); + output.WriteInt32(PreLevelStar); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(72); + output.WriteInt32(NeedWorldClass); + } + if (FloorId != 0) { + output.WriteRawTag(80); + output.WriteInt32(FloorId); + } + if (OneStarDesc.Length != 0) { + output.WriteRawTag(90); + output.WriteString(OneStarDesc); + } + if (TwoStarDesc.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TwoStarDesc); + } + if (ThreeStarDesc.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ThreeStarDesc); + } + if (OneStarEnergyConsume != 0) { + output.WriteRawTag(112); + output.WriteInt32(OneStarEnergyConsume); + } + if (TwoStarEnergyConsume != 0) { + output.WriteRawTag(120); + output.WriteInt32(TwoStarEnergyConsume); + } + if (ThreeStarEnergyConsume != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ThreeStarEnergyConsume); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(BaseAwardPreview); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Icon.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EquipmentType != 0) { + output.WriteRawTag(16); + output.WriteInt32(EquipmentType); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (PreLevelId != 0) { + output.WriteRawTag(56); + output.WriteInt32(PreLevelId); + } + if (PreLevelStar != 0) { + output.WriteRawTag(64); + output.WriteInt32(PreLevelStar); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(72); + output.WriteInt32(NeedWorldClass); + } + if (FloorId != 0) { + output.WriteRawTag(80); + output.WriteInt32(FloorId); + } + if (OneStarDesc.Length != 0) { + output.WriteRawTag(90); + output.WriteString(OneStarDesc); + } + if (TwoStarDesc.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TwoStarDesc); + } + if (ThreeStarDesc.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ThreeStarDesc); + } + if (OneStarEnergyConsume != 0) { + output.WriteRawTag(112); + output.WriteInt32(OneStarEnergyConsume); + } + if (TwoStarEnergyConsume != 0) { + output.WriteRawTag(120); + output.WriteInt32(TwoStarEnergyConsume); + } + if (ThreeStarEnergyConsume != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ThreeStarEnergyConsume); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(BaseAwardPreview); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Icon.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (EquipmentType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EquipmentType); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (SuggestedPower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SuggestedPower); + } + if (PreLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId); + } + if (PreLevelStar != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelStar); + } + if (NeedWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedWorldClass); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId); + } + if (OneStarDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OneStarDesc); + } + if (TwoStarDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TwoStarDesc); + } + if (ThreeStarDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ThreeStarDesc); + } + if (OneStarEnergyConsume != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneStarEnergyConsume); + } + if (TwoStarEnergyConsume != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TwoStarEnergyConsume); + } + if (ThreeStarEnergyConsume != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThreeStarEnergyConsume); + } + if (BaseAwardPreview.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAwardPreview); + } + if (PreviewMonsterGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipmentInstance other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.EquipmentType != 0) { + EquipmentType = other.EquipmentType; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.SuggestedPower != 0) { + SuggestedPower = other.SuggestedPower; + } + if (other.PreLevelId != 0) { + PreLevelId = other.PreLevelId; + } + if (other.PreLevelStar != 0) { + PreLevelStar = other.PreLevelStar; + } + if (other.NeedWorldClass != 0) { + NeedWorldClass = other.NeedWorldClass; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.OneStarDesc.Length != 0) { + OneStarDesc = other.OneStarDesc; + } + if (other.TwoStarDesc.Length != 0) { + TwoStarDesc = other.TwoStarDesc; + } + if (other.ThreeStarDesc.Length != 0) { + ThreeStarDesc = other.ThreeStarDesc; + } + if (other.OneStarEnergyConsume != 0) { + OneStarEnergyConsume = other.OneStarEnergyConsume; + } + if (other.TwoStarEnergyConsume != 0) { + TwoStarEnergyConsume = other.TwoStarEnergyConsume; + } + if (other.ThreeStarEnergyConsume != 0) { + ThreeStarEnergyConsume = other.ThreeStarEnergyConsume; + } + if (other.BaseAwardPreview.Length != 0) { + BaseAwardPreview = other.BaseAwardPreview; + } + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + EquipmentType = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + PreLevelId = input.ReadInt32(); + break; + } + case 64: { + PreLevelStar = input.ReadInt32(); + break; + } + case 72: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 80: { + FloorId = input.ReadInt32(); + break; + } + case 90: { + OneStarDesc = input.ReadString(); + break; + } + case 98: { + TwoStarDesc = input.ReadString(); + break; + } + case 106: { + ThreeStarDesc = input.ReadString(); + break; + } + case 112: { + OneStarEnergyConsume = input.ReadInt32(); + break; + } + case 120: { + TwoStarEnergyConsume = input.ReadInt32(); + break; + } + case 128: { + ThreeStarEnergyConsume = input.ReadInt32(); + break; + } + case 138: { + BaseAwardPreview = input.ReadString(); + break; + } + case 144: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 154: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + EquipmentType = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + PreLevelId = input.ReadInt32(); + break; + } + case 64: { + PreLevelStar = input.ReadInt32(); + break; + } + case 72: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 80: { + FloorId = input.ReadInt32(); + break; + } + case 90: { + OneStarDesc = input.ReadString(); + break; + } + case 98: { + TwoStarDesc = input.ReadString(); + break; + } + case 106: { + ThreeStarDesc = input.ReadString(); + break; + } + case 112: { + OneStarEnergyConsume = input.ReadInt32(); + break; + } + case 120: { + TwoStarEnergyConsume = input.ReadInt32(); + break; + } + case 128: { + ThreeStarEnergyConsume = input.ReadInt32(); + break; + } + case 138: { + BaseAwardPreview = input.ReadString(); + break; + } + case 144: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 154: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EquipmentInstanceFloor.cs b/NTR.Common/protos/EquipmentInstanceFloor.cs new file mode 100644 index 0000000..3665c7c --- /dev/null +++ b/NTR.Common/protos/EquipmentInstanceFloor.cs @@ -0,0 +1,842 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipmentInstanceFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EquipmentInstanceFloor.proto + public static partial class EquipmentInstanceFloorReflection { + + #region Descriptor + /// File descriptor for EquipmentInstanceFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentInstanceFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxFcXVpcG1lbnRJbnN0YW5jZUZsb29yLnByb3RvIq8DChZFcXVpcG1lbnRJ", + "bnN0YW5jZUZsb29yEgoKAmlkGAEgASgFEhIKCnNjZW5lX25hbWUYAiABKAkS", + "GgoSY29uZmlnX3ByZWZhYl9uYW1lGAMgASgJEg0KBXRoZW1lGAQgASgFEg0K", + "BWJfZ19tGAUgASgJEhsKE2xlYXZlX3RyaWdnZXJfZXZlbnQYBiABKAkSEgoK", + "bW9uc3Rlcl9pZBgHIAEoBRIaChJvbmVfc3Rhcl9jb25kaXRpb24YCCABKAUS", + "GgoSdHdvX3N0YXJfY29uZGl0aW9uGAkgASgFEhwKFHRocmVlX3N0YXJfY29u", + "ZGl0aW9uGAogASgFEhgKEGxldmVsX3RvdGFsX3RpbWUYCyABKAUSGwoTdGlt", + "ZV9lbmRfc2V0dGxlbWVudBgMIAEoCBIbChNzdGFyX2NvbmRpdGlvbl90eXBl", + "GA0gASgFEhIKCm1vbnN0ZXJfbHYYDiABKAUSHAoUZHJvcF9vYmplY3RfZ3Jv", + "dXBfaWQYDyABKAUSGAoQZHJvcF9vYmplY3RfcmF0ZRgQIAEoBRIUCgxkcm9w", + "X21heF9udW0YESABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentInstanceFloor), global::Nova.Client.EquipmentInstanceFloor.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent", "MonsterId", "OneStarCondition", "TwoStarCondition", "ThreeStarCondition", "LevelTotalTime", "TimeEndSettlement", "StarConditionType", "MonsterLv", "DropObjectGroupId", "DropObjectRate", "DropMaxNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipmentInstanceFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipmentInstanceFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentInstanceFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstanceFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstanceFloor(EquipmentInstanceFloor other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + monsterId_ = other.monsterId_; + oneStarCondition_ = other.oneStarCondition_; + twoStarCondition_ = other.twoStarCondition_; + threeStarCondition_ = other.threeStarCondition_; + levelTotalTime_ = other.levelTotalTime_; + timeEndSettlement_ = other.timeEndSettlement_; + starConditionType_ = other.starConditionType_; + monsterLv_ = other.monsterLv_; + dropObjectGroupId_ = other.dropObjectGroupId_; + dropObjectRate_ = other.dropObjectRate_; + dropMaxNum_ = other.dropMaxNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstanceFloor Clone() { + return new EquipmentInstanceFloor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "scene_name" field. + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_prefab_name" field. + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "b_g_m" field. + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "leave_trigger_event" field. + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 7; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "one_star_condition" field. + public const int OneStarConditionFieldNumber = 8; + private int oneStarCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OneStarCondition { + get { return oneStarCondition_; } + set { + oneStarCondition_ = value; + } + } + + /// Field number for the "two_star_condition" field. + public const int TwoStarConditionFieldNumber = 9; + private int twoStarCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TwoStarCondition { + get { return twoStarCondition_; } + set { + twoStarCondition_ = value; + } + } + + /// Field number for the "three_star_condition" field. + public const int ThreeStarConditionFieldNumber = 10; + private int threeStarCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThreeStarCondition { + get { return threeStarCondition_; } + set { + threeStarCondition_ = value; + } + } + + /// Field number for the "level_total_time" field. + public const int LevelTotalTimeFieldNumber = 11; + private int levelTotalTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTotalTime { + get { return levelTotalTime_; } + set { + levelTotalTime_ = value; + } + } + + /// Field number for the "time_end_settlement" field. + public const int TimeEndSettlementFieldNumber = 12; + private bool timeEndSettlement_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool TimeEndSettlement { + get { return timeEndSettlement_; } + set { + timeEndSettlement_ = value; + } + } + + /// Field number for the "star_condition_type" field. + public const int StarConditionTypeFieldNumber = 13; + private int starConditionType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StarConditionType { + get { return starConditionType_; } + set { + starConditionType_ = value; + } + } + + /// Field number for the "monster_lv" field. + public const int MonsterLvFieldNumber = 14; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + /// Field number for the "drop_object_group_id" field. + public const int DropObjectGroupIdFieldNumber = 15; + private int dropObjectGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropObjectGroupId { + get { return dropObjectGroupId_; } + set { + dropObjectGroupId_ = value; + } + } + + /// Field number for the "drop_object_rate" field. + public const int DropObjectRateFieldNumber = 16; + private int dropObjectRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropObjectRate { + get { return dropObjectRate_; } + set { + dropObjectRate_ = value; + } + } + + /// Field number for the "drop_max_num" field. + public const int DropMaxNumFieldNumber = 17; + private int dropMaxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropMaxNum { + get { return dropMaxNum_; } + set { + dropMaxNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipmentInstanceFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipmentInstanceFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + if (MonsterId != other.MonsterId) return false; + if (OneStarCondition != other.OneStarCondition) return false; + if (TwoStarCondition != other.TwoStarCondition) return false; + if (ThreeStarCondition != other.ThreeStarCondition) return false; + if (LevelTotalTime != other.LevelTotalTime) return false; + if (TimeEndSettlement != other.TimeEndSettlement) return false; + if (StarConditionType != other.StarConditionType) return false; + if (MonsterLv != other.MonsterLv) return false; + if (DropObjectGroupId != other.DropObjectGroupId) return false; + if (DropObjectRate != other.DropObjectRate) return false; + if (DropMaxNum != other.DropMaxNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (OneStarCondition != 0) hash ^= OneStarCondition.GetHashCode(); + if (TwoStarCondition != 0) hash ^= TwoStarCondition.GetHashCode(); + if (ThreeStarCondition != 0) hash ^= ThreeStarCondition.GetHashCode(); + if (LevelTotalTime != 0) hash ^= LevelTotalTime.GetHashCode(); + if (TimeEndSettlement != false) hash ^= TimeEndSettlement.GetHashCode(); + if (StarConditionType != 0) hash ^= StarConditionType.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (DropObjectGroupId != 0) hash ^= DropObjectGroupId.GetHashCode(); + if (DropObjectRate != 0) hash ^= DropObjectRate.GetHashCode(); + if (DropMaxNum != 0) hash ^= DropMaxNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterId != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterId); + } + if (OneStarCondition != 0) { + output.WriteRawTag(64); + output.WriteInt32(OneStarCondition); + } + if (TwoStarCondition != 0) { + output.WriteRawTag(72); + output.WriteInt32(TwoStarCondition); + } + if (ThreeStarCondition != 0) { + output.WriteRawTag(80); + output.WriteInt32(ThreeStarCondition); + } + if (LevelTotalTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(LevelTotalTime); + } + if (TimeEndSettlement != false) { + output.WriteRawTag(96); + output.WriteBool(TimeEndSettlement); + } + if (StarConditionType != 0) { + output.WriteRawTag(104); + output.WriteInt32(StarConditionType); + } + if (MonsterLv != 0) { + output.WriteRawTag(112); + output.WriteInt32(MonsterLv); + } + if (DropObjectGroupId != 0) { + output.WriteRawTag(120); + output.WriteInt32(DropObjectGroupId); + } + if (DropObjectRate != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(DropObjectRate); + } + if (DropMaxNum != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(DropMaxNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterId != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterId); + } + if (OneStarCondition != 0) { + output.WriteRawTag(64); + output.WriteInt32(OneStarCondition); + } + if (TwoStarCondition != 0) { + output.WriteRawTag(72); + output.WriteInt32(TwoStarCondition); + } + if (ThreeStarCondition != 0) { + output.WriteRawTag(80); + output.WriteInt32(ThreeStarCondition); + } + if (LevelTotalTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(LevelTotalTime); + } + if (TimeEndSettlement != false) { + output.WriteRawTag(96); + output.WriteBool(TimeEndSettlement); + } + if (StarConditionType != 0) { + output.WriteRawTag(104); + output.WriteInt32(StarConditionType); + } + if (MonsterLv != 0) { + output.WriteRawTag(112); + output.WriteInt32(MonsterLv); + } + if (DropObjectGroupId != 0) { + output.WriteRawTag(120); + output.WriteInt32(DropObjectGroupId); + } + if (DropObjectRate != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(DropObjectRate); + } + if (DropMaxNum != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(DropMaxNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (OneStarCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneStarCondition); + } + if (TwoStarCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TwoStarCondition); + } + if (ThreeStarCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThreeStarCondition); + } + if (LevelTotalTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTotalTime); + } + if (TimeEndSettlement != false) { + size += 1 + 1; + } + if (StarConditionType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StarConditionType); + } + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (DropObjectGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropObjectGroupId); + } + if (DropObjectRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DropObjectRate); + } + if (DropMaxNum != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DropMaxNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipmentInstanceFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.OneStarCondition != 0) { + OneStarCondition = other.OneStarCondition; + } + if (other.TwoStarCondition != 0) { + TwoStarCondition = other.TwoStarCondition; + } + if (other.ThreeStarCondition != 0) { + ThreeStarCondition = other.ThreeStarCondition; + } + if (other.LevelTotalTime != 0) { + LevelTotalTime = other.LevelTotalTime; + } + if (other.TimeEndSettlement != false) { + TimeEndSettlement = other.TimeEndSettlement; + } + if (other.StarConditionType != 0) { + StarConditionType = other.StarConditionType; + } + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + if (other.DropObjectGroupId != 0) { + DropObjectGroupId = other.DropObjectGroupId; + } + if (other.DropObjectRate != 0) { + DropObjectRate = other.DropObjectRate; + } + if (other.DropMaxNum != 0) { + DropMaxNum = other.DropMaxNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterId = input.ReadInt32(); + break; + } + case 64: { + OneStarCondition = input.ReadInt32(); + break; + } + case 72: { + TwoStarCondition = input.ReadInt32(); + break; + } + case 80: { + ThreeStarCondition = input.ReadInt32(); + break; + } + case 88: { + LevelTotalTime = input.ReadInt32(); + break; + } + case 96: { + TimeEndSettlement = input.ReadBool(); + break; + } + case 104: { + StarConditionType = input.ReadInt32(); + break; + } + case 112: { + MonsterLv = input.ReadInt32(); + break; + } + case 120: { + DropObjectGroupId = input.ReadInt32(); + break; + } + case 128: { + DropObjectRate = input.ReadInt32(); + break; + } + case 136: { + DropMaxNum = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterId = input.ReadInt32(); + break; + } + case 64: { + OneStarCondition = input.ReadInt32(); + break; + } + case 72: { + TwoStarCondition = input.ReadInt32(); + break; + } + case 80: { + ThreeStarCondition = input.ReadInt32(); + break; + } + case 88: { + LevelTotalTime = input.ReadInt32(); + break; + } + case 96: { + TimeEndSettlement = input.ReadBool(); + break; + } + case 104: { + StarConditionType = input.ReadInt32(); + break; + } + case 112: { + MonsterLv = input.ReadInt32(); + break; + } + case 120: { + DropObjectGroupId = input.ReadInt32(); + break; + } + case 128: { + DropObjectRate = input.ReadInt32(); + break; + } + case 136: { + DropMaxNum = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EquipmentInstanceType.cs b/NTR.Common/protos/EquipmentInstanceType.cs new file mode 100644 index 0000000..8fcbc97 --- /dev/null +++ b/NTR.Common/protos/EquipmentInstanceType.cs @@ -0,0 +1,589 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipmentInstanceType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EquipmentInstanceType.proto + public static partial class EquipmentInstanceTypeReflection { + + #region Descriptor + /// File descriptor for EquipmentInstanceType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentInstanceTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtFcXVpcG1lbnRJbnN0YW5jZVR5cGUucHJvdG8i3AEKFUVxdWlwbWVudElu", + "c3RhbmNlVHlwZRIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEhQKDG1haW5f", + "bGluZV9pZBgDIAEoBRIZChF3b3JsZF9jbGFzc19sZXZlbBgEIAEoBRIQCghv", + "cGVuX2RheRgFIAMoBRIVCg1vcGVuX2RheV9kZXNjGAYgASgJEg8KB2VwaXNv", + "ZGUYByABKAkSDQoFaW1hZ2UYCCABKAkSDAoEc29ydBgJIAEoBRISCgpob3df", + "cmV3YXJkGAogAygFEg0KBWVfZV90GAsgAygFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentInstanceType), global::Nova.Client.EquipmentInstanceType.Parser, new[]{ "Id", "Name", "MainLineId", "WorldClassLevel", "OpenDay", "OpenDayDesc", "Episode", "Image", "Sort", "HowReward", "EET" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipmentInstanceType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipmentInstanceType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentInstanceTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstanceType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstanceType(EquipmentInstanceType other) : this() { + id_ = other.id_; + name_ = other.name_; + mainLineId_ = other.mainLineId_; + worldClassLevel_ = other.worldClassLevel_; + openDay_ = other.openDay_.Clone(); + openDayDesc_ = other.openDayDesc_; + episode_ = other.episode_; + image_ = other.image_; + sort_ = other.sort_; + howReward_ = other.howReward_.Clone(); + eET_ = other.eET_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentInstanceType Clone() { + return new EquipmentInstanceType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "main_line_id" field. + public const int MainLineIdFieldNumber = 3; + private int mainLineId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainLineId { + get { return mainLineId_; } + set { + mainLineId_ = value; + } + } + + /// Field number for the "world_class_level" field. + public const int WorldClassLevelFieldNumber = 4; + private int worldClassLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClassLevel { + get { return worldClassLevel_; } + set { + worldClassLevel_ = value; + } + } + + /// Field number for the "open_day" field. + public const int OpenDayFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_openDay_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField openDay_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OpenDay { + get { return openDay_; } + } + + /// Field number for the "open_day_desc" field. + public const int OpenDayDescFieldNumber = 6; + private string openDayDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenDayDesc { + get { return openDayDesc_; } + set { + openDayDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "episode" field. + public const int EpisodeFieldNumber = 7; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 8; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 9; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "how_reward" field. + public const int HowRewardFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_howReward_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField howReward_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HowReward { + get { return howReward_; } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_eET_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField eET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EET { + get { return eET_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipmentInstanceType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipmentInstanceType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MainLineId != other.MainLineId) return false; + if (WorldClassLevel != other.WorldClassLevel) return false; + if(!openDay_.Equals(other.openDay_)) return false; + if (OpenDayDesc != other.OpenDayDesc) return false; + if (Episode != other.Episode) return false; + if (Image != other.Image) return false; + if (Sort != other.Sort) return false; + if(!howReward_.Equals(other.howReward_)) return false; + if(!eET_.Equals(other.eET_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (MainLineId != 0) hash ^= MainLineId.GetHashCode(); + if (WorldClassLevel != 0) hash ^= WorldClassLevel.GetHashCode(); + hash ^= openDay_.GetHashCode(); + if (OpenDayDesc.Length != 0) hash ^= OpenDayDesc.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + hash ^= howReward_.GetHashCode(); + hash ^= eET_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (MainLineId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MainLineId); + } + if (WorldClassLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(WorldClassLevel); + } + openDay_.WriteTo(output, _repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + output.WriteRawTag(50); + output.WriteString(OpenDayDesc); + } + if (Episode.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Image); + } + if (Sort != 0) { + output.WriteRawTag(72); + output.WriteInt32(Sort); + } + howReward_.WriteTo(output, _repeated_howReward_codec); + eET_.WriteTo(output, _repeated_eET_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (MainLineId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MainLineId); + } + if (WorldClassLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(WorldClassLevel); + } + openDay_.WriteTo(ref output, _repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + output.WriteRawTag(50); + output.WriteString(OpenDayDesc); + } + if (Episode.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Image); + } + if (Sort != 0) { + output.WriteRawTag(72); + output.WriteInt32(Sort); + } + howReward_.WriteTo(ref output, _repeated_howReward_codec); + eET_.WriteTo(ref output, _repeated_eET_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (MainLineId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainLineId); + } + if (WorldClassLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClassLevel); + } + size += openDay_.CalculateSize(_repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenDayDesc); + } + if (Episode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Image.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Image); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + size += howReward_.CalculateSize(_repeated_howReward_codec); + size += eET_.CalculateSize(_repeated_eET_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipmentInstanceType other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.MainLineId != 0) { + MainLineId = other.MainLineId; + } + if (other.WorldClassLevel != 0) { + WorldClassLevel = other.WorldClassLevel; + } + openDay_.Add(other.openDay_); + if (other.OpenDayDesc.Length != 0) { + OpenDayDesc = other.OpenDayDesc; + } + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + howReward_.Add(other.howReward_); + eET_.Add(other.eET_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MainLineId = input.ReadInt32(); + break; + } + case 32: { + WorldClassLevel = input.ReadInt32(); + break; + } + case 42: + case 40: { + openDay_.AddEntriesFrom(input, _repeated_openDay_codec); + break; + } + case 50: { + OpenDayDesc = input.ReadString(); + break; + } + case 58: { + Episode = input.ReadString(); + break; + } + case 66: { + Image = input.ReadString(); + break; + } + case 72: { + Sort = input.ReadInt32(); + break; + } + case 82: + case 80: { + howReward_.AddEntriesFrom(input, _repeated_howReward_codec); + break; + } + case 90: + case 88: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MainLineId = input.ReadInt32(); + break; + } + case 32: { + WorldClassLevel = input.ReadInt32(); + break; + } + case 42: + case 40: { + openDay_.AddEntriesFrom(ref input, _repeated_openDay_codec); + break; + } + case 50: { + OpenDayDesc = input.ReadString(); + break; + } + case 58: { + Episode = input.ReadString(); + break; + } + case 66: { + Image = input.ReadString(); + break; + } + case 72: { + Sort = input.ReadInt32(); + break; + } + case 82: + case 80: { + howReward_.AddEntriesFrom(ref input, _repeated_howReward_codec); + break; + } + case 90: + case 88: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EquipmentItemExp.cs b/NTR.Common/protos/EquipmentItemExp.cs new file mode 100644 index 0000000..5c54e76 --- /dev/null +++ b/NTR.Common/protos/EquipmentItemExp.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipmentItemExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EquipmentItemExp.proto + public static partial class EquipmentItemExpReflection { + + #region Descriptor + /// File descriptor for EquipmentItemExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentItemExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZFcXVpcG1lbnRJdGVtRXhwLnByb3RvIjwKEEVxdWlwbWVudEl0ZW1FeHAS", + "CgoCaWQYASABKAUSDwoHaXRlbV9pZBgCIAEoBRILCgNleHAYAyABKAVCDqoC", + "C05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentItemExp), global::Nova.Client.EquipmentItemExp.Parser, new[]{ "Id", "ItemId", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipmentItemExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipmentItemExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentItemExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentItemExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentItemExp(EquipmentItemExp other) : this() { + id_ = other.id_; + itemId_ = other.itemId_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentItemExp Clone() { + return new EquipmentItemExp(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 2; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 3; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipmentItemExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipmentItemExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ItemId != other.ItemId) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipmentItemExp other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EquipmentRandomAttribute.cs b/NTR.Common/protos/EquipmentRandomAttribute.cs new file mode 100644 index 0000000..2c5b296 --- /dev/null +++ b/NTR.Common/protos/EquipmentRandomAttribute.cs @@ -0,0 +1,467 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipmentRandomAttribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EquipmentRandomAttribute.proto + public static partial class EquipmentRandomAttributeReflection { + + #region Descriptor + /// File descriptor for EquipmentRandomAttribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipmentRandomAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5FcXVpcG1lbnRSYW5kb21BdHRyaWJ1dGUucHJvdG8iwgEKGEVxdWlwbWVu", + "dFJhbmRvbUF0dHJpYnV0ZRIKCgJpZBgBIAEoBRIUCgxlbGVtZW50X3R5cGUY", + "AiABKAUSFwoPYXR0cl9ncm91cF90eXBlGAMgASgFEhUKDWF0dHJfdmFsdWVf", + "aWQYBCABKAUSEQoJYXR0cl90eXBlGAUgASgFEh8KF2F0dHJfdHlwZV9maXJz", + "dF9zdWJ0eXBlGAYgASgFEiAKGGF0dHJfdHlwZV9zZWNvbmRfc3VidHlwZRgH", + "IAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentRandomAttribute), global::Nova.Client.EquipmentRandomAttribute.Parser, new[]{ "Id", "ElementType", "AttrGroupType", "AttrValueId", "AttrType", "AttrTypeFirstSubtype", "AttrTypeSecondSubtype" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipmentRandomAttribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipmentRandomAttribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EquipmentRandomAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentRandomAttribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentRandomAttribute(EquipmentRandomAttribute other) : this() { + id_ = other.id_; + elementType_ = other.elementType_; + attrGroupType_ = other.attrGroupType_; + attrValueId_ = other.attrValueId_; + attrType_ = other.attrType_; + attrTypeFirstSubtype_ = other.attrTypeFirstSubtype_; + attrTypeSecondSubtype_ = other.attrTypeSecondSubtype_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipmentRandomAttribute Clone() { + return new EquipmentRandomAttribute(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "element_type" field. + public const int ElementTypeFieldNumber = 2; + private int elementType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ElementType { + get { return elementType_; } + set { + elementType_ = value; + } + } + + /// Field number for the "attr_group_type" field. + public const int AttrGroupTypeFieldNumber = 3; + private int attrGroupType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrGroupType { + get { return attrGroupType_; } + set { + attrGroupType_ = value; + } + } + + /// Field number for the "attr_value_id" field. + public const int AttrValueIdFieldNumber = 4; + private int attrValueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrValueId { + get { return attrValueId_; } + set { + attrValueId_ = value; + } + } + + /// Field number for the "attr_type" field. + public const int AttrTypeFieldNumber = 5; + private int attrType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrType { + get { return attrType_; } + set { + attrType_ = value; + } + } + + /// Field number for the "attr_type_first_subtype" field. + public const int AttrTypeFirstSubtypeFieldNumber = 6; + private int attrTypeFirstSubtype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrTypeFirstSubtype { + get { return attrTypeFirstSubtype_; } + set { + attrTypeFirstSubtype_ = value; + } + } + + /// Field number for the "attr_type_second_subtype" field. + public const int AttrTypeSecondSubtypeFieldNumber = 7; + private int attrTypeSecondSubtype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttrTypeSecondSubtype { + get { return attrTypeSecondSubtype_; } + set { + attrTypeSecondSubtype_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipmentRandomAttribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipmentRandomAttribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ElementType != other.ElementType) return false; + if (AttrGroupType != other.AttrGroupType) return false; + if (AttrValueId != other.AttrValueId) return false; + if (AttrType != other.AttrType) return false; + if (AttrTypeFirstSubtype != other.AttrTypeFirstSubtype) return false; + if (AttrTypeSecondSubtype != other.AttrTypeSecondSubtype) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ElementType != 0) hash ^= ElementType.GetHashCode(); + if (AttrGroupType != 0) hash ^= AttrGroupType.GetHashCode(); + if (AttrValueId != 0) hash ^= AttrValueId.GetHashCode(); + if (AttrType != 0) hash ^= AttrType.GetHashCode(); + if (AttrTypeFirstSubtype != 0) hash ^= AttrTypeFirstSubtype.GetHashCode(); + if (AttrTypeSecondSubtype != 0) hash ^= AttrTypeSecondSubtype.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ElementType != 0) { + output.WriteRawTag(16); + output.WriteInt32(ElementType); + } + if (AttrGroupType != 0) { + output.WriteRawTag(24); + output.WriteInt32(AttrGroupType); + } + if (AttrValueId != 0) { + output.WriteRawTag(32); + output.WriteInt32(AttrValueId); + } + if (AttrType != 0) { + output.WriteRawTag(40); + output.WriteInt32(AttrType); + } + if (AttrTypeFirstSubtype != 0) { + output.WriteRawTag(48); + output.WriteInt32(AttrTypeFirstSubtype); + } + if (AttrTypeSecondSubtype != 0) { + output.WriteRawTag(56); + output.WriteInt32(AttrTypeSecondSubtype); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ElementType != 0) { + output.WriteRawTag(16); + output.WriteInt32(ElementType); + } + if (AttrGroupType != 0) { + output.WriteRawTag(24); + output.WriteInt32(AttrGroupType); + } + if (AttrValueId != 0) { + output.WriteRawTag(32); + output.WriteInt32(AttrValueId); + } + if (AttrType != 0) { + output.WriteRawTag(40); + output.WriteInt32(AttrType); + } + if (AttrTypeFirstSubtype != 0) { + output.WriteRawTag(48); + output.WriteInt32(AttrTypeFirstSubtype); + } + if (AttrTypeSecondSubtype != 0) { + output.WriteRawTag(56); + output.WriteInt32(AttrTypeSecondSubtype); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ElementType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElementType); + } + if (AttrGroupType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrGroupType); + } + if (AttrValueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrValueId); + } + if (AttrType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrType); + } + if (AttrTypeFirstSubtype != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrTypeFirstSubtype); + } + if (AttrTypeSecondSubtype != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttrTypeSecondSubtype); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipmentRandomAttribute other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ElementType != 0) { + ElementType = other.ElementType; + } + if (other.AttrGroupType != 0) { + AttrGroupType = other.AttrGroupType; + } + if (other.AttrValueId != 0) { + AttrValueId = other.AttrValueId; + } + if (other.AttrType != 0) { + AttrType = other.AttrType; + } + if (other.AttrTypeFirstSubtype != 0) { + AttrTypeFirstSubtype = other.AttrTypeFirstSubtype; + } + if (other.AttrTypeSecondSubtype != 0) { + AttrTypeSecondSubtype = other.AttrTypeSecondSubtype; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ElementType = input.ReadInt32(); + break; + } + case 24: { + AttrGroupType = input.ReadInt32(); + break; + } + case 32: { + AttrValueId = input.ReadInt32(); + break; + } + case 40: { + AttrType = input.ReadInt32(); + break; + } + case 48: { + AttrTypeFirstSubtype = input.ReadInt32(); + break; + } + case 56: { + AttrTypeSecondSubtype = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ElementType = input.ReadInt32(); + break; + } + case 24: { + AttrGroupType = input.ReadInt32(); + break; + } + case 32: { + AttrValueId = input.ReadInt32(); + break; + } + case 40: { + AttrType = input.ReadInt32(); + break; + } + case 48: { + AttrTypeFirstSubtype = input.ReadInt32(); + break; + } + case 56: { + AttrTypeSecondSubtype = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ErrorCode.cs b/NTR.Common/protos/ErrorCode.cs new file mode 100644 index 0000000..51569d8 --- /dev/null +++ b/NTR.Common/protos/ErrorCode.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ErrorCode.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ErrorCode.proto + public static partial class ErrorCodeReflection { + + #region Descriptor + /// File descriptor for ErrorCode.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ErrorCodeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9FcnJvckNvZGUucHJvdG8iSwoJRXJyb3JDb2RlEgoKAmlkGAEgASgFEg0K", + "BXRpdGxlGAIgASgJEhAKCHRlbXBsYXRlGAMgASgJEhEKCXNob3dfdHlwZRgE", + "IAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ErrorCode), global::Nova.Client.ErrorCode.Parser, new[]{ "Id", "Title", "Template", "ShowType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ErrorCode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorCode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ErrorCodeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCode(ErrorCode other) : this() { + id_ = other.id_; + title_ = other.title_; + template_ = other.template_; + showType_ = other.showType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCode Clone() { + return new ErrorCode(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "template" field. + public const int TemplateFieldNumber = 3; + private string template_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Template { + get { return template_; } + set { + template_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "show_type" field. + public const int ShowTypeFieldNumber = 4; + private int showType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowType { + get { return showType_; } + set { + showType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorCode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorCode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Template != other.Template) return false; + if (ShowType != other.ShowType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Template.Length != 0) hash ^= Template.GetHashCode(); + if (ShowType != 0) hash ^= ShowType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Template.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Template); + } + if (ShowType != 0) { + output.WriteRawTag(32); + output.WriteInt32(ShowType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Template.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Template); + } + if (ShowType != 0) { + output.WriteRawTag(32); + output.WriteInt32(ShowType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Template.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Template); + } + if (ShowType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorCode other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Template.Length != 0) { + Template = other.Template; + } + if (other.ShowType != 0) { + ShowType = other.ShowType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Template = input.ReadString(); + break; + } + case 32: { + ShowType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Template = input.ReadString(); + break; + } + case 32: { + ShowType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EventOptions.cs b/NTR.Common/protos/EventOptions.cs new file mode 100644 index 0000000..2287cb9 --- /dev/null +++ b/NTR.Common/protos/EventOptions.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EventOptions.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EventOptions.proto + public static partial class EventOptionsReflection { + + #region Descriptor + /// File descriptor for EventOptions.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EventOptionsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJFdmVudE9wdGlvbnMucHJvdG8iRQoMRXZlbnRPcHRpb25zEgoKAmlkGAEg", + "ASgFEgwKBGRlc2MYAiABKAkSGwoTaWdub3JlX2ludGVyX2FjdGl2ZRgDIAEo", + "CEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EventOptions), global::Nova.Client.EventOptions.Parser, new[]{ "Id", "Desc", "IgnoreInterActive" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EventOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EventOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EventOptionsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventOptions(EventOptions other) : this() { + id_ = other.id_; + desc_ = other.desc_; + ignoreInterActive_ = other.ignoreInterActive_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventOptions Clone() { + return new EventOptions(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ignore_inter_active" field. + public const int IgnoreInterActiveFieldNumber = 3; + private bool ignoreInterActive_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreInterActive { + get { return ignoreInterActive_; } + set { + ignoreInterActive_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EventOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EventOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if (IgnoreInterActive != other.IgnoreInterActive) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (IgnoreInterActive != false) hash ^= IgnoreInterActive.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Desc.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (IgnoreInterActive != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreInterActive); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Desc.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (IgnoreInterActive != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreInterActive); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (IgnoreInterActive != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EventOptions other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.IgnoreInterActive != false) { + IgnoreInterActive = other.IgnoreInterActive; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IgnoreInterActive = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IgnoreInterActive = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EventOptionsRules.cs b/NTR.Common/protos/EventOptionsRules.cs new file mode 100644 index 0000000..d945718 --- /dev/null +++ b/NTR.Common/protos/EventOptionsRules.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EventOptionsRules.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EventOptionsRules.proto + public static partial class EventOptionsRulesReflection { + + #region Descriptor + /// File descriptor for EventOptionsRules.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EventOptionsRulesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdFdmVudE9wdGlvbnNSdWxlcy5wcm90byI7ChFFdmVudE9wdGlvbnNSdWxl", + "cxIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEgwKBGRlc2MYAyABKAlCDqoC", + "C05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EventOptionsRules), global::Nova.Client.EventOptionsRules.Parser, new[]{ "Id", "Name", "Desc" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EventOptionsRules : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EventOptionsRules()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EventOptionsRulesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventOptionsRules() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventOptionsRules(EventOptionsRules other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventOptionsRules Clone() { + return new EventOptionsRules(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EventOptionsRules); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EventOptionsRules other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EventOptionsRules other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/EventResult.cs b/NTR.Common/protos/EventResult.cs new file mode 100644 index 0000000..9f2c62c --- /dev/null +++ b/NTR.Common/protos/EventResult.cs @@ -0,0 +1,439 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EventResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from EventResult.proto + public static partial class EventResultReflection { + + #region Descriptor + /// File descriptor for EventResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EventResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFFdmVudFJlc3VsdC5wcm90byKIAQoLRXZlbnRSZXN1bHQSCgoCaWQYASAB", + "KAUSDwoHZWZmZWN0MRgCIAEoBRISCgpwYXJhbWV0ZXIxGAMgAygFEg8KB2Vm", + "ZmVjdDIYBCABKAUSEgoKcGFyYW1ldGVyMhgFIAMoBRIPCgdlZmZlY3QzGAYg", + "ASgFEhIKCnBhcmFtZXRlcjMYByADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EventResult), global::Nova.Client.EventResult.Parser, new[]{ "Id", "Effect1", "Parameter1", "Effect2", "Parameter2", "Effect3", "Parameter3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EventResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EventResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.EventResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventResult(EventResult other) : this() { + id_ = other.id_; + effect1_ = other.effect1_; + parameter1_ = other.parameter1_.Clone(); + effect2_ = other.effect2_; + parameter2_ = other.parameter2_.Clone(); + effect3_ = other.effect3_; + parameter3_ = other.parameter3_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventResult Clone() { + return new EventResult(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "effect1" field. + public const int Effect1FieldNumber = 2; + private int effect1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Effect1 { + get { return effect1_; } + set { + effect1_ = value; + } + } + + /// Field number for the "parameter1" field. + public const int Parameter1FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parameter1_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField parameter1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameter1 { + get { return parameter1_; } + } + + /// Field number for the "effect2" field. + public const int Effect2FieldNumber = 4; + private int effect2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Effect2 { + get { return effect2_; } + set { + effect2_ = value; + } + } + + /// Field number for the "parameter2" field. + public const int Parameter2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameter2_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField parameter2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameter2 { + get { return parameter2_; } + } + + /// Field number for the "effect3" field. + public const int Effect3FieldNumber = 6; + private int effect3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Effect3 { + get { return effect3_; } + set { + effect3_ = value; + } + } + + /// Field number for the "parameter3" field. + public const int Parameter3FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_parameter3_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField parameter3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameter3 { + get { return parameter3_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EventResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EventResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Effect1 != other.Effect1) return false; + if(!parameter1_.Equals(other.parameter1_)) return false; + if (Effect2 != other.Effect2) return false; + if(!parameter2_.Equals(other.parameter2_)) return false; + if (Effect3 != other.Effect3) return false; + if(!parameter3_.Equals(other.parameter3_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Effect1 != 0) hash ^= Effect1.GetHashCode(); + hash ^= parameter1_.GetHashCode(); + if (Effect2 != 0) hash ^= Effect2.GetHashCode(); + hash ^= parameter2_.GetHashCode(); + if (Effect3 != 0) hash ^= Effect3.GetHashCode(); + hash ^= parameter3_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Effect1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(Effect1); + } + parameter1_.WriteTo(output, _repeated_parameter1_codec); + if (Effect2 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Effect2); + } + parameter2_.WriteTo(output, _repeated_parameter2_codec); + if (Effect3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Effect3); + } + parameter3_.WriteTo(output, _repeated_parameter3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Effect1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(Effect1); + } + parameter1_.WriteTo(ref output, _repeated_parameter1_codec); + if (Effect2 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Effect2); + } + parameter2_.WriteTo(ref output, _repeated_parameter2_codec); + if (Effect3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Effect3); + } + parameter3_.WriteTo(ref output, _repeated_parameter3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Effect1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect1); + } + size += parameter1_.CalculateSize(_repeated_parameter1_codec); + if (Effect2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect2); + } + size += parameter2_.CalculateSize(_repeated_parameter2_codec); + if (Effect3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect3); + } + size += parameter3_.CalculateSize(_repeated_parameter3_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EventResult other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Effect1 != 0) { + Effect1 = other.Effect1; + } + parameter1_.Add(other.parameter1_); + if (other.Effect2 != 0) { + Effect2 = other.Effect2; + } + parameter2_.Add(other.parameter2_); + if (other.Effect3 != 0) { + Effect3 = other.Effect3; + } + parameter3_.Add(other.parameter3_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Effect1 = input.ReadInt32(); + break; + } + case 26: + case 24: { + parameter1_.AddEntriesFrom(input, _repeated_parameter1_codec); + break; + } + case 32: { + Effect2 = input.ReadInt32(); + break; + } + case 42: + case 40: { + parameter2_.AddEntriesFrom(input, _repeated_parameter2_codec); + break; + } + case 48: { + Effect3 = input.ReadInt32(); + break; + } + case 58: + case 56: { + parameter3_.AddEntriesFrom(input, _repeated_parameter3_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Effect1 = input.ReadInt32(); + break; + } + case 26: + case 24: { + parameter1_.AddEntriesFrom(ref input, _repeated_parameter1_codec); + break; + } + case 32: { + Effect2 = input.ReadInt32(); + break; + } + case 42: + case 40: { + parameter2_.AddEntriesFrom(ref input, _repeated_parameter2_codec); + break; + } + case 48: { + Effect3 = input.ReadInt32(); + break; + } + case 58: + case 56: { + parameter3_.AddEntriesFrom(ref input, _repeated_parameter3_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/FactionRelation.cs b/NTR.Common/protos/FactionRelation.cs new file mode 100644 index 0000000..46e2bbd --- /dev/null +++ b/NTR.Common/protos/FactionRelation.cs @@ -0,0 +1,270 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FactionRelation.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from FactionRelation.proto + public static partial class FactionRelationReflection { + + #region Descriptor + /// File descriptor for FactionRelation.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FactionRelationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVGYWN0aW9uUmVsYXRpb24ucHJvdG8iPAoPRmFjdGlvblJlbGF0aW9uEgoK", + "AmlkGAEgASgFEh0KFWZhY3Rpb25fcmVsYXRpb25fc2hpcBgCIAMoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.FactionRelation), global::Nova.Client.FactionRelation.Parser, new[]{ "Id", "FactionRelationShip" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FactionRelation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FactionRelation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.FactionRelationReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FactionRelation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FactionRelation(FactionRelation other) : this() { + id_ = other.id_; + factionRelationShip_ = other.factionRelationShip_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FactionRelation Clone() { + return new FactionRelation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "faction_relation_ship" field. + public const int FactionRelationShipFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_factionRelationShip_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField factionRelationShip_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FactionRelationShip { + get { return factionRelationShip_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FactionRelation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FactionRelation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!factionRelationShip_.Equals(other.factionRelationShip_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= factionRelationShip_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + factionRelationShip_.WriteTo(output, _repeated_factionRelationShip_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + factionRelationShip_.WriteTo(ref output, _repeated_factionRelationShip_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += factionRelationShip_.CalculateSize(_repeated_factionRelationShip_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FactionRelation other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + factionRelationShip_.Add(other.factionRelationShip_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + factionRelationShip_.AddEntriesFrom(input, _repeated_factionRelationShip_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + factionRelationShip_.AddEntriesFrom(ref input, _repeated_factionRelationShip_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/FateCard.cs b/NTR.Common/protos/FateCard.cs new file mode 100644 index 0000000..736bf48 --- /dev/null +++ b/NTR.Common/protos/FateCard.cs @@ -0,0 +1,897 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FateCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from FateCard.proto + public static partial class FateCardReflection { + + #region Descriptor + /// File descriptor for FateCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FateCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5GYXRlQ2FyZC5wcm90byKQAwoIRmF0ZUNhcmQSCgoCaWQYASABKAUSDAoE", + "bmFtZRgCIAEoCRIMCgRkZXNjGAMgASgJEg0KBWRlc2MyGAQgASgJEhAKCGlz", + "X3Rvd2VyGAUgASgIEhIKCmlzX3ZhbXBpcmUYBiABKAgSGgoSaXNfdmFtcGly", + "ZV9zcGVjaWFsGAcgASgIEhUKDWFjdGl2ZV9udW1iZXIYCCABKAUSEAoIZHVy", + "YXRpb24YCSABKAUSGQoRYWN0aXZlX3Jvb21fdHlwZXMYCiADKAUSFQoNYWN0", + "aXZlX2FjdGlvbhgLIAEoBRITCgttZXRob2RfbW9kZRgMIAEoBRIVCg1jbGll", + "bnRfZWZmZWN0GA0gASgFEg0KBWNvdW50GA4gASgFEhIKCnRoZW1lX3R5cGUY", + "DyABKAUSEwoLdGhlbWVfdmFsdWUYECABKAUSGgoSdGhlbWVfdHJpZ2dlcl90", + "eXBlGBEgAygFEh0KFWVmZmVjdGl2ZV9pbW1lZGlhdGVseRgSIAEoCBIRCgly", + "ZW1vdmFibGUYEyABKAhCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.FateCard), global::Nova.Client.FateCard.Parser, new[]{ "Id", "Name", "Desc", "Desc2", "IsTower", "IsVampire", "IsVampireSpecial", "ActiveNumber", "Duration", "ActiveRoomTypes", "ActiveAction", "MethodMode", "ClientEffect", "Count", "ThemeType", "ThemeValue", "ThemeTriggerType", "EffectiveImmediately", "Removable" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FateCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FateCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.FateCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FateCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FateCard(FateCard other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + desc2_ = other.desc2_; + isTower_ = other.isTower_; + isVampire_ = other.isVampire_; + isVampireSpecial_ = other.isVampireSpecial_; + activeNumber_ = other.activeNumber_; + duration_ = other.duration_; + activeRoomTypes_ = other.activeRoomTypes_.Clone(); + activeAction_ = other.activeAction_; + methodMode_ = other.methodMode_; + clientEffect_ = other.clientEffect_; + count_ = other.count_; + themeType_ = other.themeType_; + themeValue_ = other.themeValue_; + themeTriggerType_ = other.themeTriggerType_.Clone(); + effectiveImmediately_ = other.effectiveImmediately_; + removable_ = other.removable_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FateCard Clone() { + return new FateCard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc2" field. + public const int Desc2FieldNumber = 4; + private string desc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc2 { + get { return desc2_; } + set { + desc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_tower" field. + public const int IsTowerFieldNumber = 5; + private bool isTower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsTower { + get { return isTower_; } + set { + isTower_ = value; + } + } + + /// Field number for the "is_vampire" field. + public const int IsVampireFieldNumber = 6; + private bool isVampire_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVampire { + get { return isVampire_; } + set { + isVampire_ = value; + } + } + + /// Field number for the "is_vampire_special" field. + public const int IsVampireSpecialFieldNumber = 7; + private bool isVampireSpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVampireSpecial { + get { return isVampireSpecial_; } + set { + isVampireSpecial_ = value; + } + } + + /// Field number for the "active_number" field. + public const int ActiveNumberFieldNumber = 8; + private int activeNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActiveNumber { + get { return activeNumber_; } + set { + activeNumber_ = value; + } + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 9; + private int duration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Duration { + get { return duration_; } + set { + duration_ = value; + } + } + + /// Field number for the "active_room_types" field. + public const int ActiveRoomTypesFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_activeRoomTypes_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField activeRoomTypes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActiveRoomTypes { + get { return activeRoomTypes_; } + } + + /// Field number for the "active_action" field. + public const int ActiveActionFieldNumber = 11; + private int activeAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActiveAction { + get { return activeAction_; } + set { + activeAction_ = value; + } + } + + /// Field number for the "method_mode" field. + public const int MethodModeFieldNumber = 12; + private int methodMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MethodMode { + get { return methodMode_; } + set { + methodMode_ = value; + } + } + + /// Field number for the "client_effect" field. + public const int ClientEffectFieldNumber = 13; + private int clientEffect_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClientEffect { + get { return clientEffect_; } + set { + clientEffect_ = value; + } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 14; + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { return count_; } + set { + count_ = value; + } + } + + /// Field number for the "theme_type" field. + public const int ThemeTypeFieldNumber = 15; + private int themeType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThemeType { + get { return themeType_; } + set { + themeType_ = value; + } + } + + /// Field number for the "theme_value" field. + public const int ThemeValueFieldNumber = 16; + private int themeValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThemeValue { + get { return themeValue_; } + set { + themeValue_ = value; + } + } + + /// Field number for the "theme_trigger_type" field. + public const int ThemeTriggerTypeFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_themeTriggerType_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField themeTriggerType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ThemeTriggerType { + get { return themeTriggerType_; } + } + + /// Field number for the "effective_immediately" field. + public const int EffectiveImmediatelyFieldNumber = 18; + private bool effectiveImmediately_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EffectiveImmediately { + get { return effectiveImmediately_; } + set { + effectiveImmediately_ = value; + } + } + + /// Field number for the "removable" field. + public const int RemovableFieldNumber = 19; + private bool removable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Removable { + get { return removable_; } + set { + removable_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FateCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FateCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Desc2 != other.Desc2) return false; + if (IsTower != other.IsTower) return false; + if (IsVampire != other.IsVampire) return false; + if (IsVampireSpecial != other.IsVampireSpecial) return false; + if (ActiveNumber != other.ActiveNumber) return false; + if (Duration != other.Duration) return false; + if(!activeRoomTypes_.Equals(other.activeRoomTypes_)) return false; + if (ActiveAction != other.ActiveAction) return false; + if (MethodMode != other.MethodMode) return false; + if (ClientEffect != other.ClientEffect) return false; + if (Count != other.Count) return false; + if (ThemeType != other.ThemeType) return false; + if (ThemeValue != other.ThemeValue) return false; + if(!themeTriggerType_.Equals(other.themeTriggerType_)) return false; + if (EffectiveImmediately != other.EffectiveImmediately) return false; + if (Removable != other.Removable) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Desc2.Length != 0) hash ^= Desc2.GetHashCode(); + if (IsTower != false) hash ^= IsTower.GetHashCode(); + if (IsVampire != false) hash ^= IsVampire.GetHashCode(); + if (IsVampireSpecial != false) hash ^= IsVampireSpecial.GetHashCode(); + if (ActiveNumber != 0) hash ^= ActiveNumber.GetHashCode(); + if (Duration != 0) hash ^= Duration.GetHashCode(); + hash ^= activeRoomTypes_.GetHashCode(); + if (ActiveAction != 0) hash ^= ActiveAction.GetHashCode(); + if (MethodMode != 0) hash ^= MethodMode.GetHashCode(); + if (ClientEffect != 0) hash ^= ClientEffect.GetHashCode(); + if (Count != 0) hash ^= Count.GetHashCode(); + if (ThemeType != 0) hash ^= ThemeType.GetHashCode(); + if (ThemeValue != 0) hash ^= ThemeValue.GetHashCode(); + hash ^= themeTriggerType_.GetHashCode(); + if (EffectiveImmediately != false) hash ^= EffectiveImmediately.GetHashCode(); + if (Removable != false) hash ^= Removable.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Desc2.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc2); + } + if (IsTower != false) { + output.WriteRawTag(40); + output.WriteBool(IsTower); + } + if (IsVampire != false) { + output.WriteRawTag(48); + output.WriteBool(IsVampire); + } + if (IsVampireSpecial != false) { + output.WriteRawTag(56); + output.WriteBool(IsVampireSpecial); + } + if (ActiveNumber != 0) { + output.WriteRawTag(64); + output.WriteInt32(ActiveNumber); + } + if (Duration != 0) { + output.WriteRawTag(72); + output.WriteInt32(Duration); + } + activeRoomTypes_.WriteTo(output, _repeated_activeRoomTypes_codec); + if (ActiveAction != 0) { + output.WriteRawTag(88); + output.WriteInt32(ActiveAction); + } + if (MethodMode != 0) { + output.WriteRawTag(96); + output.WriteInt32(MethodMode); + } + if (ClientEffect != 0) { + output.WriteRawTag(104); + output.WriteInt32(ClientEffect); + } + if (Count != 0) { + output.WriteRawTag(112); + output.WriteInt32(Count); + } + if (ThemeType != 0) { + output.WriteRawTag(120); + output.WriteInt32(ThemeType); + } + if (ThemeValue != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ThemeValue); + } + themeTriggerType_.WriteTo(output, _repeated_themeTriggerType_codec); + if (EffectiveImmediately != false) { + output.WriteRawTag(144, 1); + output.WriteBool(EffectiveImmediately); + } + if (Removable != false) { + output.WriteRawTag(152, 1); + output.WriteBool(Removable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Desc2.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc2); + } + if (IsTower != false) { + output.WriteRawTag(40); + output.WriteBool(IsTower); + } + if (IsVampire != false) { + output.WriteRawTag(48); + output.WriteBool(IsVampire); + } + if (IsVampireSpecial != false) { + output.WriteRawTag(56); + output.WriteBool(IsVampireSpecial); + } + if (ActiveNumber != 0) { + output.WriteRawTag(64); + output.WriteInt32(ActiveNumber); + } + if (Duration != 0) { + output.WriteRawTag(72); + output.WriteInt32(Duration); + } + activeRoomTypes_.WriteTo(ref output, _repeated_activeRoomTypes_codec); + if (ActiveAction != 0) { + output.WriteRawTag(88); + output.WriteInt32(ActiveAction); + } + if (MethodMode != 0) { + output.WriteRawTag(96); + output.WriteInt32(MethodMode); + } + if (ClientEffect != 0) { + output.WriteRawTag(104); + output.WriteInt32(ClientEffect); + } + if (Count != 0) { + output.WriteRawTag(112); + output.WriteInt32(Count); + } + if (ThemeType != 0) { + output.WriteRawTag(120); + output.WriteInt32(ThemeType); + } + if (ThemeValue != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ThemeValue); + } + themeTriggerType_.WriteTo(ref output, _repeated_themeTriggerType_codec); + if (EffectiveImmediately != false) { + output.WriteRawTag(144, 1); + output.WriteBool(EffectiveImmediately); + } + if (Removable != false) { + output.WriteRawTag(152, 1); + output.WriteBool(Removable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Desc2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc2); + } + if (IsTower != false) { + size += 1 + 1; + } + if (IsVampire != false) { + size += 1 + 1; + } + if (IsVampireSpecial != false) { + size += 1 + 1; + } + if (ActiveNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActiveNumber); + } + if (Duration != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Duration); + } + size += activeRoomTypes_.CalculateSize(_repeated_activeRoomTypes_codec); + if (ActiveAction != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActiveAction); + } + if (MethodMode != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MethodMode); + } + if (ClientEffect != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientEffect); + } + if (Count != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (ThemeType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThemeType); + } + if (ThemeValue != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThemeValue); + } + size += themeTriggerType_.CalculateSize(_repeated_themeTriggerType_codec); + if (EffectiveImmediately != false) { + size += 2 + 1; + } + if (Removable != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FateCard other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Desc2.Length != 0) { + Desc2 = other.Desc2; + } + if (other.IsTower != false) { + IsTower = other.IsTower; + } + if (other.IsVampire != false) { + IsVampire = other.IsVampire; + } + if (other.IsVampireSpecial != false) { + IsVampireSpecial = other.IsVampireSpecial; + } + if (other.ActiveNumber != 0) { + ActiveNumber = other.ActiveNumber; + } + if (other.Duration != 0) { + Duration = other.Duration; + } + activeRoomTypes_.Add(other.activeRoomTypes_); + if (other.ActiveAction != 0) { + ActiveAction = other.ActiveAction; + } + if (other.MethodMode != 0) { + MethodMode = other.MethodMode; + } + if (other.ClientEffect != 0) { + ClientEffect = other.ClientEffect; + } + if (other.Count != 0) { + Count = other.Count; + } + if (other.ThemeType != 0) { + ThemeType = other.ThemeType; + } + if (other.ThemeValue != 0) { + ThemeValue = other.ThemeValue; + } + themeTriggerType_.Add(other.themeTriggerType_); + if (other.EffectiveImmediately != false) { + EffectiveImmediately = other.EffectiveImmediately; + } + if (other.Removable != false) { + Removable = other.Removable; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Desc2 = input.ReadString(); + break; + } + case 40: { + IsTower = input.ReadBool(); + break; + } + case 48: { + IsVampire = input.ReadBool(); + break; + } + case 56: { + IsVampireSpecial = input.ReadBool(); + break; + } + case 64: { + ActiveNumber = input.ReadInt32(); + break; + } + case 72: { + Duration = input.ReadInt32(); + break; + } + case 82: + case 80: { + activeRoomTypes_.AddEntriesFrom(input, _repeated_activeRoomTypes_codec); + break; + } + case 88: { + ActiveAction = input.ReadInt32(); + break; + } + case 96: { + MethodMode = input.ReadInt32(); + break; + } + case 104: { + ClientEffect = input.ReadInt32(); + break; + } + case 112: { + Count = input.ReadInt32(); + break; + } + case 120: { + ThemeType = input.ReadInt32(); + break; + } + case 128: { + ThemeValue = input.ReadInt32(); + break; + } + case 138: + case 136: { + themeTriggerType_.AddEntriesFrom(input, _repeated_themeTriggerType_codec); + break; + } + case 144: { + EffectiveImmediately = input.ReadBool(); + break; + } + case 152: { + Removable = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Desc2 = input.ReadString(); + break; + } + case 40: { + IsTower = input.ReadBool(); + break; + } + case 48: { + IsVampire = input.ReadBool(); + break; + } + case 56: { + IsVampireSpecial = input.ReadBool(); + break; + } + case 64: { + ActiveNumber = input.ReadInt32(); + break; + } + case 72: { + Duration = input.ReadInt32(); + break; + } + case 82: + case 80: { + activeRoomTypes_.AddEntriesFrom(ref input, _repeated_activeRoomTypes_codec); + break; + } + case 88: { + ActiveAction = input.ReadInt32(); + break; + } + case 96: { + MethodMode = input.ReadInt32(); + break; + } + case 104: { + ClientEffect = input.ReadInt32(); + break; + } + case 112: { + Count = input.ReadInt32(); + break; + } + case 120: { + ThemeType = input.ReadInt32(); + break; + } + case 128: { + ThemeValue = input.ReadInt32(); + break; + } + case 138: + case 136: { + themeTriggerType_.AddEntriesFrom(ref input, _repeated_themeTriggerType_codec); + break; + } + case 144: { + EffectiveImmediately = input.ReadBool(); + break; + } + case 152: { + Removable = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/FileDiff.cs b/NTR.Common/protos/FileDiff.cs new file mode 100644 index 0000000..d1fa11a --- /dev/null +++ b/NTR.Common/protos/FileDiff.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FileDiff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Pb { + + /// Holder for reflection information generated from FileDiff.proto + public static partial class FileDiffReflection { + + #region Descriptor + /// File descriptor for FileDiff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FileDiffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5GaWxlRGlmZi5wcm90byI8CghGaWxlRGlmZhIRCglmaWxlX25hbWUYASAB", + "KAkSDAoEaGFzaBgCIAEoCRIPCgd2ZXJzaW9uGAMgASgDQgWqAgJQYmIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.FileDiff), global::Pb.FileDiff.Parser, new[]{ "FileName", "Hash", "Version" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FileDiff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileDiff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.FileDiffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FileDiff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FileDiff(FileDiff other) : this() { + fileName_ = other.fileName_; + hash_ = other.hash_; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FileDiff Clone() { + return new FileDiff(this); + } + + /// Field number for the "file_name" field. + public const int FileNameFieldNumber = 1; + private string fileName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FileName { + get { return fileName_; } + set { + fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hash" field. + public const int HashFieldNumber = 2; + private string hash_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Hash { + get { return hash_; } + set { + hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 3; + private long version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Version { + get { return version_; } + set { + version_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FileDiff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FileDiff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FileName != other.FileName) return false; + if (Hash != other.Hash) return false; + if (Version != other.Version) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FileName.Length != 0) hash ^= FileName.GetHashCode(); + if (Hash.Length != 0) hash ^= Hash.GetHashCode(); + if (Version != 0L) hash ^= Version.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FileName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FileName); + } + if (Hash.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Hash); + } + if (Version != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FileName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FileName); + } + if (Hash.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Hash); + } + if (Version != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FileName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); + } + if (Hash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Hash); + } + if (Version != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FileDiff other) { + if (other == null) { + return; + } + if (other.FileName.Length != 0) { + FileName = other.FileName; + } + if (other.Hash.Length != 0) { + Hash = other.Hash; + } + if (other.Version != 0L) { + Version = other.Version; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FileName = input.ReadString(); + break; + } + case 18: { + Hash = input.ReadString(); + break; + } + case 24: { + Version = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + FileName = input.ReadString(); + break; + } + case 18: { + Hash = input.ReadString(); + break; + } + case 24: { + Version = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/FloorBuff.cs b/NTR.Common/protos/FloorBuff.cs new file mode 100644 index 0000000..f53e3fe --- /dev/null +++ b/NTR.Common/protos/FloorBuff.cs @@ -0,0 +1,355 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FloorBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from FloorBuff.proto + public static partial class FloorBuffReflection { + + #region Descriptor + /// File descriptor for FloorBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FloorBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9GbG9vckJ1ZmYucHJvdG8iYAoJRmxvb3JCdWZmEgoKAmlkGAEgASgFEhAK", + "CGFkZF9jYW1wGAIgAygFEhEKCWFkZF9jbGFzcxgDIAMoBRIRCgllZmZlY3Rf", + "aWQYBCADKAUSDwoHYnVmZl9pZBgFIAMoBUIOqgILTm92YS5DbGllbnRiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.FloorBuff), global::Nova.Client.FloorBuff.Parser, new[]{ "Id", "AddCamp", "AddClass", "EffectId", "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FloorBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FloorBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.FloorBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloorBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloorBuff(FloorBuff other) : this() { + id_ = other.id_; + addCamp_ = other.addCamp_.Clone(); + addClass_ = other.addClass_.Clone(); + effectId_ = other.effectId_.Clone(); + buffId_ = other.buffId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloorBuff Clone() { + return new FloorBuff(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "add_camp" field. + public const int AddCampFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_addCamp_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField addCamp_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AddCamp { + get { return addCamp_; } + } + + /// Field number for the "add_class" field. + public const int AddClassFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_addClass_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField addClass_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AddClass { + get { return addClass_; } + } + + /// Field number for the "effect_id" field. + public const int EffectIdFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_effectId_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField effectId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId { + get { return effectId_; } + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_buffId_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField buffId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffId { + get { return buffId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FloorBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FloorBuff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!addCamp_.Equals(other.addCamp_)) return false; + if(!addClass_.Equals(other.addClass_)) return false; + if(!effectId_.Equals(other.effectId_)) return false; + if(!buffId_.Equals(other.buffId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= addCamp_.GetHashCode(); + hash ^= addClass_.GetHashCode(); + hash ^= effectId_.GetHashCode(); + hash ^= buffId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + addCamp_.WriteTo(output, _repeated_addCamp_codec); + addClass_.WriteTo(output, _repeated_addClass_codec); + effectId_.WriteTo(output, _repeated_effectId_codec); + buffId_.WriteTo(output, _repeated_buffId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + addCamp_.WriteTo(ref output, _repeated_addCamp_codec); + addClass_.WriteTo(ref output, _repeated_addClass_codec); + effectId_.WriteTo(ref output, _repeated_effectId_codec); + buffId_.WriteTo(ref output, _repeated_buffId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += addCamp_.CalculateSize(_repeated_addCamp_codec); + size += addClass_.CalculateSize(_repeated_addClass_codec); + size += effectId_.CalculateSize(_repeated_effectId_codec); + size += buffId_.CalculateSize(_repeated_buffId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FloorBuff other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + addCamp_.Add(other.addCamp_); + addClass_.Add(other.addClass_); + effectId_.Add(other.effectId_); + buffId_.Add(other.buffId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + addCamp_.AddEntriesFrom(input, _repeated_addCamp_codec); + break; + } + case 26: + case 24: { + addClass_.AddEntriesFrom(input, _repeated_addClass_codec); + break; + } + case 34: + case 32: { + effectId_.AddEntriesFrom(input, _repeated_effectId_codec); + break; + } + case 42: + case 40: { + buffId_.AddEntriesFrom(input, _repeated_buffId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + addCamp_.AddEntriesFrom(ref input, _repeated_addCamp_codec); + break; + } + case 26: + case 24: { + addClass_.AddEntriesFrom(ref input, _repeated_addClass_codec); + break; + } + case 34: + case 32: { + effectId_.AddEntriesFrom(ref input, _repeated_effectId_codec); + break; + } + case 42: + case 40: { + buffId_.AddEntriesFrom(ref input, _repeated_buffId_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Force.cs b/NTR.Common/protos/Force.cs new file mode 100644 index 0000000..1779904 --- /dev/null +++ b/NTR.Common/protos/Force.cs @@ -0,0 +1,381 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Force.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Force.proto + public static partial class ForceReflection { + + #region Descriptor + /// File descriptor for Force.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ForceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtGb3JjZS5wcm90byJUCgVGb3JjZRIKCgJpZBgBIAEoBRINCgV0aXRsZRgC", + "IAEoCRINCgVpY29uMRgDIAEoCRINCgVpY29uMhgEIAEoCRISCgp0YWxlbnRf", + "cG9zGAUgAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Force), global::Nova.Client.Force.Parser, new[]{ "Id", "Title", "Icon1", "Icon2", "TalentPos" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Force : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Force()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ForceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Force() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Force(Force other) : this() { + id_ = other.id_; + title_ = other.title_; + icon1_ = other.icon1_; + icon2_ = other.icon2_; + talentPos_ = other.talentPos_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Force Clone() { + return new Force(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon1" field. + public const int Icon1FieldNumber = 3; + private string icon1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon1 { + get { return icon1_; } + set { + icon1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon2" field. + public const int Icon2FieldNumber = 4; + private string icon2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon2 { + get { return icon2_; } + set { + icon2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "talent_pos" field. + public const int TalentPosFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_talentPos_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField talentPos_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TalentPos { + get { return talentPos_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Force); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Force other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Icon1 != other.Icon1) return false; + if (Icon2 != other.Icon2) return false; + if(!talentPos_.Equals(other.talentPos_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Icon1.Length != 0) hash ^= Icon1.GetHashCode(); + if (Icon2.Length != 0) hash ^= Icon2.GetHashCode(); + hash ^= talentPos_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Icon1.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon1); + } + if (Icon2.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon2); + } + talentPos_.WriteTo(output, _repeated_talentPos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Icon1.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon1); + } + if (Icon2.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon2); + } + talentPos_.WriteTo(ref output, _repeated_talentPos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Icon1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon1); + } + if (Icon2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon2); + } + size += talentPos_.CalculateSize(_repeated_talentPos_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Force other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Icon1.Length != 0) { + Icon1 = other.Icon1; + } + if (other.Icon2.Length != 0) { + Icon2 = other.Icon2; + } + talentPos_.Add(other.talentPos_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Icon1 = input.ReadString(); + break; + } + case 34: { + Icon2 = input.ReadString(); + break; + } + case 42: + case 40: { + talentPos_.AddEntriesFrom(input, _repeated_talentPos_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Icon1 = input.ReadString(); + break; + } + case 34: { + Icon2 = input.ReadString(); + break; + } + case 42: + case 40: { + talentPos_.AddEntriesFrom(ref input, _repeated_talentPos_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/FormationScene.cs b/NTR.Common/protos/FormationScene.cs new file mode 100644 index 0000000..71d8a83 --- /dev/null +++ b/NTR.Common/protos/FormationScene.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FormationScene.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from FormationScene.proto + public static partial class FormationSceneReflection { + + #region Descriptor + /// File descriptor for FormationScene.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FormationSceneReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRGb3JtYXRpb25TY2VuZS5wcm90byIyCg5Gb3JtYXRpb25TY2VuZRISCgpz", + "Y2VuZV9uYW1lGAEgASgJEgwKBHBhdGgYAiABKAlCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.FormationScene), global::Nova.Client.FormationScene.Parser, new[]{ "SceneName", "Path" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FormationScene : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FormationScene()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.FormationSceneReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FormationScene() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FormationScene(FormationScene other) : this() { + sceneName_ = other.sceneName_; + path_ = other.path_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FormationScene Clone() { + return new FormationScene(this); + } + + /// Field number for the "scene_name" field. + public const int SceneNameFieldNumber = 1; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 2; + private string path_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Path { + get { return path_; } + set { + path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FormationScene); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FormationScene other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SceneName != other.SceneName) return false; + if (Path != other.Path) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (Path.Length != 0) hash ^= Path.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SceneName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SceneName); + } + if (Path.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Path); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SceneName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SceneName); + } + if (Path.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Path); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FormationScene other) { + if (other == null) { + return; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.Path.Length != 0) { + Path = other.Path; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SceneName = input.ReadString(); + break; + } + case 18: { + Path = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SceneName = input.ReadString(); + break; + } + case 18: { + Path = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GMBuild.cs b/NTR.Common/protos/GMBuild.cs new file mode 100644 index 0000000..02a19b6 --- /dev/null +++ b/NTR.Common/protos/GMBuild.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GMBuild.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GMBuild.proto + public static partial class GMBuildReflection { + + #region Descriptor + /// File descriptor for GMBuild.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GMBuildReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1HTUJ1aWxkLnByb3RvIikKB0dNQnVpbGQSCgoCaWQYASABKAUSEgoKYnVp", + "bGRfZGF0YRgCIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GMBuild), global::Nova.Client.GMBuild.Parser, new[]{ "Id", "BuildData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GMBuild : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GMBuild()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GMBuildReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMBuild() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMBuild(GMBuild other) : this() { + id_ = other.id_; + buildData_ = other.buildData_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMBuild Clone() { + return new GMBuild(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "build_data" field. + public const int BuildDataFieldNumber = 2; + private string buildData_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BuildData { + get { return buildData_; } + set { + buildData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GMBuild); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GMBuild other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BuildData != other.BuildData) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BuildData.Length != 0) hash ^= BuildData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BuildData.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BuildData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BuildData.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BuildData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BuildData.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BuildData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GMBuild other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BuildData.Length != 0) { + BuildData = other.BuildData; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + BuildData = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + BuildData = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GMOrder.cs b/NTR.Common/protos/GMOrder.cs new file mode 100644 index 0000000..2852a0f --- /dev/null +++ b/NTR.Common/protos/GMOrder.cs @@ -0,0 +1,466 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GMOrder.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GMOrder.proto + public static partial class GMOrderReflection { + + #region Descriptor + /// File descriptor for GMOrder.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GMOrderReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1HTU9yZGVyLnByb3RvIo8BCgdHTU9yZGVyEg0KBW9yZGVyGAEgASgJEgwK", + "BGRlc2MYAiABKAkSEwoLcGFyYW1fY291bnQYAyABKAUSEwoLcGFyYW1fbmFt", + "ZTEYBCABKAkSEwoLcGFyYW1fbmFtZTIYBSABKAkSEwoLcGFyYW1fbmFtZTMY", + "BiABKAkSEwoLcGFyYW1fbmFtZTQYByABKAlCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GMOrder), global::Nova.Client.GMOrder.Parser, new[]{ "Order", "Desc", "ParamCount", "ParamName1", "ParamName2", "ParamName3", "ParamName4" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GMOrder : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GMOrder()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GMOrderReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMOrder() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMOrder(GMOrder other) : this() { + order_ = other.order_; + desc_ = other.desc_; + paramCount_ = other.paramCount_; + paramName1_ = other.paramName1_; + paramName2_ = other.paramName2_; + paramName3_ = other.paramName3_; + paramName4_ = other.paramName4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMOrder Clone() { + return new GMOrder(this); + } + + /// Field number for the "order" field. + public const int OrderFieldNumber = 1; + private string order_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Order { + get { return order_; } + set { + order_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param_count" field. + public const int ParamCountFieldNumber = 3; + private int paramCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ParamCount { + get { return paramCount_; } + set { + paramCount_ = value; + } + } + + /// Field number for the "param_name1" field. + public const int ParamName1FieldNumber = 4; + private string paramName1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParamName1 { + get { return paramName1_; } + set { + paramName1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param_name2" field. + public const int ParamName2FieldNumber = 5; + private string paramName2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParamName2 { + get { return paramName2_; } + set { + paramName2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param_name3" field. + public const int ParamName3FieldNumber = 6; + private string paramName3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParamName3 { + get { return paramName3_; } + set { + paramName3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param_name4" field. + public const int ParamName4FieldNumber = 7; + private string paramName4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParamName4 { + get { return paramName4_; } + set { + paramName4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GMOrder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GMOrder other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Order != other.Order) return false; + if (Desc != other.Desc) return false; + if (ParamCount != other.ParamCount) return false; + if (ParamName1 != other.ParamName1) return false; + if (ParamName2 != other.ParamName2) return false; + if (ParamName3 != other.ParamName3) return false; + if (ParamName4 != other.ParamName4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Order.Length != 0) hash ^= Order.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (ParamCount != 0) hash ^= ParamCount.GetHashCode(); + if (ParamName1.Length != 0) hash ^= ParamName1.GetHashCode(); + if (ParamName2.Length != 0) hash ^= ParamName2.GetHashCode(); + if (ParamName3.Length != 0) hash ^= ParamName3.GetHashCode(); + if (ParamName4.Length != 0) hash ^= ParamName4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Order.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Order); + } + if (Desc.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (ParamCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(ParamCount); + } + if (ParamName1.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ParamName1); + } + if (ParamName2.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ParamName2); + } + if (ParamName3.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ParamName3); + } + if (ParamName4.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ParamName4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Order.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Order); + } + if (Desc.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (ParamCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(ParamCount); + } + if (ParamName1.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ParamName1); + } + if (ParamName2.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ParamName2); + } + if (ParamName3.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ParamName3); + } + if (ParamName4.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ParamName4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Order.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Order); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (ParamCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParamCount); + } + if (ParamName1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParamName1); + } + if (ParamName2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParamName2); + } + if (ParamName3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParamName3); + } + if (ParamName4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParamName4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GMOrder other) { + if (other == null) { + return; + } + if (other.Order.Length != 0) { + Order = other.Order; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.ParamCount != 0) { + ParamCount = other.ParamCount; + } + if (other.ParamName1.Length != 0) { + ParamName1 = other.ParamName1; + } + if (other.ParamName2.Length != 0) { + ParamName2 = other.ParamName2; + } + if (other.ParamName3.Length != 0) { + ParamName3 = other.ParamName3; + } + if (other.ParamName4.Length != 0) { + ParamName4 = other.ParamName4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Order = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + ParamCount = input.ReadInt32(); + break; + } + case 34: { + ParamName1 = input.ReadString(); + break; + } + case 42: { + ParamName2 = input.ReadString(); + break; + } + case 50: { + ParamName3 = input.ReadString(); + break; + } + case 58: { + ParamName4 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Order = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + ParamCount = input.ReadInt32(); + break; + } + case 34: { + ParamName1 = input.ReadString(); + break; + } + case 42: { + ParamName2 = input.ReadString(); + break; + } + case 50: { + ParamName3 = input.ReadString(); + break; + } + case 58: { + ParamName4 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GMTeam.cs b/NTR.Common/protos/GMTeam.cs new file mode 100644 index 0000000..522db87 --- /dev/null +++ b/NTR.Common/protos/GMTeam.cs @@ -0,0 +1,335 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GMTeam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GMTeam.proto + public static partial class GMTeamReflection { + + #region Descriptor + /// File descriptor for GMTeam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GMTeamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxHTVRlYW0ucHJvdG8iTQoGR01UZWFtEgoKAmlkGAEgASgFEgwKBG5hbWUY", + "AiABKAkSFgoOdGVhbV9jaGFyYWN0ZXIYAyADKAUSEQoJdGVhbV9kaXNjGAQg", + "AygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GMTeam), global::Nova.Client.GMTeam.Parser, new[]{ "Id", "Name", "TeamCharacter", "TeamDisc" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GMTeam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GMTeam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GMTeamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMTeam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMTeam(GMTeam other) : this() { + id_ = other.id_; + name_ = other.name_; + teamCharacter_ = other.teamCharacter_.Clone(); + teamDisc_ = other.teamDisc_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GMTeam Clone() { + return new GMTeam(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "team_character" field. + public const int TeamCharacterFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_teamCharacter_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField teamCharacter_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TeamCharacter { + get { return teamCharacter_; } + } + + /// Field number for the "team_disc" field. + public const int TeamDiscFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_teamDisc_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField teamDisc_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TeamDisc { + get { return teamDisc_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GMTeam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GMTeam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!teamCharacter_.Equals(other.teamCharacter_)) return false; + if(!teamDisc_.Equals(other.teamDisc_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= teamCharacter_.GetHashCode(); + hash ^= teamDisc_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + teamCharacter_.WriteTo(output, _repeated_teamCharacter_codec); + teamDisc_.WriteTo(output, _repeated_teamDisc_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + teamCharacter_.WriteTo(ref output, _repeated_teamCharacter_codec); + teamDisc_.WriteTo(ref output, _repeated_teamDisc_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += teamCharacter_.CalculateSize(_repeated_teamCharacter_codec); + size += teamDisc_.CalculateSize(_repeated_teamDisc_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GMTeam other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + teamCharacter_.Add(other.teamCharacter_); + teamDisc_.Add(other.teamDisc_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: + case 24: { + teamCharacter_.AddEntriesFrom(input, _repeated_teamCharacter_codec); + break; + } + case 34: + case 32: { + teamDisc_.AddEntriesFrom(input, _repeated_teamDisc_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: + case 24: { + teamCharacter_.AddEntriesFrom(ref input, _repeated_teamCharacter_codec); + break; + } + case 34: + case 32: { + teamDisc_.AddEntriesFrom(ref input, _repeated_teamDisc_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Gacha.cs b/NTR.Common/protos/Gacha.cs new file mode 100644 index 0000000..bb7966b --- /dev/null +++ b/NTR.Common/protos/Gacha.cs @@ -0,0 +1,991 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Gacha.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Gacha.proto + public static partial class GachaReflection { + + #region Descriptor + /// File descriptor for Gacha.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtHYWNoYS5wcm90byKyAwoFR2FjaGESCgoCaWQYASABKAUSEgoKZGVmYXVs", + "dF9pZBgCIAEoBRITCgtkZWZhdWx0X3F0eRgDIAEoBRIPCgdjb3N0X2lkGAQg", + "ASgFEhAKCGNvc3RfcXR5GAUgASgFEhYKDm9uY2VfcHJlZmVycmVkGAYgASgJ", + "EhsKE3Rlbl90aW1lc19wcmVmZXJyZWQYByABKAkSEwoLbGltaXRfdGltZXMY", + "CCABKAUSGwoTYV90eXBlX3VwX3Nob3dfcHJvYhgJIAEoBRIbChNiX3R5cGVf", + "dXBfc2hvd19wcm9iGAogASgFEhIKCnN0b3JhZ2VfaWQYCyABKAUSEgoKc3Rh", + "cnRfdGltZRgMIAEoCRIQCghlbmRfdGltZRgNIAEoCRIMCgRzb3J0GA4gASgF", + "EgwKBGljb24YDyABKAkSDQoFaW1hZ2UYECABKAkSFQoNdV9wX2NoYXJhY3Rl", + "chgRIAMoBRISCgp1X3Bfb3V0Zml0GBIgAygFEhEKCWNoYXJhY3RlchgTIAMo", + "BRIOCgZvdXRmaXQYFCADKAUSCwoDdGFnGBUgASgJEg0KBXZvaWNlGBYgASgJ", + "Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Gacha), global::Nova.Client.Gacha.Parser, new[]{ "Id", "DefaultId", "DefaultQty", "CostId", "CostQty", "OncePreferred", "TenTimesPreferred", "LimitTimes", "ATypeUpShowProb", "BTypeUpShowProb", "StorageId", "StartTime", "EndTime", "Sort", "Icon", "Image", "UPCharacter", "UPOutfit", "Character", "Outfit", "Tag", "Voice" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Gacha : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gacha()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GachaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gacha() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gacha(Gacha other) : this() { + id_ = other.id_; + defaultId_ = other.defaultId_; + defaultQty_ = other.defaultQty_; + costId_ = other.costId_; + costQty_ = other.costQty_; + oncePreferred_ = other.oncePreferred_; + tenTimesPreferred_ = other.tenTimesPreferred_; + limitTimes_ = other.limitTimes_; + aTypeUpShowProb_ = other.aTypeUpShowProb_; + bTypeUpShowProb_ = other.bTypeUpShowProb_; + storageId_ = other.storageId_; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + sort_ = other.sort_; + icon_ = other.icon_; + image_ = other.image_; + uPCharacter_ = other.uPCharacter_.Clone(); + uPOutfit_ = other.uPOutfit_.Clone(); + character_ = other.character_.Clone(); + outfit_ = other.outfit_.Clone(); + tag_ = other.tag_; + voice_ = other.voice_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gacha Clone() { + return new Gacha(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "default_id" field. + public const int DefaultIdFieldNumber = 2; + private int defaultId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefaultId { + get { return defaultId_; } + set { + defaultId_ = value; + } + } + + /// Field number for the "default_qty" field. + public const int DefaultQtyFieldNumber = 3; + private int defaultQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefaultQty { + get { return defaultQty_; } + set { + defaultQty_ = value; + } + } + + /// Field number for the "cost_id" field. + public const int CostIdFieldNumber = 4; + private int costId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CostId { + get { return costId_; } + set { + costId_ = value; + } + } + + /// Field number for the "cost_qty" field. + public const int CostQtyFieldNumber = 5; + private int costQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CostQty { + get { return costQty_; } + set { + costQty_ = value; + } + } + + /// Field number for the "once_preferred" field. + public const int OncePreferredFieldNumber = 6; + private string oncePreferred_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OncePreferred { + get { return oncePreferred_; } + set { + oncePreferred_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ten_times_preferred" field. + public const int TenTimesPreferredFieldNumber = 7; + private string tenTimesPreferred_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TenTimesPreferred { + get { return tenTimesPreferred_; } + set { + tenTimesPreferred_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "limit_times" field. + public const int LimitTimesFieldNumber = 8; + private int limitTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LimitTimes { + get { return limitTimes_; } + set { + limitTimes_ = value; + } + } + + /// Field number for the "a_type_up_show_prob" field. + public const int ATypeUpShowProbFieldNumber = 9; + private int aTypeUpShowProb_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ATypeUpShowProb { + get { return aTypeUpShowProb_; } + set { + aTypeUpShowProb_ = value; + } + } + + /// Field number for the "b_type_up_show_prob" field. + public const int BTypeUpShowProbFieldNumber = 10; + private int bTypeUpShowProb_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BTypeUpShowProb { + get { return bTypeUpShowProb_; } + set { + bTypeUpShowProb_ = value; + } + } + + /// Field number for the "storage_id" field. + public const int StorageIdFieldNumber = 11; + private int storageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StorageId { + get { return storageId_; } + set { + storageId_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 12; + private string startTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StartTime { + get { return startTime_; } + set { + startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 13; + private string endTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndTime { + get { return endTime_; } + set { + endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 14; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 15; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 16; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "u_p_character" field. + public const int UPCharacterFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_uPCharacter_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField uPCharacter_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UPCharacter { + get { return uPCharacter_; } + } + + /// Field number for the "u_p_outfit" field. + public const int UPOutfitFieldNumber = 18; + private static readonly pb::FieldCodec _repeated_uPOutfit_codec + = pb::FieldCodec.ForInt32(146); + private readonly pbc::RepeatedField uPOutfit_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UPOutfit { + get { return uPOutfit_; } + } + + /// Field number for the "character" field. + public const int CharacterFieldNumber = 19; + private static readonly pb::FieldCodec _repeated_character_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField character_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Character { + get { return character_; } + } + + /// Field number for the "outfit" field. + public const int OutfitFieldNumber = 20; + private static readonly pb::FieldCodec _repeated_outfit_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField outfit_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Outfit { + get { return outfit_; } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 21; + private string tag_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag { + get { return tag_; } + set { + tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "voice" field. + public const int VoiceFieldNumber = 22; + private string voice_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Voice { + get { return voice_; } + set { + voice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Gacha); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Gacha other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (DefaultId != other.DefaultId) return false; + if (DefaultQty != other.DefaultQty) return false; + if (CostId != other.CostId) return false; + if (CostQty != other.CostQty) return false; + if (OncePreferred != other.OncePreferred) return false; + if (TenTimesPreferred != other.TenTimesPreferred) return false; + if (LimitTimes != other.LimitTimes) return false; + if (ATypeUpShowProb != other.ATypeUpShowProb) return false; + if (BTypeUpShowProb != other.BTypeUpShowProb) return false; + if (StorageId != other.StorageId) return false; + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + if (Sort != other.Sort) return false; + if (Icon != other.Icon) return false; + if (Image != other.Image) return false; + if(!uPCharacter_.Equals(other.uPCharacter_)) return false; + if(!uPOutfit_.Equals(other.uPOutfit_)) return false; + if(!character_.Equals(other.character_)) return false; + if(!outfit_.Equals(other.outfit_)) return false; + if (Tag != other.Tag) return false; + if (Voice != other.Voice) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (DefaultId != 0) hash ^= DefaultId.GetHashCode(); + if (DefaultQty != 0) hash ^= DefaultQty.GetHashCode(); + if (CostId != 0) hash ^= CostId.GetHashCode(); + if (CostQty != 0) hash ^= CostQty.GetHashCode(); + if (OncePreferred.Length != 0) hash ^= OncePreferred.GetHashCode(); + if (TenTimesPreferred.Length != 0) hash ^= TenTimesPreferred.GetHashCode(); + if (LimitTimes != 0) hash ^= LimitTimes.GetHashCode(); + if (ATypeUpShowProb != 0) hash ^= ATypeUpShowProb.GetHashCode(); + if (BTypeUpShowProb != 0) hash ^= BTypeUpShowProb.GetHashCode(); + if (StorageId != 0) hash ^= StorageId.GetHashCode(); + if (StartTime.Length != 0) hash ^= StartTime.GetHashCode(); + if (EndTime.Length != 0) hash ^= EndTime.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + hash ^= uPCharacter_.GetHashCode(); + hash ^= uPOutfit_.GetHashCode(); + hash ^= character_.GetHashCode(); + hash ^= outfit_.GetHashCode(); + if (Tag.Length != 0) hash ^= Tag.GetHashCode(); + if (Voice.Length != 0) hash ^= Voice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DefaultId != 0) { + output.WriteRawTag(16); + output.WriteInt32(DefaultId); + } + if (DefaultQty != 0) { + output.WriteRawTag(24); + output.WriteInt32(DefaultQty); + } + if (CostId != 0) { + output.WriteRawTag(32); + output.WriteInt32(CostId); + } + if (CostQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(CostQty); + } + if (OncePreferred.Length != 0) { + output.WriteRawTag(50); + output.WriteString(OncePreferred); + } + if (TenTimesPreferred.Length != 0) { + output.WriteRawTag(58); + output.WriteString(TenTimesPreferred); + } + if (LimitTimes != 0) { + output.WriteRawTag(64); + output.WriteInt32(LimitTimes); + } + if (ATypeUpShowProb != 0) { + output.WriteRawTag(72); + output.WriteInt32(ATypeUpShowProb); + } + if (BTypeUpShowProb != 0) { + output.WriteRawTag(80); + output.WriteInt32(BTypeUpShowProb); + } + if (StorageId != 0) { + output.WriteRawTag(88); + output.WriteInt32(StorageId); + } + if (StartTime.Length != 0) { + output.WriteRawTag(98); + output.WriteString(StartTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(106); + output.WriteString(EndTime); + } + if (Sort != 0) { + output.WriteRawTag(112); + output.WriteInt32(Sort); + } + if (Icon.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Icon); + } + if (Image.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Image); + } + uPCharacter_.WriteTo(output, _repeated_uPCharacter_codec); + uPOutfit_.WriteTo(output, _repeated_uPOutfit_codec); + character_.WriteTo(output, _repeated_character_codec); + outfit_.WriteTo(output, _repeated_outfit_codec); + if (Tag.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Tag); + } + if (Voice.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DefaultId != 0) { + output.WriteRawTag(16); + output.WriteInt32(DefaultId); + } + if (DefaultQty != 0) { + output.WriteRawTag(24); + output.WriteInt32(DefaultQty); + } + if (CostId != 0) { + output.WriteRawTag(32); + output.WriteInt32(CostId); + } + if (CostQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(CostQty); + } + if (OncePreferred.Length != 0) { + output.WriteRawTag(50); + output.WriteString(OncePreferred); + } + if (TenTimesPreferred.Length != 0) { + output.WriteRawTag(58); + output.WriteString(TenTimesPreferred); + } + if (LimitTimes != 0) { + output.WriteRawTag(64); + output.WriteInt32(LimitTimes); + } + if (ATypeUpShowProb != 0) { + output.WriteRawTag(72); + output.WriteInt32(ATypeUpShowProb); + } + if (BTypeUpShowProb != 0) { + output.WriteRawTag(80); + output.WriteInt32(BTypeUpShowProb); + } + if (StorageId != 0) { + output.WriteRawTag(88); + output.WriteInt32(StorageId); + } + if (StartTime.Length != 0) { + output.WriteRawTag(98); + output.WriteString(StartTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(106); + output.WriteString(EndTime); + } + if (Sort != 0) { + output.WriteRawTag(112); + output.WriteInt32(Sort); + } + if (Icon.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Icon); + } + if (Image.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Image); + } + uPCharacter_.WriteTo(ref output, _repeated_uPCharacter_codec); + uPOutfit_.WriteTo(ref output, _repeated_uPOutfit_codec); + character_.WriteTo(ref output, _repeated_character_codec); + outfit_.WriteTo(ref output, _repeated_outfit_codec); + if (Tag.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Tag); + } + if (Voice.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (DefaultId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultId); + } + if (DefaultQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultQty); + } + if (CostId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CostId); + } + if (CostQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CostQty); + } + if (OncePreferred.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OncePreferred); + } + if (TenTimesPreferred.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TenTimesPreferred); + } + if (LimitTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LimitTimes); + } + if (ATypeUpShowProb != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ATypeUpShowProb); + } + if (BTypeUpShowProb != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BTypeUpShowProb); + } + if (StorageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StorageId); + } + if (StartTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime); + } + if (EndTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Image.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Image); + } + size += uPCharacter_.CalculateSize(_repeated_uPCharacter_codec); + size += uPOutfit_.CalculateSize(_repeated_uPOutfit_codec); + size += character_.CalculateSize(_repeated_character_codec); + size += outfit_.CalculateSize(_repeated_outfit_codec); + if (Tag.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag); + } + if (Voice.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Voice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Gacha other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.DefaultId != 0) { + DefaultId = other.DefaultId; + } + if (other.DefaultQty != 0) { + DefaultQty = other.DefaultQty; + } + if (other.CostId != 0) { + CostId = other.CostId; + } + if (other.CostQty != 0) { + CostQty = other.CostQty; + } + if (other.OncePreferred.Length != 0) { + OncePreferred = other.OncePreferred; + } + if (other.TenTimesPreferred.Length != 0) { + TenTimesPreferred = other.TenTimesPreferred; + } + if (other.LimitTimes != 0) { + LimitTimes = other.LimitTimes; + } + if (other.ATypeUpShowProb != 0) { + ATypeUpShowProb = other.ATypeUpShowProb; + } + if (other.BTypeUpShowProb != 0) { + BTypeUpShowProb = other.BTypeUpShowProb; + } + if (other.StorageId != 0) { + StorageId = other.StorageId; + } + if (other.StartTime.Length != 0) { + StartTime = other.StartTime; + } + if (other.EndTime.Length != 0) { + EndTime = other.EndTime; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + uPCharacter_.Add(other.uPCharacter_); + uPOutfit_.Add(other.uPOutfit_); + character_.Add(other.character_); + outfit_.Add(other.outfit_); + if (other.Tag.Length != 0) { + Tag = other.Tag; + } + if (other.Voice.Length != 0) { + Voice = other.Voice; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DefaultId = input.ReadInt32(); + break; + } + case 24: { + DefaultQty = input.ReadInt32(); + break; + } + case 32: { + CostId = input.ReadInt32(); + break; + } + case 40: { + CostQty = input.ReadInt32(); + break; + } + case 50: { + OncePreferred = input.ReadString(); + break; + } + case 58: { + TenTimesPreferred = input.ReadString(); + break; + } + case 64: { + LimitTimes = input.ReadInt32(); + break; + } + case 72: { + ATypeUpShowProb = input.ReadInt32(); + break; + } + case 80: { + BTypeUpShowProb = input.ReadInt32(); + break; + } + case 88: { + StorageId = input.ReadInt32(); + break; + } + case 98: { + StartTime = input.ReadString(); + break; + } + case 106: { + EndTime = input.ReadString(); + break; + } + case 112: { + Sort = input.ReadInt32(); + break; + } + case 122: { + Icon = input.ReadString(); + break; + } + case 130: { + Image = input.ReadString(); + break; + } + case 138: + case 136: { + uPCharacter_.AddEntriesFrom(input, _repeated_uPCharacter_codec); + break; + } + case 146: + case 144: { + uPOutfit_.AddEntriesFrom(input, _repeated_uPOutfit_codec); + break; + } + case 154: + case 152: { + character_.AddEntriesFrom(input, _repeated_character_codec); + break; + } + case 162: + case 160: { + outfit_.AddEntriesFrom(input, _repeated_outfit_codec); + break; + } + case 170: { + Tag = input.ReadString(); + break; + } + case 178: { + Voice = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DefaultId = input.ReadInt32(); + break; + } + case 24: { + DefaultQty = input.ReadInt32(); + break; + } + case 32: { + CostId = input.ReadInt32(); + break; + } + case 40: { + CostQty = input.ReadInt32(); + break; + } + case 50: { + OncePreferred = input.ReadString(); + break; + } + case 58: { + TenTimesPreferred = input.ReadString(); + break; + } + case 64: { + LimitTimes = input.ReadInt32(); + break; + } + case 72: { + ATypeUpShowProb = input.ReadInt32(); + break; + } + case 80: { + BTypeUpShowProb = input.ReadInt32(); + break; + } + case 88: { + StorageId = input.ReadInt32(); + break; + } + case 98: { + StartTime = input.ReadString(); + break; + } + case 106: { + EndTime = input.ReadString(); + break; + } + case 112: { + Sort = input.ReadInt32(); + break; + } + case 122: { + Icon = input.ReadString(); + break; + } + case 130: { + Image = input.ReadString(); + break; + } + case 138: + case 136: { + uPCharacter_.AddEntriesFrom(ref input, _repeated_uPCharacter_codec); + break; + } + case 146: + case 144: { + uPOutfit_.AddEntriesFrom(ref input, _repeated_uPOutfit_codec); + break; + } + case 154: + case 152: { + character_.AddEntriesFrom(ref input, _repeated_character_codec); + break; + } + case 162: + case 160: { + outfit_.AddEntriesFrom(ref input, _repeated_outfit_codec); + break; + } + case 170: { + Tag = input.ReadString(); + break; + } + case 178: { + Voice = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GachaAcquireReward.cs b/NTR.Common/protos/GachaAcquireReward.cs new file mode 100644 index 0000000..8db4541 --- /dev/null +++ b/NTR.Common/protos/GachaAcquireReward.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GachaAcquireReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GachaAcquireReward.proto + public static partial class GachaAcquireRewardReflection { + + #region Descriptor + /// File descriptor for GachaAcquireReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaAcquireRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhHYWNoYUFjcXVpcmVSZXdhcmQucHJvdG8igwEKEkdhY2hhQWNxdWlyZVJl", + "d2FyZBIKCgJpZBgBIAEoBRISCgppdGVtX3N0eXBlGAIgASgFEhMKC2l0ZW1f", + "cmFyaXR5GAMgASgFEhUKDWFjcXVpcmVfdGltZXMYBCABKAUSDwoHaXRlbV9p", + "ZBgFIAEoBRIQCghpdGVtX251bRgGIAEoBUIOqgILTm92YS5DbGllbnRiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GachaAcquireReward), global::Nova.Client.GachaAcquireReward.Parser, new[]{ "Id", "ItemStype", "ItemRarity", "AcquireTimes", "ItemId", "ItemNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GachaAcquireReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GachaAcquireReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GachaAcquireRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaAcquireReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaAcquireReward(GachaAcquireReward other) : this() { + id_ = other.id_; + itemStype_ = other.itemStype_; + itemRarity_ = other.itemRarity_; + acquireTimes_ = other.acquireTimes_; + itemId_ = other.itemId_; + itemNum_ = other.itemNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaAcquireReward Clone() { + return new GachaAcquireReward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "item_stype" field. + public const int ItemStypeFieldNumber = 2; + private int itemStype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemStype { + get { return itemStype_; } + set { + itemStype_ = value; + } + } + + /// Field number for the "item_rarity" field. + public const int ItemRarityFieldNumber = 3; + private int itemRarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemRarity { + get { return itemRarity_; } + set { + itemRarity_ = value; + } + } + + /// Field number for the "acquire_times" field. + public const int AcquireTimesFieldNumber = 4; + private int acquireTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AcquireTimes { + get { return acquireTimes_; } + set { + acquireTimes_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 5; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_num" field. + public const int ItemNumFieldNumber = 6; + private int itemNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemNum { + get { return itemNum_; } + set { + itemNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GachaAcquireReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GachaAcquireReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ItemStype != other.ItemStype) return false; + if (ItemRarity != other.ItemRarity) return false; + if (AcquireTimes != other.AcquireTimes) return false; + if (ItemId != other.ItemId) return false; + if (ItemNum != other.ItemNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ItemStype != 0) hash ^= ItemStype.GetHashCode(); + if (ItemRarity != 0) hash ^= ItemRarity.GetHashCode(); + if (AcquireTimes != 0) hash ^= AcquireTimes.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemNum != 0) hash ^= ItemNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemStype != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemStype); + } + if (ItemRarity != 0) { + output.WriteRawTag(24); + output.WriteInt32(ItemRarity); + } + if (AcquireTimes != 0) { + output.WriteRawTag(32); + output.WriteInt32(AcquireTimes); + } + if (ItemId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemId); + } + if (ItemNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemStype != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemStype); + } + if (ItemRarity != 0) { + output.WriteRawTag(24); + output.WriteInt32(ItemRarity); + } + if (AcquireTimes != 0) { + output.WriteRawTag(32); + output.WriteInt32(AcquireTimes); + } + if (ItemId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemId); + } + if (ItemNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ItemStype != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemStype); + } + if (ItemRarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemRarity); + } + if (AcquireTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AcquireTimes); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GachaAcquireReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ItemStype != 0) { + ItemStype = other.ItemStype; + } + if (other.ItemRarity != 0) { + ItemRarity = other.ItemRarity; + } + if (other.AcquireTimes != 0) { + AcquireTimes = other.AcquireTimes; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemNum != 0) { + ItemNum = other.ItemNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemStype = input.ReadInt32(); + break; + } + case 24: { + ItemRarity = input.ReadInt32(); + break; + } + case 32: { + AcquireTimes = input.ReadInt32(); + break; + } + case 40: { + ItemId = input.ReadInt32(); + break; + } + case 48: { + ItemNum = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemStype = input.ReadInt32(); + break; + } + case 24: { + ItemRarity = input.ReadInt32(); + break; + } + case 32: { + AcquireTimes = input.ReadInt32(); + break; + } + case 40: { + ItemId = input.ReadInt32(); + break; + } + case 48: { + ItemNum = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GachaType.cs b/NTR.Common/protos/GachaType.cs new file mode 100644 index 0000000..fe04a82 --- /dev/null +++ b/NTR.Common/protos/GachaType.cs @@ -0,0 +1,792 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GachaType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GachaType.proto + public static partial class GachaTypeReflection { + + #region Descriptor + /// File descriptor for GachaType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9HYWNoYVR5cGUucHJvdG8igAIKCUdhY2hhVHlwZRIKCgJpZBgBIAEoBRIM", + "CgRuYW1lGAIgASgJEhEKCWNvaW5faXRlbRgDIAMoBRIOCgZ0aXRsZTEYBCAB", + "KAkSDQoFZGVzYzEYBSABKAkSDgoGdGl0bGUyGAYgASgJEg0KBWRlc2MyGAcg", + "ASgJEg4KBnRpdGxlMxgIIAEoCRINCgVkZXNjMxgJIAEoCRIOCgZ0aXRsZTQY", + "CiABKAkSDQoFZGVzYzQYCyABKAkSDQoFZGVzYzUYDCABKAkSDgoGdGl0bGU1", + "GA0gASgJEg0KBWRlc2M2GA4gASgJEg0KBWRlc2M3GA8gASgJEg0KBWRlc2M4", + "GBAgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GachaType), global::Nova.Client.GachaType.Parser, new[]{ "Id", "Name", "CoinItem", "Title1", "Desc1", "Title2", "Desc2", "Title3", "Desc3", "Title4", "Desc4", "Desc5", "Title5", "Desc6", "Desc7", "Desc8" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GachaType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GachaType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GachaTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaType(GachaType other) : this() { + id_ = other.id_; + name_ = other.name_; + coinItem_ = other.coinItem_.Clone(); + title1_ = other.title1_; + desc1_ = other.desc1_; + title2_ = other.title2_; + desc2_ = other.desc2_; + title3_ = other.title3_; + desc3_ = other.desc3_; + title4_ = other.title4_; + desc4_ = other.desc4_; + desc5_ = other.desc5_; + title5_ = other.title5_; + desc6_ = other.desc6_; + desc7_ = other.desc7_; + desc8_ = other.desc8_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaType Clone() { + return new GachaType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "coin_item" field. + public const int CoinItemFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_coinItem_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField coinItem_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CoinItem { + get { return coinItem_; } + } + + /// Field number for the "title1" field. + public const int Title1FieldNumber = 4; + private string title1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title1 { + get { return title1_; } + set { + title1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc1" field. + public const int Desc1FieldNumber = 5; + private string desc1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc1 { + get { return desc1_; } + set { + desc1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title2" field. + public const int Title2FieldNumber = 6; + private string title2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title2 { + get { return title2_; } + set { + title2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc2" field. + public const int Desc2FieldNumber = 7; + private string desc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc2 { + get { return desc2_; } + set { + desc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title3" field. + public const int Title3FieldNumber = 8; + private string title3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title3 { + get { return title3_; } + set { + title3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc3" field. + public const int Desc3FieldNumber = 9; + private string desc3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc3 { + get { return desc3_; } + set { + desc3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title4" field. + public const int Title4FieldNumber = 10; + private string title4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title4 { + get { return title4_; } + set { + title4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc4" field. + public const int Desc4FieldNumber = 11; + private string desc4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc4 { + get { return desc4_; } + set { + desc4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc5" field. + public const int Desc5FieldNumber = 12; + private string desc5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc5 { + get { return desc5_; } + set { + desc5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title5" field. + public const int Title5FieldNumber = 13; + private string title5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title5 { + get { return title5_; } + set { + title5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc6" field. + public const int Desc6FieldNumber = 14; + private string desc6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc6 { + get { return desc6_; } + set { + desc6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc7" field. + public const int Desc7FieldNumber = 15; + private string desc7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc7 { + get { return desc7_; } + set { + desc7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc8" field. + public const int Desc8FieldNumber = 16; + private string desc8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc8 { + get { return desc8_; } + set { + desc8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GachaType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GachaType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!coinItem_.Equals(other.coinItem_)) return false; + if (Title1 != other.Title1) return false; + if (Desc1 != other.Desc1) return false; + if (Title2 != other.Title2) return false; + if (Desc2 != other.Desc2) return false; + if (Title3 != other.Title3) return false; + if (Desc3 != other.Desc3) return false; + if (Title4 != other.Title4) return false; + if (Desc4 != other.Desc4) return false; + if (Desc5 != other.Desc5) return false; + if (Title5 != other.Title5) return false; + if (Desc6 != other.Desc6) return false; + if (Desc7 != other.Desc7) return false; + if (Desc8 != other.Desc8) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= coinItem_.GetHashCode(); + if (Title1.Length != 0) hash ^= Title1.GetHashCode(); + if (Desc1.Length != 0) hash ^= Desc1.GetHashCode(); + if (Title2.Length != 0) hash ^= Title2.GetHashCode(); + if (Desc2.Length != 0) hash ^= Desc2.GetHashCode(); + if (Title3.Length != 0) hash ^= Title3.GetHashCode(); + if (Desc3.Length != 0) hash ^= Desc3.GetHashCode(); + if (Title4.Length != 0) hash ^= Title4.GetHashCode(); + if (Desc4.Length != 0) hash ^= Desc4.GetHashCode(); + if (Desc5.Length != 0) hash ^= Desc5.GetHashCode(); + if (Title5.Length != 0) hash ^= Title5.GetHashCode(); + if (Desc6.Length != 0) hash ^= Desc6.GetHashCode(); + if (Desc7.Length != 0) hash ^= Desc7.GetHashCode(); + if (Desc8.Length != 0) hash ^= Desc8.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + coinItem_.WriteTo(output, _repeated_coinItem_codec); + if (Title1.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title1); + } + if (Desc1.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc1); + } + if (Title2.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title2); + } + if (Desc2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc2); + } + if (Title3.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Title3); + } + if (Desc3.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc3); + } + if (Title4.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Title4); + } + if (Desc4.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Desc4); + } + if (Desc5.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Desc5); + } + if (Title5.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Title5); + } + if (Desc6.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Desc6); + } + if (Desc7.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Desc7); + } + if (Desc8.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Desc8); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + coinItem_.WriteTo(ref output, _repeated_coinItem_codec); + if (Title1.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title1); + } + if (Desc1.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc1); + } + if (Title2.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title2); + } + if (Desc2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc2); + } + if (Title3.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Title3); + } + if (Desc3.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc3); + } + if (Title4.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Title4); + } + if (Desc4.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Desc4); + } + if (Desc5.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Desc5); + } + if (Title5.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Title5); + } + if (Desc6.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Desc6); + } + if (Desc7.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Desc7); + } + if (Desc8.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Desc8); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += coinItem_.CalculateSize(_repeated_coinItem_codec); + if (Title1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title1); + } + if (Desc1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc1); + } + if (Title2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title2); + } + if (Desc2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc2); + } + if (Title3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title3); + } + if (Desc3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc3); + } + if (Title4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title4); + } + if (Desc4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc4); + } + if (Desc5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc5); + } + if (Title5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title5); + } + if (Desc6.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc6); + } + if (Desc7.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc7); + } + if (Desc8.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc8); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GachaType other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + coinItem_.Add(other.coinItem_); + if (other.Title1.Length != 0) { + Title1 = other.Title1; + } + if (other.Desc1.Length != 0) { + Desc1 = other.Desc1; + } + if (other.Title2.Length != 0) { + Title2 = other.Title2; + } + if (other.Desc2.Length != 0) { + Desc2 = other.Desc2; + } + if (other.Title3.Length != 0) { + Title3 = other.Title3; + } + if (other.Desc3.Length != 0) { + Desc3 = other.Desc3; + } + if (other.Title4.Length != 0) { + Title4 = other.Title4; + } + if (other.Desc4.Length != 0) { + Desc4 = other.Desc4; + } + if (other.Desc5.Length != 0) { + Desc5 = other.Desc5; + } + if (other.Title5.Length != 0) { + Title5 = other.Title5; + } + if (other.Desc6.Length != 0) { + Desc6 = other.Desc6; + } + if (other.Desc7.Length != 0) { + Desc7 = other.Desc7; + } + if (other.Desc8.Length != 0) { + Desc8 = other.Desc8; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: + case 24: { + coinItem_.AddEntriesFrom(input, _repeated_coinItem_codec); + break; + } + case 34: { + Title1 = input.ReadString(); + break; + } + case 42: { + Desc1 = input.ReadString(); + break; + } + case 50: { + Title2 = input.ReadString(); + break; + } + case 58: { + Desc2 = input.ReadString(); + break; + } + case 66: { + Title3 = input.ReadString(); + break; + } + case 74: { + Desc3 = input.ReadString(); + break; + } + case 82: { + Title4 = input.ReadString(); + break; + } + case 90: { + Desc4 = input.ReadString(); + break; + } + case 98: { + Desc5 = input.ReadString(); + break; + } + case 106: { + Title5 = input.ReadString(); + break; + } + case 114: { + Desc6 = input.ReadString(); + break; + } + case 122: { + Desc7 = input.ReadString(); + break; + } + case 130: { + Desc8 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: + case 24: { + coinItem_.AddEntriesFrom(ref input, _repeated_coinItem_codec); + break; + } + case 34: { + Title1 = input.ReadString(); + break; + } + case 42: { + Desc1 = input.ReadString(); + break; + } + case 50: { + Title2 = input.ReadString(); + break; + } + case 58: { + Desc2 = input.ReadString(); + break; + } + case 66: { + Title3 = input.ReadString(); + break; + } + case 74: { + Desc3 = input.ReadString(); + break; + } + case 82: { + Title4 = input.ReadString(); + break; + } + case 90: { + Desc4 = input.ReadString(); + break; + } + case 98: { + Desc5 = input.ReadString(); + break; + } + case 106: { + Title5 = input.ReadString(); + break; + } + case 114: { + Desc6 = input.ReadString(); + break; + } + case 122: { + Desc7 = input.ReadString(); + break; + } + case 130: { + Desc8 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GamepadButton.cs b/NTR.Common/protos/GamepadButton.cs new file mode 100644 index 0000000..0bb3ebd --- /dev/null +++ b/NTR.Common/protos/GamepadButton.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GamepadButton.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GamepadButton.proto + public static partial class GamepadButtonReflection { + + #region Descriptor + /// File descriptor for GamepadButton.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GamepadButtonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNHYW1lcGFkQnV0dG9uLnByb3RvIkkKDUdhbWVwYWRCdXR0b24SCgoCaWQY", + "ASABKAkSEQoJeGJveF9pY29uGAIgASgJEhkKEXBsYXlfc3RhdGlvbl9pY29u", + "GAMgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GamepadButton), global::Nova.Client.GamepadButton.Parser, new[]{ "Id", "XboxIcon", "PlayStationIcon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GamepadButton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GamepadButton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GamepadButtonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GamepadButton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GamepadButton(GamepadButton other) : this() { + id_ = other.id_; + xboxIcon_ = other.xboxIcon_; + playStationIcon_ = other.playStationIcon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GamepadButton Clone() { + return new GamepadButton(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "xbox_icon" field. + public const int XboxIconFieldNumber = 2; + private string xboxIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string XboxIcon { + get { return xboxIcon_; } + set { + xboxIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "play_station_icon" field. + public const int PlayStationIconFieldNumber = 3; + private string playStationIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayStationIcon { + get { return playStationIcon_; } + set { + playStationIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GamepadButton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GamepadButton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (XboxIcon != other.XboxIcon) return false; + if (PlayStationIcon != other.PlayStationIcon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (XboxIcon.Length != 0) hash ^= XboxIcon.GetHashCode(); + if (PlayStationIcon.Length != 0) hash ^= PlayStationIcon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (XboxIcon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(XboxIcon); + } + if (PlayStationIcon.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PlayStationIcon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (XboxIcon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(XboxIcon); + } + if (PlayStationIcon.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PlayStationIcon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (XboxIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(XboxIcon); + } + if (PlayStationIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayStationIcon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GamepadButton other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.XboxIcon.Length != 0) { + XboxIcon = other.XboxIcon; + } + if (other.PlayStationIcon.Length != 0) { + PlayStationIcon = other.PlayStationIcon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + XboxIcon = input.ReadString(); + break; + } + case 26: { + PlayStationIcon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + XboxIcon = input.ReadString(); + break; + } + case 26: { + PlayStationIcon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Guide.cs b/NTR.Common/protos/Guide.cs new file mode 100644 index 0000000..408c84c --- /dev/null +++ b/NTR.Common/protos/Guide.cs @@ -0,0 +1,1017 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Guide.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Guide.proto + public static partial class GuideReflection { + + #region Descriptor + /// File descriptor for Guide.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GuideReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtHdWlkZS5wcm90byLEAwoFR3VpZGUSCgoCaWQYASABKAUSEAoIZ3JvdXBf", + "aWQYAiABKAUSDAoEc3RlcBgDIAEoBRIMCgR0eXBlGAQgASgFEhUKDWd1aWRl", + "X3ByZXBvc2UYBSABKAUSFgoOcHJlcG9zZV9wYXJhbXMYBiABKAkSFQoNZ3Vp", + "ZGVfdHJpZ2dlchgHIAEoBRIWCg50cmlnZ2VyX3BhcmFtcxgIIAEoCRIQCghl", + "bmRfdHlwZRgJIAEoBRIVCg1jZW50ZXJfb2Zmc2V0GAogASgCEhEKCWJpbmRf", + "aWNvbhgLIAMoCRIdChViaW5kX2ljb25fY2hpbGRfY291bnQYDCABKAUSDAoE", + "c2l6ZRgNIAMoBRIRCglkZXZpYXRpb24YDiADKAUSDQoFZGVsYXkYDyABKAUS", + "DAoEaGVhZBgQIAEoCRIMCgRkZXNjGBEgASgJEhYKDmRlc2NfZGV2aWF0aW9u", + "GBIgAygFEhYKDmhhbmRfZGV2aWF0aW9uGBMgAygFEhUKDWhhbmRfcm90YXRp", + "b24YFCABKAUSEgoKZGljdGlvbmFyeRgVIAEoBRIOCgZhdmdfaWQYFiABKAkS", + "EQoJaXNfYWN0aXZlGBcgASgIQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Guide), global::Nova.Client.Guide.Parser, new[]{ "Id", "GroupId", "Step", "Type", "GuidePrepose", "PreposeParams", "GuideTrigger", "TriggerParams", "EndType", "CenterOffset", "BindIcon", "BindIconChildCount", "Size", "Deviation", "Delay", "Head", "Desc", "DescDeviation", "HandDeviation", "HandRotation", "Dictionary", "AvgId", "IsActive" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Guide : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Guide()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GuideReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Guide() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Guide(Guide other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + step_ = other.step_; + type_ = other.type_; + guidePrepose_ = other.guidePrepose_; + preposeParams_ = other.preposeParams_; + guideTrigger_ = other.guideTrigger_; + triggerParams_ = other.triggerParams_; + endType_ = other.endType_; + centerOffset_ = other.centerOffset_; + bindIcon_ = other.bindIcon_.Clone(); + bindIconChildCount_ = other.bindIconChildCount_; + size_ = other.size_.Clone(); + deviation_ = other.deviation_.Clone(); + delay_ = other.delay_; + head_ = other.head_; + desc_ = other.desc_; + descDeviation_ = other.descDeviation_.Clone(); + handDeviation_ = other.handDeviation_.Clone(); + handRotation_ = other.handRotation_; + dictionary_ = other.dictionary_; + avgId_ = other.avgId_; + isActive_ = other.isActive_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Guide Clone() { + return new Guide(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "step" field. + public const int StepFieldNumber = 3; + private int step_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Step { + get { return step_; } + set { + step_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "guide_prepose" field. + public const int GuidePreposeFieldNumber = 5; + private int guidePrepose_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuidePrepose { + get { return guidePrepose_; } + set { + guidePrepose_ = value; + } + } + + /// Field number for the "prepose_params" field. + public const int PreposeParamsFieldNumber = 6; + private string preposeParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PreposeParams { + get { return preposeParams_; } + set { + preposeParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "guide_trigger" field. + public const int GuideTriggerFieldNumber = 7; + private int guideTrigger_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuideTrigger { + get { return guideTrigger_; } + set { + guideTrigger_ = value; + } + } + + /// Field number for the "trigger_params" field. + public const int TriggerParamsFieldNumber = 8; + private string triggerParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParams { + get { return triggerParams_; } + set { + triggerParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_type" field. + public const int EndTypeFieldNumber = 9; + private int endType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndType { + get { return endType_; } + set { + endType_ = value; + } + } + + /// Field number for the "center_offset" field. + public const int CenterOffsetFieldNumber = 10; + private float centerOffset_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CenterOffset { + get { return centerOffset_; } + set { + centerOffset_ = value; + } + } + + /// Field number for the "bind_icon" field. + public const int BindIconFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_bindIcon_codec + = pb::FieldCodec.ForString(90); + private readonly pbc::RepeatedField bindIcon_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BindIcon { + get { return bindIcon_; } + } + + /// Field number for the "bind_icon_child_count" field. + public const int BindIconChildCountFieldNumber = 12; + private int bindIconChildCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BindIconChildCount { + get { return bindIconChildCount_; } + set { + bindIconChildCount_ = value; + } + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_size_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField size_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Size { + get { return size_; } + } + + /// Field number for the "deviation" field. + public const int DeviationFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_deviation_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField deviation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Deviation { + get { return deviation_; } + } + + /// Field number for the "delay" field. + public const int DelayFieldNumber = 15; + private int delay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Delay { + get { return delay_; } + set { + delay_ = value; + } + } + + /// Field number for the "head" field. + public const int HeadFieldNumber = 16; + private string head_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Head { + get { return head_; } + set { + head_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 17; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc_deviation" field. + public const int DescDeviationFieldNumber = 18; + private static readonly pb::FieldCodec _repeated_descDeviation_codec + = pb::FieldCodec.ForInt32(146); + private readonly pbc::RepeatedField descDeviation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DescDeviation { + get { return descDeviation_; } + } + + /// Field number for the "hand_deviation" field. + public const int HandDeviationFieldNumber = 19; + private static readonly pb::FieldCodec _repeated_handDeviation_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField handDeviation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HandDeviation { + get { return handDeviation_; } + } + + /// Field number for the "hand_rotation" field. + public const int HandRotationFieldNumber = 20; + private int handRotation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HandRotation { + get { return handRotation_; } + set { + handRotation_ = value; + } + } + + /// Field number for the "dictionary" field. + public const int DictionaryFieldNumber = 21; + private int dictionary_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Dictionary { + get { return dictionary_; } + set { + dictionary_ = value; + } + } + + /// Field number for the "avg_id" field. + public const int AvgIdFieldNumber = 22; + private string avgId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AvgId { + get { return avgId_; } + set { + avgId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_active" field. + public const int IsActiveFieldNumber = 23; + private bool isActive_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsActive { + get { return isActive_; } + set { + isActive_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Guide); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Guide other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Step != other.Step) return false; + if (Type != other.Type) return false; + if (GuidePrepose != other.GuidePrepose) return false; + if (PreposeParams != other.PreposeParams) return false; + if (GuideTrigger != other.GuideTrigger) return false; + if (TriggerParams != other.TriggerParams) return false; + if (EndType != other.EndType) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CenterOffset, other.CenterOffset)) return false; + if(!bindIcon_.Equals(other.bindIcon_)) return false; + if (BindIconChildCount != other.BindIconChildCount) return false; + if(!size_.Equals(other.size_)) return false; + if(!deviation_.Equals(other.deviation_)) return false; + if (Delay != other.Delay) return false; + if (Head != other.Head) return false; + if (Desc != other.Desc) return false; + if(!descDeviation_.Equals(other.descDeviation_)) return false; + if(!handDeviation_.Equals(other.handDeviation_)) return false; + if (HandRotation != other.HandRotation) return false; + if (Dictionary != other.Dictionary) return false; + if (AvgId != other.AvgId) return false; + if (IsActive != other.IsActive) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Step != 0) hash ^= Step.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (GuidePrepose != 0) hash ^= GuidePrepose.GetHashCode(); + if (PreposeParams.Length != 0) hash ^= PreposeParams.GetHashCode(); + if (GuideTrigger != 0) hash ^= GuideTrigger.GetHashCode(); + if (TriggerParams.Length != 0) hash ^= TriggerParams.GetHashCode(); + if (EndType != 0) hash ^= EndType.GetHashCode(); + if (CenterOffset != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CenterOffset); + hash ^= bindIcon_.GetHashCode(); + if (BindIconChildCount != 0) hash ^= BindIconChildCount.GetHashCode(); + hash ^= size_.GetHashCode(); + hash ^= deviation_.GetHashCode(); + if (Delay != 0) hash ^= Delay.GetHashCode(); + if (Head.Length != 0) hash ^= Head.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + hash ^= descDeviation_.GetHashCode(); + hash ^= handDeviation_.GetHashCode(); + if (HandRotation != 0) hash ^= HandRotation.GetHashCode(); + if (Dictionary != 0) hash ^= Dictionary.GetHashCode(); + if (AvgId.Length != 0) hash ^= AvgId.GetHashCode(); + if (IsActive != false) hash ^= IsActive.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Step != 0) { + output.WriteRawTag(24); + output.WriteInt32(Step); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (GuidePrepose != 0) { + output.WriteRawTag(40); + output.WriteInt32(GuidePrepose); + } + if (PreposeParams.Length != 0) { + output.WriteRawTag(50); + output.WriteString(PreposeParams); + } + if (GuideTrigger != 0) { + output.WriteRawTag(56); + output.WriteInt32(GuideTrigger); + } + if (TriggerParams.Length != 0) { + output.WriteRawTag(66); + output.WriteString(TriggerParams); + } + if (EndType != 0) { + output.WriteRawTag(72); + output.WriteInt32(EndType); + } + if (CenterOffset != 0F) { + output.WriteRawTag(85); + output.WriteFloat(CenterOffset); + } + bindIcon_.WriteTo(output, _repeated_bindIcon_codec); + if (BindIconChildCount != 0) { + output.WriteRawTag(96); + output.WriteInt32(BindIconChildCount); + } + size_.WriteTo(output, _repeated_size_codec); + deviation_.WriteTo(output, _repeated_deviation_codec); + if (Delay != 0) { + output.WriteRawTag(120); + output.WriteInt32(Delay); + } + if (Head.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Head); + } + if (Desc.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Desc); + } + descDeviation_.WriteTo(output, _repeated_descDeviation_codec); + handDeviation_.WriteTo(output, _repeated_handDeviation_codec); + if (HandRotation != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(HandRotation); + } + if (Dictionary != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(Dictionary); + } + if (AvgId.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(AvgId); + } + if (IsActive != false) { + output.WriteRawTag(184, 1); + output.WriteBool(IsActive); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Step != 0) { + output.WriteRawTag(24); + output.WriteInt32(Step); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (GuidePrepose != 0) { + output.WriteRawTag(40); + output.WriteInt32(GuidePrepose); + } + if (PreposeParams.Length != 0) { + output.WriteRawTag(50); + output.WriteString(PreposeParams); + } + if (GuideTrigger != 0) { + output.WriteRawTag(56); + output.WriteInt32(GuideTrigger); + } + if (TriggerParams.Length != 0) { + output.WriteRawTag(66); + output.WriteString(TriggerParams); + } + if (EndType != 0) { + output.WriteRawTag(72); + output.WriteInt32(EndType); + } + if (CenterOffset != 0F) { + output.WriteRawTag(85); + output.WriteFloat(CenterOffset); + } + bindIcon_.WriteTo(ref output, _repeated_bindIcon_codec); + if (BindIconChildCount != 0) { + output.WriteRawTag(96); + output.WriteInt32(BindIconChildCount); + } + size_.WriteTo(ref output, _repeated_size_codec); + deviation_.WriteTo(ref output, _repeated_deviation_codec); + if (Delay != 0) { + output.WriteRawTag(120); + output.WriteInt32(Delay); + } + if (Head.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Head); + } + if (Desc.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Desc); + } + descDeviation_.WriteTo(ref output, _repeated_descDeviation_codec); + handDeviation_.WriteTo(ref output, _repeated_handDeviation_codec); + if (HandRotation != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(HandRotation); + } + if (Dictionary != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(Dictionary); + } + if (AvgId.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(AvgId); + } + if (IsActive != false) { + output.WriteRawTag(184, 1); + output.WriteBool(IsActive); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Step != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Step); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (GuidePrepose != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuidePrepose); + } + if (PreposeParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreposeParams); + } + if (GuideTrigger != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuideTrigger); + } + if (TriggerParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParams); + } + if (EndType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndType); + } + if (CenterOffset != 0F) { + size += 1 + 4; + } + size += bindIcon_.CalculateSize(_repeated_bindIcon_codec); + if (BindIconChildCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BindIconChildCount); + } + size += size_.CalculateSize(_repeated_size_codec); + size += deviation_.CalculateSize(_repeated_deviation_codec); + if (Delay != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Delay); + } + if (Head.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Head); + } + if (Desc.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += descDeviation_.CalculateSize(_repeated_descDeviation_codec); + size += handDeviation_.CalculateSize(_repeated_handDeviation_codec); + if (HandRotation != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HandRotation); + } + if (Dictionary != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dictionary); + } + if (AvgId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AvgId); + } + if (IsActive != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Guide other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Step != 0) { + Step = other.Step; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.GuidePrepose != 0) { + GuidePrepose = other.GuidePrepose; + } + if (other.PreposeParams.Length != 0) { + PreposeParams = other.PreposeParams; + } + if (other.GuideTrigger != 0) { + GuideTrigger = other.GuideTrigger; + } + if (other.TriggerParams.Length != 0) { + TriggerParams = other.TriggerParams; + } + if (other.EndType != 0) { + EndType = other.EndType; + } + if (other.CenterOffset != 0F) { + CenterOffset = other.CenterOffset; + } + bindIcon_.Add(other.bindIcon_); + if (other.BindIconChildCount != 0) { + BindIconChildCount = other.BindIconChildCount; + } + size_.Add(other.size_); + deviation_.Add(other.deviation_); + if (other.Delay != 0) { + Delay = other.Delay; + } + if (other.Head.Length != 0) { + Head = other.Head; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + descDeviation_.Add(other.descDeviation_); + handDeviation_.Add(other.handDeviation_); + if (other.HandRotation != 0) { + HandRotation = other.HandRotation; + } + if (other.Dictionary != 0) { + Dictionary = other.Dictionary; + } + if (other.AvgId.Length != 0) { + AvgId = other.AvgId; + } + if (other.IsActive != false) { + IsActive = other.IsActive; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Step = input.ReadInt32(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 40: { + GuidePrepose = input.ReadInt32(); + break; + } + case 50: { + PreposeParams = input.ReadString(); + break; + } + case 56: { + GuideTrigger = input.ReadInt32(); + break; + } + case 66: { + TriggerParams = input.ReadString(); + break; + } + case 72: { + EndType = input.ReadInt32(); + break; + } + case 85: { + CenterOffset = input.ReadFloat(); + break; + } + case 90: { + bindIcon_.AddEntriesFrom(input, _repeated_bindIcon_codec); + break; + } + case 96: { + BindIconChildCount = input.ReadInt32(); + break; + } + case 106: + case 104: { + size_.AddEntriesFrom(input, _repeated_size_codec); + break; + } + case 114: + case 112: { + deviation_.AddEntriesFrom(input, _repeated_deviation_codec); + break; + } + case 120: { + Delay = input.ReadInt32(); + break; + } + case 130: { + Head = input.ReadString(); + break; + } + case 138: { + Desc = input.ReadString(); + break; + } + case 146: + case 144: { + descDeviation_.AddEntriesFrom(input, _repeated_descDeviation_codec); + break; + } + case 154: + case 152: { + handDeviation_.AddEntriesFrom(input, _repeated_handDeviation_codec); + break; + } + case 160: { + HandRotation = input.ReadInt32(); + break; + } + case 168: { + Dictionary = input.ReadInt32(); + break; + } + case 178: { + AvgId = input.ReadString(); + break; + } + case 184: { + IsActive = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Step = input.ReadInt32(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 40: { + GuidePrepose = input.ReadInt32(); + break; + } + case 50: { + PreposeParams = input.ReadString(); + break; + } + case 56: { + GuideTrigger = input.ReadInt32(); + break; + } + case 66: { + TriggerParams = input.ReadString(); + break; + } + case 72: { + EndType = input.ReadInt32(); + break; + } + case 85: { + CenterOffset = input.ReadFloat(); + break; + } + case 90: { + bindIcon_.AddEntriesFrom(ref input, _repeated_bindIcon_codec); + break; + } + case 96: { + BindIconChildCount = input.ReadInt32(); + break; + } + case 106: + case 104: { + size_.AddEntriesFrom(ref input, _repeated_size_codec); + break; + } + case 114: + case 112: { + deviation_.AddEntriesFrom(ref input, _repeated_deviation_codec); + break; + } + case 120: { + Delay = input.ReadInt32(); + break; + } + case 130: { + Head = input.ReadString(); + break; + } + case 138: { + Desc = input.ReadString(); + break; + } + case 146: + case 144: { + descDeviation_.AddEntriesFrom(ref input, _repeated_descDeviation_codec); + break; + } + case 154: + case 152: { + handDeviation_.AddEntriesFrom(ref input, _repeated_handDeviation_codec); + break; + } + case 160: { + HandRotation = input.ReadInt32(); + break; + } + case 168: { + Dictionary = input.ReadInt32(); + break; + } + case 178: { + AvgId = input.ReadString(); + break; + } + case 184: { + IsActive = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/GuideGroup.cs b/NTR.Common/protos/GuideGroup.cs new file mode 100644 index 0000000..c481cac --- /dev/null +++ b/NTR.Common/protos/GuideGroup.cs @@ -0,0 +1,729 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GuideGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from GuideGroup.proto + public static partial class GuideGroupReflection { + + #region Descriptor + /// File descriptor for GuideGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GuideGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBHdWlkZUdyb3VwLnByb3RvIsACCgpHdWlkZUdyb3VwEgoKAmlkGAEgASgF", + "EhwKFGd1aWRlX2RldGVjdGlvbl90eXBlGAIgASgFEhMKC3Bhc3NpdmVfbXNn", + "GAMgASgJEhUKDWd1aWRlX3ByZXBvc2UYBCABKAUSFgoOcHJlcG9zZV9wYXJh", + "bXMYBSABKAkSFgoOZ3VpZGVfcHJlcG9zZTIYBiABKAUSFwoPcHJlcG9zZV9w", + "YXJhbXMyGAcgASgJEhIKCmd1aWRlX3Bvc3QYCCABKAUSEwoLcG9zdF9wYXJh", + "bXMYCSABKAkSFQoNZ3VpZGVfdHJpZ2dlchgKIAEoBRIWCg50cmlnZ2VyX3Bh", + "cmFtcxgLIAEoCRITCgt0b3dlcl9zdGF0ZRgMIAEoCBITCgtzY3JpcHRfcGF0", + "aBgNIAEoCRIRCglpc19hY3RpdmUYDiABKAhCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.GuideGroup), global::Nova.Client.GuideGroup.Parser, new[]{ "Id", "GuideDetectionType", "PassiveMsg", "GuidePrepose", "PreposeParams", "GuidePrepose2", "PreposeParams2", "GuidePost", "PostParams", "GuideTrigger", "TriggerParams", "TowerState", "ScriptPath", "IsActive" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GuideGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GuideGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.GuideGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GuideGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GuideGroup(GuideGroup other) : this() { + id_ = other.id_; + guideDetectionType_ = other.guideDetectionType_; + passiveMsg_ = other.passiveMsg_; + guidePrepose_ = other.guidePrepose_; + preposeParams_ = other.preposeParams_; + guidePrepose2_ = other.guidePrepose2_; + preposeParams2_ = other.preposeParams2_; + guidePost_ = other.guidePost_; + postParams_ = other.postParams_; + guideTrigger_ = other.guideTrigger_; + triggerParams_ = other.triggerParams_; + towerState_ = other.towerState_; + scriptPath_ = other.scriptPath_; + isActive_ = other.isActive_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GuideGroup Clone() { + return new GuideGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "guide_detection_type" field. + public const int GuideDetectionTypeFieldNumber = 2; + private int guideDetectionType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuideDetectionType { + get { return guideDetectionType_; } + set { + guideDetectionType_ = value; + } + } + + /// Field number for the "passive_msg" field. + public const int PassiveMsgFieldNumber = 3; + private string passiveMsg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PassiveMsg { + get { return passiveMsg_; } + set { + passiveMsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "guide_prepose" field. + public const int GuidePreposeFieldNumber = 4; + private int guidePrepose_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuidePrepose { + get { return guidePrepose_; } + set { + guidePrepose_ = value; + } + } + + /// Field number for the "prepose_params" field. + public const int PreposeParamsFieldNumber = 5; + private string preposeParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PreposeParams { + get { return preposeParams_; } + set { + preposeParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "guide_prepose2" field. + public const int GuidePrepose2FieldNumber = 6; + private int guidePrepose2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuidePrepose2 { + get { return guidePrepose2_; } + set { + guidePrepose2_ = value; + } + } + + /// Field number for the "prepose_params2" field. + public const int PreposeParams2FieldNumber = 7; + private string preposeParams2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PreposeParams2 { + get { return preposeParams2_; } + set { + preposeParams2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "guide_post" field. + public const int GuidePostFieldNumber = 8; + private int guidePost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuidePost { + get { return guidePost_; } + set { + guidePost_ = value; + } + } + + /// Field number for the "post_params" field. + public const int PostParamsFieldNumber = 9; + private string postParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PostParams { + get { return postParams_; } + set { + postParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "guide_trigger" field. + public const int GuideTriggerFieldNumber = 10; + private int guideTrigger_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuideTrigger { + get { return guideTrigger_; } + set { + guideTrigger_ = value; + } + } + + /// Field number for the "trigger_params" field. + public const int TriggerParamsFieldNumber = 11; + private string triggerParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParams { + get { return triggerParams_; } + set { + triggerParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tower_state" field. + public const int TowerStateFieldNumber = 12; + private bool towerState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool TowerState { + get { return towerState_; } + set { + towerState_ = value; + } + } + + /// Field number for the "script_path" field. + public const int ScriptPathFieldNumber = 13; + private string scriptPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ScriptPath { + get { return scriptPath_; } + set { + scriptPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_active" field. + public const int IsActiveFieldNumber = 14; + private bool isActive_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsActive { + get { return isActive_; } + set { + isActive_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GuideGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GuideGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GuideDetectionType != other.GuideDetectionType) return false; + if (PassiveMsg != other.PassiveMsg) return false; + if (GuidePrepose != other.GuidePrepose) return false; + if (PreposeParams != other.PreposeParams) return false; + if (GuidePrepose2 != other.GuidePrepose2) return false; + if (PreposeParams2 != other.PreposeParams2) return false; + if (GuidePost != other.GuidePost) return false; + if (PostParams != other.PostParams) return false; + if (GuideTrigger != other.GuideTrigger) return false; + if (TriggerParams != other.TriggerParams) return false; + if (TowerState != other.TowerState) return false; + if (ScriptPath != other.ScriptPath) return false; + if (IsActive != other.IsActive) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GuideDetectionType != 0) hash ^= GuideDetectionType.GetHashCode(); + if (PassiveMsg.Length != 0) hash ^= PassiveMsg.GetHashCode(); + if (GuidePrepose != 0) hash ^= GuidePrepose.GetHashCode(); + if (PreposeParams.Length != 0) hash ^= PreposeParams.GetHashCode(); + if (GuidePrepose2 != 0) hash ^= GuidePrepose2.GetHashCode(); + if (PreposeParams2.Length != 0) hash ^= PreposeParams2.GetHashCode(); + if (GuidePost != 0) hash ^= GuidePost.GetHashCode(); + if (PostParams.Length != 0) hash ^= PostParams.GetHashCode(); + if (GuideTrigger != 0) hash ^= GuideTrigger.GetHashCode(); + if (TriggerParams.Length != 0) hash ^= TriggerParams.GetHashCode(); + if (TowerState != false) hash ^= TowerState.GetHashCode(); + if (ScriptPath.Length != 0) hash ^= ScriptPath.GetHashCode(); + if (IsActive != false) hash ^= IsActive.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GuideDetectionType != 0) { + output.WriteRawTag(16); + output.WriteInt32(GuideDetectionType); + } + if (PassiveMsg.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PassiveMsg); + } + if (GuidePrepose != 0) { + output.WriteRawTag(32); + output.WriteInt32(GuidePrepose); + } + if (PreposeParams.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PreposeParams); + } + if (GuidePrepose2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(GuidePrepose2); + } + if (PreposeParams2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PreposeParams2); + } + if (GuidePost != 0) { + output.WriteRawTag(64); + output.WriteInt32(GuidePost); + } + if (PostParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PostParams); + } + if (GuideTrigger != 0) { + output.WriteRawTag(80); + output.WriteInt32(GuideTrigger); + } + if (TriggerParams.Length != 0) { + output.WriteRawTag(90); + output.WriteString(TriggerParams); + } + if (TowerState != false) { + output.WriteRawTag(96); + output.WriteBool(TowerState); + } + if (ScriptPath.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ScriptPath); + } + if (IsActive != false) { + output.WriteRawTag(112); + output.WriteBool(IsActive); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GuideDetectionType != 0) { + output.WriteRawTag(16); + output.WriteInt32(GuideDetectionType); + } + if (PassiveMsg.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PassiveMsg); + } + if (GuidePrepose != 0) { + output.WriteRawTag(32); + output.WriteInt32(GuidePrepose); + } + if (PreposeParams.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PreposeParams); + } + if (GuidePrepose2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(GuidePrepose2); + } + if (PreposeParams2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PreposeParams2); + } + if (GuidePost != 0) { + output.WriteRawTag(64); + output.WriteInt32(GuidePost); + } + if (PostParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PostParams); + } + if (GuideTrigger != 0) { + output.WriteRawTag(80); + output.WriteInt32(GuideTrigger); + } + if (TriggerParams.Length != 0) { + output.WriteRawTag(90); + output.WriteString(TriggerParams); + } + if (TowerState != false) { + output.WriteRawTag(96); + output.WriteBool(TowerState); + } + if (ScriptPath.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ScriptPath); + } + if (IsActive != false) { + output.WriteRawTag(112); + output.WriteBool(IsActive); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GuideDetectionType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuideDetectionType); + } + if (PassiveMsg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PassiveMsg); + } + if (GuidePrepose != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuidePrepose); + } + if (PreposeParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreposeParams); + } + if (GuidePrepose2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuidePrepose2); + } + if (PreposeParams2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreposeParams2); + } + if (GuidePost != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuidePost); + } + if (PostParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PostParams); + } + if (GuideTrigger != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuideTrigger); + } + if (TriggerParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParams); + } + if (TowerState != false) { + size += 1 + 1; + } + if (ScriptPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ScriptPath); + } + if (IsActive != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GuideGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GuideDetectionType != 0) { + GuideDetectionType = other.GuideDetectionType; + } + if (other.PassiveMsg.Length != 0) { + PassiveMsg = other.PassiveMsg; + } + if (other.GuidePrepose != 0) { + GuidePrepose = other.GuidePrepose; + } + if (other.PreposeParams.Length != 0) { + PreposeParams = other.PreposeParams; + } + if (other.GuidePrepose2 != 0) { + GuidePrepose2 = other.GuidePrepose2; + } + if (other.PreposeParams2.Length != 0) { + PreposeParams2 = other.PreposeParams2; + } + if (other.GuidePost != 0) { + GuidePost = other.GuidePost; + } + if (other.PostParams.Length != 0) { + PostParams = other.PostParams; + } + if (other.GuideTrigger != 0) { + GuideTrigger = other.GuideTrigger; + } + if (other.TriggerParams.Length != 0) { + TriggerParams = other.TriggerParams; + } + if (other.TowerState != false) { + TowerState = other.TowerState; + } + if (other.ScriptPath.Length != 0) { + ScriptPath = other.ScriptPath; + } + if (other.IsActive != false) { + IsActive = other.IsActive; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GuideDetectionType = input.ReadInt32(); + break; + } + case 26: { + PassiveMsg = input.ReadString(); + break; + } + case 32: { + GuidePrepose = input.ReadInt32(); + break; + } + case 42: { + PreposeParams = input.ReadString(); + break; + } + case 48: { + GuidePrepose2 = input.ReadInt32(); + break; + } + case 58: { + PreposeParams2 = input.ReadString(); + break; + } + case 64: { + GuidePost = input.ReadInt32(); + break; + } + case 74: { + PostParams = input.ReadString(); + break; + } + case 80: { + GuideTrigger = input.ReadInt32(); + break; + } + case 90: { + TriggerParams = input.ReadString(); + break; + } + case 96: { + TowerState = input.ReadBool(); + break; + } + case 106: { + ScriptPath = input.ReadString(); + break; + } + case 112: { + IsActive = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GuideDetectionType = input.ReadInt32(); + break; + } + case 26: { + PassiveMsg = input.ReadString(); + break; + } + case 32: { + GuidePrepose = input.ReadInt32(); + break; + } + case 42: { + PreposeParams = input.ReadString(); + break; + } + case 48: { + GuidePrepose2 = input.ReadInt32(); + break; + } + case 58: { + PreposeParams2 = input.ReadString(); + break; + } + case 64: { + GuidePost = input.ReadInt32(); + break; + } + case 74: { + PostParams = input.ReadString(); + break; + } + case 80: { + GuideTrigger = input.ReadInt32(); + break; + } + case 90: { + TriggerParams = input.ReadString(); + break; + } + case 96: { + TowerState = input.ReadBool(); + break; + } + case 106: { + ScriptPath = input.ReadString(); + break; + } + case 112: { + IsActive = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Handbook.cs b/NTR.Common/protos/Handbook.cs new file mode 100644 index 0000000..24b3adf --- /dev/null +++ b/NTR.Common/protos/Handbook.cs @@ -0,0 +1,428 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Handbook.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Handbook.proto + public static partial class HandbookReflection { + + #region Descriptor + /// File descriptor for Handbook.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HandbookReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5IYW5kYm9vay5wcm90byJjCghIYW5kYm9vaxIKCgJpZBgBIAEoBRINCgVp", + "bmRleBgCIAEoBRIMCgR0eXBlGAMgASgFEg8KB2NoYXJfaWQYBCABKAUSDwoH", + "c2tpbl9pZBgFIAEoBRIMCgRjb25kGAYgASgFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Handbook), global::Nova.Client.Handbook.Parser, new[]{ "Id", "Index", "Type", "CharId", "SkinId", "Cond" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Handbook : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Handbook()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.HandbookReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Handbook() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Handbook(Handbook other) : this() { + id_ = other.id_; + index_ = other.index_; + type_ = other.type_; + charId_ = other.charId_; + skinId_ = other.skinId_; + cond_ = other.cond_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Handbook Clone() { + return new Handbook(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 2; + private int index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 4; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "skin_id" field. + public const int SkinIdFieldNumber = 5; + private int skinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkinId { + get { return skinId_; } + set { + skinId_ = value; + } + } + + /// Field number for the "cond" field. + public const int CondFieldNumber = 6; + private int cond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Cond { + get { return cond_; } + set { + cond_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Handbook); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Handbook other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Index != other.Index) return false; + if (Type != other.Type) return false; + if (CharId != other.CharId) return false; + if (SkinId != other.SkinId) return false; + if (Cond != other.Cond) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (SkinId != 0) hash ^= SkinId.GetHashCode(); + if (Cond != 0) hash ^= Cond.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Index != 0) { + output.WriteRawTag(16); + output.WriteInt32(Index); + } + if (Type != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type); + } + if (CharId != 0) { + output.WriteRawTag(32); + output.WriteInt32(CharId); + } + if (SkinId != 0) { + output.WriteRawTag(40); + output.WriteInt32(SkinId); + } + if (Cond != 0) { + output.WriteRawTag(48); + output.WriteInt32(Cond); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Index != 0) { + output.WriteRawTag(16); + output.WriteInt32(Index); + } + if (Type != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type); + } + if (CharId != 0) { + output.WriteRawTag(32); + output.WriteInt32(CharId); + } + if (SkinId != 0) { + output.WriteRawTag(40); + output.WriteInt32(SkinId); + } + if (Cond != 0) { + output.WriteRawTag(48); + output.WriteInt32(Cond); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (SkinId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkinId); + } + if (Cond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cond); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Handbook other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.SkinId != 0) { + SkinId = other.SkinId; + } + if (other.Cond != 0) { + Cond = other.Cond; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Index = input.ReadInt32(); + break; + } + case 24: { + Type = input.ReadInt32(); + break; + } + case 32: { + CharId = input.ReadInt32(); + break; + } + case 40: { + SkinId = input.ReadInt32(); + break; + } + case 48: { + Cond = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Index = input.ReadInt32(); + break; + } + case 24: { + Type = input.ReadInt32(); + break; + } + case 32: { + CharId = input.ReadInt32(); + break; + } + case 40: { + SkinId = input.ReadInt32(); + break; + } + case 48: { + Cond = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/HitDamage.cs b/NTR.Common/protos/HitDamage.cs new file mode 100644 index 0000000..0be3122 --- /dev/null +++ b/NTR.Common/protos/HitDamage.cs @@ -0,0 +1,1079 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HitDamage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from HitDamage.proto + public static partial class HitDamageReflection { + + #region Descriptor + /// File descriptor for HitDamage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HitDamageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9IaXREYW1hZ2UucHJvdG8i0AQKCUhpdERhbWFnZRIKCgJpZBgBIAEoBRIX", + "Cg9sZXZlbF90eXBlX2RhdGEYAiABKAUSEgoKbGV2ZWxfZGF0YRgDIAEoBRIX", + "Cg9tYWluX29yX3N1cHBvcnQYBCABKAUSFgoOaGl0ZGFtYWdlX2luZm8YBSAB", + "KAkSFQoNZGlzdGFuY2VfdHlwZRgGIAEoBRITCgtzb3VyY2VfdHlwZRgHIAEo", + "BRITCgtkYW1hZ2VfdHlwZRgIIAEoBRITCgtlZmZlY3RfdHlwZRgJIAEoBRIU", + "CgxlbGVtZW50X3R5cGUYCiABKAUSEgoKZGFtYWdlX3RhZxgLIAMoBRIZChFk", + "YW1hZ2VfYm9udXNfdHlwZRgMIAEoBRIbChNza2lsbF9wZXJjZW50X2FtZW5k", + "GA0gAygFEhcKD3NraWxsX2Fic19hbWVuZBgOIAMoBRIZChFhZGRpdGlvbmFs", + "X3NvdXJjZRgPIAEoBRIXCg9hZGRpdGlvbmFsX3R5cGUYECABKAUSGgoSYWRk", + "aXRpb25hbF9wZXJjZW50GBEgAygFEhUKDWVuZXJneV9jaGFyZ2UYEiABKAUS", + "HAoUdGFsZW50X3BlcmNlbnRfYW1lbmQYEyADKAUSGAoQdGFsZW50X2Fic19h", + "bWVuZBgUIAMoBRIVCg1pc19kZW5zZV90eXBlGBUgASgIEhYKDnBlcmtfaW50", + "ZW5zaXR5GBYgAygFEhAKCHNraWxsX2lkGBcgASgFEhcKD3NraWxsX3Nsb3Rf", + "dHlwZRgYIAEoBRIPCgdwZXJrX2lkGBkgASgFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.HitDamage), global::Nova.Client.HitDamage.Parser, new[]{ "Id", "LevelTypeData", "LevelData", "MainOrSupport", "HitdamageInfo", "DistanceType", "SourceType", "DamageType", "EffectType", "ElementType", "DamageTag", "DamageBonusType", "SkillPercentAmend", "SkillAbsAmend", "AdditionalSource", "AdditionalType", "AdditionalPercent", "EnergyCharge", "TalentPercentAmend", "TalentAbsAmend", "IsDenseType", "PerkIntensity", "SkillId", "SkillSlotType", "PerkId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HitDamage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HitDamage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.HitDamageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HitDamage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HitDamage(HitDamage other) : this() { + id_ = other.id_; + levelTypeData_ = other.levelTypeData_; + levelData_ = other.levelData_; + mainOrSupport_ = other.mainOrSupport_; + hitdamageInfo_ = other.hitdamageInfo_; + distanceType_ = other.distanceType_; + sourceType_ = other.sourceType_; + damageType_ = other.damageType_; + effectType_ = other.effectType_; + elementType_ = other.elementType_; + damageTag_ = other.damageTag_.Clone(); + damageBonusType_ = other.damageBonusType_; + skillPercentAmend_ = other.skillPercentAmend_.Clone(); + skillAbsAmend_ = other.skillAbsAmend_.Clone(); + additionalSource_ = other.additionalSource_; + additionalType_ = other.additionalType_; + additionalPercent_ = other.additionalPercent_.Clone(); + energyCharge_ = other.energyCharge_; + talentPercentAmend_ = other.talentPercentAmend_.Clone(); + talentAbsAmend_ = other.talentAbsAmend_.Clone(); + isDenseType_ = other.isDenseType_; + perkIntensity_ = other.perkIntensity_.Clone(); + skillId_ = other.skillId_; + skillSlotType_ = other.skillSlotType_; + perkId_ = other.perkId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HitDamage Clone() { + return new HitDamage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level_type_data" field. + public const int LevelTypeDataFieldNumber = 2; + private int levelTypeData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTypeData { + get { return levelTypeData_; } + set { + levelTypeData_ = value; + } + } + + /// Field number for the "level_data" field. + public const int LevelDataFieldNumber = 3; + private int levelData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelData { + get { return levelData_; } + set { + levelData_ = value; + } + } + + /// Field number for the "main_or_support" field. + public const int MainOrSupportFieldNumber = 4; + private int mainOrSupport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainOrSupport { + get { return mainOrSupport_; } + set { + mainOrSupport_ = value; + } + } + + /// Field number for the "hitdamage_info" field. + public const int HitdamageInfoFieldNumber = 5; + private string hitdamageInfo_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HitdamageInfo { + get { return hitdamageInfo_; } + set { + hitdamageInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "distance_type" field. + public const int DistanceTypeFieldNumber = 6; + private int distanceType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DistanceType { + get { return distanceType_; } + set { + distanceType_ = value; + } + } + + /// Field number for the "source_type" field. + public const int SourceTypeFieldNumber = 7; + private int sourceType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SourceType { + get { return sourceType_; } + set { + sourceType_ = value; + } + } + + /// Field number for the "damage_type" field. + public const int DamageTypeFieldNumber = 8; + private int damageType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DamageType { + get { return damageType_; } + set { + damageType_ = value; + } + } + + /// Field number for the "effect_type" field. + public const int EffectTypeFieldNumber = 9; + private int effectType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectType { + get { return effectType_; } + set { + effectType_ = value; + } + } + + /// Field number for the "element_type" field. + public const int ElementTypeFieldNumber = 10; + private int elementType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ElementType { + get { return elementType_; } + set { + elementType_ = value; + } + } + + /// Field number for the "damage_tag" field. + public const int DamageTagFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_damageTag_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField damageTag_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DamageTag { + get { return damageTag_; } + } + + /// Field number for the "damage_bonus_type" field. + public const int DamageBonusTypeFieldNumber = 12; + private int damageBonusType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DamageBonusType { + get { return damageBonusType_; } + set { + damageBonusType_ = value; + } + } + + /// Field number for the "skill_percent_amend" field. + public const int SkillPercentAmendFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_skillPercentAmend_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField skillPercentAmend_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkillPercentAmend { + get { return skillPercentAmend_; } + } + + /// Field number for the "skill_abs_amend" field. + public const int SkillAbsAmendFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_skillAbsAmend_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField skillAbsAmend_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkillAbsAmend { + get { return skillAbsAmend_; } + } + + /// Field number for the "additional_source" field. + public const int AdditionalSourceFieldNumber = 15; + private int additionalSource_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdditionalSource { + get { return additionalSource_; } + set { + additionalSource_ = value; + } + } + + /// Field number for the "additional_type" field. + public const int AdditionalTypeFieldNumber = 16; + private int additionalType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AdditionalType { + get { return additionalType_; } + set { + additionalType_ = value; + } + } + + /// Field number for the "additional_percent" field. + public const int AdditionalPercentFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_additionalPercent_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField additionalPercent_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdditionalPercent { + get { return additionalPercent_; } + } + + /// Field number for the "energy_charge" field. + public const int EnergyChargeFieldNumber = 18; + private int energyCharge_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyCharge { + get { return energyCharge_; } + set { + energyCharge_ = value; + } + } + + /// Field number for the "talent_percent_amend" field. + public const int TalentPercentAmendFieldNumber = 19; + private static readonly pb::FieldCodec _repeated_talentPercentAmend_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField talentPercentAmend_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TalentPercentAmend { + get { return talentPercentAmend_; } + } + + /// Field number for the "talent_abs_amend" field. + public const int TalentAbsAmendFieldNumber = 20; + private static readonly pb::FieldCodec _repeated_talentAbsAmend_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField talentAbsAmend_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TalentAbsAmend { + get { return talentAbsAmend_; } + } + + /// Field number for the "is_dense_type" field. + public const int IsDenseTypeFieldNumber = 21; + private bool isDenseType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDenseType { + get { return isDenseType_; } + set { + isDenseType_ = value; + } + } + + /// Field number for the "perk_intensity" field. + public const int PerkIntensityFieldNumber = 22; + private static readonly pb::FieldCodec _repeated_perkIntensity_codec + = pb::FieldCodec.ForInt32(178); + private readonly pbc::RepeatedField perkIntensity_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PerkIntensity { + get { return perkIntensity_; } + } + + /// Field number for the "skill_id" field. + public const int SkillIdFieldNumber = 23; + private int skillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillId { + get { return skillId_; } + set { + skillId_ = value; + } + } + + /// Field number for the "skill_slot_type" field. + public const int SkillSlotTypeFieldNumber = 24; + private int skillSlotType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillSlotType { + get { return skillSlotType_; } + set { + skillSlotType_ = value; + } + } + + /// Field number for the "perk_id" field. + public const int PerkIdFieldNumber = 25; + private int perkId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerkId { + get { return perkId_; } + set { + perkId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HitDamage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HitDamage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (LevelTypeData != other.LevelTypeData) return false; + if (LevelData != other.LevelData) return false; + if (MainOrSupport != other.MainOrSupport) return false; + if (HitdamageInfo != other.HitdamageInfo) return false; + if (DistanceType != other.DistanceType) return false; + if (SourceType != other.SourceType) return false; + if (DamageType != other.DamageType) return false; + if (EffectType != other.EffectType) return false; + if (ElementType != other.ElementType) return false; + if(!damageTag_.Equals(other.damageTag_)) return false; + if (DamageBonusType != other.DamageBonusType) return false; + if(!skillPercentAmend_.Equals(other.skillPercentAmend_)) return false; + if(!skillAbsAmend_.Equals(other.skillAbsAmend_)) return false; + if (AdditionalSource != other.AdditionalSource) return false; + if (AdditionalType != other.AdditionalType) return false; + if(!additionalPercent_.Equals(other.additionalPercent_)) return false; + if (EnergyCharge != other.EnergyCharge) return false; + if(!talentPercentAmend_.Equals(other.talentPercentAmend_)) return false; + if(!talentAbsAmend_.Equals(other.talentAbsAmend_)) return false; + if (IsDenseType != other.IsDenseType) return false; + if(!perkIntensity_.Equals(other.perkIntensity_)) return false; + if (SkillId != other.SkillId) return false; + if (SkillSlotType != other.SkillSlotType) return false; + if (PerkId != other.PerkId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (LevelTypeData != 0) hash ^= LevelTypeData.GetHashCode(); + if (LevelData != 0) hash ^= LevelData.GetHashCode(); + if (MainOrSupport != 0) hash ^= MainOrSupport.GetHashCode(); + if (HitdamageInfo.Length != 0) hash ^= HitdamageInfo.GetHashCode(); + if (DistanceType != 0) hash ^= DistanceType.GetHashCode(); + if (SourceType != 0) hash ^= SourceType.GetHashCode(); + if (DamageType != 0) hash ^= DamageType.GetHashCode(); + if (EffectType != 0) hash ^= EffectType.GetHashCode(); + if (ElementType != 0) hash ^= ElementType.GetHashCode(); + hash ^= damageTag_.GetHashCode(); + if (DamageBonusType != 0) hash ^= DamageBonusType.GetHashCode(); + hash ^= skillPercentAmend_.GetHashCode(); + hash ^= skillAbsAmend_.GetHashCode(); + if (AdditionalSource != 0) hash ^= AdditionalSource.GetHashCode(); + if (AdditionalType != 0) hash ^= AdditionalType.GetHashCode(); + hash ^= additionalPercent_.GetHashCode(); + if (EnergyCharge != 0) hash ^= EnergyCharge.GetHashCode(); + hash ^= talentPercentAmend_.GetHashCode(); + hash ^= talentAbsAmend_.GetHashCode(); + if (IsDenseType != false) hash ^= IsDenseType.GetHashCode(); + hash ^= perkIntensity_.GetHashCode(); + if (SkillId != 0) hash ^= SkillId.GetHashCode(); + if (SkillSlotType != 0) hash ^= SkillSlotType.GetHashCode(); + if (PerkId != 0) hash ^= PerkId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelTypeData != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(32); + output.WriteInt32(MainOrSupport); + } + if (HitdamageInfo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(HitdamageInfo); + } + if (DistanceType != 0) { + output.WriteRawTag(48); + output.WriteInt32(DistanceType); + } + if (SourceType != 0) { + output.WriteRawTag(56); + output.WriteInt32(SourceType); + } + if (DamageType != 0) { + output.WriteRawTag(64); + output.WriteInt32(DamageType); + } + if (EffectType != 0) { + output.WriteRawTag(72); + output.WriteInt32(EffectType); + } + if (ElementType != 0) { + output.WriteRawTag(80); + output.WriteInt32(ElementType); + } + damageTag_.WriteTo(output, _repeated_damageTag_codec); + if (DamageBonusType != 0) { + output.WriteRawTag(96); + output.WriteInt32(DamageBonusType); + } + skillPercentAmend_.WriteTo(output, _repeated_skillPercentAmend_codec); + skillAbsAmend_.WriteTo(output, _repeated_skillAbsAmend_codec); + if (AdditionalSource != 0) { + output.WriteRawTag(120); + output.WriteInt32(AdditionalSource); + } + if (AdditionalType != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AdditionalType); + } + additionalPercent_.WriteTo(output, _repeated_additionalPercent_codec); + if (EnergyCharge != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(EnergyCharge); + } + talentPercentAmend_.WriteTo(output, _repeated_talentPercentAmend_codec); + talentAbsAmend_.WriteTo(output, _repeated_talentAbsAmend_codec); + if (IsDenseType != false) { + output.WriteRawTag(168, 1); + output.WriteBool(IsDenseType); + } + perkIntensity_.WriteTo(output, _repeated_perkIntensity_codec); + if (SkillId != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(SkillId); + } + if (SkillSlotType != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(SkillSlotType); + } + if (PerkId != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(PerkId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelTypeData != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(32); + output.WriteInt32(MainOrSupport); + } + if (HitdamageInfo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(HitdamageInfo); + } + if (DistanceType != 0) { + output.WriteRawTag(48); + output.WriteInt32(DistanceType); + } + if (SourceType != 0) { + output.WriteRawTag(56); + output.WriteInt32(SourceType); + } + if (DamageType != 0) { + output.WriteRawTag(64); + output.WriteInt32(DamageType); + } + if (EffectType != 0) { + output.WriteRawTag(72); + output.WriteInt32(EffectType); + } + if (ElementType != 0) { + output.WriteRawTag(80); + output.WriteInt32(ElementType); + } + damageTag_.WriteTo(ref output, _repeated_damageTag_codec); + if (DamageBonusType != 0) { + output.WriteRawTag(96); + output.WriteInt32(DamageBonusType); + } + skillPercentAmend_.WriteTo(ref output, _repeated_skillPercentAmend_codec); + skillAbsAmend_.WriteTo(ref output, _repeated_skillAbsAmend_codec); + if (AdditionalSource != 0) { + output.WriteRawTag(120); + output.WriteInt32(AdditionalSource); + } + if (AdditionalType != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AdditionalType); + } + additionalPercent_.WriteTo(ref output, _repeated_additionalPercent_codec); + if (EnergyCharge != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(EnergyCharge); + } + talentPercentAmend_.WriteTo(ref output, _repeated_talentPercentAmend_codec); + talentAbsAmend_.WriteTo(ref output, _repeated_talentAbsAmend_codec); + if (IsDenseType != false) { + output.WriteRawTag(168, 1); + output.WriteBool(IsDenseType); + } + perkIntensity_.WriteTo(ref output, _repeated_perkIntensity_codec); + if (SkillId != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(SkillId); + } + if (SkillSlotType != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(SkillSlotType); + } + if (PerkId != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(PerkId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (LevelTypeData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTypeData); + } + if (LevelData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelData); + } + if (MainOrSupport != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainOrSupport); + } + if (HitdamageInfo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HitdamageInfo); + } + if (DistanceType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DistanceType); + } + if (SourceType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourceType); + } + if (DamageType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DamageType); + } + if (EffectType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectType); + } + if (ElementType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElementType); + } + size += damageTag_.CalculateSize(_repeated_damageTag_codec); + if (DamageBonusType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DamageBonusType); + } + size += skillPercentAmend_.CalculateSize(_repeated_skillPercentAmend_codec); + size += skillAbsAmend_.CalculateSize(_repeated_skillAbsAmend_codec); + if (AdditionalSource != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AdditionalSource); + } + if (AdditionalType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AdditionalType); + } + size += additionalPercent_.CalculateSize(_repeated_additionalPercent_codec); + if (EnergyCharge != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EnergyCharge); + } + size += talentPercentAmend_.CalculateSize(_repeated_talentPercentAmend_codec); + size += talentAbsAmend_.CalculateSize(_repeated_talentAbsAmend_codec); + if (IsDenseType != false) { + size += 2 + 1; + } + size += perkIntensity_.CalculateSize(_repeated_perkIntensity_codec); + if (SkillId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillId); + } + if (SkillSlotType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillSlotType); + } + if (PerkId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerkId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HitDamage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.LevelTypeData != 0) { + LevelTypeData = other.LevelTypeData; + } + if (other.LevelData != 0) { + LevelData = other.LevelData; + } + if (other.MainOrSupport != 0) { + MainOrSupport = other.MainOrSupport; + } + if (other.HitdamageInfo.Length != 0) { + HitdamageInfo = other.HitdamageInfo; + } + if (other.DistanceType != 0) { + DistanceType = other.DistanceType; + } + if (other.SourceType != 0) { + SourceType = other.SourceType; + } + if (other.DamageType != 0) { + DamageType = other.DamageType; + } + if (other.EffectType != 0) { + EffectType = other.EffectType; + } + if (other.ElementType != 0) { + ElementType = other.ElementType; + } + damageTag_.Add(other.damageTag_); + if (other.DamageBonusType != 0) { + DamageBonusType = other.DamageBonusType; + } + skillPercentAmend_.Add(other.skillPercentAmend_); + skillAbsAmend_.Add(other.skillAbsAmend_); + if (other.AdditionalSource != 0) { + AdditionalSource = other.AdditionalSource; + } + if (other.AdditionalType != 0) { + AdditionalType = other.AdditionalType; + } + additionalPercent_.Add(other.additionalPercent_); + if (other.EnergyCharge != 0) { + EnergyCharge = other.EnergyCharge; + } + talentPercentAmend_.Add(other.talentPercentAmend_); + talentAbsAmend_.Add(other.talentAbsAmend_); + if (other.IsDenseType != false) { + IsDenseType = other.IsDenseType; + } + perkIntensity_.Add(other.perkIntensity_); + if (other.SkillId != 0) { + SkillId = other.SkillId; + } + if (other.SkillSlotType != 0) { + SkillSlotType = other.SkillSlotType; + } + if (other.PerkId != 0) { + PerkId = other.PerkId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelTypeData = input.ReadInt32(); + break; + } + case 24: { + LevelData = input.ReadInt32(); + break; + } + case 32: { + MainOrSupport = input.ReadInt32(); + break; + } + case 42: { + HitdamageInfo = input.ReadString(); + break; + } + case 48: { + DistanceType = input.ReadInt32(); + break; + } + case 56: { + SourceType = input.ReadInt32(); + break; + } + case 64: { + DamageType = input.ReadInt32(); + break; + } + case 72: { + EffectType = input.ReadInt32(); + break; + } + case 80: { + ElementType = input.ReadInt32(); + break; + } + case 90: + case 88: { + damageTag_.AddEntriesFrom(input, _repeated_damageTag_codec); + break; + } + case 96: { + DamageBonusType = input.ReadInt32(); + break; + } + case 106: + case 104: { + skillPercentAmend_.AddEntriesFrom(input, _repeated_skillPercentAmend_codec); + break; + } + case 114: + case 112: { + skillAbsAmend_.AddEntriesFrom(input, _repeated_skillAbsAmend_codec); + break; + } + case 120: { + AdditionalSource = input.ReadInt32(); + break; + } + case 128: { + AdditionalType = input.ReadInt32(); + break; + } + case 138: + case 136: { + additionalPercent_.AddEntriesFrom(input, _repeated_additionalPercent_codec); + break; + } + case 144: { + EnergyCharge = input.ReadInt32(); + break; + } + case 154: + case 152: { + talentPercentAmend_.AddEntriesFrom(input, _repeated_talentPercentAmend_codec); + break; + } + case 162: + case 160: { + talentAbsAmend_.AddEntriesFrom(input, _repeated_talentAbsAmend_codec); + break; + } + case 168: { + IsDenseType = input.ReadBool(); + break; + } + case 178: + case 176: { + perkIntensity_.AddEntriesFrom(input, _repeated_perkIntensity_codec); + break; + } + case 184: { + SkillId = input.ReadInt32(); + break; + } + case 192: { + SkillSlotType = input.ReadInt32(); + break; + } + case 200: { + PerkId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelTypeData = input.ReadInt32(); + break; + } + case 24: { + LevelData = input.ReadInt32(); + break; + } + case 32: { + MainOrSupport = input.ReadInt32(); + break; + } + case 42: { + HitdamageInfo = input.ReadString(); + break; + } + case 48: { + DistanceType = input.ReadInt32(); + break; + } + case 56: { + SourceType = input.ReadInt32(); + break; + } + case 64: { + DamageType = input.ReadInt32(); + break; + } + case 72: { + EffectType = input.ReadInt32(); + break; + } + case 80: { + ElementType = input.ReadInt32(); + break; + } + case 90: + case 88: { + damageTag_.AddEntriesFrom(ref input, _repeated_damageTag_codec); + break; + } + case 96: { + DamageBonusType = input.ReadInt32(); + break; + } + case 106: + case 104: { + skillPercentAmend_.AddEntriesFrom(ref input, _repeated_skillPercentAmend_codec); + break; + } + case 114: + case 112: { + skillAbsAmend_.AddEntriesFrom(ref input, _repeated_skillAbsAmend_codec); + break; + } + case 120: { + AdditionalSource = input.ReadInt32(); + break; + } + case 128: { + AdditionalType = input.ReadInt32(); + break; + } + case 138: + case 136: { + additionalPercent_.AddEntriesFrom(ref input, _repeated_additionalPercent_codec); + break; + } + case 144: { + EnergyCharge = input.ReadInt32(); + break; + } + case 154: + case 152: { + talentPercentAmend_.AddEntriesFrom(ref input, _repeated_talentPercentAmend_codec); + break; + } + case 162: + case 160: { + talentAbsAmend_.AddEntriesFrom(ref input, _repeated_talentAbsAmend_codec); + break; + } + case 168: { + IsDenseType = input.ReadBool(); + break; + } + case 178: + case 176: { + perkIntensity_.AddEntriesFrom(ref input, _repeated_perkIntensity_codec); + break; + } + case 184: { + SkillId = input.ReadInt32(); + break; + } + case 192: { + SkillSlotType = input.ReadInt32(); + break; + } + case 200: { + PerkId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Honor.cs b/NTR.Common/protos/Honor.cs new file mode 100644 index 0000000..53788cb --- /dev/null +++ b/NTR.Common/protos/Honor.cs @@ -0,0 +1,605 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Honor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Honor.proto + public static partial class HonorReflection { + + #region Descriptor + /// File descriptor for Honor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HonorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtIb25vci5wcm90byK5AQoFSG9ub3ISCgoCaWQYASABKAUSDAoEbmFtZRgC", + "IAEoCRIRCglpc191bmxvY2sYAyABKAgSDAoEdHlwZRgEIAEoBRIQCgh0YWJf", + "dHlwZRgFIAEoBRIOCgZwYXJhbXMYBiADKAUSEAoIcHJpb3RpdHkYByABKAUS", + "EAoIbWFpbl9yZXMYCCABKAkSDwoHc3ViX3JlcxgJIAEoCRIMCgRzb3J0GAog", + "ASgFEhAKCGJfZ190eXBlGAsgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Honor), global::Nova.Client.Honor.Parser, new[]{ "Id", "Name", "IsUnlock", "Type", "TabType", "Params", "Priotity", "MainRes", "SubRes", "Sort", "BGType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Honor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Honor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.HonorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Honor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Honor(Honor other) : this() { + id_ = other.id_; + name_ = other.name_; + isUnlock_ = other.isUnlock_; + type_ = other.type_; + tabType_ = other.tabType_; + params_ = other.params_.Clone(); + priotity_ = other.priotity_; + mainRes_ = other.mainRes_; + subRes_ = other.subRes_; + sort_ = other.sort_; + bGType_ = other.bGType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Honor Clone() { + return new Honor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_unlock" field. + public const int IsUnlockFieldNumber = 3; + private bool isUnlock_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlock { + get { return isUnlock_; } + set { + isUnlock_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "tab_type" field. + public const int TabTypeFieldNumber = 5; + private int tabType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TabType { + get { return tabType_; } + set { + tabType_ = value; + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_params_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField params_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Params { + get { return params_; } + } + + /// Field number for the "priotity" field. + public const int PriotityFieldNumber = 7; + private int priotity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priotity { + get { return priotity_; } + set { + priotity_ = value; + } + } + + /// Field number for the "main_res" field. + public const int MainResFieldNumber = 8; + private string mainRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MainRes { + get { return mainRes_; } + set { + mainRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sub_res" field. + public const int SubResFieldNumber = 9; + private string subRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SubRes { + get { return subRes_; } + set { + subRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 10; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "b_g_type" field. + public const int BGTypeFieldNumber = 11; + private int bGType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BGType { + get { return bGType_; } + set { + bGType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Honor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Honor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (IsUnlock != other.IsUnlock) return false; + if (Type != other.Type) return false; + if (TabType != other.TabType) return false; + if(!params_.Equals(other.params_)) return false; + if (Priotity != other.Priotity) return false; + if (MainRes != other.MainRes) return false; + if (SubRes != other.SubRes) return false; + if (Sort != other.Sort) return false; + if (BGType != other.BGType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (IsUnlock != false) hash ^= IsUnlock.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (TabType != 0) hash ^= TabType.GetHashCode(); + hash ^= params_.GetHashCode(); + if (Priotity != 0) hash ^= Priotity.GetHashCode(); + if (MainRes.Length != 0) hash ^= MainRes.GetHashCode(); + if (SubRes.Length != 0) hash ^= SubRes.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (BGType != 0) hash ^= BGType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (IsUnlock != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlock); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (TabType != 0) { + output.WriteRawTag(40); + output.WriteInt32(TabType); + } + params_.WriteTo(output, _repeated_params_codec); + if (Priotity != 0) { + output.WriteRawTag(56); + output.WriteInt32(Priotity); + } + if (MainRes.Length != 0) { + output.WriteRawTag(66); + output.WriteString(MainRes); + } + if (SubRes.Length != 0) { + output.WriteRawTag(74); + output.WriteString(SubRes); + } + if (Sort != 0) { + output.WriteRawTag(80); + output.WriteInt32(Sort); + } + if (BGType != 0) { + output.WriteRawTag(88); + output.WriteInt32(BGType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (IsUnlock != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlock); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (TabType != 0) { + output.WriteRawTag(40); + output.WriteInt32(TabType); + } + params_.WriteTo(ref output, _repeated_params_codec); + if (Priotity != 0) { + output.WriteRawTag(56); + output.WriteInt32(Priotity); + } + if (MainRes.Length != 0) { + output.WriteRawTag(66); + output.WriteString(MainRes); + } + if (SubRes.Length != 0) { + output.WriteRawTag(74); + output.WriteString(SubRes); + } + if (Sort != 0) { + output.WriteRawTag(80); + output.WriteInt32(Sort); + } + if (BGType != 0) { + output.WriteRawTag(88); + output.WriteInt32(BGType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (IsUnlock != false) { + size += 1 + 1; + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (TabType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TabType); + } + size += params_.CalculateSize(_repeated_params_codec); + if (Priotity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priotity); + } + if (MainRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MainRes); + } + if (SubRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SubRes); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (BGType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BGType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Honor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.IsUnlock != false) { + IsUnlock = other.IsUnlock; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.TabType != 0) { + TabType = other.TabType; + } + params_.Add(other.params_); + if (other.Priotity != 0) { + Priotity = other.Priotity; + } + if (other.MainRes.Length != 0) { + MainRes = other.MainRes; + } + if (other.SubRes.Length != 0) { + SubRes = other.SubRes; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.BGType != 0) { + BGType = other.BGType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + IsUnlock = input.ReadBool(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 40: { + TabType = input.ReadInt32(); + break; + } + case 50: + case 48: { + params_.AddEntriesFrom(input, _repeated_params_codec); + break; + } + case 56: { + Priotity = input.ReadInt32(); + break; + } + case 66: { + MainRes = input.ReadString(); + break; + } + case 74: { + SubRes = input.ReadString(); + break; + } + case 80: { + Sort = input.ReadInt32(); + break; + } + case 88: { + BGType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + IsUnlock = input.ReadBool(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 40: { + TabType = input.ReadInt32(); + break; + } + case 50: + case 48: { + params_.AddEntriesFrom(ref input, _repeated_params_codec); + break; + } + case 56: { + Priotity = input.ReadInt32(); + break; + } + case 66: { + MainRes = input.ReadString(); + break; + } + case 74: { + SubRes = input.ReadString(); + break; + } + case 80: { + Sort = input.ReadInt32(); + break; + } + case 88: { + BGType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/HonorCharacter.cs b/NTR.Common/protos/HonorCharacter.cs new file mode 100644 index 0000000..92c7adf --- /dev/null +++ b/NTR.Common/protos/HonorCharacter.cs @@ -0,0 +1,494 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HonorCharacter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from HonorCharacter.proto + public static partial class HonorCharacterReflection { + + #region Descriptor + /// File descriptor for HonorCharacter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HonorCharacterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRIb25vckNoYXJhY3Rlci5wcm90byKcAQoOSG9ub3JDaGFyYWN0ZXISCgoC", + "aWQYASABKAUSDwoHY2hhcl9pZBgCIAEoBRINCgVsZXZlbBgDIAEoBRITCgti", + "aWdfYmdfcGF0aBgEIAEoCRIVCg1zbWFsbF9iZ19wYXRoGAUgASgJEhIKCnN0", + "YXJfZ3JvdXAYBiADKAUSDAoEc29ydBgHIAEoBRIQCghiX2dfdHlwZRgIIAEo", + "BUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.HonorCharacter), global::Nova.Client.HonorCharacter.Parser, new[]{ "Id", "CharId", "Level", "BigBgPath", "SmallBgPath", "StarGroup", "Sort", "BGType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HonorCharacter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HonorCharacter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.HonorCharacterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HonorCharacter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HonorCharacter(HonorCharacter other) : this() { + id_ = other.id_; + charId_ = other.charId_; + level_ = other.level_; + bigBgPath_ = other.bigBgPath_; + smallBgPath_ = other.smallBgPath_; + starGroup_ = other.starGroup_.Clone(); + sort_ = other.sort_; + bGType_ = other.bGType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HonorCharacter Clone() { + return new HonorCharacter(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "big_bg_path" field. + public const int BigBgPathFieldNumber = 4; + private string bigBgPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BigBgPath { + get { return bigBgPath_; } + set { + bigBgPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "small_bg_path" field. + public const int SmallBgPathFieldNumber = 5; + private string smallBgPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SmallBgPath { + get { return smallBgPath_; } + set { + smallBgPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "star_group" field. + public const int StarGroupFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_starGroup_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField starGroup_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StarGroup { + get { return starGroup_; } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 7; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "b_g_type" field. + public const int BGTypeFieldNumber = 8; + private int bGType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BGType { + get { return bGType_; } + set { + bGType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HonorCharacter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HonorCharacter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharId != other.CharId) return false; + if (Level != other.Level) return false; + if (BigBgPath != other.BigBgPath) return false; + if (SmallBgPath != other.SmallBgPath) return false; + if(!starGroup_.Equals(other.starGroup_)) return false; + if (Sort != other.Sort) return false; + if (BGType != other.BGType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (BigBgPath.Length != 0) hash ^= BigBgPath.GetHashCode(); + if (SmallBgPath.Length != 0) hash ^= SmallBgPath.GetHashCode(); + hash ^= starGroup_.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (BGType != 0) hash ^= BGType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (BigBgPath.Length != 0) { + output.WriteRawTag(34); + output.WriteString(BigBgPath); + } + if (SmallBgPath.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SmallBgPath); + } + starGroup_.WriteTo(output, _repeated_starGroup_codec); + if (Sort != 0) { + output.WriteRawTag(56); + output.WriteInt32(Sort); + } + if (BGType != 0) { + output.WriteRawTag(64); + output.WriteInt32(BGType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (BigBgPath.Length != 0) { + output.WriteRawTag(34); + output.WriteString(BigBgPath); + } + if (SmallBgPath.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SmallBgPath); + } + starGroup_.WriteTo(ref output, _repeated_starGroup_codec); + if (Sort != 0) { + output.WriteRawTag(56); + output.WriteInt32(Sort); + } + if (BGType != 0) { + output.WriteRawTag(64); + output.WriteInt32(BGType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (BigBgPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BigBgPath); + } + if (SmallBgPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SmallBgPath); + } + size += starGroup_.CalculateSize(_repeated_starGroup_codec); + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (BGType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BGType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HonorCharacter other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.BigBgPath.Length != 0) { + BigBgPath = other.BigBgPath; + } + if (other.SmallBgPath.Length != 0) { + SmallBgPath = other.SmallBgPath; + } + starGroup_.Add(other.starGroup_); + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.BGType != 0) { + BGType = other.BGType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 34: { + BigBgPath = input.ReadString(); + break; + } + case 42: { + SmallBgPath = input.ReadString(); + break; + } + case 50: + case 48: { + starGroup_.AddEntriesFrom(input, _repeated_starGroup_codec); + break; + } + case 56: { + Sort = input.ReadInt32(); + break; + } + case 64: { + BGType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 34: { + BigBgPath = input.ReadString(); + break; + } + case 42: { + SmallBgPath = input.ReadString(); + break; + } + case 50: + case 48: { + starGroup_.AddEntriesFrom(ref input, _repeated_starGroup_codec); + break; + } + case 56: { + Sort = input.ReadInt32(); + break; + } + case 64: { + BGType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTower.cs b/NTR.Common/protos/InfinityTower.cs new file mode 100644 index 0000000..505710b --- /dev/null +++ b/NTR.Common/protos/InfinityTower.cs @@ -0,0 +1,494 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTower.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTower.proto + public static partial class InfinityTowerReflection { + + #region Descriptor + /// File descriptor for InfinityTower.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNJbmZpbml0eVRvd2VyLnByb3RvIq4BCg1JbmZpbml0eVRvd2VyEgoKAmlk", + "GAEgASgFEgwKBG5hbWUYAiABKAkSFAoMZWxlbWVudF90eXBlGAMgASgFEhwK", + "FGZvcm1hdGlvbl9zY2VuZV9uYW1lGAQgASgJEgoKAmJnGAUgASgJEhoKEnBy", + "ZV90b3dlcl9sZXZlbF9pZBgGIAEoBRIQCghvcGVuX2RheRgHIAMoBRIVCg1v", + "cGVuX2RheV9kZXNjGAggASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTower), global::Nova.Client.InfinityTower.Parser, new[]{ "Id", "Name", "ElementType", "FormationSceneName", "Bg", "PreTowerLevelId", "OpenDay", "OpenDayDesc" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTower : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTower()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTower() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTower(InfinityTower other) : this() { + id_ = other.id_; + name_ = other.name_; + elementType_ = other.elementType_; + formationSceneName_ = other.formationSceneName_; + bg_ = other.bg_; + preTowerLevelId_ = other.preTowerLevelId_; + openDay_ = other.openDay_.Clone(); + openDayDesc_ = other.openDayDesc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTower Clone() { + return new InfinityTower(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "element_type" field. + public const int ElementTypeFieldNumber = 3; + private int elementType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ElementType { + get { return elementType_; } + set { + elementType_ = value; + } + } + + /// Field number for the "formation_scene_name" field. + public const int FormationSceneNameFieldNumber = 4; + private string formationSceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FormationSceneName { + get { return formationSceneName_; } + set { + formationSceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bg" field. + public const int BgFieldNumber = 5; + private string bg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bg { + get { return bg_; } + set { + bg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pre_tower_level_id" field. + public const int PreTowerLevelIdFieldNumber = 6; + private int preTowerLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreTowerLevelId { + get { return preTowerLevelId_; } + set { + preTowerLevelId_ = value; + } + } + + /// Field number for the "open_day" field. + public const int OpenDayFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_openDay_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField openDay_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OpenDay { + get { return openDay_; } + } + + /// Field number for the "open_day_desc" field. + public const int OpenDayDescFieldNumber = 8; + private string openDayDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenDayDesc { + get { return openDayDesc_; } + set { + openDayDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTower); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTower other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (ElementType != other.ElementType) return false; + if (FormationSceneName != other.FormationSceneName) return false; + if (Bg != other.Bg) return false; + if (PreTowerLevelId != other.PreTowerLevelId) return false; + if(!openDay_.Equals(other.openDay_)) return false; + if (OpenDayDesc != other.OpenDayDesc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ElementType != 0) hash ^= ElementType.GetHashCode(); + if (FormationSceneName.Length != 0) hash ^= FormationSceneName.GetHashCode(); + if (Bg.Length != 0) hash ^= Bg.GetHashCode(); + if (PreTowerLevelId != 0) hash ^= PreTowerLevelId.GetHashCode(); + hash ^= openDay_.GetHashCode(); + if (OpenDayDesc.Length != 0) hash ^= OpenDayDesc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ElementType != 0) { + output.WriteRawTag(24); + output.WriteInt32(ElementType); + } + if (FormationSceneName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(FormationSceneName); + } + if (Bg.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Bg); + } + if (PreTowerLevelId != 0) { + output.WriteRawTag(48); + output.WriteInt32(PreTowerLevelId); + } + openDay_.WriteTo(output, _repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + output.WriteRawTag(66); + output.WriteString(OpenDayDesc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ElementType != 0) { + output.WriteRawTag(24); + output.WriteInt32(ElementType); + } + if (FormationSceneName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(FormationSceneName); + } + if (Bg.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Bg); + } + if (PreTowerLevelId != 0) { + output.WriteRawTag(48); + output.WriteInt32(PreTowerLevelId); + } + openDay_.WriteTo(ref output, _repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + output.WriteRawTag(66); + output.WriteString(OpenDayDesc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (ElementType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ElementType); + } + if (FormationSceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FormationSceneName); + } + if (Bg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bg); + } + if (PreTowerLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreTowerLevelId); + } + size += openDay_.CalculateSize(_repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenDayDesc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTower other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ElementType != 0) { + ElementType = other.ElementType; + } + if (other.FormationSceneName.Length != 0) { + FormationSceneName = other.FormationSceneName; + } + if (other.Bg.Length != 0) { + Bg = other.Bg; + } + if (other.PreTowerLevelId != 0) { + PreTowerLevelId = other.PreTowerLevelId; + } + openDay_.Add(other.openDay_); + if (other.OpenDayDesc.Length != 0) { + OpenDayDesc = other.OpenDayDesc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + ElementType = input.ReadInt32(); + break; + } + case 34: { + FormationSceneName = input.ReadString(); + break; + } + case 42: { + Bg = input.ReadString(); + break; + } + case 48: { + PreTowerLevelId = input.ReadInt32(); + break; + } + case 58: + case 56: { + openDay_.AddEntriesFrom(input, _repeated_openDay_codec); + break; + } + case 66: { + OpenDayDesc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + ElementType = input.ReadInt32(); + break; + } + case 34: { + FormationSceneName = input.ReadString(); + break; + } + case 42: { + Bg = input.ReadString(); + break; + } + case 48: { + PreTowerLevelId = input.ReadInt32(); + break; + } + case 58: + case 56: { + openDay_.AddEntriesFrom(ref input, _repeated_openDay_codec); + break; + } + case 66: { + OpenDayDesc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerAffix.cs b/NTR.Common/protos/InfinityTowerAffix.cs new file mode 100644 index 0000000..ffe1df0 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerAffix.cs @@ -0,0 +1,420 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerAffix.proto + public static partial class InfinityTowerAffixReflection { + + #region Descriptor + /// File descriptor for InfinityTowerAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhJbmZpbml0eVRvd2VyQWZmaXgucHJvdG8igAEKEkluZmluaXR5VG93ZXJB", + "ZmZpeBIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEgwKBGRlc2MYAyABKAkS", + "EAoIYWRkX2NhbXAYBCADKAUSGQoRdHJpZ2dlcl9jb25kaXRpb24YBSABKAUS", + "FQoNdHJpZ2dlcl9wYXJhbRgGIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerAffix), global::Nova.Client.InfinityTowerAffix.Parser, new[]{ "Id", "Name", "Desc", "AddCamp", "TriggerCondition", "TriggerParam" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerAffix(InfinityTowerAffix other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + addCamp_ = other.addCamp_.Clone(); + triggerCondition_ = other.triggerCondition_; + triggerParam_ = other.triggerParam_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerAffix Clone() { + return new InfinityTowerAffix(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "add_camp" field. + public const int AddCampFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_addCamp_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField addCamp_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AddCamp { + get { return addCamp_; } + } + + /// Field number for the "trigger_condition" field. + public const int TriggerConditionFieldNumber = 5; + private int triggerCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TriggerCondition { + get { return triggerCondition_; } + set { + triggerCondition_ = value; + } + } + + /// Field number for the "trigger_param" field. + public const int TriggerParamFieldNumber = 6; + private string triggerParam_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerParam { + get { return triggerParam_; } + set { + triggerParam_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!addCamp_.Equals(other.addCamp_)) return false; + if (TriggerCondition != other.TriggerCondition) return false; + if (TriggerParam != other.TriggerParam) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + hash ^= addCamp_.GetHashCode(); + if (TriggerCondition != 0) hash ^= TriggerCondition.GetHashCode(); + if (TriggerParam.Length != 0) hash ^= TriggerParam.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + addCamp_.WriteTo(output, _repeated_addCamp_codec); + if (TriggerCondition != 0) { + output.WriteRawTag(40); + output.WriteInt32(TriggerCondition); + } + if (TriggerParam.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TriggerParam); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + addCamp_.WriteTo(ref output, _repeated_addCamp_codec); + if (TriggerCondition != 0) { + output.WriteRawTag(40); + output.WriteInt32(TriggerCondition); + } + if (TriggerParam.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TriggerParam); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += addCamp_.CalculateSize(_repeated_addCamp_codec); + if (TriggerCondition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerCondition); + } + if (TriggerParam.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerParam); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerAffix other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + addCamp_.Add(other.addCamp_); + if (other.TriggerCondition != 0) { + TriggerCondition = other.TriggerCondition; + } + if (other.TriggerParam.Length != 0) { + TriggerParam = other.TriggerParam; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: + case 32: { + addCamp_.AddEntriesFrom(input, _repeated_addCamp_codec); + break; + } + case 40: { + TriggerCondition = input.ReadInt32(); + break; + } + case 50: { + TriggerParam = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: + case 32: { + addCamp_.AddEntriesFrom(ref input, _repeated_addCamp_codec); + break; + } + case 40: { + TriggerCondition = input.ReadInt32(); + break; + } + case 50: { + TriggerParam = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerBountyLevel.cs b/NTR.Common/protos/InfinityTowerBountyLevel.cs new file mode 100644 index 0000000..52e4ed9 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerBountyLevel.cs @@ -0,0 +1,738 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerBountyLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerBountyLevel.proto + public static partial class InfinityTowerBountyLevelReflection { + + #region Descriptor + /// File descriptor for InfinityTowerBountyLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerBountyLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5JbmZpbml0eVRvd2VyQm91bnR5TGV2ZWwucHJvdG8ipgIKGEluZmluaXR5", + "VG93ZXJCb3VudHlMZXZlbBIKCgJpZBgBIAEoBRINCgVsZXZlbBgCIAEoBRIM", + "CgRuYW1lGAMgASgJEgwKBGljb24YBCABKAkSFgoOcmV3YXJkX2Ryb3BfaWQY", + "BSABKAUSEwoLcmV3YXJkX3Nob3cYBiABKAkSDQoFY29uZDEYByABKAUSEwoL", + "Y29uZF9wYXJhbTEYCCADKAUSEgoKY29uZF9kZXNjMRgJIAEoCRINCgVjb25k", + "MhgKIAEoBRITCgtjb25kX3BhcmFtMhgLIAMoBRISCgpjb25kX2Rlc2MyGAwg", + "ASgJEg0KBWNvbmQzGA0gASgFEhMKC2NvbmRfcGFyYW0zGA4gAygFEhIKCmNv", + "bmRfZGVzYzMYDyABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerBountyLevel), global::Nova.Client.InfinityTowerBountyLevel.Parser, new[]{ "Id", "Level", "Name", "Icon", "RewardDropId", "RewardShow", "Cond1", "CondParam1", "CondDesc1", "Cond2", "CondParam2", "CondDesc2", "Cond3", "CondParam3", "CondDesc3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerBountyLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerBountyLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerBountyLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerBountyLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerBountyLevel(InfinityTowerBountyLevel other) : this() { + id_ = other.id_; + level_ = other.level_; + name_ = other.name_; + icon_ = other.icon_; + rewardDropId_ = other.rewardDropId_; + rewardShow_ = other.rewardShow_; + cond1_ = other.cond1_; + condParam1_ = other.condParam1_.Clone(); + condDesc1_ = other.condDesc1_; + cond2_ = other.cond2_; + condParam2_ = other.condParam2_.Clone(); + condDesc2_ = other.condDesc2_; + cond3_ = other.cond3_; + condParam3_ = other.condParam3_.Clone(); + condDesc3_ = other.condDesc3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerBountyLevel Clone() { + return new InfinityTowerBountyLevel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 2; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reward_drop_id" field. + public const int RewardDropIdFieldNumber = 5; + private int rewardDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardDropId { + get { return rewardDropId_; } + set { + rewardDropId_ = value; + } + } + + /// Field number for the "reward_show" field. + public const int RewardShowFieldNumber = 6; + private string rewardShow_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardShow { + get { return rewardShow_; } + set { + rewardShow_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cond1" field. + public const int Cond1FieldNumber = 7; + private int cond1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Cond1 { + get { return cond1_; } + set { + cond1_ = value; + } + } + + /// Field number for the "cond_param1" field. + public const int CondParam1FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_condParam1_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField condParam1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CondParam1 { + get { return condParam1_; } + } + + /// Field number for the "cond_desc1" field. + public const int CondDesc1FieldNumber = 9; + private string condDesc1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CondDesc1 { + get { return condDesc1_; } + set { + condDesc1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cond2" field. + public const int Cond2FieldNumber = 10; + private int cond2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Cond2 { + get { return cond2_; } + set { + cond2_ = value; + } + } + + /// Field number for the "cond_param2" field. + public const int CondParam2FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_condParam2_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField condParam2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CondParam2 { + get { return condParam2_; } + } + + /// Field number for the "cond_desc2" field. + public const int CondDesc2FieldNumber = 12; + private string condDesc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CondDesc2 { + get { return condDesc2_; } + set { + condDesc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cond3" field. + public const int Cond3FieldNumber = 13; + private int cond3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Cond3 { + get { return cond3_; } + set { + cond3_ = value; + } + } + + /// Field number for the "cond_param3" field. + public const int CondParam3FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_condParam3_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField condParam3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CondParam3 { + get { return condParam3_; } + } + + /// Field number for the "cond_desc3" field. + public const int CondDesc3FieldNumber = 15; + private string condDesc3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CondDesc3 { + get { return condDesc3_; } + set { + condDesc3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerBountyLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerBountyLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Level != other.Level) return false; + if (Name != other.Name) return false; + if (Icon != other.Icon) return false; + if (RewardDropId != other.RewardDropId) return false; + if (RewardShow != other.RewardShow) return false; + if (Cond1 != other.Cond1) return false; + if(!condParam1_.Equals(other.condParam1_)) return false; + if (CondDesc1 != other.CondDesc1) return false; + if (Cond2 != other.Cond2) return false; + if(!condParam2_.Equals(other.condParam2_)) return false; + if (CondDesc2 != other.CondDesc2) return false; + if (Cond3 != other.Cond3) return false; + if(!condParam3_.Equals(other.condParam3_)) return false; + if (CondDesc3 != other.CondDesc3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (RewardDropId != 0) hash ^= RewardDropId.GetHashCode(); + if (RewardShow.Length != 0) hash ^= RewardShow.GetHashCode(); + if (Cond1 != 0) hash ^= Cond1.GetHashCode(); + hash ^= condParam1_.GetHashCode(); + if (CondDesc1.Length != 0) hash ^= CondDesc1.GetHashCode(); + if (Cond2 != 0) hash ^= Cond2.GetHashCode(); + hash ^= condParam2_.GetHashCode(); + if (CondDesc2.Length != 0) hash ^= CondDesc2.GetHashCode(); + if (Cond3 != 0) hash ^= Cond3.GetHashCode(); + hash ^= condParam3_.GetHashCode(); + if (CondDesc3.Length != 0) hash ^= CondDesc3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (RewardDropId != 0) { + output.WriteRawTag(40); + output.WriteInt32(RewardDropId); + } + if (RewardShow.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RewardShow); + } + if (Cond1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Cond1); + } + condParam1_.WriteTo(output, _repeated_condParam1_codec); + if (CondDesc1.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CondDesc1); + } + if (Cond2 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Cond2); + } + condParam2_.WriteTo(output, _repeated_condParam2_codec); + if (CondDesc2.Length != 0) { + output.WriteRawTag(98); + output.WriteString(CondDesc2); + } + if (Cond3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Cond3); + } + condParam3_.WriteTo(output, _repeated_condParam3_codec); + if (CondDesc3.Length != 0) { + output.WriteRawTag(122); + output.WriteString(CondDesc3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (RewardDropId != 0) { + output.WriteRawTag(40); + output.WriteInt32(RewardDropId); + } + if (RewardShow.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RewardShow); + } + if (Cond1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Cond1); + } + condParam1_.WriteTo(ref output, _repeated_condParam1_codec); + if (CondDesc1.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CondDesc1); + } + if (Cond2 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Cond2); + } + condParam2_.WriteTo(ref output, _repeated_condParam2_codec); + if (CondDesc2.Length != 0) { + output.WriteRawTag(98); + output.WriteString(CondDesc2); + } + if (Cond3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Cond3); + } + condParam3_.WriteTo(ref output, _repeated_condParam3_codec); + if (CondDesc3.Length != 0) { + output.WriteRawTag(122); + output.WriteString(CondDesc3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (RewardDropId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardDropId); + } + if (RewardShow.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardShow); + } + if (Cond1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cond1); + } + size += condParam1_.CalculateSize(_repeated_condParam1_codec); + if (CondDesc1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CondDesc1); + } + if (Cond2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cond2); + } + size += condParam2_.CalculateSize(_repeated_condParam2_codec); + if (CondDesc2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CondDesc2); + } + if (Cond3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cond3); + } + size += condParam3_.CalculateSize(_repeated_condParam3_codec); + if (CondDesc3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CondDesc3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerBountyLevel other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.RewardDropId != 0) { + RewardDropId = other.RewardDropId; + } + if (other.RewardShow.Length != 0) { + RewardShow = other.RewardShow; + } + if (other.Cond1 != 0) { + Cond1 = other.Cond1; + } + condParam1_.Add(other.condParam1_); + if (other.CondDesc1.Length != 0) { + CondDesc1 = other.CondDesc1; + } + if (other.Cond2 != 0) { + Cond2 = other.Cond2; + } + condParam2_.Add(other.condParam2_); + if (other.CondDesc2.Length != 0) { + CondDesc2 = other.CondDesc2; + } + if (other.Cond3 != 0) { + Cond3 = other.Cond3; + } + condParam3_.Add(other.condParam3_); + if (other.CondDesc3.Length != 0) { + CondDesc3 = other.CondDesc3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 40: { + RewardDropId = input.ReadInt32(); + break; + } + case 50: { + RewardShow = input.ReadString(); + break; + } + case 56: { + Cond1 = input.ReadInt32(); + break; + } + case 66: + case 64: { + condParam1_.AddEntriesFrom(input, _repeated_condParam1_codec); + break; + } + case 74: { + CondDesc1 = input.ReadString(); + break; + } + case 80: { + Cond2 = input.ReadInt32(); + break; + } + case 90: + case 88: { + condParam2_.AddEntriesFrom(input, _repeated_condParam2_codec); + break; + } + case 98: { + CondDesc2 = input.ReadString(); + break; + } + case 104: { + Cond3 = input.ReadInt32(); + break; + } + case 114: + case 112: { + condParam3_.AddEntriesFrom(input, _repeated_condParam3_codec); + break; + } + case 122: { + CondDesc3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 40: { + RewardDropId = input.ReadInt32(); + break; + } + case 50: { + RewardShow = input.ReadString(); + break; + } + case 56: { + Cond1 = input.ReadInt32(); + break; + } + case 66: + case 64: { + condParam1_.AddEntriesFrom(ref input, _repeated_condParam1_codec); + break; + } + case 74: { + CondDesc1 = input.ReadString(); + break; + } + case 80: { + Cond2 = input.ReadInt32(); + break; + } + case 90: + case 88: { + condParam2_.AddEntriesFrom(ref input, _repeated_condParam2_codec); + break; + } + case 98: { + CondDesc2 = input.ReadString(); + break; + } + case 104: { + Cond3 = input.ReadInt32(); + break; + } + case 114: + case 112: { + condParam3_.AddEntriesFrom(ref input, _repeated_condParam3_codec); + break; + } + case 122: { + CondDesc3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerDifficulty.cs b/NTR.Common/protos/InfinityTowerDifficulty.cs new file mode 100644 index 0000000..84036ac --- /dev/null +++ b/NTR.Common/protos/InfinityTowerDifficulty.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerDifficulty.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerDifficulty.proto + public static partial class InfinityTowerDifficultyReflection { + + #region Descriptor + /// File descriptor for InfinityTowerDifficulty.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerDifficultyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1JbmZpbml0eVRvd2VyRGlmZmljdWx0eS5wcm90byKzAQoXSW5maW5pdHlU", + "b3dlckRpZmZpY3VsdHkSCgoCaWQYASABKAUSDAoEbmFtZRgCIAEoCRIQCgh0", + "b3dlcl9pZBgDIAEoBRIaChJ1bmxvY2tfd29ybGRfY2xhc3MYBCABKAUSEwoL", + "dW5sb2NrX3RpcHMYBSABKAkSFAoMaXNfY2hhbGxlbmdlGAYgASgIEhcKD3Jl", + "Y29tbWVuZF9sZXZlbBgHIAEoBRIMCgRzb3J0GAggASgFQg6qAgtOb3ZhLkNs", + "aWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerDifficulty), global::Nova.Client.InfinityTowerDifficulty.Parser, new[]{ "Id", "Name", "TowerId", "UnlockWorldClass", "UnlockTips", "IsChallenge", "RecommendLevel", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerDifficulty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerDifficulty()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerDifficultyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerDifficulty() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerDifficulty(InfinityTowerDifficulty other) : this() { + id_ = other.id_; + name_ = other.name_; + towerId_ = other.towerId_; + unlockWorldClass_ = other.unlockWorldClass_; + unlockTips_ = other.unlockTips_; + isChallenge_ = other.isChallenge_; + recommendLevel_ = other.recommendLevel_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerDifficulty Clone() { + return new InfinityTowerDifficulty(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tower_id" field. + public const int TowerIdFieldNumber = 3; + private int towerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TowerId { + get { return towerId_; } + set { + towerId_ = value; + } + } + + /// Field number for the "unlock_world_class" field. + public const int UnlockWorldClassFieldNumber = 4; + private int unlockWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockWorldClass { + get { return unlockWorldClass_; } + set { + unlockWorldClass_ = value; + } + } + + /// Field number for the "unlock_tips" field. + public const int UnlockTipsFieldNumber = 5; + private string unlockTips_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockTips { + get { return unlockTips_; } + set { + unlockTips_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_challenge" field. + public const int IsChallengeFieldNumber = 6; + private bool isChallenge_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsChallenge { + get { return isChallenge_; } + set { + isChallenge_ = value; + } + } + + /// Field number for the "recommend_level" field. + public const int RecommendLevelFieldNumber = 7; + private int recommendLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendLevel { + get { return recommendLevel_; } + set { + recommendLevel_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 8; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerDifficulty); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerDifficulty other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (TowerId != other.TowerId) return false; + if (UnlockWorldClass != other.UnlockWorldClass) return false; + if (UnlockTips != other.UnlockTips) return false; + if (IsChallenge != other.IsChallenge) return false; + if (RecommendLevel != other.RecommendLevel) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (TowerId != 0) hash ^= TowerId.GetHashCode(); + if (UnlockWorldClass != 0) hash ^= UnlockWorldClass.GetHashCode(); + if (UnlockTips.Length != 0) hash ^= UnlockTips.GetHashCode(); + if (IsChallenge != false) hash ^= IsChallenge.GetHashCode(); + if (RecommendLevel != 0) hash ^= RecommendLevel.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (TowerId != 0) { + output.WriteRawTag(24); + output.WriteInt32(TowerId); + } + if (UnlockWorldClass != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockWorldClass); + } + if (UnlockTips.Length != 0) { + output.WriteRawTag(42); + output.WriteString(UnlockTips); + } + if (IsChallenge != false) { + output.WriteRawTag(48); + output.WriteBool(IsChallenge); + } + if (RecommendLevel != 0) { + output.WriteRawTag(56); + output.WriteInt32(RecommendLevel); + } + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (TowerId != 0) { + output.WriteRawTag(24); + output.WriteInt32(TowerId); + } + if (UnlockWorldClass != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockWorldClass); + } + if (UnlockTips.Length != 0) { + output.WriteRawTag(42); + output.WriteString(UnlockTips); + } + if (IsChallenge != false) { + output.WriteRawTag(48); + output.WriteBool(IsChallenge); + } + if (RecommendLevel != 0) { + output.WriteRawTag(56); + output.WriteInt32(RecommendLevel); + } + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (TowerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TowerId); + } + if (UnlockWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockWorldClass); + } + if (UnlockTips.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UnlockTips); + } + if (IsChallenge != false) { + size += 1 + 1; + } + if (RecommendLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendLevel); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerDifficulty other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.TowerId != 0) { + TowerId = other.TowerId; + } + if (other.UnlockWorldClass != 0) { + UnlockWorldClass = other.UnlockWorldClass; + } + if (other.UnlockTips.Length != 0) { + UnlockTips = other.UnlockTips; + } + if (other.IsChallenge != false) { + IsChallenge = other.IsChallenge; + } + if (other.RecommendLevel != 0) { + RecommendLevel = other.RecommendLevel; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + TowerId = input.ReadInt32(); + break; + } + case 32: { + UnlockWorldClass = input.ReadInt32(); + break; + } + case 42: { + UnlockTips = input.ReadString(); + break; + } + case 48: { + IsChallenge = input.ReadBool(); + break; + } + case 56: { + RecommendLevel = input.ReadInt32(); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + TowerId = input.ReadInt32(); + break; + } + case 32: { + UnlockWorldClass = input.ReadInt32(); + break; + } + case 42: { + UnlockTips = input.ReadString(); + break; + } + case 48: { + IsChallenge = input.ReadBool(); + break; + } + case 56: { + RecommendLevel = input.ReadInt32(); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerEnemySet.cs b/NTR.Common/protos/InfinityTowerEnemySet.cs new file mode 100644 index 0000000..c91fa10 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerEnemySet.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerEnemySet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerEnemySet.proto + public static partial class InfinityTowerEnemySetReflection { + + #region Descriptor + /// File descriptor for InfinityTowerEnemySet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerEnemySetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtJbmZpbml0eVRvd2VyRW5lbXlTZXQucHJvdG8ivwEKFUluZmluaXR5VG93", + "ZXJFbmVteVNldBIOCgZzZXRfaWQYASABKAUSEAoId2F2ZV9udW0YAiABKAUS", + "EQoJZ3JvdXBfbnVtGAMgASgFEg8KB21heF9udW0YBCABKAUSGAoQbWF4X251", + "bV9wZXJfd2F2ZRgFIAEoBRISCgptb25zdGVyX2lkGAYgASgFEhQKDGxldmVs", + "X2NoYW5nZRgHIAEoBRIcChRjb21tb25fZ2FtZXBsYXlfdHlwZRgIIAEoBUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerEnemySet), global::Nova.Client.InfinityTowerEnemySet.Parser, new[]{ "SetId", "WaveNum", "GroupNum", "MaxNum", "MaxNumPerWave", "MonsterId", "LevelChange", "CommonGameplayType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerEnemySet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerEnemySet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerEnemySetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerEnemySet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerEnemySet(InfinityTowerEnemySet other) : this() { + setId_ = other.setId_; + waveNum_ = other.waveNum_; + groupNum_ = other.groupNum_; + maxNum_ = other.maxNum_; + maxNumPerWave_ = other.maxNumPerWave_; + monsterId_ = other.monsterId_; + levelChange_ = other.levelChange_; + commonGameplayType_ = other.commonGameplayType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerEnemySet Clone() { + return new InfinityTowerEnemySet(this); + } + + /// Field number for the "set_id" field. + public const int SetIdFieldNumber = 1; + private int setId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SetId { + get { return setId_; } + set { + setId_ = value; + } + } + + /// Field number for the "wave_num" field. + public const int WaveNumFieldNumber = 2; + private int waveNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WaveNum { + get { return waveNum_; } + set { + waveNum_ = value; + } + } + + /// Field number for the "group_num" field. + public const int GroupNumFieldNumber = 3; + private int groupNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupNum { + get { return groupNum_; } + set { + groupNum_ = value; + } + } + + /// Field number for the "max_num" field. + public const int MaxNumFieldNumber = 4; + private int maxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNum { + get { return maxNum_; } + set { + maxNum_ = value; + } + } + + /// Field number for the "max_num_per_wave" field. + public const int MaxNumPerWaveFieldNumber = 5; + private int maxNumPerWave_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNumPerWave { + get { return maxNumPerWave_; } + set { + maxNumPerWave_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 6; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "level_change" field. + public const int LevelChangeFieldNumber = 7; + private int levelChange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelChange { + get { return levelChange_; } + set { + levelChange_ = value; + } + } + + /// Field number for the "common_gameplay_type" field. + public const int CommonGameplayTypeFieldNumber = 8; + private int commonGameplayType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CommonGameplayType { + get { return commonGameplayType_; } + set { + commonGameplayType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerEnemySet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerEnemySet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SetId != other.SetId) return false; + if (WaveNum != other.WaveNum) return false; + if (GroupNum != other.GroupNum) return false; + if (MaxNum != other.MaxNum) return false; + if (MaxNumPerWave != other.MaxNumPerWave) return false; + if (MonsterId != other.MonsterId) return false; + if (LevelChange != other.LevelChange) return false; + if (CommonGameplayType != other.CommonGameplayType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SetId != 0) hash ^= SetId.GetHashCode(); + if (WaveNum != 0) hash ^= WaveNum.GetHashCode(); + if (GroupNum != 0) hash ^= GroupNum.GetHashCode(); + if (MaxNum != 0) hash ^= MaxNum.GetHashCode(); + if (MaxNumPerWave != 0) hash ^= MaxNumPerWave.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (LevelChange != 0) hash ^= LevelChange.GetHashCode(); + if (CommonGameplayType != 0) hash ^= CommonGameplayType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SetId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SetId); + } + if (WaveNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(WaveNum); + } + if (GroupNum != 0) { + output.WriteRawTag(24); + output.WriteInt32(GroupNum); + } + if (MaxNum != 0) { + output.WriteRawTag(32); + output.WriteInt32(MaxNum); + } + if (MaxNumPerWave != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxNumPerWave); + } + if (MonsterId != 0) { + output.WriteRawTag(48); + output.WriteInt32(MonsterId); + } + if (LevelChange != 0) { + output.WriteRawTag(56); + output.WriteInt32(LevelChange); + } + if (CommonGameplayType != 0) { + output.WriteRawTag(64); + output.WriteInt32(CommonGameplayType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SetId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SetId); + } + if (WaveNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(WaveNum); + } + if (GroupNum != 0) { + output.WriteRawTag(24); + output.WriteInt32(GroupNum); + } + if (MaxNum != 0) { + output.WriteRawTag(32); + output.WriteInt32(MaxNum); + } + if (MaxNumPerWave != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxNumPerWave); + } + if (MonsterId != 0) { + output.WriteRawTag(48); + output.WriteInt32(MonsterId); + } + if (LevelChange != 0) { + output.WriteRawTag(56); + output.WriteInt32(LevelChange); + } + if (CommonGameplayType != 0) { + output.WriteRawTag(64); + output.WriteInt32(CommonGameplayType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SetId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SetId); + } + if (WaveNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WaveNum); + } + if (GroupNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupNum); + } + if (MaxNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNum); + } + if (MaxNumPerWave != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNumPerWave); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (LevelChange != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelChange); + } + if (CommonGameplayType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CommonGameplayType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerEnemySet other) { + if (other == null) { + return; + } + if (other.SetId != 0) { + SetId = other.SetId; + } + if (other.WaveNum != 0) { + WaveNum = other.WaveNum; + } + if (other.GroupNum != 0) { + GroupNum = other.GroupNum; + } + if (other.MaxNum != 0) { + MaxNum = other.MaxNum; + } + if (other.MaxNumPerWave != 0) { + MaxNumPerWave = other.MaxNumPerWave; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.LevelChange != 0) { + LevelChange = other.LevelChange; + } + if (other.CommonGameplayType != 0) { + CommonGameplayType = other.CommonGameplayType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SetId = input.ReadInt32(); + break; + } + case 16: { + WaveNum = input.ReadInt32(); + break; + } + case 24: { + GroupNum = input.ReadInt32(); + break; + } + case 32: { + MaxNum = input.ReadInt32(); + break; + } + case 40: { + MaxNumPerWave = input.ReadInt32(); + break; + } + case 48: { + MonsterId = input.ReadInt32(); + break; + } + case 56: { + LevelChange = input.ReadInt32(); + break; + } + case 64: { + CommonGameplayType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SetId = input.ReadInt32(); + break; + } + case 16: { + WaveNum = input.ReadInt32(); + break; + } + case 24: { + GroupNum = input.ReadInt32(); + break; + } + case 32: { + MaxNum = input.ReadInt32(); + break; + } + case 40: { + MaxNumPerWave = input.ReadInt32(); + break; + } + case 48: { + MonsterId = input.ReadInt32(); + break; + } + case 56: { + LevelChange = input.ReadInt32(); + break; + } + case 64: { + CommonGameplayType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerFloor.cs b/NTR.Common/protos/InfinityTowerFloor.cs new file mode 100644 index 0000000..87c4425 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerFloor.cs @@ -0,0 +1,607 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerFloor.proto + public static partial class InfinityTowerFloorReflection { + + #region Descriptor + /// File descriptor for InfinityTowerFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhJbmZpbml0eVRvd2VyRmxvb3IucHJvdG8i4QEKEkluZmluaXR5VG93ZXJG", + "bG9vchIKCgJpZBgBIAEoBRINCgVsdl9pZBgCIAEoBRIOCgZtYXBfaWQYAyAB", + "KAUSEQoJYmF0dGxlX2x2GAQgASgFEhIKCmZsb29yX2Z1bmMYBSABKAUSEgoK", + "bW9uc3Rlcl9sdhgGIAEoBRINCgVzdGFnZRgHIAEoBRIOCgZzZXRfaWQYCCAB", + "KAUSEgoKbGltaXRfdGltZRgJIAEoBRIgChhwcmV2aWV3X21vbnN0ZXJfZ3Jv", + "dXBfaWQYCiABKAUSEAoIYWZmaXhfaWQYCyADKAVCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerFloor), global::Nova.Client.InfinityTowerFloor.Parser, new[]{ "Id", "LvId", "MapId", "BattleLv", "FloorFunc", "MonsterLv", "Stage", "SetId", "LimitTime", "PreviewMonsterGroupId", "AffixId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerFloor(InfinityTowerFloor other) : this() { + id_ = other.id_; + lvId_ = other.lvId_; + mapId_ = other.mapId_; + battleLv_ = other.battleLv_; + floorFunc_ = other.floorFunc_; + monsterLv_ = other.monsterLv_; + stage_ = other.stage_; + setId_ = other.setId_; + limitTime_ = other.limitTime_; + previewMonsterGroupId_ = other.previewMonsterGroupId_; + affixId_ = other.affixId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerFloor Clone() { + return new InfinityTowerFloor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "lv_id" field. + public const int LvIdFieldNumber = 2; + private int lvId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LvId { + get { return lvId_; } + set { + lvId_ = value; + } + } + + /// Field number for the "map_id" field. + public const int MapIdFieldNumber = 3; + private int mapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MapId { + get { return mapId_; } + set { + mapId_ = value; + } + } + + /// Field number for the "battle_lv" field. + public const int BattleLvFieldNumber = 4; + private int battleLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BattleLv { + get { return battleLv_; } + set { + battleLv_ = value; + } + } + + /// Field number for the "floor_func" field. + public const int FloorFuncFieldNumber = 5; + private int floorFunc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorFunc { + get { return floorFunc_; } + set { + floorFunc_ = value; + } + } + + /// Field number for the "monster_lv" field. + public const int MonsterLvFieldNumber = 6; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + /// Field number for the "stage" field. + public const int StageFieldNumber = 7; + private int stage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stage { + get { return stage_; } + set { + stage_ = value; + } + } + + /// Field number for the "set_id" field. + public const int SetIdFieldNumber = 8; + private int setId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SetId { + get { return setId_; } + set { + setId_ = value; + } + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 9; + private int limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LimitTime { + get { return limitTime_; } + set { + limitTime_ = value; + } + } + + /// Field number for the "preview_monster_group_id" field. + public const int PreviewMonsterGroupIdFieldNumber = 10; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// Field number for the "affix_id" field. + public const int AffixIdFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_affixId_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField affixId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AffixId { + get { return affixId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (LvId != other.LvId) return false; + if (MapId != other.MapId) return false; + if (BattleLv != other.BattleLv) return false; + if (FloorFunc != other.FloorFunc) return false; + if (MonsterLv != other.MonsterLv) return false; + if (Stage != other.Stage) return false; + if (SetId != other.SetId) return false; + if (LimitTime != other.LimitTime) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if(!affixId_.Equals(other.affixId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (LvId != 0) hash ^= LvId.GetHashCode(); + if (MapId != 0) hash ^= MapId.GetHashCode(); + if (BattleLv != 0) hash ^= BattleLv.GetHashCode(); + if (FloorFunc != 0) hash ^= FloorFunc.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (Stage != 0) hash ^= Stage.GetHashCode(); + if (SetId != 0) hash ^= SetId.GetHashCode(); + if (LimitTime != 0) hash ^= LimitTime.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + hash ^= affixId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LvId != 0) { + output.WriteRawTag(16); + output.WriteInt32(LvId); + } + if (MapId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MapId); + } + if (BattleLv != 0) { + output.WriteRawTag(32); + output.WriteInt32(BattleLv); + } + if (FloorFunc != 0) { + output.WriteRawTag(40); + output.WriteInt32(FloorFunc); + } + if (MonsterLv != 0) { + output.WriteRawTag(48); + output.WriteInt32(MonsterLv); + } + if (Stage != 0) { + output.WriteRawTag(56); + output.WriteInt32(Stage); + } + if (SetId != 0) { + output.WriteRawTag(64); + output.WriteInt32(SetId); + } + if (LimitTime != 0) { + output.WriteRawTag(72); + output.WriteInt32(LimitTime); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(80); + output.WriteInt32(PreviewMonsterGroupId); + } + affixId_.WriteTo(output, _repeated_affixId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LvId != 0) { + output.WriteRawTag(16); + output.WriteInt32(LvId); + } + if (MapId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MapId); + } + if (BattleLv != 0) { + output.WriteRawTag(32); + output.WriteInt32(BattleLv); + } + if (FloorFunc != 0) { + output.WriteRawTag(40); + output.WriteInt32(FloorFunc); + } + if (MonsterLv != 0) { + output.WriteRawTag(48); + output.WriteInt32(MonsterLv); + } + if (Stage != 0) { + output.WriteRawTag(56); + output.WriteInt32(Stage); + } + if (SetId != 0) { + output.WriteRawTag(64); + output.WriteInt32(SetId); + } + if (LimitTime != 0) { + output.WriteRawTag(72); + output.WriteInt32(LimitTime); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(80); + output.WriteInt32(PreviewMonsterGroupId); + } + affixId_.WriteTo(ref output, _repeated_affixId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (LvId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LvId); + } + if (MapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MapId); + } + if (BattleLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BattleLv); + } + if (FloorFunc != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorFunc); + } + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (Stage != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stage); + } + if (SetId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SetId); + } + if (LimitTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LimitTime); + } + if (PreviewMonsterGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + size += affixId_.CalculateSize(_repeated_affixId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.LvId != 0) { + LvId = other.LvId; + } + if (other.MapId != 0) { + MapId = other.MapId; + } + if (other.BattleLv != 0) { + BattleLv = other.BattleLv; + } + if (other.FloorFunc != 0) { + FloorFunc = other.FloorFunc; + } + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + if (other.Stage != 0) { + Stage = other.Stage; + } + if (other.SetId != 0) { + SetId = other.SetId; + } + if (other.LimitTime != 0) { + LimitTime = other.LimitTime; + } + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + affixId_.Add(other.affixId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LvId = input.ReadInt32(); + break; + } + case 24: { + MapId = input.ReadInt32(); + break; + } + case 32: { + BattleLv = input.ReadInt32(); + break; + } + case 40: { + FloorFunc = input.ReadInt32(); + break; + } + case 48: { + MonsterLv = input.ReadInt32(); + break; + } + case 56: { + Stage = input.ReadInt32(); + break; + } + case 64: { + SetId = input.ReadInt32(); + break; + } + case 72: { + LimitTime = input.ReadInt32(); + break; + } + case 80: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 90: + case 88: { + affixId_.AddEntriesFrom(input, _repeated_affixId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LvId = input.ReadInt32(); + break; + } + case 24: { + MapId = input.ReadInt32(); + break; + } + case 32: { + BattleLv = input.ReadInt32(); + break; + } + case 40: { + FloorFunc = input.ReadInt32(); + break; + } + case 48: { + MonsterLv = input.ReadInt32(); + break; + } + case 56: { + Stage = input.ReadInt32(); + break; + } + case 64: { + SetId = input.ReadInt32(); + break; + } + case 72: { + LimitTime = input.ReadInt32(); + break; + } + case 80: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 90: + case 88: { + affixId_.AddEntriesFrom(ref input, _repeated_affixId_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerLevel.cs b/NTR.Common/protos/InfinityTowerLevel.cs new file mode 100644 index 0000000..32b4342 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerLevel.cs @@ -0,0 +1,682 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerLevel.proto + public static partial class InfinityTowerLevelReflection { + + #region Descriptor + /// File descriptor for InfinityTowerLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhJbmZpbml0eVRvd2VyTGV2ZWwucHJvdG8ipQIKEkluZmluaXR5VG93ZXJM", + "ZXZlbBIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEhUKDWRpZmZpY3VsdHlf", + "aWQYAyABKAUSEgoKbGV2ZWxfdHlwZRgEIAEoBRINCgVmbG9vchgFIAEoBRIQ", + "CghmbG9vcl9pZBgGIAEoBRIUCgxwcmVfbGV2ZWxfaWQYByABKAUSEgoKZW50", + "cnlfY29uZBgIIAEoBRIYChBlbnRyeV9jb25kX3BhcmFtGAkgAygFEhUKDWF3", + "YXJkX2Ryb3BfaWQYCiABKAUSFAoMcmVjb21tZW5kX2x2GAsgASgFEhwKFHJl", + "Y29tbWVuZF9idWlsZF9yYW5rGAwgASgFEhoKEmJhc2VfYXdhcmRfcHJldmll", + "dxgNIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerLevel), global::Nova.Client.InfinityTowerLevel.Parser, new[]{ "Id", "Name", "DifficultyId", "LevelType", "Floor", "FloorId", "PreLevelId", "EntryCond", "EntryCondParam", "AwardDropId", "RecommendLv", "RecommendBuildRank", "BaseAwardPreview" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerLevel(InfinityTowerLevel other) : this() { + id_ = other.id_; + name_ = other.name_; + difficultyId_ = other.difficultyId_; + levelType_ = other.levelType_; + floor_ = other.floor_; + floorId_ = other.floorId_; + preLevelId_ = other.preLevelId_; + entryCond_ = other.entryCond_; + entryCondParam_ = other.entryCondParam_.Clone(); + awardDropId_ = other.awardDropId_; + recommendLv_ = other.recommendLv_; + recommendBuildRank_ = other.recommendBuildRank_; + baseAwardPreview_ = other.baseAwardPreview_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerLevel Clone() { + return new InfinityTowerLevel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "difficulty_id" field. + public const int DifficultyIdFieldNumber = 3; + private int difficultyId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DifficultyId { + get { return difficultyId_; } + set { + difficultyId_ = value; + } + } + + /// Field number for the "level_type" field. + public const int LevelTypeFieldNumber = 4; + private int levelType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelType { + get { return levelType_; } + set { + levelType_ = value; + } + } + + /// Field number for the "floor" field. + public const int FloorFieldNumber = 5; + private int floor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Floor { + get { return floor_; } + set { + floor_ = value; + } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 6; + private int floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// Field number for the "pre_level_id" field. + public const int PreLevelIdFieldNumber = 7; + private int preLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelId { + get { return preLevelId_; } + set { + preLevelId_ = value; + } + } + + /// Field number for the "entry_cond" field. + public const int EntryCondFieldNumber = 8; + private int entryCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryCond { + get { return entryCond_; } + set { + entryCond_ = value; + } + } + + /// Field number for the "entry_cond_param" field. + public const int EntryCondParamFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_entryCondParam_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField entryCondParam_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntryCondParam { + get { return entryCondParam_; } + } + + /// Field number for the "award_drop_id" field. + public const int AwardDropIdFieldNumber = 10; + private int awardDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardDropId { + get { return awardDropId_; } + set { + awardDropId_ = value; + } + } + + /// Field number for the "recommend_lv" field. + public const int RecommendLvFieldNumber = 11; + private int recommendLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendLv { + get { return recommendLv_; } + set { + recommendLv_ = value; + } + } + + /// Field number for the "recommend_build_rank" field. + public const int RecommendBuildRankFieldNumber = 12; + private int recommendBuildRank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendBuildRank { + get { return recommendBuildRank_; } + set { + recommendBuildRank_ = value; + } + } + + /// Field number for the "base_award_preview" field. + public const int BaseAwardPreviewFieldNumber = 13; + private string baseAwardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseAwardPreview { + get { return baseAwardPreview_; } + set { + baseAwardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (DifficultyId != other.DifficultyId) return false; + if (LevelType != other.LevelType) return false; + if (Floor != other.Floor) return false; + if (FloorId != other.FloorId) return false; + if (PreLevelId != other.PreLevelId) return false; + if (EntryCond != other.EntryCond) return false; + if(!entryCondParam_.Equals(other.entryCondParam_)) return false; + if (AwardDropId != other.AwardDropId) return false; + if (RecommendLv != other.RecommendLv) return false; + if (RecommendBuildRank != other.RecommendBuildRank) return false; + if (BaseAwardPreview != other.BaseAwardPreview) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DifficultyId != 0) hash ^= DifficultyId.GetHashCode(); + if (LevelType != 0) hash ^= LevelType.GetHashCode(); + if (Floor != 0) hash ^= Floor.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode(); + if (EntryCond != 0) hash ^= EntryCond.GetHashCode(); + hash ^= entryCondParam_.GetHashCode(); + if (AwardDropId != 0) hash ^= AwardDropId.GetHashCode(); + if (RecommendLv != 0) hash ^= RecommendLv.GetHashCode(); + if (RecommendBuildRank != 0) hash ^= RecommendBuildRank.GetHashCode(); + if (BaseAwardPreview.Length != 0) hash ^= BaseAwardPreview.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DifficultyId != 0) { + output.WriteRawTag(24); + output.WriteInt32(DifficultyId); + } + if (LevelType != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelType); + } + if (Floor != 0) { + output.WriteRawTag(40); + output.WriteInt32(Floor); + } + if (FloorId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FloorId); + } + if (PreLevelId != 0) { + output.WriteRawTag(56); + output.WriteInt32(PreLevelId); + } + if (EntryCond != 0) { + output.WriteRawTag(64); + output.WriteInt32(EntryCond); + } + entryCondParam_.WriteTo(output, _repeated_entryCondParam_codec); + if (AwardDropId != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardDropId); + } + if (RecommendLv != 0) { + output.WriteRawTag(88); + output.WriteInt32(RecommendLv); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(96); + output.WriteInt32(RecommendBuildRank); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(106); + output.WriteString(BaseAwardPreview); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DifficultyId != 0) { + output.WriteRawTag(24); + output.WriteInt32(DifficultyId); + } + if (LevelType != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelType); + } + if (Floor != 0) { + output.WriteRawTag(40); + output.WriteInt32(Floor); + } + if (FloorId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FloorId); + } + if (PreLevelId != 0) { + output.WriteRawTag(56); + output.WriteInt32(PreLevelId); + } + if (EntryCond != 0) { + output.WriteRawTag(64); + output.WriteInt32(EntryCond); + } + entryCondParam_.WriteTo(ref output, _repeated_entryCondParam_codec); + if (AwardDropId != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardDropId); + } + if (RecommendLv != 0) { + output.WriteRawTag(88); + output.WriteInt32(RecommendLv); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(96); + output.WriteInt32(RecommendBuildRank); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(106); + output.WriteString(BaseAwardPreview); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DifficultyId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DifficultyId); + } + if (LevelType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelType); + } + if (Floor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Floor); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId); + } + if (PreLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId); + } + if (EntryCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EntryCond); + } + size += entryCondParam_.CalculateSize(_repeated_entryCondParam_codec); + if (AwardDropId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardDropId); + } + if (RecommendLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendLv); + } + if (RecommendBuildRank != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendBuildRank); + } + if (BaseAwardPreview.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseAwardPreview); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerLevel other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DifficultyId != 0) { + DifficultyId = other.DifficultyId; + } + if (other.LevelType != 0) { + LevelType = other.LevelType; + } + if (other.Floor != 0) { + Floor = other.Floor; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.PreLevelId != 0) { + PreLevelId = other.PreLevelId; + } + if (other.EntryCond != 0) { + EntryCond = other.EntryCond; + } + entryCondParam_.Add(other.entryCondParam_); + if (other.AwardDropId != 0) { + AwardDropId = other.AwardDropId; + } + if (other.RecommendLv != 0) { + RecommendLv = other.RecommendLv; + } + if (other.RecommendBuildRank != 0) { + RecommendBuildRank = other.RecommendBuildRank; + } + if (other.BaseAwardPreview.Length != 0) { + BaseAwardPreview = other.BaseAwardPreview; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + DifficultyId = input.ReadInt32(); + break; + } + case 32: { + LevelType = input.ReadInt32(); + break; + } + case 40: { + Floor = input.ReadInt32(); + break; + } + case 48: { + FloorId = input.ReadInt32(); + break; + } + case 56: { + PreLevelId = input.ReadInt32(); + break; + } + case 64: { + EntryCond = input.ReadInt32(); + break; + } + case 74: + case 72: { + entryCondParam_.AddEntriesFrom(input, _repeated_entryCondParam_codec); + break; + } + case 80: { + AwardDropId = input.ReadInt32(); + break; + } + case 88: { + RecommendLv = input.ReadInt32(); + break; + } + case 96: { + RecommendBuildRank = input.ReadInt32(); + break; + } + case 106: { + BaseAwardPreview = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + DifficultyId = input.ReadInt32(); + break; + } + case 32: { + LevelType = input.ReadInt32(); + break; + } + case 40: { + Floor = input.ReadInt32(); + break; + } + case 48: { + FloorId = input.ReadInt32(); + break; + } + case 56: { + PreLevelId = input.ReadInt32(); + break; + } + case 64: { + EntryCond = input.ReadInt32(); + break; + } + case 74: + case 72: { + entryCondParam_.AddEntriesFrom(ref input, _repeated_entryCondParam_codec); + break; + } + case 80: { + AwardDropId = input.ReadInt32(); + break; + } + case 88: { + RecommendLv = input.ReadInt32(); + break; + } + case 96: { + RecommendBuildRank = input.ReadInt32(); + break; + } + case 106: { + BaseAwardPreview = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerMap.cs b/NTR.Common/protos/InfinityTowerMap.cs new file mode 100644 index 0000000..ce65d72 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerMap.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerMap.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerMap.proto + public static partial class InfinityTowerMapReflection { + + #region Descriptor + /// File descriptor for InfinityTowerMap.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerMapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZJbmZpbml0eVRvd2VyTWFwLnByb3RvIokBChBJbmZpbml0eVRvd2VyTWFw", + "EgoKAmlkGAEgASgFEhIKCnNjZW5lX25hbWUYAiABKAkSGgoSY29uZmlnX3By", + "ZWZhYl9uYW1lGAMgASgJEg0KBXRoZW1lGAQgASgFEg0KBWJfZ19tGAUgASgJ", + "EhsKE2xlYXZlX3RyaWdnZXJfZXZlbnQYBiABKAlCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerMap), global::Nova.Client.InfinityTowerMap.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerMapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerMap(InfinityTowerMap other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerMap Clone() { + return new InfinityTowerMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "scene_name" field. + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_prefab_name" field. + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "b_g_m" field. + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "leave_trigger_event" field. + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerMap other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerMsg.cs b/NTR.Common/protos/InfinityTowerMsg.cs new file mode 100644 index 0000000..efd7725 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerMsg.cs @@ -0,0 +1,457 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerMsg.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerMsg.proto + public static partial class InfinityTowerMsgReflection { + + #region Descriptor + /// File descriptor for InfinityTowerMsg.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerMsgReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZJbmZpbml0eVRvd2VyTXNnLnByb3RvIoQBChBJbmZpbml0eVRvd2VyTXNn", + "EgoKAmlkGAEgASgFEg0KBXRpdGxlGAIgASgJEg8KB2NvbnRlbnQYAyABKAkS", + "DAoEdHlwZRgEIAEoBRITCgtkYXlfb2Zfd2VlaxgFIAMoBRIRCgljb25kaXRp", + "b24YBiABKAUSDgoGcGFyYW1zGAcgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerMsg), global::Nova.Client.InfinityTowerMsg.Parser, new[]{ "Id", "Title", "Content", "Type", "DayOfWeek", "Condition", "Params" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerMsg : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerMsg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerMsgReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerMsg() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerMsg(InfinityTowerMsg other) : this() { + id_ = other.id_; + title_ = other.title_; + content_ = other.content_; + type_ = other.type_; + dayOfWeek_ = other.dayOfWeek_.Clone(); + condition_ = other.condition_; + params_ = other.params_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerMsg Clone() { + return new InfinityTowerMsg(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 3; + private string content_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "day_of_week" field. + public const int DayOfWeekFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_dayOfWeek_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField dayOfWeek_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DayOfWeek { + get { return dayOfWeek_; } + } + + /// Field number for the "condition" field. + public const int ConditionFieldNumber = 6; + private int condition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Condition { + get { return condition_; } + set { + condition_ = value; + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 7; + private string params_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerMsg); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerMsg other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Content != other.Content) return false; + if (Type != other.Type) return false; + if(!dayOfWeek_.Equals(other.dayOfWeek_)) return false; + if (Condition != other.Condition) return false; + if (Params != other.Params) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + hash ^= dayOfWeek_.GetHashCode(); + if (Condition != 0) hash ^= Condition.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + dayOfWeek_.WriteTo(output, _repeated_dayOfWeek_codec); + if (Condition != 0) { + output.WriteRawTag(48); + output.WriteInt32(Condition); + } + if (Params.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Params); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + dayOfWeek_.WriteTo(ref output, _repeated_dayOfWeek_codec); + if (Condition != 0) { + output.WriteRawTag(48); + output.WriteInt32(Condition); + } + if (Params.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Params); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + size += dayOfWeek_.CalculateSize(_repeated_dayOfWeek_codec); + if (Condition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Condition); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Params); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerMsg other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + if (other.Type != 0) { + Type = other.Type; + } + dayOfWeek_.Add(other.dayOfWeek_); + if (other.Condition != 0) { + Condition = other.Condition; + } + if (other.Params.Length != 0) { + Params = other.Params; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 42: + case 40: { + dayOfWeek_.AddEntriesFrom(input, _repeated_dayOfWeek_codec); + break; + } + case 48: { + Condition = input.ReadInt32(); + break; + } + case 58: { + Params = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 42: + case 40: { + dayOfWeek_.AddEntriesFrom(ref input, _repeated_dayOfWeek_codec); + break; + } + case 48: { + Condition = input.ReadInt32(); + break; + } + case 58: { + Params = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InfinityTowerPlot.cs b/NTR.Common/protos/InfinityTowerPlot.cs new file mode 100644 index 0000000..34dc791 --- /dev/null +++ b/NTR.Common/protos/InfinityTowerPlot.cs @@ -0,0 +1,569 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InfinityTowerPlot.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InfinityTowerPlot.proto + public static partial class InfinityTowerPlotReflection { + + #region Descriptor + /// File descriptor for InfinityTowerPlot.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InfinityTowerPlotReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdJbmZpbml0eVRvd2VyUGxvdC5wcm90byLIAQoRSW5maW5pdHlUb3dlclBs", + "b3QSCgoCaWQYASABKAUSDAoEbmFtZRgCIAEoCRIMCgRkZXNjGAMgASgJEhAK", + "CHBsb3Rfc3VtGAQgASgJEg8KB3Bsb3RfaWQYBSABKAUSDgoGYXZnX2lkGAYg", + "ASgJEhMKC3VubG9ja19jb25kGAcgASgFEhIKCmNvbmRfcGFyYW0YCCADKAUS", + "FgoOcmV3YXJkX2l0ZW1faWQYCSABKAUSFwoPcmV3YXJkX2l0ZW1fcXR5GAog", + "ASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InfinityTowerPlot), global::Nova.Client.InfinityTowerPlot.Parser, new[]{ "Id", "Name", "Desc", "PlotSum", "PlotId", "AvgId", "UnlockCond", "CondParam", "RewardItemId", "RewardItemQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InfinityTowerPlot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfinityTowerPlot()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InfinityTowerPlotReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerPlot() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerPlot(InfinityTowerPlot other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + plotSum_ = other.plotSum_; + plotId_ = other.plotId_; + avgId_ = other.avgId_; + unlockCond_ = other.unlockCond_; + condParam_ = other.condParam_.Clone(); + rewardItemId_ = other.rewardItemId_; + rewardItemQty_ = other.rewardItemQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InfinityTowerPlot Clone() { + return new InfinityTowerPlot(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "plot_sum" field. + public const int PlotSumFieldNumber = 4; + private string plotSum_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlotSum { + get { return plotSum_; } + set { + plotSum_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "plot_id" field. + public const int PlotIdFieldNumber = 5; + private int plotId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PlotId { + get { return plotId_; } + set { + plotId_ = value; + } + } + + /// Field number for the "avg_id" field. + public const int AvgIdFieldNumber = 6; + private string avgId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AvgId { + get { return avgId_; } + set { + avgId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlock_cond" field. + public const int UnlockCondFieldNumber = 7; + private int unlockCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockCond { + get { return unlockCond_; } + set { + unlockCond_ = value; + } + } + + /// Field number for the "cond_param" field. + public const int CondParamFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_condParam_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField condParam_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CondParam { + get { return condParam_; } + } + + /// Field number for the "reward_item_id" field. + public const int RewardItemIdFieldNumber = 9; + private int rewardItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardItemId { + get { return rewardItemId_; } + set { + rewardItemId_ = value; + } + } + + /// Field number for the "reward_item_qty" field. + public const int RewardItemQtyFieldNumber = 10; + private int rewardItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardItemQty { + get { return rewardItemQty_; } + set { + rewardItemQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InfinityTowerPlot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InfinityTowerPlot other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (PlotSum != other.PlotSum) return false; + if (PlotId != other.PlotId) return false; + if (AvgId != other.AvgId) return false; + if (UnlockCond != other.UnlockCond) return false; + if(!condParam_.Equals(other.condParam_)) return false; + if (RewardItemId != other.RewardItemId) return false; + if (RewardItemQty != other.RewardItemQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (PlotSum.Length != 0) hash ^= PlotSum.GetHashCode(); + if (PlotId != 0) hash ^= PlotId.GetHashCode(); + if (AvgId.Length != 0) hash ^= AvgId.GetHashCode(); + if (UnlockCond != 0) hash ^= UnlockCond.GetHashCode(); + hash ^= condParam_.GetHashCode(); + if (RewardItemId != 0) hash ^= RewardItemId.GetHashCode(); + if (RewardItemQty != 0) hash ^= RewardItemQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (PlotSum.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PlotSum); + } + if (PlotId != 0) { + output.WriteRawTag(40); + output.WriteInt32(PlotId); + } + if (AvgId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AvgId); + } + if (UnlockCond != 0) { + output.WriteRawTag(56); + output.WriteInt32(UnlockCond); + } + condParam_.WriteTo(output, _repeated_condParam_codec); + if (RewardItemId != 0) { + output.WriteRawTag(72); + output.WriteInt32(RewardItemId); + } + if (RewardItemQty != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (PlotSum.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PlotSum); + } + if (PlotId != 0) { + output.WriteRawTag(40); + output.WriteInt32(PlotId); + } + if (AvgId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AvgId); + } + if (UnlockCond != 0) { + output.WriteRawTag(56); + output.WriteInt32(UnlockCond); + } + condParam_.WriteTo(ref output, _repeated_condParam_codec); + if (RewardItemId != 0) { + output.WriteRawTag(72); + output.WriteInt32(RewardItemId); + } + if (RewardItemQty != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (PlotSum.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlotSum); + } + if (PlotId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlotId); + } + if (AvgId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AvgId); + } + if (UnlockCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockCond); + } + size += condParam_.CalculateSize(_repeated_condParam_codec); + if (RewardItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardItemId); + } + if (RewardItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardItemQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InfinityTowerPlot other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.PlotSum.Length != 0) { + PlotSum = other.PlotSum; + } + if (other.PlotId != 0) { + PlotId = other.PlotId; + } + if (other.AvgId.Length != 0) { + AvgId = other.AvgId; + } + if (other.UnlockCond != 0) { + UnlockCond = other.UnlockCond; + } + condParam_.Add(other.condParam_); + if (other.RewardItemId != 0) { + RewardItemId = other.RewardItemId; + } + if (other.RewardItemQty != 0) { + RewardItemQty = other.RewardItemQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + PlotSum = input.ReadString(); + break; + } + case 40: { + PlotId = input.ReadInt32(); + break; + } + case 50: { + AvgId = input.ReadString(); + break; + } + case 56: { + UnlockCond = input.ReadInt32(); + break; + } + case 66: + case 64: { + condParam_.AddEntriesFrom(input, _repeated_condParam_codec); + break; + } + case 72: { + RewardItemId = input.ReadInt32(); + break; + } + case 80: { + RewardItemQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + PlotSum = input.ReadString(); + break; + } + case 40: { + PlotId = input.ReadInt32(); + break; + } + case 50: { + AvgId = input.ReadString(); + break; + } + case 56: { + UnlockCond = input.ReadInt32(); + break; + } + case 66: + case 64: { + condParam_.AddEntriesFrom(ref input, _repeated_condParam_codec); + break; + } + case 72: { + RewardItemId = input.ReadInt32(); + break; + } + case 80: { + RewardItemQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/InteractiveAction.cs b/NTR.Common/protos/InteractiveAction.cs new file mode 100644 index 0000000..00041a4 --- /dev/null +++ b/NTR.Common/protos/InteractiveAction.cs @@ -0,0 +1,428 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InteractiveAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from InteractiveAction.proto + public static partial class InteractiveActionReflection { + + #region Descriptor + /// File descriptor for InteractiveAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InteractiveActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdJbnRlcmFjdGl2ZUFjdGlvbi5wcm90byJxChFJbnRlcmFjdGl2ZUFjdGlv", + "bhIKCgJpZBgBIAEoBRISCgpwbGF5ZXJfYW5pGAIgASgIEg0KBWljb24wGAMg", + "ASgJEg4KBnRpdGxlMBgEIAEoCRINCgVpY29uMRgFIAEoCRIOCgZ0aXRsZTEY", + "BiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.InteractiveAction), global::Nova.Client.InteractiveAction.Parser, new[]{ "Id", "PlayerAni", "Icon0", "Title0", "Icon1", "Title1" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InteractiveAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractiveAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.InteractiveActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractiveAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractiveAction(InteractiveAction other) : this() { + id_ = other.id_; + playerAni_ = other.playerAni_; + icon0_ = other.icon0_; + title0_ = other.title0_; + icon1_ = other.icon1_; + title1_ = other.title1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractiveAction Clone() { + return new InteractiveAction(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "player_ani" field. + public const int PlayerAniFieldNumber = 2; + private bool playerAni_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PlayerAni { + get { return playerAni_; } + set { + playerAni_ = value; + } + } + + /// Field number for the "icon0" field. + public const int Icon0FieldNumber = 3; + private string icon0_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon0 { + get { return icon0_; } + set { + icon0_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title0" field. + public const int Title0FieldNumber = 4; + private string title0_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title0 { + get { return title0_; } + set { + title0_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon1" field. + public const int Icon1FieldNumber = 5; + private string icon1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon1 { + get { return icon1_; } + set { + icon1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title1" field. + public const int Title1FieldNumber = 6; + private string title1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title1 { + get { return title1_; } + set { + title1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InteractiveAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InteractiveAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (PlayerAni != other.PlayerAni) return false; + if (Icon0 != other.Icon0) return false; + if (Title0 != other.Title0) return false; + if (Icon1 != other.Icon1) return false; + if (Title1 != other.Title1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (PlayerAni != false) hash ^= PlayerAni.GetHashCode(); + if (Icon0.Length != 0) hash ^= Icon0.GetHashCode(); + if (Title0.Length != 0) hash ^= Title0.GetHashCode(); + if (Icon1.Length != 0) hash ^= Icon1.GetHashCode(); + if (Title1.Length != 0) hash ^= Title1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PlayerAni != false) { + output.WriteRawTag(16); + output.WriteBool(PlayerAni); + } + if (Icon0.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon0); + } + if (Title0.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title0); + } + if (Icon1.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon1); + } + if (Title1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PlayerAni != false) { + output.WriteRawTag(16); + output.WriteBool(PlayerAni); + } + if (Icon0.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon0); + } + if (Title0.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title0); + } + if (Icon1.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon1); + } + if (Title1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (PlayerAni != false) { + size += 1 + 1; + } + if (Icon0.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon0); + } + if (Title0.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title0); + } + if (Icon1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon1); + } + if (Title1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InteractiveAction other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.PlayerAni != false) { + PlayerAni = other.PlayerAni; + } + if (other.Icon0.Length != 0) { + Icon0 = other.Icon0; + } + if (other.Title0.Length != 0) { + Title0 = other.Title0; + } + if (other.Icon1.Length != 0) { + Icon1 = other.Icon1; + } + if (other.Title1.Length != 0) { + Title1 = other.Title1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + PlayerAni = input.ReadBool(); + break; + } + case 26: { + Icon0 = input.ReadString(); + break; + } + case 34: { + Title0 = input.ReadString(); + break; + } + case 42: { + Icon1 = input.ReadString(); + break; + } + case 50: { + Title1 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + PlayerAni = input.ReadBool(); + break; + } + case 26: { + Icon0 = input.ReadString(); + break; + } + case 34: { + Title0 = input.ReadString(); + break; + } + case 42: { + Icon1 = input.ReadString(); + break; + } + case 50: { + Title1 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Item.cs b/NTR.Common/protos/Item.cs new file mode 100644 index 0000000..7a1cfb3 --- /dev/null +++ b/NTR.Common/protos/Item.cs @@ -0,0 +1,867 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Item.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Item.proto + public static partial class ItemReflection { + + #region Descriptor + /// File descriptor for Item.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpJdGVtLnByb3RvIrYCCgRJdGVtEgoKAmlkGAEgASgFEg0KBXRpdGxlGAIg", + "ASgJEgwKBGRlc2MYAyABKAkSEAoIbGl0ZXJhcnkYBCABKAkSDAoEdHlwZRgF", + "IAEoBRINCgVzdHlwZRgGIAEoBRIOCgZyYXJpdHkYByABKAUSDQoFc3RhY2sY", + "CCABKAgSFgoOcG9zaXRpb25fbGltaXQYCSABKAUSEwoLZXhwaXJlX3R5cGUY", + "CiABKAUSEAoIdXNlX21vZGUYCyABKAUSEgoKdXNlX2FjdGlvbhgMIAEoBRIQ", + "Cgh1c2VfYXJncxgNIAEoCRIPCgdkaXNwbGF5GA4gASgIEhMKC29idGFpbl93", + "YXlzGA8gASgJEg8KB2p1bXBfdG8YECADKAUSDAoEaWNvbhgRIAEoCRINCgVp", + "Y29uMhgSIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Item), global::Nova.Client.Item.Parser, new[]{ "Id", "Title", "Desc", "Literary", "Type", "Stype", "Rarity", "Stack", "PositionLimit", "ExpireType", "UseMode", "UseAction", "UseArgs", "Display", "ObtainWays", "JumpTo", "Icon", "Icon2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Item : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Item()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item(Item other) : this() { + id_ = other.id_; + title_ = other.title_; + desc_ = other.desc_; + literary_ = other.literary_; + type_ = other.type_; + stype_ = other.stype_; + rarity_ = other.rarity_; + stack_ = other.stack_; + positionLimit_ = other.positionLimit_; + expireType_ = other.expireType_; + useMode_ = other.useMode_; + useAction_ = other.useAction_; + useArgs_ = other.useArgs_; + display_ = other.display_; + obtainWays_ = other.obtainWays_; + jumpTo_ = other.jumpTo_.Clone(); + icon_ = other.icon_; + icon2_ = other.icon2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item Clone() { + return new Item(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "literary" field. + public const int LiteraryFieldNumber = 4; + private string literary_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Literary { + get { return literary_; } + set { + literary_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "stype" field. + public const int StypeFieldNumber = 6; + private int stype_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stype { + get { return stype_; } + set { + stype_ = value; + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 7; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + /// Field number for the "stack" field. + public const int StackFieldNumber = 8; + private bool stack_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Stack { + get { return stack_; } + set { + stack_ = value; + } + } + + /// Field number for the "position_limit" field. + public const int PositionLimitFieldNumber = 9; + private int positionLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PositionLimit { + get { return positionLimit_; } + set { + positionLimit_ = value; + } + } + + /// Field number for the "expire_type" field. + public const int ExpireTypeFieldNumber = 10; + private int expireType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExpireType { + get { return expireType_; } + set { + expireType_ = value; + } + } + + /// Field number for the "use_mode" field. + public const int UseModeFieldNumber = 11; + private int useMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UseMode { + get { return useMode_; } + set { + useMode_ = value; + } + } + + /// Field number for the "use_action" field. + public const int UseActionFieldNumber = 12; + private int useAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UseAction { + get { return useAction_; } + set { + useAction_ = value; + } + } + + /// Field number for the "use_args" field. + public const int UseArgsFieldNumber = 13; + private string useArgs_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UseArgs { + get { return useArgs_; } + set { + useArgs_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display" field. + public const int DisplayFieldNumber = 14; + private bool display_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Display { + get { return display_; } + set { + display_ = value; + } + } + + /// Field number for the "obtain_ways" field. + public const int ObtainWaysFieldNumber = 15; + private string obtainWays_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ObtainWays { + get { return obtainWays_; } + set { + obtainWays_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jump_to" field. + public const int JumpToFieldNumber = 16; + private static readonly pb::FieldCodec _repeated_jumpTo_codec + = pb::FieldCodec.ForInt32(130); + private readonly pbc::RepeatedField jumpTo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField JumpTo { + get { return jumpTo_; } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 17; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon2" field. + public const int Icon2FieldNumber = 18; + private string icon2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon2 { + get { return icon2_; } + set { + icon2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Item); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Item other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (Literary != other.Literary) return false; + if (Type != other.Type) return false; + if (Stype != other.Stype) return false; + if (Rarity != other.Rarity) return false; + if (Stack != other.Stack) return false; + if (PositionLimit != other.PositionLimit) return false; + if (ExpireType != other.ExpireType) return false; + if (UseMode != other.UseMode) return false; + if (UseAction != other.UseAction) return false; + if (UseArgs != other.UseArgs) return false; + if (Display != other.Display) return false; + if (ObtainWays != other.ObtainWays) return false; + if(!jumpTo_.Equals(other.jumpTo_)) return false; + if (Icon != other.Icon) return false; + if (Icon2 != other.Icon2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Literary.Length != 0) hash ^= Literary.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Stype != 0) hash ^= Stype.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + if (Stack != false) hash ^= Stack.GetHashCode(); + if (PositionLimit != 0) hash ^= PositionLimit.GetHashCode(); + if (ExpireType != 0) hash ^= ExpireType.GetHashCode(); + if (UseMode != 0) hash ^= UseMode.GetHashCode(); + if (UseAction != 0) hash ^= UseAction.GetHashCode(); + if (UseArgs.Length != 0) hash ^= UseArgs.GetHashCode(); + if (Display != false) hash ^= Display.GetHashCode(); + if (ObtainWays.Length != 0) hash ^= ObtainWays.GetHashCode(); + hash ^= jumpTo_.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Icon2.Length != 0) hash ^= Icon2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Literary.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Literary); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteInt32(Type); + } + if (Stype != 0) { + output.WriteRawTag(48); + output.WriteInt32(Stype); + } + if (Rarity != 0) { + output.WriteRawTag(56); + output.WriteInt32(Rarity); + } + if (Stack != false) { + output.WriteRawTag(64); + output.WriteBool(Stack); + } + if (PositionLimit != 0) { + output.WriteRawTag(72); + output.WriteInt32(PositionLimit); + } + if (ExpireType != 0) { + output.WriteRawTag(80); + output.WriteInt32(ExpireType); + } + if (UseMode != 0) { + output.WriteRawTag(88); + output.WriteInt32(UseMode); + } + if (UseAction != 0) { + output.WriteRawTag(96); + output.WriteInt32(UseAction); + } + if (UseArgs.Length != 0) { + output.WriteRawTag(106); + output.WriteString(UseArgs); + } + if (Display != false) { + output.WriteRawTag(112); + output.WriteBool(Display); + } + if (ObtainWays.Length != 0) { + output.WriteRawTag(122); + output.WriteString(ObtainWays); + } + jumpTo_.WriteTo(output, _repeated_jumpTo_codec); + if (Icon.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Icon); + } + if (Icon2.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Icon2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Literary.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Literary); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteInt32(Type); + } + if (Stype != 0) { + output.WriteRawTag(48); + output.WriteInt32(Stype); + } + if (Rarity != 0) { + output.WriteRawTag(56); + output.WriteInt32(Rarity); + } + if (Stack != false) { + output.WriteRawTag(64); + output.WriteBool(Stack); + } + if (PositionLimit != 0) { + output.WriteRawTag(72); + output.WriteInt32(PositionLimit); + } + if (ExpireType != 0) { + output.WriteRawTag(80); + output.WriteInt32(ExpireType); + } + if (UseMode != 0) { + output.WriteRawTag(88); + output.WriteInt32(UseMode); + } + if (UseAction != 0) { + output.WriteRawTag(96); + output.WriteInt32(UseAction); + } + if (UseArgs.Length != 0) { + output.WriteRawTag(106); + output.WriteString(UseArgs); + } + if (Display != false) { + output.WriteRawTag(112); + output.WriteBool(Display); + } + if (ObtainWays.Length != 0) { + output.WriteRawTag(122); + output.WriteString(ObtainWays); + } + jumpTo_.WriteTo(ref output, _repeated_jumpTo_codec); + if (Icon.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Icon); + } + if (Icon2.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Icon2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Literary.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Literary); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Stype != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stype); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + if (Stack != false) { + size += 1 + 1; + } + if (PositionLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PositionLimit); + } + if (ExpireType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExpireType); + } + if (UseMode != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UseMode); + } + if (UseAction != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UseAction); + } + if (UseArgs.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UseArgs); + } + if (Display != false) { + size += 1 + 1; + } + if (ObtainWays.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObtainWays); + } + size += jumpTo_.CalculateSize(_repeated_jumpTo_codec); + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Icon2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Item other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Literary.Length != 0) { + Literary = other.Literary; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Stype != 0) { + Stype = other.Stype; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + if (other.Stack != false) { + Stack = other.Stack; + } + if (other.PositionLimit != 0) { + PositionLimit = other.PositionLimit; + } + if (other.ExpireType != 0) { + ExpireType = other.ExpireType; + } + if (other.UseMode != 0) { + UseMode = other.UseMode; + } + if (other.UseAction != 0) { + UseAction = other.UseAction; + } + if (other.UseArgs.Length != 0) { + UseArgs = other.UseArgs; + } + if (other.Display != false) { + Display = other.Display; + } + if (other.ObtainWays.Length != 0) { + ObtainWays = other.ObtainWays; + } + jumpTo_.Add(other.jumpTo_); + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Icon2.Length != 0) { + Icon2 = other.Icon2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Literary = input.ReadString(); + break; + } + case 40: { + Type = input.ReadInt32(); + break; + } + case 48: { + Stype = input.ReadInt32(); + break; + } + case 56: { + Rarity = input.ReadInt32(); + break; + } + case 64: { + Stack = input.ReadBool(); + break; + } + case 72: { + PositionLimit = input.ReadInt32(); + break; + } + case 80: { + ExpireType = input.ReadInt32(); + break; + } + case 88: { + UseMode = input.ReadInt32(); + break; + } + case 96: { + UseAction = input.ReadInt32(); + break; + } + case 106: { + UseArgs = input.ReadString(); + break; + } + case 112: { + Display = input.ReadBool(); + break; + } + case 122: { + ObtainWays = input.ReadString(); + break; + } + case 130: + case 128: { + jumpTo_.AddEntriesFrom(input, _repeated_jumpTo_codec); + break; + } + case 138: { + Icon = input.ReadString(); + break; + } + case 146: { + Icon2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Literary = input.ReadString(); + break; + } + case 40: { + Type = input.ReadInt32(); + break; + } + case 48: { + Stype = input.ReadInt32(); + break; + } + case 56: { + Rarity = input.ReadInt32(); + break; + } + case 64: { + Stack = input.ReadBool(); + break; + } + case 72: { + PositionLimit = input.ReadInt32(); + break; + } + case 80: { + ExpireType = input.ReadInt32(); + break; + } + case 88: { + UseMode = input.ReadInt32(); + break; + } + case 96: { + UseAction = input.ReadInt32(); + break; + } + case 106: { + UseArgs = input.ReadString(); + break; + } + case 112: { + Display = input.ReadBool(); + break; + } + case 122: { + ObtainWays = input.ReadString(); + break; + } + case 130: + case 128: { + jumpTo_.AddEntriesFrom(ref input, _repeated_jumpTo_codec); + break; + } + case 138: { + Icon = input.ReadString(); + break; + } + case 146: { + Icon2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ItemPackMark.cs b/NTR.Common/protos/ItemPackMark.cs new file mode 100644 index 0000000..9f4fdf3 --- /dev/null +++ b/NTR.Common/protos/ItemPackMark.cs @@ -0,0 +1,382 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ItemPackMark.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ItemPackMark.proto + public static partial class ItemPackMarkReflection { + + #region Descriptor + /// File descriptor for ItemPackMark.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ItemPackMarkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJJdGVtUGFja01hcmsucHJvdG8iXQoMSXRlbVBhY2tNYXJrEgoKAmlkGAEg", + "ASgFEhEKCXBhY2tfbWFyaxgCIAEoBRISCgppdGVtX3N0eXBlGAMgAygFEgwK", + "BG5hbWUYBCABKAkSDAoEc29ydBgFIAEoBUIOqgILTm92YS5DbGllbnRiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ItemPackMark), global::Nova.Client.ItemPackMark.Parser, new[]{ "Id", "PackMark", "ItemStype", "Name", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ItemPackMark : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemPackMark()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ItemPackMarkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemPackMark() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemPackMark(ItemPackMark other) : this() { + id_ = other.id_; + packMark_ = other.packMark_; + itemStype_ = other.itemStype_.Clone(); + name_ = other.name_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemPackMark Clone() { + return new ItemPackMark(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "pack_mark" field. + public const int PackMarkFieldNumber = 2; + private int packMark_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PackMark { + get { return packMark_; } + set { + packMark_ = value; + } + } + + /// Field number for the "item_stype" field. + public const int ItemStypeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_itemStype_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField itemStype_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemStype { + get { return itemStype_; } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 5; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemPackMark); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemPackMark other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (PackMark != other.PackMark) return false; + if(!itemStype_.Equals(other.itemStype_)) return false; + if (Name != other.Name) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (PackMark != 0) hash ^= PackMark.GetHashCode(); + hash ^= itemStype_.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PackMark != 0) { + output.WriteRawTag(16); + output.WriteInt32(PackMark); + } + itemStype_.WriteTo(output, _repeated_itemStype_codec); + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PackMark != 0) { + output.WriteRawTag(16); + output.WriteInt32(PackMark); + } + itemStype_.WriteTo(ref output, _repeated_itemStype_codec); + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (PackMark != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PackMark); + } + size += itemStype_.CalculateSize(_repeated_itemStype_codec); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemPackMark other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.PackMark != 0) { + PackMark = other.PackMark; + } + itemStype_.Add(other.itemStype_); + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + PackMark = input.ReadInt32(); + break; + } + case 26: + case 24: { + itemStype_.AddEntriesFrom(input, _repeated_itemStype_codec); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + PackMark = input.ReadInt32(); + break; + } + case 26: + case 24: { + itemStype_.AddEntriesFrom(ref input, _repeated_itemStype_codec); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/JumpTo.cs b/NTR.Common/protos/JumpTo.cs new file mode 100644 index 0000000..8ce8345 --- /dev/null +++ b/NTR.Common/protos/JumpTo.cs @@ -0,0 +1,381 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JumpTo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from JumpTo.proto + public static partial class JumpToReflection { + + #region Descriptor + /// File descriptor for JumpTo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static JumpToReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxKdW1wVG8ucHJvdG8iTQoGSnVtcFRvEgoKAmlkGAEgASgFEgwKBHR5cGUY", + "AiABKAUSDQoFcGFyYW0YAyADKAUSDAoEZGVzYxgEIAEoCRIMCgRpY29uGAUg", + "ASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.JumpTo), global::Nova.Client.JumpTo.Parser, new[]{ "Id", "Type", "Param", "Desc", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class JumpTo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JumpTo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.JumpToReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JumpTo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JumpTo(JumpTo other) : this() { + id_ = other.id_; + type_ = other.type_; + param_ = other.param_.Clone(); + desc_ = other.desc_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JumpTo Clone() { + return new JumpTo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "param" field. + public const int ParamFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_param_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField param_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Param { + get { return param_; } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 5; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as JumpTo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(JumpTo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Type != other.Type) return false; + if(!param_.Equals(other.param_)) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + hash ^= param_.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + param_.WriteTo(output, _repeated_param_codec); + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + param_.WriteTo(ref output, _repeated_param_codec); + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + size += param_.CalculateSize(_repeated_param_codec); + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(JumpTo other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Type != 0) { + Type = other.Type; + } + param_.Add(other.param_); + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: + case 24: { + param_.AddEntriesFrom(input, _repeated_param_codec); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: + case 24: { + param_.AddEntriesFrom(ref input, _repeated_param_codec); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/LoginRewardControl.cs b/NTR.Common/protos/LoginRewardControl.cs new file mode 100644 index 0000000..08cf838 --- /dev/null +++ b/NTR.Common/protos/LoginRewardControl.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LoginRewardControl.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from LoginRewardControl.proto + public static partial class LoginRewardControlReflection { + + #region Descriptor + /// File descriptor for LoginRewardControl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LoginRewardControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhMb2dpblJld2FyZENvbnRyb2wucHJvdG8ieAoSTG9naW5SZXdhcmRDb250", + "cm9sEgoKAmlkGAEgASgFEhUKDXJld2FyZHNfZ3JvdXAYAiABKAUSEAoIZGVz", + "X3RleHQYAyABKAkSEgoKdV9pX2Fzc2V0cxgEIAEoCRIZChFwb3BfdXBfdV9p", + "X2Fzc2V0cxgFIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.LoginRewardControl), global::Nova.Client.LoginRewardControl.Parser, new[]{ "Id", "RewardsGroup", "DesText", "UIAssets", "PopUpUIAssets" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LoginRewardControl : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginRewardControl()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.LoginRewardControlReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRewardControl() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRewardControl(LoginRewardControl other) : this() { + id_ = other.id_; + rewardsGroup_ = other.rewardsGroup_; + desText_ = other.desText_; + uIAssets_ = other.uIAssets_; + popUpUIAssets_ = other.popUpUIAssets_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRewardControl Clone() { + return new LoginRewardControl(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "rewards_group" field. + public const int RewardsGroupFieldNumber = 2; + private int rewardsGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardsGroup { + get { return rewardsGroup_; } + set { + rewardsGroup_ = value; + } + } + + /// Field number for the "des_text" field. + public const int DesTextFieldNumber = 3; + private string desText_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DesText { + get { return desText_; } + set { + desText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "u_i_assets" field. + public const int UIAssetsFieldNumber = 4; + private string uIAssets_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UIAssets { + get { return uIAssets_; } + set { + uIAssets_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pop_up_u_i_assets" field. + public const int PopUpUIAssetsFieldNumber = 5; + private string popUpUIAssets_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PopUpUIAssets { + get { return popUpUIAssets_; } + set { + popUpUIAssets_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoginRewardControl); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoginRewardControl other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (RewardsGroup != other.RewardsGroup) return false; + if (DesText != other.DesText) return false; + if (UIAssets != other.UIAssets) return false; + if (PopUpUIAssets != other.PopUpUIAssets) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (RewardsGroup != 0) hash ^= RewardsGroup.GetHashCode(); + if (DesText.Length != 0) hash ^= DesText.GetHashCode(); + if (UIAssets.Length != 0) hash ^= UIAssets.GetHashCode(); + if (PopUpUIAssets.Length != 0) hash ^= PopUpUIAssets.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RewardsGroup != 0) { + output.WriteRawTag(16); + output.WriteInt32(RewardsGroup); + } + if (DesText.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DesText); + } + if (UIAssets.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UIAssets); + } + if (PopUpUIAssets.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PopUpUIAssets); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RewardsGroup != 0) { + output.WriteRawTag(16); + output.WriteInt32(RewardsGroup); + } + if (DesText.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DesText); + } + if (UIAssets.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UIAssets); + } + if (PopUpUIAssets.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PopUpUIAssets); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (RewardsGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardsGroup); + } + if (DesText.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DesText); + } + if (UIAssets.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UIAssets); + } + if (PopUpUIAssets.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PopUpUIAssets); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoginRewardControl other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.RewardsGroup != 0) { + RewardsGroup = other.RewardsGroup; + } + if (other.DesText.Length != 0) { + DesText = other.DesText; + } + if (other.UIAssets.Length != 0) { + UIAssets = other.UIAssets; + } + if (other.PopUpUIAssets.Length != 0) { + PopUpUIAssets = other.PopUpUIAssets; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RewardsGroup = input.ReadInt32(); + break; + } + case 26: { + DesText = input.ReadString(); + break; + } + case 34: { + UIAssets = input.ReadString(); + break; + } + case 42: { + PopUpUIAssets = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RewardsGroup = input.ReadInt32(); + break; + } + case 26: { + DesText = input.ReadString(); + break; + } + case 34: { + UIAssets = input.ReadString(); + break; + } + case 42: { + PopUpUIAssets = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/LoginRewardGroup.cs b/NTR.Common/protos/LoginRewardGroup.cs new file mode 100644 index 0000000..bbe55ee --- /dev/null +++ b/NTR.Common/protos/LoginRewardGroup.cs @@ -0,0 +1,616 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LoginRewardGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from LoginRewardGroup.proto + public static partial class LoginRewardGroupReflection { + + #region Descriptor + /// File descriptor for LoginRewardGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LoginRewardGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZMb2dpblJld2FyZEdyb3VwLnByb3RvIuABChBMb2dpblJld2FyZEdyb3Vw", + "EhcKD3Jld2FyZF9ncm91cF9pZBgBIAEoBRINCgVvcmRlchgCIAEoBRISCgpy", + "ZXdhcmRfaWQxGAMgASgFEgwKBHF0eTEYBCABKAUSEgoKcmV3YXJkX2lkMhgF", + "IAEoBRIMCgRxdHkyGAYgASgFEhIKCnJld2FyZF9pZDMYByABKAUSDAoEcXR5", + "MxgIIAEoBRITCgtyZXdhcmRfaWNvbhgJIAEoCRIUCgxyZXdhcmRfY291bnQY", + "CiABKAUSEwoLcmV3YXJkX2Rlc2MYCyABKAlCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.LoginRewardGroup), global::Nova.Client.LoginRewardGroup.Parser, new[]{ "RewardGroupId", "Order", "RewardId1", "Qty1", "RewardId2", "Qty2", "RewardId3", "Qty3", "RewardIcon", "RewardCount", "RewardDesc" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LoginRewardGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginRewardGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.LoginRewardGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRewardGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRewardGroup(LoginRewardGroup other) : this() { + rewardGroupId_ = other.rewardGroupId_; + order_ = other.order_; + rewardId1_ = other.rewardId1_; + qty1_ = other.qty1_; + rewardId2_ = other.rewardId2_; + qty2_ = other.qty2_; + rewardId3_ = other.rewardId3_; + qty3_ = other.qty3_; + rewardIcon_ = other.rewardIcon_; + rewardCount_ = other.rewardCount_; + rewardDesc_ = other.rewardDesc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LoginRewardGroup Clone() { + return new LoginRewardGroup(this); + } + + /// Field number for the "reward_group_id" field. + public const int RewardGroupIdFieldNumber = 1; + private int rewardGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardGroupId { + get { return rewardGroupId_; } + set { + rewardGroupId_ = value; + } + } + + /// Field number for the "order" field. + public const int OrderFieldNumber = 2; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// Field number for the "reward_id1" field. + public const int RewardId1FieldNumber = 3; + private int rewardId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardId1 { + get { return rewardId1_; } + set { + rewardId1_ = value; + } + } + + /// Field number for the "qty1" field. + public const int Qty1FieldNumber = 4; + private int qty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty1 { + get { return qty1_; } + set { + qty1_ = value; + } + } + + /// Field number for the "reward_id2" field. + public const int RewardId2FieldNumber = 5; + private int rewardId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardId2 { + get { return rewardId2_; } + set { + rewardId2_ = value; + } + } + + /// Field number for the "qty2" field. + public const int Qty2FieldNumber = 6; + private int qty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty2 { + get { return qty2_; } + set { + qty2_ = value; + } + } + + /// Field number for the "reward_id3" field. + public const int RewardId3FieldNumber = 7; + private int rewardId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardId3 { + get { return rewardId3_; } + set { + rewardId3_ = value; + } + } + + /// Field number for the "qty3" field. + public const int Qty3FieldNumber = 8; + private int qty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty3 { + get { return qty3_; } + set { + qty3_ = value; + } + } + + /// Field number for the "reward_icon" field. + public const int RewardIconFieldNumber = 9; + private string rewardIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardIcon { + get { return rewardIcon_; } + set { + rewardIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reward_count" field. + public const int RewardCountFieldNumber = 10; + private int rewardCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardCount { + get { return rewardCount_; } + set { + rewardCount_ = value; + } + } + + /// Field number for the "reward_desc" field. + public const int RewardDescFieldNumber = 11; + private string rewardDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardDesc { + get { return rewardDesc_; } + set { + rewardDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LoginRewardGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LoginRewardGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RewardGroupId != other.RewardGroupId) return false; + if (Order != other.Order) return false; + if (RewardId1 != other.RewardId1) return false; + if (Qty1 != other.Qty1) return false; + if (RewardId2 != other.RewardId2) return false; + if (Qty2 != other.Qty2) return false; + if (RewardId3 != other.RewardId3) return false; + if (Qty3 != other.Qty3) return false; + if (RewardIcon != other.RewardIcon) return false; + if (RewardCount != other.RewardCount) return false; + if (RewardDesc != other.RewardDesc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RewardGroupId != 0) hash ^= RewardGroupId.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (RewardId1 != 0) hash ^= RewardId1.GetHashCode(); + if (Qty1 != 0) hash ^= Qty1.GetHashCode(); + if (RewardId2 != 0) hash ^= RewardId2.GetHashCode(); + if (Qty2 != 0) hash ^= Qty2.GetHashCode(); + if (RewardId3 != 0) hash ^= RewardId3.GetHashCode(); + if (Qty3 != 0) hash ^= Qty3.GetHashCode(); + if (RewardIcon.Length != 0) hash ^= RewardIcon.GetHashCode(); + if (RewardCount != 0) hash ^= RewardCount.GetHashCode(); + if (RewardDesc.Length != 0) hash ^= RewardDesc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RewardGroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(RewardGroupId); + } + if (Order != 0) { + output.WriteRawTag(16); + output.WriteInt32(Order); + } + if (RewardId1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(RewardId1); + } + if (Qty1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Qty1); + } + if (RewardId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(RewardId2); + } + if (Qty2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Qty2); + } + if (RewardId3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardId3); + } + if (Qty3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Qty3); + } + if (RewardIcon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RewardIcon); + } + if (RewardCount != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardCount); + } + if (RewardDesc.Length != 0) { + output.WriteRawTag(90); + output.WriteString(RewardDesc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RewardGroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(RewardGroupId); + } + if (Order != 0) { + output.WriteRawTag(16); + output.WriteInt32(Order); + } + if (RewardId1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(RewardId1); + } + if (Qty1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Qty1); + } + if (RewardId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(RewardId2); + } + if (Qty2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Qty2); + } + if (RewardId3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardId3); + } + if (Qty3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Qty3); + } + if (RewardIcon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RewardIcon); + } + if (RewardCount != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardCount); + } + if (RewardDesc.Length != 0) { + output.WriteRawTag(90); + output.WriteString(RewardDesc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RewardGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardGroupId); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (RewardId1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardId1); + } + if (Qty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty1); + } + if (RewardId2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardId2); + } + if (Qty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty2); + } + if (RewardId3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardId3); + } + if (Qty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty3); + } + if (RewardIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardIcon); + } + if (RewardCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardCount); + } + if (RewardDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardDesc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LoginRewardGroup other) { + if (other == null) { + return; + } + if (other.RewardGroupId != 0) { + RewardGroupId = other.RewardGroupId; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.RewardId1 != 0) { + RewardId1 = other.RewardId1; + } + if (other.Qty1 != 0) { + Qty1 = other.Qty1; + } + if (other.RewardId2 != 0) { + RewardId2 = other.RewardId2; + } + if (other.Qty2 != 0) { + Qty2 = other.Qty2; + } + if (other.RewardId3 != 0) { + RewardId3 = other.RewardId3; + } + if (other.Qty3 != 0) { + Qty3 = other.Qty3; + } + if (other.RewardIcon.Length != 0) { + RewardIcon = other.RewardIcon; + } + if (other.RewardCount != 0) { + RewardCount = other.RewardCount; + } + if (other.RewardDesc.Length != 0) { + RewardDesc = other.RewardDesc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RewardGroupId = input.ReadInt32(); + break; + } + case 16: { + Order = input.ReadInt32(); + break; + } + case 24: { + RewardId1 = input.ReadInt32(); + break; + } + case 32: { + Qty1 = input.ReadInt32(); + break; + } + case 40: { + RewardId2 = input.ReadInt32(); + break; + } + case 48: { + Qty2 = input.ReadInt32(); + break; + } + case 56: { + RewardId3 = input.ReadInt32(); + break; + } + case 64: { + Qty3 = input.ReadInt32(); + break; + } + case 74: { + RewardIcon = input.ReadString(); + break; + } + case 80: { + RewardCount = input.ReadInt32(); + break; + } + case 90: { + RewardDesc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RewardGroupId = input.ReadInt32(); + break; + } + case 16: { + Order = input.ReadInt32(); + break; + } + case 24: { + RewardId1 = input.ReadInt32(); + break; + } + case 32: { + Qty1 = input.ReadInt32(); + break; + } + case 40: { + RewardId2 = input.ReadInt32(); + break; + } + case 48: { + Qty2 = input.ReadInt32(); + break; + } + case 56: { + RewardId3 = input.ReadInt32(); + break; + } + case 64: { + Qty3 = input.ReadInt32(); + break; + } + case 74: { + RewardIcon = input.ReadString(); + break; + } + case 80: { + RewardCount = input.ReadInt32(); + break; + } + case 90: { + RewardDesc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MailTemplate.cs b/NTR.Common/protos/MailTemplate.cs new file mode 100644 index 0000000..462f0d7 --- /dev/null +++ b/NTR.Common/protos/MailTemplate.cs @@ -0,0 +1,952 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MailTemplate.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MailTemplate.proto + public static partial class MailTemplateReflection { + + #region Descriptor + /// File descriptor for MailTemplate.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MailTemplateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJNYWlsVGVtcGxhdGUucHJvdG8i9AIKDE1haWxUZW1wbGF0ZRIKCgJpZBgB", + "IAEoBRITCgtleHBsYW5hdGlvbhgCIAEoCRIMCgRpY29uGAMgASgJEg4KBmF1", + "dGhvchgEIAEoCRIUCgxsZXR0ZXJfcGFwZXIYBSABKAkSDwoHc3ViamVjdBgG", + "IAEoCRIMCgRkZXNjGAcgASgJEgwKBHR5cGUYCCABKAUSDgoGcHJvcHMxGAkg", + "ASgFEhQKDHByb3BzX2NvdW50MRgKIAEoBRIOCgZwcm9wczIYCyABKAUSFAoM", + "cHJvcHNfY291bnQyGAwgASgFEg4KBnByb3BzMxgNIAEoBRIUCgxwcm9wc19j", + "b3VudDMYDiABKAUSDgoGcHJvcHM0GA8gASgFEhQKDHByb3BzX2NvdW50NBgQ", + "IAEoBRIOCgZwcm9wczUYESABKAUSFAoMcHJvcHNfY291bnQ1GBIgASgFEg4K", + "BnByb3BzNhgTIAEoBRIUCgxwcm9wc19jb3VudDYYFCABKAVCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MailTemplate), global::Nova.Client.MailTemplate.Parser, new[]{ "Id", "Explanation", "Icon", "Author", "LetterPaper", "Subject", "Desc", "Type", "Props1", "PropsCount1", "Props2", "PropsCount2", "Props3", "PropsCount3", "Props4", "PropsCount4", "Props5", "PropsCount5", "Props6", "PropsCount6" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MailTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTemplate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MailTemplateReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTemplate(MailTemplate other) : this() { + id_ = other.id_; + explanation_ = other.explanation_; + icon_ = other.icon_; + author_ = other.author_; + letterPaper_ = other.letterPaper_; + subject_ = other.subject_; + desc_ = other.desc_; + type_ = other.type_; + props1_ = other.props1_; + propsCount1_ = other.propsCount1_; + props2_ = other.props2_; + propsCount2_ = other.propsCount2_; + props3_ = other.props3_; + propsCount3_ = other.propsCount3_; + props4_ = other.props4_; + propsCount4_ = other.propsCount4_; + props5_ = other.props5_; + propsCount5_ = other.propsCount5_; + props6_ = other.props6_; + propsCount6_ = other.propsCount6_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTemplate Clone() { + return new MailTemplate(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "explanation" field. + public const int ExplanationFieldNumber = 2; + private string explanation_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Explanation { + get { return explanation_; } + set { + explanation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 3; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "author" field. + public const int AuthorFieldNumber = 4; + private string author_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Author { + get { return author_; } + set { + author_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "letter_paper" field. + public const int LetterPaperFieldNumber = 5; + private string letterPaper_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LetterPaper { + get { return letterPaper_; } + set { + letterPaper_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 6; + private string subject_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subject { + get { return subject_; } + set { + subject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 7; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 8; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "props1" field. + public const int Props1FieldNumber = 9; + private int props1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Props1 { + get { return props1_; } + set { + props1_ = value; + } + } + + /// Field number for the "props_count1" field. + public const int PropsCount1FieldNumber = 10; + private int propsCount1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PropsCount1 { + get { return propsCount1_; } + set { + propsCount1_ = value; + } + } + + /// Field number for the "props2" field. + public const int Props2FieldNumber = 11; + private int props2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Props2 { + get { return props2_; } + set { + props2_ = value; + } + } + + /// Field number for the "props_count2" field. + public const int PropsCount2FieldNumber = 12; + private int propsCount2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PropsCount2 { + get { return propsCount2_; } + set { + propsCount2_ = value; + } + } + + /// Field number for the "props3" field. + public const int Props3FieldNumber = 13; + private int props3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Props3 { + get { return props3_; } + set { + props3_ = value; + } + } + + /// Field number for the "props_count3" field. + public const int PropsCount3FieldNumber = 14; + private int propsCount3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PropsCount3 { + get { return propsCount3_; } + set { + propsCount3_ = value; + } + } + + /// Field number for the "props4" field. + public const int Props4FieldNumber = 15; + private int props4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Props4 { + get { return props4_; } + set { + props4_ = value; + } + } + + /// Field number for the "props_count4" field. + public const int PropsCount4FieldNumber = 16; + private int propsCount4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PropsCount4 { + get { return propsCount4_; } + set { + propsCount4_ = value; + } + } + + /// Field number for the "props5" field. + public const int Props5FieldNumber = 17; + private int props5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Props5 { + get { return props5_; } + set { + props5_ = value; + } + } + + /// Field number for the "props_count5" field. + public const int PropsCount5FieldNumber = 18; + private int propsCount5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PropsCount5 { + get { return propsCount5_; } + set { + propsCount5_ = value; + } + } + + /// Field number for the "props6" field. + public const int Props6FieldNumber = 19; + private int props6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Props6 { + get { return props6_; } + set { + props6_ = value; + } + } + + /// Field number for the "props_count6" field. + public const int PropsCount6FieldNumber = 20; + private int propsCount6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PropsCount6 { + get { return propsCount6_; } + set { + propsCount6_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Explanation != other.Explanation) return false; + if (Icon != other.Icon) return false; + if (Author != other.Author) return false; + if (LetterPaper != other.LetterPaper) return false; + if (Subject != other.Subject) return false; + if (Desc != other.Desc) return false; + if (Type != other.Type) return false; + if (Props1 != other.Props1) return false; + if (PropsCount1 != other.PropsCount1) return false; + if (Props2 != other.Props2) return false; + if (PropsCount2 != other.PropsCount2) return false; + if (Props3 != other.Props3) return false; + if (PropsCount3 != other.PropsCount3) return false; + if (Props4 != other.Props4) return false; + if (PropsCount4 != other.PropsCount4) return false; + if (Props5 != other.Props5) return false; + if (PropsCount5 != other.PropsCount5) return false; + if (Props6 != other.Props6) return false; + if (PropsCount6 != other.PropsCount6) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Explanation.Length != 0) hash ^= Explanation.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Author.Length != 0) hash ^= Author.GetHashCode(); + if (LetterPaper.Length != 0) hash ^= LetterPaper.GetHashCode(); + if (Subject.Length != 0) hash ^= Subject.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Props1 != 0) hash ^= Props1.GetHashCode(); + if (PropsCount1 != 0) hash ^= PropsCount1.GetHashCode(); + if (Props2 != 0) hash ^= Props2.GetHashCode(); + if (PropsCount2 != 0) hash ^= PropsCount2.GetHashCode(); + if (Props3 != 0) hash ^= Props3.GetHashCode(); + if (PropsCount3 != 0) hash ^= PropsCount3.GetHashCode(); + if (Props4 != 0) hash ^= Props4.GetHashCode(); + if (PropsCount4 != 0) hash ^= PropsCount4.GetHashCode(); + if (Props5 != 0) hash ^= Props5.GetHashCode(); + if (PropsCount5 != 0) hash ^= PropsCount5.GetHashCode(); + if (Props6 != 0) hash ^= Props6.GetHashCode(); + if (PropsCount6 != 0) hash ^= PropsCount6.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Explanation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Explanation); + } + if (Icon.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon); + } + if (Author.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Author); + } + if (LetterPaper.Length != 0) { + output.WriteRawTag(42); + output.WriteString(LetterPaper); + } + if (Subject.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Subject); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (Type != 0) { + output.WriteRawTag(64); + output.WriteInt32(Type); + } + if (Props1 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Props1); + } + if (PropsCount1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(PropsCount1); + } + if (Props2 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Props2); + } + if (PropsCount2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(PropsCount2); + } + if (Props3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Props3); + } + if (PropsCount3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(PropsCount3); + } + if (Props4 != 0) { + output.WriteRawTag(120); + output.WriteInt32(Props4); + } + if (PropsCount4 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(PropsCount4); + } + if (Props5 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(Props5); + } + if (PropsCount5 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PropsCount5); + } + if (Props6 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Props6); + } + if (PropsCount6 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(PropsCount6); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Explanation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Explanation); + } + if (Icon.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon); + } + if (Author.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Author); + } + if (LetterPaper.Length != 0) { + output.WriteRawTag(42); + output.WriteString(LetterPaper); + } + if (Subject.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Subject); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (Type != 0) { + output.WriteRawTag(64); + output.WriteInt32(Type); + } + if (Props1 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Props1); + } + if (PropsCount1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(PropsCount1); + } + if (Props2 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Props2); + } + if (PropsCount2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(PropsCount2); + } + if (Props3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Props3); + } + if (PropsCount3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(PropsCount3); + } + if (Props4 != 0) { + output.WriteRawTag(120); + output.WriteInt32(Props4); + } + if (PropsCount4 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(PropsCount4); + } + if (Props5 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(Props5); + } + if (PropsCount5 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PropsCount5); + } + if (Props6 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Props6); + } + if (PropsCount6 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(PropsCount6); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Explanation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Explanation); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Author.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Author); + } + if (LetterPaper.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LetterPaper); + } + if (Subject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subject); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Props1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Props1); + } + if (PropsCount1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropsCount1); + } + if (Props2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Props2); + } + if (PropsCount2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropsCount2); + } + if (Props3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Props3); + } + if (PropsCount3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropsCount3); + } + if (Props4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Props4); + } + if (PropsCount4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PropsCount4); + } + if (Props5 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Props5); + } + if (PropsCount5 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PropsCount5); + } + if (Props6 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Props6); + } + if (PropsCount6 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PropsCount6); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTemplate other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Explanation.Length != 0) { + Explanation = other.Explanation; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Author.Length != 0) { + Author = other.Author; + } + if (other.LetterPaper.Length != 0) { + LetterPaper = other.LetterPaper; + } + if (other.Subject.Length != 0) { + Subject = other.Subject; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Props1 != 0) { + Props1 = other.Props1; + } + if (other.PropsCount1 != 0) { + PropsCount1 = other.PropsCount1; + } + if (other.Props2 != 0) { + Props2 = other.Props2; + } + if (other.PropsCount2 != 0) { + PropsCount2 = other.PropsCount2; + } + if (other.Props3 != 0) { + Props3 = other.Props3; + } + if (other.PropsCount3 != 0) { + PropsCount3 = other.PropsCount3; + } + if (other.Props4 != 0) { + Props4 = other.Props4; + } + if (other.PropsCount4 != 0) { + PropsCount4 = other.PropsCount4; + } + if (other.Props5 != 0) { + Props5 = other.Props5; + } + if (other.PropsCount5 != 0) { + PropsCount5 = other.PropsCount5; + } + if (other.Props6 != 0) { + Props6 = other.Props6; + } + if (other.PropsCount6 != 0) { + PropsCount6 = other.PropsCount6; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Explanation = input.ReadString(); + break; + } + case 26: { + Icon = input.ReadString(); + break; + } + case 34: { + Author = input.ReadString(); + break; + } + case 42: { + LetterPaper = input.ReadString(); + break; + } + case 50: { + Subject = input.ReadString(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 64: { + Type = input.ReadInt32(); + break; + } + case 72: { + Props1 = input.ReadInt32(); + break; + } + case 80: { + PropsCount1 = input.ReadInt32(); + break; + } + case 88: { + Props2 = input.ReadInt32(); + break; + } + case 96: { + PropsCount2 = input.ReadInt32(); + break; + } + case 104: { + Props3 = input.ReadInt32(); + break; + } + case 112: { + PropsCount3 = input.ReadInt32(); + break; + } + case 120: { + Props4 = input.ReadInt32(); + break; + } + case 128: { + PropsCount4 = input.ReadInt32(); + break; + } + case 136: { + Props5 = input.ReadInt32(); + break; + } + case 144: { + PropsCount5 = input.ReadInt32(); + break; + } + case 152: { + Props6 = input.ReadInt32(); + break; + } + case 160: { + PropsCount6 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Explanation = input.ReadString(); + break; + } + case 26: { + Icon = input.ReadString(); + break; + } + case 34: { + Author = input.ReadString(); + break; + } + case 42: { + LetterPaper = input.ReadString(); + break; + } + case 50: { + Subject = input.ReadString(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 64: { + Type = input.ReadInt32(); + break; + } + case 72: { + Props1 = input.ReadInt32(); + break; + } + case 80: { + PropsCount1 = input.ReadInt32(); + break; + } + case 88: { + Props2 = input.ReadInt32(); + break; + } + case 96: { + PropsCount2 = input.ReadInt32(); + break; + } + case 104: { + Props3 = input.ReadInt32(); + break; + } + case 112: { + PropsCount3 = input.ReadInt32(); + break; + } + case 120: { + Props4 = input.ReadInt32(); + break; + } + case 128: { + PropsCount4 = input.ReadInt32(); + break; + } + case 136: { + Props5 = input.ReadInt32(); + break; + } + case 144: { + PropsCount5 = input.ReadInt32(); + break; + } + case 152: { + Props6 = input.ReadInt32(); + break; + } + case 160: { + PropsCount6 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Mainline.cs b/NTR.Common/protos/Mainline.cs new file mode 100644 index 0000000..cd4e372 --- /dev/null +++ b/NTR.Common/protos/Mainline.cs @@ -0,0 +1,1357 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Mainline.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Mainline.proto + public static partial class MainlineReflection { + + #region Descriptor + /// File descriptor for Mainline.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MainlineReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5NYWlubGluZS5wcm90byKDBQoITWFpbmxpbmUSCgoCaWQYASABKAUSCwoD", + "bnVtGAIgASgJEgwKBG5hbWUYAyABKAkSDAoEZGVzYxgEIAEoCRIMCgR0eXBl", + "GAUgASgFEg4KBmVuZXJneRgGIAEoBRISCgpjaGFwdGVyX2lkGAcgASgFEgwK", + "BHByZXYYCCADKAUSDAoEZm9ybRgJIAMoBRIOCgZhdmdfaWQYCiABKAkSFwoP", + "dHJpYWxfY2hhcmFjdGVyGAsgAygFEhUKDWJlZm9yZV9hdmdfaWQYDCABKAkS", + "FAoMYWZ0ZXJfYXZnX2lkGA0gASgJEhYKDmVuZXJneV9jb25zdW1lGA4gASgF", + "EhMKC3VubG9ja19pdGVtGA8gASgFEhIKCnVubG9ja19xdHkYECABKAUSEwoL", + "Z2xvYl9yZXdhcmQYESABKAUSFgoOcmV3YXJkX3ByZXZpZXcYEiABKAkSEwoL", + "aXRlbV9yZXdhcmQYEyABKAUSGQoRZmlyc3RfaXRlbV9yZXdhcmQYFCABKAUS", + "FgoOZGlhbW9uZF9yZXdhcmQYFSABKAUSGAoQbWluX2NoZXN0X3Jld2FyZBgW", + "IAEoCRIYChBtYXhfY2hlc3RfcmV3YXJkGBcgASgJEhMKC2NoYXJfYmFubmVk", + "GBggAygFEhAKCGZsb29yX2lkGBkgAygFEgwKBGljb24YGiABKAkSDgoGcG9z", + "X2lkGBsgASgFEiAKGHByZXZpZXdfbW9uc3Rlcl9ncm91cF9pZBgcIAEoBRIR", + "CglyZWNvbW1lbmQYHSABKAUSDgoGcmVwZWF0GB4gASgIEhQKDHN1Yl9tYXBf", + "bmFtZRgfIAEoBRIUCgxtYWlubGluZV9pbWcYICABKAlCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Mainline), global::Nova.Client.Mainline.Parser, new[]{ "Id", "Num", "Name", "Desc", "Type", "Energy", "ChapterId", "Prev", "Form", "AvgId", "TrialCharacter", "BeforeAvgId", "AfterAvgId", "EnergyConsume", "UnlockItem", "UnlockQty", "GlobReward", "RewardPreview", "ItemReward", "FirstItemReward", "DiamondReward", "MinChestReward", "MaxChestReward", "CharBanned", "FloorId", "Icon", "PosId", "PreviewMonsterGroupId", "Recommend", "Repeat", "SubMapName", "MainlineImg" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Mainline : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Mainline()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MainlineReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Mainline() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Mainline(Mainline other) : this() { + id_ = other.id_; + num_ = other.num_; + name_ = other.name_; + desc_ = other.desc_; + type_ = other.type_; + energy_ = other.energy_; + chapterId_ = other.chapterId_; + prev_ = other.prev_.Clone(); + form_ = other.form_.Clone(); + avgId_ = other.avgId_; + trialCharacter_ = other.trialCharacter_.Clone(); + beforeAvgId_ = other.beforeAvgId_; + afterAvgId_ = other.afterAvgId_; + energyConsume_ = other.energyConsume_; + unlockItem_ = other.unlockItem_; + unlockQty_ = other.unlockQty_; + globReward_ = other.globReward_; + rewardPreview_ = other.rewardPreview_; + itemReward_ = other.itemReward_; + firstItemReward_ = other.firstItemReward_; + diamondReward_ = other.diamondReward_; + minChestReward_ = other.minChestReward_; + maxChestReward_ = other.maxChestReward_; + charBanned_ = other.charBanned_.Clone(); + floorId_ = other.floorId_.Clone(); + icon_ = other.icon_; + posId_ = other.posId_; + previewMonsterGroupId_ = other.previewMonsterGroupId_; + recommend_ = other.recommend_; + repeat_ = other.repeat_; + subMapName_ = other.subMapName_; + mainlineImg_ = other.mainlineImg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Mainline Clone() { + return new Mainline(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private string num_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Num { + get { return num_; } + set { + num_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "energy" field. + public const int EnergyFieldNumber = 6; + private int energy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Energy { + get { return energy_; } + set { + energy_ = value; + } + } + + /// Field number for the "chapter_id" field. + public const int ChapterIdFieldNumber = 7; + private int chapterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ChapterId { + get { return chapterId_; } + set { + chapterId_ = value; + } + } + + /// Field number for the "prev" field. + public const int PrevFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_prev_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField prev_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Prev { + get { return prev_; } + } + + /// Field number for the "form" field. + public const int FormFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_form_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField form_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Form { + get { return form_; } + } + + /// Field number for the "avg_id" field. + public const int AvgIdFieldNumber = 10; + private string avgId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AvgId { + get { return avgId_; } + set { + avgId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trial_character" field. + public const int TrialCharacterFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_trialCharacter_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField trialCharacter_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TrialCharacter { + get { return trialCharacter_; } + } + + /// Field number for the "before_avg_id" field. + public const int BeforeAvgIdFieldNumber = 12; + private string beforeAvgId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BeforeAvgId { + get { return beforeAvgId_; } + set { + beforeAvgId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "after_avg_id" field. + public const int AfterAvgIdFieldNumber = 13; + private string afterAvgId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AfterAvgId { + get { return afterAvgId_; } + set { + afterAvgId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "energy_consume" field. + public const int EnergyConsumeFieldNumber = 14; + private int energyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyConsume { + get { return energyConsume_; } + set { + energyConsume_ = value; + } + } + + /// Field number for the "unlock_item" field. + public const int UnlockItemFieldNumber = 15; + private int unlockItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockItem { + get { return unlockItem_; } + set { + unlockItem_ = value; + } + } + + /// Field number for the "unlock_qty" field. + public const int UnlockQtyFieldNumber = 16; + private int unlockQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockQty { + get { return unlockQty_; } + set { + unlockQty_ = value; + } + } + + /// Field number for the "glob_reward" field. + public const int GlobRewardFieldNumber = 17; + private int globReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GlobReward { + get { return globReward_; } + set { + globReward_ = value; + } + } + + /// Field number for the "reward_preview" field. + public const int RewardPreviewFieldNumber = 18; + private string rewardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardPreview { + get { return rewardPreview_; } + set { + rewardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item_reward" field. + public const int ItemRewardFieldNumber = 19; + private int itemReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemReward { + get { return itemReward_; } + set { + itemReward_ = value; + } + } + + /// Field number for the "first_item_reward" field. + public const int FirstItemRewardFieldNumber = 20; + private int firstItemReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FirstItemReward { + get { return firstItemReward_; } + set { + firstItemReward_ = value; + } + } + + /// Field number for the "diamond_reward" field. + public const int DiamondRewardFieldNumber = 21; + private int diamondReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DiamondReward { + get { return diamondReward_; } + set { + diamondReward_ = value; + } + } + + /// Field number for the "min_chest_reward" field. + public const int MinChestRewardFieldNumber = 22; + private string minChestReward_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MinChestReward { + get { return minChestReward_; } + set { + minChestReward_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "max_chest_reward" field. + public const int MaxChestRewardFieldNumber = 23; + private string maxChestReward_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MaxChestReward { + get { return maxChestReward_; } + set { + maxChestReward_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "char_banned" field. + public const int CharBannedFieldNumber = 24; + private static readonly pb::FieldCodec _repeated_charBanned_codec + = pb::FieldCodec.ForInt32(194); + private readonly pbc::RepeatedField charBanned_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CharBanned { + get { return charBanned_; } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 25; + private static readonly pb::FieldCodec _repeated_floorId_codec + = pb::FieldCodec.ForInt32(202); + private readonly pbc::RepeatedField floorId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FloorId { + get { return floorId_; } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 26; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pos_id" field. + public const int PosIdFieldNumber = 27; + private int posId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PosId { + get { return posId_; } + set { + posId_ = value; + } + } + + /// Field number for the "preview_monster_group_id" field. + public const int PreviewMonsterGroupIdFieldNumber = 28; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// Field number for the "recommend" field. + public const int RecommendFieldNumber = 29; + private int recommend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Recommend { + get { return recommend_; } + set { + recommend_ = value; + } + } + + /// Field number for the "repeat" field. + public const int RepeatFieldNumber = 30; + private bool repeat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Repeat { + get { return repeat_; } + set { + repeat_ = value; + } + } + + /// Field number for the "sub_map_name" field. + public const int SubMapNameFieldNumber = 31; + private int subMapName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SubMapName { + get { return subMapName_; } + set { + subMapName_ = value; + } + } + + /// Field number for the "mainline_img" field. + public const int MainlineImgFieldNumber = 32; + private string mainlineImg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MainlineImg { + get { return mainlineImg_; } + set { + mainlineImg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Mainline); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Mainline other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Num != other.Num) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Type != other.Type) return false; + if (Energy != other.Energy) return false; + if (ChapterId != other.ChapterId) return false; + if(!prev_.Equals(other.prev_)) return false; + if(!form_.Equals(other.form_)) return false; + if (AvgId != other.AvgId) return false; + if(!trialCharacter_.Equals(other.trialCharacter_)) return false; + if (BeforeAvgId != other.BeforeAvgId) return false; + if (AfterAvgId != other.AfterAvgId) return false; + if (EnergyConsume != other.EnergyConsume) return false; + if (UnlockItem != other.UnlockItem) return false; + if (UnlockQty != other.UnlockQty) return false; + if (GlobReward != other.GlobReward) return false; + if (RewardPreview != other.RewardPreview) return false; + if (ItemReward != other.ItemReward) return false; + if (FirstItemReward != other.FirstItemReward) return false; + if (DiamondReward != other.DiamondReward) return false; + if (MinChestReward != other.MinChestReward) return false; + if (MaxChestReward != other.MaxChestReward) return false; + if(!charBanned_.Equals(other.charBanned_)) return false; + if(!floorId_.Equals(other.floorId_)) return false; + if (Icon != other.Icon) return false; + if (PosId != other.PosId) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if (Recommend != other.Recommend) return false; + if (Repeat != other.Repeat) return false; + if (SubMapName != other.SubMapName) return false; + if (MainlineImg != other.MainlineImg) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Num.Length != 0) hash ^= Num.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Energy != 0) hash ^= Energy.GetHashCode(); + if (ChapterId != 0) hash ^= ChapterId.GetHashCode(); + hash ^= prev_.GetHashCode(); + hash ^= form_.GetHashCode(); + if (AvgId.Length != 0) hash ^= AvgId.GetHashCode(); + hash ^= trialCharacter_.GetHashCode(); + if (BeforeAvgId.Length != 0) hash ^= BeforeAvgId.GetHashCode(); + if (AfterAvgId.Length != 0) hash ^= AfterAvgId.GetHashCode(); + if (EnergyConsume != 0) hash ^= EnergyConsume.GetHashCode(); + if (UnlockItem != 0) hash ^= UnlockItem.GetHashCode(); + if (UnlockQty != 0) hash ^= UnlockQty.GetHashCode(); + if (GlobReward != 0) hash ^= GlobReward.GetHashCode(); + if (RewardPreview.Length != 0) hash ^= RewardPreview.GetHashCode(); + if (ItemReward != 0) hash ^= ItemReward.GetHashCode(); + if (FirstItemReward != 0) hash ^= FirstItemReward.GetHashCode(); + if (DiamondReward != 0) hash ^= DiamondReward.GetHashCode(); + if (MinChestReward.Length != 0) hash ^= MinChestReward.GetHashCode(); + if (MaxChestReward.Length != 0) hash ^= MaxChestReward.GetHashCode(); + hash ^= charBanned_.GetHashCode(); + hash ^= floorId_.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (PosId != 0) hash ^= PosId.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + if (Recommend != 0) hash ^= Recommend.GetHashCode(); + if (Repeat != false) hash ^= Repeat.GetHashCode(); + if (SubMapName != 0) hash ^= SubMapName.GetHashCode(); + if (MainlineImg.Length != 0) hash ^= MainlineImg.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Num.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Num); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteInt32(Type); + } + if (Energy != 0) { + output.WriteRawTag(48); + output.WriteInt32(Energy); + } + if (ChapterId != 0) { + output.WriteRawTag(56); + output.WriteInt32(ChapterId); + } + prev_.WriteTo(output, _repeated_prev_codec); + form_.WriteTo(output, _repeated_form_codec); + if (AvgId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(AvgId); + } + trialCharacter_.WriteTo(output, _repeated_trialCharacter_codec); + if (BeforeAvgId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(BeforeAvgId); + } + if (AfterAvgId.Length != 0) { + output.WriteRawTag(106); + output.WriteString(AfterAvgId); + } + if (EnergyConsume != 0) { + output.WriteRawTag(112); + output.WriteInt32(EnergyConsume); + } + if (UnlockItem != 0) { + output.WriteRawTag(120); + output.WriteInt32(UnlockItem); + } + if (UnlockQty != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(UnlockQty); + } + if (GlobReward != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(GlobReward); + } + if (RewardPreview.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(RewardPreview); + } + if (ItemReward != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ItemReward); + } + if (FirstItemReward != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(FirstItemReward); + } + if (DiamondReward != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(DiamondReward); + } + if (MinChestReward.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(MinChestReward); + } + if (MaxChestReward.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(MaxChestReward); + } + charBanned_.WriteTo(output, _repeated_charBanned_codec); + floorId_.WriteTo(output, _repeated_floorId_codec); + if (Icon.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Icon); + } + if (PosId != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(PosId); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Recommend != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(Recommend); + } + if (Repeat != false) { + output.WriteRawTag(240, 1); + output.WriteBool(Repeat); + } + if (SubMapName != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(SubMapName); + } + if (MainlineImg.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(MainlineImg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Num.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Num); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteInt32(Type); + } + if (Energy != 0) { + output.WriteRawTag(48); + output.WriteInt32(Energy); + } + if (ChapterId != 0) { + output.WriteRawTag(56); + output.WriteInt32(ChapterId); + } + prev_.WriteTo(ref output, _repeated_prev_codec); + form_.WriteTo(ref output, _repeated_form_codec); + if (AvgId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(AvgId); + } + trialCharacter_.WriteTo(ref output, _repeated_trialCharacter_codec); + if (BeforeAvgId.Length != 0) { + output.WriteRawTag(98); + output.WriteString(BeforeAvgId); + } + if (AfterAvgId.Length != 0) { + output.WriteRawTag(106); + output.WriteString(AfterAvgId); + } + if (EnergyConsume != 0) { + output.WriteRawTag(112); + output.WriteInt32(EnergyConsume); + } + if (UnlockItem != 0) { + output.WriteRawTag(120); + output.WriteInt32(UnlockItem); + } + if (UnlockQty != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(UnlockQty); + } + if (GlobReward != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(GlobReward); + } + if (RewardPreview.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(RewardPreview); + } + if (ItemReward != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ItemReward); + } + if (FirstItemReward != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(FirstItemReward); + } + if (DiamondReward != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(DiamondReward); + } + if (MinChestReward.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(MinChestReward); + } + if (MaxChestReward.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(MaxChestReward); + } + charBanned_.WriteTo(ref output, _repeated_charBanned_codec); + floorId_.WriteTo(ref output, _repeated_floorId_codec); + if (Icon.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Icon); + } + if (PosId != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(PosId); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Recommend != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(Recommend); + } + if (Repeat != false) { + output.WriteRawTag(240, 1); + output.WriteBool(Repeat); + } + if (SubMapName != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(SubMapName); + } + if (MainlineImg.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(MainlineImg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Num.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Num); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Energy != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Energy); + } + if (ChapterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChapterId); + } + size += prev_.CalculateSize(_repeated_prev_codec); + size += form_.CalculateSize(_repeated_form_codec); + if (AvgId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AvgId); + } + size += trialCharacter_.CalculateSize(_repeated_trialCharacter_codec); + if (BeforeAvgId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BeforeAvgId); + } + if (AfterAvgId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AfterAvgId); + } + if (EnergyConsume != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyConsume); + } + if (UnlockItem != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockItem); + } + if (UnlockQty != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UnlockQty); + } + if (GlobReward != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(GlobReward); + } + if (RewardPreview.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RewardPreview); + } + if (ItemReward != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemReward); + } + if (FirstItemReward != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FirstItemReward); + } + if (DiamondReward != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DiamondReward); + } + if (MinChestReward.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(MinChestReward); + } + if (MaxChestReward.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(MaxChestReward); + } + size += charBanned_.CalculateSize(_repeated_charBanned_codec); + size += floorId_.CalculateSize(_repeated_floorId_codec); + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (PosId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PosId); + } + if (PreviewMonsterGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + if (Recommend != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Recommend); + } + if (Repeat != false) { + size += 2 + 1; + } + if (SubMapName != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SubMapName); + } + if (MainlineImg.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(MainlineImg); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Mainline other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Num.Length != 0) { + Num = other.Num; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Energy != 0) { + Energy = other.Energy; + } + if (other.ChapterId != 0) { + ChapterId = other.ChapterId; + } + prev_.Add(other.prev_); + form_.Add(other.form_); + if (other.AvgId.Length != 0) { + AvgId = other.AvgId; + } + trialCharacter_.Add(other.trialCharacter_); + if (other.BeforeAvgId.Length != 0) { + BeforeAvgId = other.BeforeAvgId; + } + if (other.AfterAvgId.Length != 0) { + AfterAvgId = other.AfterAvgId; + } + if (other.EnergyConsume != 0) { + EnergyConsume = other.EnergyConsume; + } + if (other.UnlockItem != 0) { + UnlockItem = other.UnlockItem; + } + if (other.UnlockQty != 0) { + UnlockQty = other.UnlockQty; + } + if (other.GlobReward != 0) { + GlobReward = other.GlobReward; + } + if (other.RewardPreview.Length != 0) { + RewardPreview = other.RewardPreview; + } + if (other.ItemReward != 0) { + ItemReward = other.ItemReward; + } + if (other.FirstItemReward != 0) { + FirstItemReward = other.FirstItemReward; + } + if (other.DiamondReward != 0) { + DiamondReward = other.DiamondReward; + } + if (other.MinChestReward.Length != 0) { + MinChestReward = other.MinChestReward; + } + if (other.MaxChestReward.Length != 0) { + MaxChestReward = other.MaxChestReward; + } + charBanned_.Add(other.charBanned_); + floorId_.Add(other.floorId_); + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.PosId != 0) { + PosId = other.PosId; + } + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + if (other.Recommend != 0) { + Recommend = other.Recommend; + } + if (other.Repeat != false) { + Repeat = other.Repeat; + } + if (other.SubMapName != 0) { + SubMapName = other.SubMapName; + } + if (other.MainlineImg.Length != 0) { + MainlineImg = other.MainlineImg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Num = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Type = input.ReadInt32(); + break; + } + case 48: { + Energy = input.ReadInt32(); + break; + } + case 56: { + ChapterId = input.ReadInt32(); + break; + } + case 66: + case 64: { + prev_.AddEntriesFrom(input, _repeated_prev_codec); + break; + } + case 74: + case 72: { + form_.AddEntriesFrom(input, _repeated_form_codec); + break; + } + case 82: { + AvgId = input.ReadString(); + break; + } + case 90: + case 88: { + trialCharacter_.AddEntriesFrom(input, _repeated_trialCharacter_codec); + break; + } + case 98: { + BeforeAvgId = input.ReadString(); + break; + } + case 106: { + AfterAvgId = input.ReadString(); + break; + } + case 112: { + EnergyConsume = input.ReadInt32(); + break; + } + case 120: { + UnlockItem = input.ReadInt32(); + break; + } + case 128: { + UnlockQty = input.ReadInt32(); + break; + } + case 136: { + GlobReward = input.ReadInt32(); + break; + } + case 146: { + RewardPreview = input.ReadString(); + break; + } + case 152: { + ItemReward = input.ReadInt32(); + break; + } + case 160: { + FirstItemReward = input.ReadInt32(); + break; + } + case 168: { + DiamondReward = input.ReadInt32(); + break; + } + case 178: { + MinChestReward = input.ReadString(); + break; + } + case 186: { + MaxChestReward = input.ReadString(); + break; + } + case 194: + case 192: { + charBanned_.AddEntriesFrom(input, _repeated_charBanned_codec); + break; + } + case 202: + case 200: { + floorId_.AddEntriesFrom(input, _repeated_floorId_codec); + break; + } + case 210: { + Icon = input.ReadString(); + break; + } + case 216: { + PosId = input.ReadInt32(); + break; + } + case 224: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 232: { + Recommend = input.ReadInt32(); + break; + } + case 240: { + Repeat = input.ReadBool(); + break; + } + case 248: { + SubMapName = input.ReadInt32(); + break; + } + case 258: { + MainlineImg = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Num = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Type = input.ReadInt32(); + break; + } + case 48: { + Energy = input.ReadInt32(); + break; + } + case 56: { + ChapterId = input.ReadInt32(); + break; + } + case 66: + case 64: { + prev_.AddEntriesFrom(ref input, _repeated_prev_codec); + break; + } + case 74: + case 72: { + form_.AddEntriesFrom(ref input, _repeated_form_codec); + break; + } + case 82: { + AvgId = input.ReadString(); + break; + } + case 90: + case 88: { + trialCharacter_.AddEntriesFrom(ref input, _repeated_trialCharacter_codec); + break; + } + case 98: { + BeforeAvgId = input.ReadString(); + break; + } + case 106: { + AfterAvgId = input.ReadString(); + break; + } + case 112: { + EnergyConsume = input.ReadInt32(); + break; + } + case 120: { + UnlockItem = input.ReadInt32(); + break; + } + case 128: { + UnlockQty = input.ReadInt32(); + break; + } + case 136: { + GlobReward = input.ReadInt32(); + break; + } + case 146: { + RewardPreview = input.ReadString(); + break; + } + case 152: { + ItemReward = input.ReadInt32(); + break; + } + case 160: { + FirstItemReward = input.ReadInt32(); + break; + } + case 168: { + DiamondReward = input.ReadInt32(); + break; + } + case 178: { + MinChestReward = input.ReadString(); + break; + } + case 186: { + MaxChestReward = input.ReadString(); + break; + } + case 194: + case 192: { + charBanned_.AddEntriesFrom(ref input, _repeated_charBanned_codec); + break; + } + case 202: + case 200: { + floorId_.AddEntriesFrom(ref input, _repeated_floorId_codec); + break; + } + case 210: { + Icon = input.ReadString(); + break; + } + case 216: { + PosId = input.ReadInt32(); + break; + } + case 224: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 232: { + Recommend = input.ReadInt32(); + break; + } + case 240: { + Repeat = input.ReadBool(); + break; + } + case 248: { + SubMapName = input.ReadInt32(); + break; + } + case 258: { + MainlineImg = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MainlineFloor.cs b/NTR.Common/protos/MainlineFloor.cs new file mode 100644 index 0000000..f8b5a14 --- /dev/null +++ b/NTR.Common/protos/MainlineFloor.cs @@ -0,0 +1,466 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MainlineFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MainlineFloor.proto + public static partial class MainlineFloorReflection { + + #region Descriptor + /// File descriptor for MainlineFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MainlineFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNNYWlubGluZUZsb29yLnByb3RvIpoBCg1NYWlubGluZUZsb29yEgoKAmlk", + "GAEgASgFEhIKCnNjZW5lX25hbWUYAiABKAkSGgoSY29uZmlnX3ByZWZhYl9u", + "YW1lGAMgASgJEg0KBXRoZW1lGAQgASgFEg0KBWJfZ19tGAUgASgJEhsKE2xl", + "YXZlX3RyaWdnZXJfZXZlbnQYBiABKAkSEgoKbW9uc3Rlcl9sdhgHIAEoBUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MainlineFloor), global::Nova.Client.MainlineFloor.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent", "MonsterLv" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MainlineFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MainlineFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MainlineFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MainlineFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MainlineFloor(MainlineFloor other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + monsterLv_ = other.monsterLv_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MainlineFloor Clone() { + return new MainlineFloor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "scene_name" field. + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_prefab_name" field. + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "b_g_m" field. + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "leave_trigger_event" field. + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "monster_lv" field. + public const int MonsterLvFieldNumber = 7; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MainlineFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MainlineFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + if (MonsterLv != other.MonsterLv) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MainlineFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MallGem.cs b/NTR.Common/protos/MallGem.cs new file mode 100644 index 0000000..6b8d97f --- /dev/null +++ b/NTR.Common/protos/MallGem.cs @@ -0,0 +1,616 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MallGem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MallGem.proto + public static partial class MallGemReflection { + + #region Descriptor + /// File descriptor for MallGem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MallGemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1NYWxsR2VtLnByb3RvIoECCgdNYWxsR2VtEgoKAmlkGAEgASgJEgwKBG5h", + "bWUYAiABKAkSDQoFb3JkZXIYAyABKAUSFAoMYmFzZV9pdGVtX2lkGAQgASgF", + "EhUKDWJhc2VfaXRlbV9xdHkYBSABKAUSIQoZZXhwZXJpZW5jZWRfYm9udXNf", + "aXRlbV9pZBgGIAEoBRIiChpleHBlcmllbmNlZF9ib251c19pdGVtX3F0eRgH", + "IAEoBRIdChVtYWlkZW5fYm9udXNfaXRlbV9pX2QYCCABKAUSHQoVbWFpZGVu", + "X2JvbnVzX2l0ZW1fcXR5GAkgASgFEg0KBXByaWNlGAogASgFEgwKBGljb24Y", + "CyABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallGem), global::Nova.Client.MallGem.Parser, new[]{ "Id", "Name", "Order", "BaseItemId", "BaseItemQty", "ExperiencedBonusItemId", "ExperiencedBonusItemQty", "MaidenBonusItemID", "MaidenBonusItemQty", "Price", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MallGem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MallGem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MallGemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallGem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallGem(MallGem other) : this() { + id_ = other.id_; + name_ = other.name_; + order_ = other.order_; + baseItemId_ = other.baseItemId_; + baseItemQty_ = other.baseItemQty_; + experiencedBonusItemId_ = other.experiencedBonusItemId_; + experiencedBonusItemQty_ = other.experiencedBonusItemQty_; + maidenBonusItemID_ = other.maidenBonusItemID_; + maidenBonusItemQty_ = other.maidenBonusItemQty_; + price_ = other.price_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallGem Clone() { + return new MallGem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order" field. + public const int OrderFieldNumber = 3; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// Field number for the "base_item_id" field. + public const int BaseItemIdFieldNumber = 4; + private int baseItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BaseItemId { + get { return baseItemId_; } + set { + baseItemId_ = value; + } + } + + /// Field number for the "base_item_qty" field. + public const int BaseItemQtyFieldNumber = 5; + private int baseItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BaseItemQty { + get { return baseItemQty_; } + set { + baseItemQty_ = value; + } + } + + /// Field number for the "experienced_bonus_item_id" field. + public const int ExperiencedBonusItemIdFieldNumber = 6; + private int experiencedBonusItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExperiencedBonusItemId { + get { return experiencedBonusItemId_; } + set { + experiencedBonusItemId_ = value; + } + } + + /// Field number for the "experienced_bonus_item_qty" field. + public const int ExperiencedBonusItemQtyFieldNumber = 7; + private int experiencedBonusItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExperiencedBonusItemQty { + get { return experiencedBonusItemQty_; } + set { + experiencedBonusItemQty_ = value; + } + } + + /// Field number for the "maiden_bonus_item_i_d" field. + public const int MaidenBonusItemIDFieldNumber = 8; + private int maidenBonusItemID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaidenBonusItemID { + get { return maidenBonusItemID_; } + set { + maidenBonusItemID_ = value; + } + } + + /// Field number for the "maiden_bonus_item_qty" field. + public const int MaidenBonusItemQtyFieldNumber = 9; + private int maidenBonusItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaidenBonusItemQty { + get { return maidenBonusItemQty_; } + set { + maidenBonusItemQty_ = value; + } + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 10; + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { return price_; } + set { + price_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 11; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MallGem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MallGem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Order != other.Order) return false; + if (BaseItemId != other.BaseItemId) return false; + if (BaseItemQty != other.BaseItemQty) return false; + if (ExperiencedBonusItemId != other.ExperiencedBonusItemId) return false; + if (ExperiencedBonusItemQty != other.ExperiencedBonusItemQty) return false; + if (MaidenBonusItemID != other.MaidenBonusItemID) return false; + if (MaidenBonusItemQty != other.MaidenBonusItemQty) return false; + if (Price != other.Price) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (BaseItemId != 0) hash ^= BaseItemId.GetHashCode(); + if (BaseItemQty != 0) hash ^= BaseItemQty.GetHashCode(); + if (ExperiencedBonusItemId != 0) hash ^= ExperiencedBonusItemId.GetHashCode(); + if (ExperiencedBonusItemQty != 0) hash ^= ExperiencedBonusItemQty.GetHashCode(); + if (MaidenBonusItemID != 0) hash ^= MaidenBonusItemID.GetHashCode(); + if (MaidenBonusItemQty != 0) hash ^= MaidenBonusItemQty.GetHashCode(); + if (Price != 0) hash ^= Price.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Order != 0) { + output.WriteRawTag(24); + output.WriteInt32(Order); + } + if (BaseItemId != 0) { + output.WriteRawTag(32); + output.WriteInt32(BaseItemId); + } + if (BaseItemQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(BaseItemQty); + } + if (ExperiencedBonusItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ExperiencedBonusItemId); + } + if (ExperiencedBonusItemQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExperiencedBonusItemQty); + } + if (MaidenBonusItemID != 0) { + output.WriteRawTag(64); + output.WriteInt32(MaidenBonusItemID); + } + if (MaidenBonusItemQty != 0) { + output.WriteRawTag(72); + output.WriteInt32(MaidenBonusItemQty); + } + if (Price != 0) { + output.WriteRawTag(80); + output.WriteInt32(Price); + } + if (Icon.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Order != 0) { + output.WriteRawTag(24); + output.WriteInt32(Order); + } + if (BaseItemId != 0) { + output.WriteRawTag(32); + output.WriteInt32(BaseItemId); + } + if (BaseItemQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(BaseItemQty); + } + if (ExperiencedBonusItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ExperiencedBonusItemId); + } + if (ExperiencedBonusItemQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExperiencedBonusItemQty); + } + if (MaidenBonusItemID != 0) { + output.WriteRawTag(64); + output.WriteInt32(MaidenBonusItemID); + } + if (MaidenBonusItemQty != 0) { + output.WriteRawTag(72); + output.WriteInt32(MaidenBonusItemQty); + } + if (Price != 0) { + output.WriteRawTag(80); + output.WriteInt32(Price); + } + if (Icon.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (BaseItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseItemId); + } + if (BaseItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseItemQty); + } + if (ExperiencedBonusItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExperiencedBonusItemId); + } + if (ExperiencedBonusItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExperiencedBonusItemQty); + } + if (MaidenBonusItemID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaidenBonusItemID); + } + if (MaidenBonusItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaidenBonusItemQty); + } + if (Price != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MallGem other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.BaseItemId != 0) { + BaseItemId = other.BaseItemId; + } + if (other.BaseItemQty != 0) { + BaseItemQty = other.BaseItemQty; + } + if (other.ExperiencedBonusItemId != 0) { + ExperiencedBonusItemId = other.ExperiencedBonusItemId; + } + if (other.ExperiencedBonusItemQty != 0) { + ExperiencedBonusItemQty = other.ExperiencedBonusItemQty; + } + if (other.MaidenBonusItemID != 0) { + MaidenBonusItemID = other.MaidenBonusItemID; + } + if (other.MaidenBonusItemQty != 0) { + MaidenBonusItemQty = other.MaidenBonusItemQty; + } + if (other.Price != 0) { + Price = other.Price; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Order = input.ReadInt32(); + break; + } + case 32: { + BaseItemId = input.ReadInt32(); + break; + } + case 40: { + BaseItemQty = input.ReadInt32(); + break; + } + case 48: { + ExperiencedBonusItemId = input.ReadInt32(); + break; + } + case 56: { + ExperiencedBonusItemQty = input.ReadInt32(); + break; + } + case 64: { + MaidenBonusItemID = input.ReadInt32(); + break; + } + case 72: { + MaidenBonusItemQty = input.ReadInt32(); + break; + } + case 80: { + Price = input.ReadInt32(); + break; + } + case 90: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Order = input.ReadInt32(); + break; + } + case 32: { + BaseItemId = input.ReadInt32(); + break; + } + case 40: { + BaseItemQty = input.ReadInt32(); + break; + } + case 48: { + ExperiencedBonusItemId = input.ReadInt32(); + break; + } + case 56: { + ExperiencedBonusItemQty = input.ReadInt32(); + break; + } + case 64: { + MaidenBonusItemID = input.ReadInt32(); + break; + } + case 72: { + MaidenBonusItemQty = input.ReadInt32(); + break; + } + case 80: { + Price = input.ReadInt32(); + break; + } + case 90: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MallMonthlyCard.cs b/NTR.Common/protos/MallMonthlyCard.cs new file mode 100644 index 0000000..f064d26 --- /dev/null +++ b/NTR.Common/protos/MallMonthlyCard.cs @@ -0,0 +1,503 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MallMonthlyCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MallMonthlyCard.proto + public static partial class MallMonthlyCardReflection { + + #region Descriptor + /// File descriptor for MallMonthlyCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MallMonthlyCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVNYWxsTW9udGhseUNhcmQucHJvdG8ioAEKD01hbGxNb250aGx5Q2FyZBIK", + "CgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhcKD21vbnRobHlfY2FyZF9pZBgD", + "IAEoBRINCgVwcmljZRgEIAEoBRIUCgxiYXNlX2l0ZW1faWQYBSABKAUSFQoN", + "YmFzZV9pdGVtX3F0eRgGIAEoBRIQCghtYXhfZGF5cxgHIAEoBRIMCgRpY29u", + "GAggASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallMonthlyCard), global::Nova.Client.MallMonthlyCard.Parser, new[]{ "Id", "Name", "MonthlyCardId", "Price", "BaseItemId", "BaseItemQty", "MaxDays", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MallMonthlyCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MallMonthlyCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MallMonthlyCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallMonthlyCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallMonthlyCard(MallMonthlyCard other) : this() { + id_ = other.id_; + name_ = other.name_; + monthlyCardId_ = other.monthlyCardId_; + price_ = other.price_; + baseItemId_ = other.baseItemId_; + baseItemQty_ = other.baseItemQty_; + maxDays_ = other.maxDays_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallMonthlyCard Clone() { + return new MallMonthlyCard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "monthly_card_id" field. + public const int MonthlyCardIdFieldNumber = 3; + private int monthlyCardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonthlyCardId { + get { return monthlyCardId_; } + set { + monthlyCardId_ = value; + } + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 4; + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { return price_; } + set { + price_ = value; + } + } + + /// Field number for the "base_item_id" field. + public const int BaseItemIdFieldNumber = 5; + private int baseItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BaseItemId { + get { return baseItemId_; } + set { + baseItemId_ = value; + } + } + + /// Field number for the "base_item_qty" field. + public const int BaseItemQtyFieldNumber = 6; + private int baseItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BaseItemQty { + get { return baseItemQty_; } + set { + baseItemQty_ = value; + } + } + + /// Field number for the "max_days" field. + public const int MaxDaysFieldNumber = 7; + private int maxDays_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxDays { + get { return maxDays_; } + set { + maxDays_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MallMonthlyCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MallMonthlyCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MonthlyCardId != other.MonthlyCardId) return false; + if (Price != other.Price) return false; + if (BaseItemId != other.BaseItemId) return false; + if (BaseItemQty != other.BaseItemQty) return false; + if (MaxDays != other.MaxDays) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (MonthlyCardId != 0) hash ^= MonthlyCardId.GetHashCode(); + if (Price != 0) hash ^= Price.GetHashCode(); + if (BaseItemId != 0) hash ^= BaseItemId.GetHashCode(); + if (BaseItemQty != 0) hash ^= BaseItemQty.GetHashCode(); + if (MaxDays != 0) hash ^= MaxDays.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (MonthlyCardId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MonthlyCardId); + } + if (Price != 0) { + output.WriteRawTag(32); + output.WriteInt32(Price); + } + if (BaseItemId != 0) { + output.WriteRawTag(40); + output.WriteInt32(BaseItemId); + } + if (BaseItemQty != 0) { + output.WriteRawTag(48); + output.WriteInt32(BaseItemQty); + } + if (MaxDays != 0) { + output.WriteRawTag(56); + output.WriteInt32(MaxDays); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (MonthlyCardId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MonthlyCardId); + } + if (Price != 0) { + output.WriteRawTag(32); + output.WriteInt32(Price); + } + if (BaseItemId != 0) { + output.WriteRawTag(40); + output.WriteInt32(BaseItemId); + } + if (BaseItemQty != 0) { + output.WriteRawTag(48); + output.WriteInt32(BaseItemQty); + } + if (MaxDays != 0) { + output.WriteRawTag(56); + output.WriteInt32(MaxDays); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (MonthlyCardId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonthlyCardId); + } + if (Price != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (BaseItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseItemId); + } + if (BaseItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseItemQty); + } + if (MaxDays != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxDays); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MallMonthlyCard other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.MonthlyCardId != 0) { + MonthlyCardId = other.MonthlyCardId; + } + if (other.Price != 0) { + Price = other.Price; + } + if (other.BaseItemId != 0) { + BaseItemId = other.BaseItemId; + } + if (other.BaseItemQty != 0) { + BaseItemQty = other.BaseItemQty; + } + if (other.MaxDays != 0) { + MaxDays = other.MaxDays; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MonthlyCardId = input.ReadInt32(); + break; + } + case 32: { + Price = input.ReadInt32(); + break; + } + case 40: { + BaseItemId = input.ReadInt32(); + break; + } + case 48: { + BaseItemQty = input.ReadInt32(); + break; + } + case 56: { + MaxDays = input.ReadInt32(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MonthlyCardId = input.ReadInt32(); + break; + } + case 32: { + Price = input.ReadInt32(); + break; + } + case 40: { + BaseItemId = input.ReadInt32(); + break; + } + case 48: { + BaseItemQty = input.ReadInt32(); + break; + } + case 56: { + MaxDays = input.ReadInt32(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MallPackage.cs b/NTR.Common/protos/MallPackage.cs new file mode 100644 index 0000000..75c8c25 --- /dev/null +++ b/NTR.Common/protos/MallPackage.cs @@ -0,0 +1,878 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MallPackage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MallPackage.proto + public static partial class MallPackageReflection { + + #region Descriptor + /// File descriptor for MallPackage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MallPackageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNYWxsUGFja2FnZS5wcm90byL6AgoLTWFsbFBhY2thZ2USCgoCaWQYASAB", + "KAkSDAoEbmFtZRgCIAEoCRIQCghncm91cF9pZBgDIAEoBRIMCgRzb3J0GAQg", + "ASgFEhUKDWN1cnJlbmN5X3R5cGUYBSABKAUSGAoQY3VycmVuY3lfaXRlbV9p", + "ZBgGIAEoBRIZChFjdXJyZW5jeV9pdGVtX3F0eRgHIAEoBRINCgVzdG9jaxgI", + "IAEoBRIUCgxyZWZyZXNoX3R5cGUYCSABKAUSDQoFaXRlbXMYCiABKAkSFgoO", + "bGlzdF9jb25kX3R5cGUYCyABKAUSGAoQbGlzdF9jb25kX3BhcmFtcxgMIAEo", + "CRIXCg9vcmRlcl9jb25kX3R5cGUYDSABKAUSGQoRb3JkZXJfY29uZF9wYXJh", + "bXMYDiABKAkSEQoJbGlzdF90aW1lGA8gASgJEhQKDGRlX2xpc3RfdGltZRgQ", + "IAEoCRIUCgxkaXNwbGF5X21vZGUYESABKAUSDAoEaWNvbhgSIAEoCUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallPackage), global::Nova.Client.MallPackage.Parser, new[]{ "Id", "Name", "GroupId", "Sort", "CurrencyType", "CurrencyItemId", "CurrencyItemQty", "Stock", "RefreshType", "Items", "ListCondType", "ListCondParams", "OrderCondType", "OrderCondParams", "ListTime", "DeListTime", "DisplayMode", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MallPackage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MallPackage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MallPackageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallPackage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallPackage(MallPackage other) : this() { + id_ = other.id_; + name_ = other.name_; + groupId_ = other.groupId_; + sort_ = other.sort_; + currencyType_ = other.currencyType_; + currencyItemId_ = other.currencyItemId_; + currencyItemQty_ = other.currencyItemQty_; + stock_ = other.stock_; + refreshType_ = other.refreshType_; + items_ = other.items_; + listCondType_ = other.listCondType_; + listCondParams_ = other.listCondParams_; + orderCondType_ = other.orderCondType_; + orderCondParams_ = other.orderCondParams_; + listTime_ = other.listTime_; + deListTime_ = other.deListTime_; + displayMode_ = other.displayMode_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallPackage Clone() { + return new MallPackage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 3; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 4; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "currency_type" field. + public const int CurrencyTypeFieldNumber = 5; + private int currencyType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyType { + get { return currencyType_; } + set { + currencyType_ = value; + } + } + + /// Field number for the "currency_item_id" field. + public const int CurrencyItemIdFieldNumber = 6; + private int currencyItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyItemId { + get { return currencyItemId_; } + set { + currencyItemId_ = value; + } + } + + /// Field number for the "currency_item_qty" field. + public const int CurrencyItemQtyFieldNumber = 7; + private int currencyItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyItemQty { + get { return currencyItemQty_; } + set { + currencyItemQty_ = value; + } + } + + /// Field number for the "stock" field. + public const int StockFieldNumber = 8; + private int stock_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stock { + get { return stock_; } + set { + stock_ = value; + } + } + + /// Field number for the "refresh_type" field. + public const int RefreshTypeFieldNumber = 9; + private int refreshType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshType { + get { return refreshType_; } + set { + refreshType_ = value; + } + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 10; + private string items_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Items { + get { return items_; } + set { + items_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "list_cond_type" field. + public const int ListCondTypeFieldNumber = 11; + private int listCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ListCondType { + get { return listCondType_; } + set { + listCondType_ = value; + } + } + + /// Field number for the "list_cond_params" field. + public const int ListCondParamsFieldNumber = 12; + private string listCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ListCondParams { + get { return listCondParams_; } + set { + listCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_cond_type" field. + public const int OrderCondTypeFieldNumber = 13; + private int orderCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OrderCondType { + get { return orderCondType_; } + set { + orderCondType_ = value; + } + } + + /// Field number for the "order_cond_params" field. + public const int OrderCondParamsFieldNumber = 14; + private string orderCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderCondParams { + get { return orderCondParams_; } + set { + orderCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "list_time" field. + public const int ListTimeFieldNumber = 15; + private string listTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ListTime { + get { return listTime_; } + set { + listTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "de_list_time" field. + public const int DeListTimeFieldNumber = 16; + private string deListTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeListTime { + get { return deListTime_; } + set { + deListTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_mode" field. + public const int DisplayModeFieldNumber = 17; + private int displayMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DisplayMode { + get { return displayMode_; } + set { + displayMode_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 18; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MallPackage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MallPackage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (GroupId != other.GroupId) return false; + if (Sort != other.Sort) return false; + if (CurrencyType != other.CurrencyType) return false; + if (CurrencyItemId != other.CurrencyItemId) return false; + if (CurrencyItemQty != other.CurrencyItemQty) return false; + if (Stock != other.Stock) return false; + if (RefreshType != other.RefreshType) return false; + if (Items != other.Items) return false; + if (ListCondType != other.ListCondType) return false; + if (ListCondParams != other.ListCondParams) return false; + if (OrderCondType != other.OrderCondType) return false; + if (OrderCondParams != other.OrderCondParams) return false; + if (ListTime != other.ListTime) return false; + if (DeListTime != other.DeListTime) return false; + if (DisplayMode != other.DisplayMode) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (CurrencyType != 0) hash ^= CurrencyType.GetHashCode(); + if (CurrencyItemId != 0) hash ^= CurrencyItemId.GetHashCode(); + if (CurrencyItemQty != 0) hash ^= CurrencyItemQty.GetHashCode(); + if (Stock != 0) hash ^= Stock.GetHashCode(); + if (RefreshType != 0) hash ^= RefreshType.GetHashCode(); + if (Items.Length != 0) hash ^= Items.GetHashCode(); + if (ListCondType != 0) hash ^= ListCondType.GetHashCode(); + if (ListCondParams.Length != 0) hash ^= ListCondParams.GetHashCode(); + if (OrderCondType != 0) hash ^= OrderCondType.GetHashCode(); + if (OrderCondParams.Length != 0) hash ^= OrderCondParams.GetHashCode(); + if (ListTime.Length != 0) hash ^= ListTime.GetHashCode(); + if (DeListTime.Length != 0) hash ^= DeListTime.GetHashCode(); + if (DisplayMode != 0) hash ^= DisplayMode.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (GroupId != 0) { + output.WriteRawTag(24); + output.WriteInt32(GroupId); + } + if (Sort != 0) { + output.WriteRawTag(32); + output.WriteInt32(Sort); + } + if (CurrencyType != 0) { + output.WriteRawTag(40); + output.WriteInt32(CurrencyType); + } + if (CurrencyItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(CurrencyItemId); + } + if (CurrencyItemQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(CurrencyItemQty); + } + if (Stock != 0) { + output.WriteRawTag(64); + output.WriteInt32(Stock); + } + if (RefreshType != 0) { + output.WriteRawTag(72); + output.WriteInt32(RefreshType); + } + if (Items.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Items); + } + if (ListCondType != 0) { + output.WriteRawTag(88); + output.WriteInt32(ListCondType); + } + if (ListCondParams.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ListCondParams); + } + if (OrderCondType != 0) { + output.WriteRawTag(104); + output.WriteInt32(OrderCondType); + } + if (OrderCondParams.Length != 0) { + output.WriteRawTag(114); + output.WriteString(OrderCondParams); + } + if (ListTime.Length != 0) { + output.WriteRawTag(122); + output.WriteString(ListTime); + } + if (DeListTime.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(DeListTime); + } + if (DisplayMode != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(DisplayMode); + } + if (Icon.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (GroupId != 0) { + output.WriteRawTag(24); + output.WriteInt32(GroupId); + } + if (Sort != 0) { + output.WriteRawTag(32); + output.WriteInt32(Sort); + } + if (CurrencyType != 0) { + output.WriteRawTag(40); + output.WriteInt32(CurrencyType); + } + if (CurrencyItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(CurrencyItemId); + } + if (CurrencyItemQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(CurrencyItemQty); + } + if (Stock != 0) { + output.WriteRawTag(64); + output.WriteInt32(Stock); + } + if (RefreshType != 0) { + output.WriteRawTag(72); + output.WriteInt32(RefreshType); + } + if (Items.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Items); + } + if (ListCondType != 0) { + output.WriteRawTag(88); + output.WriteInt32(ListCondType); + } + if (ListCondParams.Length != 0) { + output.WriteRawTag(98); + output.WriteString(ListCondParams); + } + if (OrderCondType != 0) { + output.WriteRawTag(104); + output.WriteInt32(OrderCondType); + } + if (OrderCondParams.Length != 0) { + output.WriteRawTag(114); + output.WriteString(OrderCondParams); + } + if (ListTime.Length != 0) { + output.WriteRawTag(122); + output.WriteString(ListTime); + } + if (DeListTime.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(DeListTime); + } + if (DisplayMode != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(DisplayMode); + } + if (Icon.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (CurrencyType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyType); + } + if (CurrencyItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemId); + } + if (CurrencyItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemQty); + } + if (Stock != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stock); + } + if (RefreshType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshType); + } + if (Items.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Items); + } + if (ListCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ListCondType); + } + if (ListCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ListCondParams); + } + if (OrderCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OrderCondType); + } + if (OrderCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderCondParams); + } + if (ListTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ListTime); + } + if (DeListTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DeListTime); + } + if (DisplayMode != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DisplayMode); + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MallPackage other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.CurrencyType != 0) { + CurrencyType = other.CurrencyType; + } + if (other.CurrencyItemId != 0) { + CurrencyItemId = other.CurrencyItemId; + } + if (other.CurrencyItemQty != 0) { + CurrencyItemQty = other.CurrencyItemQty; + } + if (other.Stock != 0) { + Stock = other.Stock; + } + if (other.RefreshType != 0) { + RefreshType = other.RefreshType; + } + if (other.Items.Length != 0) { + Items = other.Items; + } + if (other.ListCondType != 0) { + ListCondType = other.ListCondType; + } + if (other.ListCondParams.Length != 0) { + ListCondParams = other.ListCondParams; + } + if (other.OrderCondType != 0) { + OrderCondType = other.OrderCondType; + } + if (other.OrderCondParams.Length != 0) { + OrderCondParams = other.OrderCondParams; + } + if (other.ListTime.Length != 0) { + ListTime = other.ListTime; + } + if (other.DeListTime.Length != 0) { + DeListTime = other.DeListTime; + } + if (other.DisplayMode != 0) { + DisplayMode = other.DisplayMode; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + GroupId = input.ReadInt32(); + break; + } + case 32: { + Sort = input.ReadInt32(); + break; + } + case 40: { + CurrencyType = input.ReadInt32(); + break; + } + case 48: { + CurrencyItemId = input.ReadInt32(); + break; + } + case 56: { + CurrencyItemQty = input.ReadInt32(); + break; + } + case 64: { + Stock = input.ReadInt32(); + break; + } + case 72: { + RefreshType = input.ReadInt32(); + break; + } + case 82: { + Items = input.ReadString(); + break; + } + case 88: { + ListCondType = input.ReadInt32(); + break; + } + case 98: { + ListCondParams = input.ReadString(); + break; + } + case 104: { + OrderCondType = input.ReadInt32(); + break; + } + case 114: { + OrderCondParams = input.ReadString(); + break; + } + case 122: { + ListTime = input.ReadString(); + break; + } + case 130: { + DeListTime = input.ReadString(); + break; + } + case 136: { + DisplayMode = input.ReadInt32(); + break; + } + case 146: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + GroupId = input.ReadInt32(); + break; + } + case 32: { + Sort = input.ReadInt32(); + break; + } + case 40: { + CurrencyType = input.ReadInt32(); + break; + } + case 48: { + CurrencyItemId = input.ReadInt32(); + break; + } + case 56: { + CurrencyItemQty = input.ReadInt32(); + break; + } + case 64: { + Stock = input.ReadInt32(); + break; + } + case 72: { + RefreshType = input.ReadInt32(); + break; + } + case 82: { + Items = input.ReadString(); + break; + } + case 88: { + ListCondType = input.ReadInt32(); + break; + } + case 98: { + ListCondParams = input.ReadString(); + break; + } + case 104: { + OrderCondType = input.ReadInt32(); + break; + } + case 114: { + OrderCondParams = input.ReadString(); + break; + } + case 122: { + ListTime = input.ReadString(); + break; + } + case 130: { + DeListTime = input.ReadString(); + break; + } + case 136: { + DisplayMode = input.ReadInt32(); + break; + } + case 146: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MallPackagePage.cs b/NTR.Common/protos/MallPackagePage.cs new file mode 100644 index 0000000..c74a929 --- /dev/null +++ b/NTR.Common/protos/MallPackagePage.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MallPackagePage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MallPackagePage.proto + public static partial class MallPackagePageReflection { + + #region Descriptor + /// File descriptor for MallPackagePage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MallPackagePageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVNYWxsUGFja2FnZVBhZ2UucHJvdG8iOQoPTWFsbFBhY2thZ2VQYWdlEgoK", + "AmlkGAEgASgFEgwKBG5hbWUYAiABKAkSDAoEc29ydBgDIAEoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallPackagePage), global::Nova.Client.MallPackagePage.Parser, new[]{ "Id", "Name", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MallPackagePage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MallPackagePage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MallPackagePageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallPackagePage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallPackagePage(MallPackagePage other) : this() { + id_ = other.id_; + name_ = other.name_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallPackagePage Clone() { + return new MallPackagePage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 3; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MallPackagePage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MallPackagePage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Sort != 0) { + output.WriteRawTag(24); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Sort != 0) { + output.WriteRawTag(24); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MallPackagePage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MallShop.cs b/NTR.Common/protos/MallShop.cs new file mode 100644 index 0000000..1546162 --- /dev/null +++ b/NTR.Common/protos/MallShop.cs @@ -0,0 +1,878 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MallShop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MallShop.proto + public static partial class MallShopReflection { + + #region Descriptor + /// File descriptor for MallShop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MallShopReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5NYWxsU2hvcC5wcm90byL0AgoITWFsbFNob3ASCgoCaWQYASABKAkSDAoE", + "bmFtZRgCIAEoCRIMCgRkZXNjGAMgASgJEhAKCGdyb3VwX2lkGAQgASgFEgwK", + "BHNvcnQYBSABKAUSGAoQZXhjaGFuZ2VfaXRlbV9pZBgGIAEoBRIZChFleGNo", + "YW5nZV9pdGVtX3F0eRgHIAEoBRINCgVzdG9jaxgIIAEoBRIUCgxyZWZyZXNo", + "X3R5cGUYCSABKAUSDwoHaXRlbV9pZBgKIAEoBRIQCghpdGVtX3F0eRgLIAEo", + "BRIWCg5saXN0X2NvbmRfdHlwZRgMIAEoBRIYChBsaXN0X2NvbmRfcGFyYW1z", + "GA0gASgJEhcKD29yZGVyX2NvbmRfdHlwZRgOIAEoBRIZChFvcmRlcl9jb25k", + "X3BhcmFtcxgPIAEoCRIRCglsaXN0X3RpbWUYECABKAkSFAoMZGVfbGlzdF90", + "aW1lGBEgASgJEhQKDGRpc3BsYXlfbW9kZRgSIAEoBUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallShop), global::Nova.Client.MallShop.Parser, new[]{ "Id", "Name", "Desc", "GroupId", "Sort", "ExchangeItemId", "ExchangeItemQty", "Stock", "RefreshType", "ItemId", "ItemQty", "ListCondType", "ListCondParams", "OrderCondType", "OrderCondParams", "ListTime", "DeListTime", "DisplayMode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MallShop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MallShop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MallShopReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallShop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallShop(MallShop other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + groupId_ = other.groupId_; + sort_ = other.sort_; + exchangeItemId_ = other.exchangeItemId_; + exchangeItemQty_ = other.exchangeItemQty_; + stock_ = other.stock_; + refreshType_ = other.refreshType_; + itemId_ = other.itemId_; + itemQty_ = other.itemQty_; + listCondType_ = other.listCondType_; + listCondParams_ = other.listCondParams_; + orderCondType_ = other.orderCondType_; + orderCondParams_ = other.orderCondParams_; + listTime_ = other.listTime_; + deListTime_ = other.deListTime_; + displayMode_ = other.displayMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallShop Clone() { + return new MallShop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 4; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 5; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "exchange_item_id" field. + public const int ExchangeItemIdFieldNumber = 6; + private int exchangeItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExchangeItemId { + get { return exchangeItemId_; } + set { + exchangeItemId_ = value; + } + } + + /// Field number for the "exchange_item_qty" field. + public const int ExchangeItemQtyFieldNumber = 7; + private int exchangeItemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExchangeItemQty { + get { return exchangeItemQty_; } + set { + exchangeItemQty_ = value; + } + } + + /// Field number for the "stock" field. + public const int StockFieldNumber = 8; + private int stock_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stock { + get { return stock_; } + set { + stock_ = value; + } + } + + /// Field number for the "refresh_type" field. + public const int RefreshTypeFieldNumber = 9; + private int refreshType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshType { + get { return refreshType_; } + set { + refreshType_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 10; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_qty" field. + public const int ItemQtyFieldNumber = 11; + private int itemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty { + get { return itemQty_; } + set { + itemQty_ = value; + } + } + + /// Field number for the "list_cond_type" field. + public const int ListCondTypeFieldNumber = 12; + private int listCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ListCondType { + get { return listCondType_; } + set { + listCondType_ = value; + } + } + + /// Field number for the "list_cond_params" field. + public const int ListCondParamsFieldNumber = 13; + private string listCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ListCondParams { + get { return listCondParams_; } + set { + listCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_cond_type" field. + public const int OrderCondTypeFieldNumber = 14; + private int orderCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OrderCondType { + get { return orderCondType_; } + set { + orderCondType_ = value; + } + } + + /// Field number for the "order_cond_params" field. + public const int OrderCondParamsFieldNumber = 15; + private string orderCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderCondParams { + get { return orderCondParams_; } + set { + orderCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "list_time" field. + public const int ListTimeFieldNumber = 16; + private string listTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ListTime { + get { return listTime_; } + set { + listTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "de_list_time" field. + public const int DeListTimeFieldNumber = 17; + private string deListTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeListTime { + get { return deListTime_; } + set { + deListTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_mode" field. + public const int DisplayModeFieldNumber = 18; + private int displayMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DisplayMode { + get { return displayMode_; } + set { + displayMode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MallShop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MallShop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (GroupId != other.GroupId) return false; + if (Sort != other.Sort) return false; + if (ExchangeItemId != other.ExchangeItemId) return false; + if (ExchangeItemQty != other.ExchangeItemQty) return false; + if (Stock != other.Stock) return false; + if (RefreshType != other.RefreshType) return false; + if (ItemId != other.ItemId) return false; + if (ItemQty != other.ItemQty) return false; + if (ListCondType != other.ListCondType) return false; + if (ListCondParams != other.ListCondParams) return false; + if (OrderCondType != other.OrderCondType) return false; + if (OrderCondParams != other.OrderCondParams) return false; + if (ListTime != other.ListTime) return false; + if (DeListTime != other.DeListTime) return false; + if (DisplayMode != other.DisplayMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (ExchangeItemId != 0) hash ^= ExchangeItemId.GetHashCode(); + if (ExchangeItemQty != 0) hash ^= ExchangeItemQty.GetHashCode(); + if (Stock != 0) hash ^= Stock.GetHashCode(); + if (RefreshType != 0) hash ^= RefreshType.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemQty != 0) hash ^= ItemQty.GetHashCode(); + if (ListCondType != 0) hash ^= ListCondType.GetHashCode(); + if (ListCondParams.Length != 0) hash ^= ListCondParams.GetHashCode(); + if (OrderCondType != 0) hash ^= OrderCondType.GetHashCode(); + if (OrderCondParams.Length != 0) hash ^= OrderCondParams.GetHashCode(); + if (ListTime.Length != 0) hash ^= ListTime.GetHashCode(); + if (DeListTime.Length != 0) hash ^= DeListTime.GetHashCode(); + if (DisplayMode != 0) hash ^= DisplayMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (GroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(GroupId); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (ExchangeItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ExchangeItemId); + } + if (ExchangeItemQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExchangeItemQty); + } + if (Stock != 0) { + output.WriteRawTag(64); + output.WriteInt32(Stock); + } + if (RefreshType != 0) { + output.WriteRawTag(72); + output.WriteInt32(RefreshType); + } + if (ItemId != 0) { + output.WriteRawTag(80); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(88); + output.WriteInt32(ItemQty); + } + if (ListCondType != 0) { + output.WriteRawTag(96); + output.WriteInt32(ListCondType); + } + if (ListCondParams.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ListCondParams); + } + if (OrderCondType != 0) { + output.WriteRawTag(112); + output.WriteInt32(OrderCondType); + } + if (OrderCondParams.Length != 0) { + output.WriteRawTag(122); + output.WriteString(OrderCondParams); + } + if (ListTime.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(ListTime); + } + if (DeListTime.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(DeListTime); + } + if (DisplayMode != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(DisplayMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (GroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(GroupId); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (ExchangeItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ExchangeItemId); + } + if (ExchangeItemQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExchangeItemQty); + } + if (Stock != 0) { + output.WriteRawTag(64); + output.WriteInt32(Stock); + } + if (RefreshType != 0) { + output.WriteRawTag(72); + output.WriteInt32(RefreshType); + } + if (ItemId != 0) { + output.WriteRawTag(80); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(88); + output.WriteInt32(ItemQty); + } + if (ListCondType != 0) { + output.WriteRawTag(96); + output.WriteInt32(ListCondType); + } + if (ListCondParams.Length != 0) { + output.WriteRawTag(106); + output.WriteString(ListCondParams); + } + if (OrderCondType != 0) { + output.WriteRawTag(112); + output.WriteInt32(OrderCondType); + } + if (OrderCondParams.Length != 0) { + output.WriteRawTag(122); + output.WriteString(OrderCondParams); + } + if (ListTime.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(ListTime); + } + if (DeListTime.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(DeListTime); + } + if (DisplayMode != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(DisplayMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (ExchangeItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExchangeItemId); + } + if (ExchangeItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExchangeItemQty); + } + if (Stock != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stock); + } + if (RefreshType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshType); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQty); + } + if (ListCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ListCondType); + } + if (ListCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ListCondParams); + } + if (OrderCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OrderCondType); + } + if (OrderCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderCondParams); + } + if (ListTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ListTime); + } + if (DeListTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DeListTime); + } + if (DisplayMode != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DisplayMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MallShop other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.ExchangeItemId != 0) { + ExchangeItemId = other.ExchangeItemId; + } + if (other.ExchangeItemQty != 0) { + ExchangeItemQty = other.ExchangeItemQty; + } + if (other.Stock != 0) { + Stock = other.Stock; + } + if (other.RefreshType != 0) { + RefreshType = other.RefreshType; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemQty != 0) { + ItemQty = other.ItemQty; + } + if (other.ListCondType != 0) { + ListCondType = other.ListCondType; + } + if (other.ListCondParams.Length != 0) { + ListCondParams = other.ListCondParams; + } + if (other.OrderCondType != 0) { + OrderCondType = other.OrderCondType; + } + if (other.OrderCondParams.Length != 0) { + OrderCondParams = other.OrderCondParams; + } + if (other.ListTime.Length != 0) { + ListTime = other.ListTime; + } + if (other.DeListTime.Length != 0) { + DeListTime = other.DeListTime; + } + if (other.DisplayMode != 0) { + DisplayMode = other.DisplayMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + GroupId = input.ReadInt32(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + case 48: { + ExchangeItemId = input.ReadInt32(); + break; + } + case 56: { + ExchangeItemQty = input.ReadInt32(); + break; + } + case 64: { + Stock = input.ReadInt32(); + break; + } + case 72: { + RefreshType = input.ReadInt32(); + break; + } + case 80: { + ItemId = input.ReadInt32(); + break; + } + case 88: { + ItemQty = input.ReadInt32(); + break; + } + case 96: { + ListCondType = input.ReadInt32(); + break; + } + case 106: { + ListCondParams = input.ReadString(); + break; + } + case 112: { + OrderCondType = input.ReadInt32(); + break; + } + case 122: { + OrderCondParams = input.ReadString(); + break; + } + case 130: { + ListTime = input.ReadString(); + break; + } + case 138: { + DeListTime = input.ReadString(); + break; + } + case 144: { + DisplayMode = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + GroupId = input.ReadInt32(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + case 48: { + ExchangeItemId = input.ReadInt32(); + break; + } + case 56: { + ExchangeItemQty = input.ReadInt32(); + break; + } + case 64: { + Stock = input.ReadInt32(); + break; + } + case 72: { + RefreshType = input.ReadInt32(); + break; + } + case 80: { + ItemId = input.ReadInt32(); + break; + } + case 88: { + ItemQty = input.ReadInt32(); + break; + } + case 96: { + ListCondType = input.ReadInt32(); + break; + } + case 106: { + ListCondParams = input.ReadString(); + break; + } + case 112: { + OrderCondType = input.ReadInt32(); + break; + } + case 122: { + OrderCondParams = input.ReadString(); + break; + } + case 130: { + ListTime = input.ReadString(); + break; + } + case 138: { + DeListTime = input.ReadString(); + break; + } + case 144: { + DisplayMode = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MallShopPage.cs b/NTR.Common/protos/MallShopPage.cs new file mode 100644 index 0000000..920bfaa --- /dev/null +++ b/NTR.Common/protos/MallShopPage.cs @@ -0,0 +1,466 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MallShopPage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MallShopPage.proto + public static partial class MallShopPageReflection { + + #region Descriptor + /// File descriptor for MallShopPage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MallShopPageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJNYWxsU2hvcFBhZ2UucHJvdG8ijQEKDE1hbGxTaG9wUGFnZRIKCgJpZBgB", + "IAEoBRIMCgRzb3J0GAIgASgFEgwKBG5hbWUYAyABKAkSGQoRcmVmcmVzaF90", + "aW1lX3R5cGUYBCABKAUSEQoJc2hvcF9jb2luGAUgASgFEhEKCWxpc3RfdGlt", + "ZRgGIAEoCRIUCgxkZV9saXN0X3RpbWUYByABKAlCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallShopPage), global::Nova.Client.MallShopPage.Parser, new[]{ "Id", "Sort", "Name", "RefreshTimeType", "ShopCoin", "ListTime", "DeListTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MallShopPage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MallShopPage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MallShopPageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallShopPage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallShopPage(MallShopPage other) : this() { + id_ = other.id_; + sort_ = other.sort_; + name_ = other.name_; + refreshTimeType_ = other.refreshTimeType_; + shopCoin_ = other.shopCoin_; + listTime_ = other.listTime_; + deListTime_ = other.deListTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MallShopPage Clone() { + return new MallShopPage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 2; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "refresh_time_type" field. + public const int RefreshTimeTypeFieldNumber = 4; + private int refreshTimeType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshTimeType { + get { return refreshTimeType_; } + set { + refreshTimeType_ = value; + } + } + + /// Field number for the "shop_coin" field. + public const int ShopCoinFieldNumber = 5; + private int shopCoin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShopCoin { + get { return shopCoin_; } + set { + shopCoin_ = value; + } + } + + /// Field number for the "list_time" field. + public const int ListTimeFieldNumber = 6; + private string listTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ListTime { + get { return listTime_; } + set { + listTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "de_list_time" field. + public const int DeListTimeFieldNumber = 7; + private string deListTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeListTime { + get { return deListTime_; } + set { + deListTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MallShopPage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MallShopPage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Sort != other.Sort) return false; + if (Name != other.Name) return false; + if (RefreshTimeType != other.RefreshTimeType) return false; + if (ShopCoin != other.ShopCoin) return false; + if (ListTime != other.ListTime) return false; + if (DeListTime != other.DeListTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RefreshTimeType != 0) hash ^= RefreshTimeType.GetHashCode(); + if (ShopCoin != 0) hash ^= ShopCoin.GetHashCode(); + if (ListTime.Length != 0) hash ^= ListTime.GetHashCode(); + if (DeListTime.Length != 0) hash ^= DeListTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Sort != 0) { + output.WriteRawTag(16); + output.WriteInt32(Sort); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (RefreshTimeType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RefreshTimeType); + } + if (ShopCoin != 0) { + output.WriteRawTag(40); + output.WriteInt32(ShopCoin); + } + if (ListTime.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ListTime); + } + if (DeListTime.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeListTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Sort != 0) { + output.WriteRawTag(16); + output.WriteInt32(Sort); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (RefreshTimeType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RefreshTimeType); + } + if (ShopCoin != 0) { + output.WriteRawTag(40); + output.WriteInt32(ShopCoin); + } + if (ListTime.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ListTime); + } + if (DeListTime.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeListTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RefreshTimeType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshTimeType); + } + if (ShopCoin != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShopCoin); + } + if (ListTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ListTime); + } + if (DeListTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeListTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MallShopPage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RefreshTimeType != 0) { + RefreshTimeType = other.RefreshTimeType; + } + if (other.ShopCoin != 0) { + ShopCoin = other.ShopCoin; + } + if (other.ListTime.Length != 0) { + ListTime = other.ListTime; + } + if (other.DeListTime.Length != 0) { + DeListTime = other.DeListTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Sort = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + RefreshTimeType = input.ReadInt32(); + break; + } + case 40: { + ShopCoin = input.ReadInt32(); + break; + } + case 50: { + ListTime = input.ReadString(); + break; + } + case 58: { + DeListTime = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Sort = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + RefreshTimeType = input.ReadInt32(); + break; + } + case 40: { + ShopCoin = input.ReadInt32(); + break; + } + case 50: { + ListTime = input.ReadString(); + break; + } + case 58: { + DeListTime = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Monster.cs b/NTR.Common/protos/Monster.cs new file mode 100644 index 0000000..bf23795 --- /dev/null +++ b/NTR.Common/protos/Monster.cs @@ -0,0 +1,1720 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Monster.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Monster.proto + public static partial class MonsterReflection { + + #region Descriptor + /// File descriptor for Monster.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1Nb25zdGVyLnByb3RvIpcGCgdNb25zdGVyEgoKAmlkGAEgASgFEgwKBG5h", + "bWUYAiABKAkSFgoOZm9ybWFsX25hbWVfaWQYAyABKAUSDwoHZXBpY19sdhgE", + "IAEoBRIYChBtb25zdGVyX3Bvc2l0aW9uGAUgASgFEhIKCmJsb29kX3R5cGUY", + "BiABKAUSDQoFZm9yY2UYByABKAkSDgoGZl9jX2lkGAggASgFEg4KBmZfYV9p", + "ZBgJIAEoBRIQCghtb3ZfdHlwZRgKIAEoBRIPCgdydW5fc3BkGAsgASgFEhcK", + "D3RyYW5zX3NwZF9zY2FsZRgMIAEoBRIQCgh3YWxrX3NwZBgNIAEoBRIPCgdt", + "b3ZfYWNjGA4gASgFEhIKCnZpc2lvbl9ybmcYDyABKAUSEgoKdmlzaW9uX2Rl", + "ZxgQIAEoBRIQCghoZWFyX3JuZxgRIAEoBRIPCgdyZWZfcm5nGBIgASgFEg8K", + "B2FjdF9ybmcYEyABKAUSEwoLZGlzX2FjdF9ybmcYFCABKAUSEgoKc2VhcmNo", + "X3JuZxgVIAEoBRIPCgdyb3Rfc3BkGBYgASgFEhgKEHJvdF9zcGRfaW5fc2tp", + "bGwYFyABKAUSEAoIdGVtcGxldGUYGCABKAUSEAoIYnVmZl9pZHMYGSADKAUS", + "EAoIc3ViX3R5cGUYGiABKAUSDwoHZmFjdGlvbhgbIAEoBRIUCgx0cmFwX3Rh", + "Z19pZHMYHCADKAUSEgoKc3VwX2NoYXJnZRgdIAEoBRITCgtpc19zaG93X3Ju", + "ZxgeIAEoCBIOCgZ3ZWlnaHQYHyABKAUSHQoVdG91Z2huZXNzX2Jyb2tlbl90", + "aW1lGCAgASgFEgwKBHRhZzEYISABKAkSDAoEdGFnMhgiIAEoCRIMCgR0YWcz", + "GCMgASgJEgwKBHRhZzQYJCABKAkSDAoEdGFnNRglIAEoCRIYChBhdHRhY2tf", + "aGludF90eXBlGCYgASgFEhYKDmJsb2NrX3ByaW9yaXR5GCcgASgFEhcKD3dh", + "eV9wb2ludF9zaGlmdBgoIAEoBRIXCg9tb25zdGVyX3RlYW1faWQYKSABKAVC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Monster), global::Nova.Client.Monster.Parser, new[]{ "Id", "Name", "FormalNameId", "EpicLv", "MonsterPosition", "BloodType", "Force", "FCId", "FAId", "MovType", "RunSpd", "TransSpdScale", "WalkSpd", "MovAcc", "VisionRng", "VisionDeg", "HearRng", "RefRng", "ActRng", "DisActRng", "SearchRng", "RotSpd", "RotSpdInSkill", "Templete", "BuffIds", "SubType", "Faction", "TrapTagIds", "SupCharge", "IsShowRng", "Weight", "ToughnessBrokenTime", "Tag1", "Tag2", "Tag3", "Tag4", "Tag5", "AttackHintType", "BlockPriority", "WayPointShift", "MonsterTeamId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Monster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Monster()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monster(Monster other) : this() { + id_ = other.id_; + name_ = other.name_; + formalNameId_ = other.formalNameId_; + epicLv_ = other.epicLv_; + monsterPosition_ = other.monsterPosition_; + bloodType_ = other.bloodType_; + force_ = other.force_; + fCId_ = other.fCId_; + fAId_ = other.fAId_; + movType_ = other.movType_; + runSpd_ = other.runSpd_; + transSpdScale_ = other.transSpdScale_; + walkSpd_ = other.walkSpd_; + movAcc_ = other.movAcc_; + visionRng_ = other.visionRng_; + visionDeg_ = other.visionDeg_; + hearRng_ = other.hearRng_; + refRng_ = other.refRng_; + actRng_ = other.actRng_; + disActRng_ = other.disActRng_; + searchRng_ = other.searchRng_; + rotSpd_ = other.rotSpd_; + rotSpdInSkill_ = other.rotSpdInSkill_; + templete_ = other.templete_; + buffIds_ = other.buffIds_.Clone(); + subType_ = other.subType_; + faction_ = other.faction_; + trapTagIds_ = other.trapTagIds_.Clone(); + supCharge_ = other.supCharge_; + isShowRng_ = other.isShowRng_; + weight_ = other.weight_; + toughnessBrokenTime_ = other.toughnessBrokenTime_; + tag1_ = other.tag1_; + tag2_ = other.tag2_; + tag3_ = other.tag3_; + tag4_ = other.tag4_; + tag5_ = other.tag5_; + attackHintType_ = other.attackHintType_; + blockPriority_ = other.blockPriority_; + wayPointShift_ = other.wayPointShift_; + monsterTeamId_ = other.monsterTeamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monster Clone() { + return new Monster(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "formal_name_id" field. + public const int FormalNameIdFieldNumber = 3; + private int formalNameId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FormalNameId { + get { return formalNameId_; } + set { + formalNameId_ = value; + } + } + + /// Field number for the "epic_lv" field. + public const int EpicLvFieldNumber = 4; + private int epicLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EpicLv { + get { return epicLv_; } + set { + epicLv_ = value; + } + } + + /// Field number for the "monster_position" field. + public const int MonsterPositionFieldNumber = 5; + private int monsterPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterPosition { + get { return monsterPosition_; } + set { + monsterPosition_ = value; + } + } + + /// Field number for the "blood_type" field. + public const int BloodTypeFieldNumber = 6; + private int bloodType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BloodType { + get { return bloodType_; } + set { + bloodType_ = value; + } + } + + /// Field number for the "force" field. + public const int ForceFieldNumber = 7; + private string force_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Force { + get { return force_; } + set { + force_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_id" field. + public const int FCIdFieldNumber = 8; + private int fCId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FCId { + get { return fCId_; } + set { + fCId_ = value; + } + } + + /// Field number for the "f_a_id" field. + public const int FAIdFieldNumber = 9; + private int fAId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FAId { + get { return fAId_; } + set { + fAId_ = value; + } + } + + /// Field number for the "mov_type" field. + public const int MovTypeFieldNumber = 10; + private int movType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovType { + get { return movType_; } + set { + movType_ = value; + } + } + + /// Field number for the "run_spd" field. + public const int RunSpdFieldNumber = 11; + private int runSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RunSpd { + get { return runSpd_; } + set { + runSpd_ = value; + } + } + + /// Field number for the "trans_spd_scale" field. + public const int TransSpdScaleFieldNumber = 12; + private int transSpdScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TransSpdScale { + get { return transSpdScale_; } + set { + transSpdScale_ = value; + } + } + + /// Field number for the "walk_spd" field. + public const int WalkSpdFieldNumber = 13; + private int walkSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WalkSpd { + get { return walkSpd_; } + set { + walkSpd_ = value; + } + } + + /// Field number for the "mov_acc" field. + public const int MovAccFieldNumber = 14; + private int movAcc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovAcc { + get { return movAcc_; } + set { + movAcc_ = value; + } + } + + /// Field number for the "vision_rng" field. + public const int VisionRngFieldNumber = 15; + private int visionRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionRng { + get { return visionRng_; } + set { + visionRng_ = value; + } + } + + /// Field number for the "vision_deg" field. + public const int VisionDegFieldNumber = 16; + private int visionDeg_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionDeg { + get { return visionDeg_; } + set { + visionDeg_ = value; + } + } + + /// Field number for the "hear_rng" field. + public const int HearRngFieldNumber = 17; + private int hearRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HearRng { + get { return hearRng_; } + set { + hearRng_ = value; + } + } + + /// Field number for the "ref_rng" field. + public const int RefRngFieldNumber = 18; + private int refRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefRng { + get { return refRng_; } + set { + refRng_ = value; + } + } + + /// Field number for the "act_rng" field. + public const int ActRngFieldNumber = 19; + private int actRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActRng { + get { return actRng_; } + set { + actRng_ = value; + } + } + + /// Field number for the "dis_act_rng" field. + public const int DisActRngFieldNumber = 20; + private int disActRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DisActRng { + get { return disActRng_; } + set { + disActRng_ = value; + } + } + + /// Field number for the "search_rng" field. + public const int SearchRngFieldNumber = 21; + private int searchRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SearchRng { + get { return searchRng_; } + set { + searchRng_ = value; + } + } + + /// Field number for the "rot_spd" field. + public const int RotSpdFieldNumber = 22; + private int rotSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RotSpd { + get { return rotSpd_; } + set { + rotSpd_ = value; + } + } + + /// Field number for the "rot_spd_in_skill" field. + public const int RotSpdInSkillFieldNumber = 23; + private int rotSpdInSkill_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RotSpdInSkill { + get { return rotSpdInSkill_; } + set { + rotSpdInSkill_ = value; + } + } + + /// Field number for the "templete" field. + public const int TempleteFieldNumber = 24; + private int templete_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Templete { + get { return templete_; } + set { + templete_ = value; + } + } + + /// Field number for the "buff_ids" field. + public const int BuffIdsFieldNumber = 25; + private static readonly pb::FieldCodec _repeated_buffIds_codec + = pb::FieldCodec.ForInt32(202); + private readonly pbc::RepeatedField buffIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffIds { + get { return buffIds_; } + } + + /// Field number for the "sub_type" field. + public const int SubTypeFieldNumber = 26; + private int subType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SubType { + get { return subType_; } + set { + subType_ = value; + } + } + + /// Field number for the "faction" field. + public const int FactionFieldNumber = 27; + private int faction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Faction { + get { return faction_; } + set { + faction_ = value; + } + } + + /// Field number for the "trap_tag_ids" field. + public const int TrapTagIdsFieldNumber = 28; + private static readonly pb::FieldCodec _repeated_trapTagIds_codec + = pb::FieldCodec.ForInt32(226); + private readonly pbc::RepeatedField trapTagIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TrapTagIds { + get { return trapTagIds_; } + } + + /// Field number for the "sup_charge" field. + public const int SupChargeFieldNumber = 29; + private int supCharge_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SupCharge { + get { return supCharge_; } + set { + supCharge_ = value; + } + } + + /// Field number for the "is_show_rng" field. + public const int IsShowRngFieldNumber = 30; + private bool isShowRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsShowRng { + get { return isShowRng_; } + set { + isShowRng_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 31; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + /// Field number for the "toughness_broken_time" field. + public const int ToughnessBrokenTimeFieldNumber = 32; + private int toughnessBrokenTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToughnessBrokenTime { + get { return toughnessBrokenTime_; } + set { + toughnessBrokenTime_ = value; + } + } + + /// Field number for the "tag1" field. + public const int Tag1FieldNumber = 33; + private string tag1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag1 { + get { return tag1_; } + set { + tag1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag2" field. + public const int Tag2FieldNumber = 34; + private string tag2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag2 { + get { return tag2_; } + set { + tag2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag3" field. + public const int Tag3FieldNumber = 35; + private string tag3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag3 { + get { return tag3_; } + set { + tag3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag4" field. + public const int Tag4FieldNumber = 36; + private string tag4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag4 { + get { return tag4_; } + set { + tag4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag5" field. + public const int Tag5FieldNumber = 37; + private string tag5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag5 { + get { return tag5_; } + set { + tag5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "attack_hint_type" field. + public const int AttackHintTypeFieldNumber = 38; + private int attackHintType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttackHintType { + get { return attackHintType_; } + set { + attackHintType_ = value; + } + } + + /// Field number for the "block_priority" field. + public const int BlockPriorityFieldNumber = 39; + private int blockPriority_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BlockPriority { + get { return blockPriority_; } + set { + blockPriority_ = value; + } + } + + /// Field number for the "way_point_shift" field. + public const int WayPointShiftFieldNumber = 40; + private int wayPointShift_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WayPointShift { + get { return wayPointShift_; } + set { + wayPointShift_ = value; + } + } + + /// Field number for the "monster_team_id" field. + public const int MonsterTeamIdFieldNumber = 41; + private int monsterTeamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterTeamId { + get { return monsterTeamId_; } + set { + monsterTeamId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Monster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Monster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (FormalNameId != other.FormalNameId) return false; + if (EpicLv != other.EpicLv) return false; + if (MonsterPosition != other.MonsterPosition) return false; + if (BloodType != other.BloodType) return false; + if (Force != other.Force) return false; + if (FCId != other.FCId) return false; + if (FAId != other.FAId) return false; + if (MovType != other.MovType) return false; + if (RunSpd != other.RunSpd) return false; + if (TransSpdScale != other.TransSpdScale) return false; + if (WalkSpd != other.WalkSpd) return false; + if (MovAcc != other.MovAcc) return false; + if (VisionRng != other.VisionRng) return false; + if (VisionDeg != other.VisionDeg) return false; + if (HearRng != other.HearRng) return false; + if (RefRng != other.RefRng) return false; + if (ActRng != other.ActRng) return false; + if (DisActRng != other.DisActRng) return false; + if (SearchRng != other.SearchRng) return false; + if (RotSpd != other.RotSpd) return false; + if (RotSpdInSkill != other.RotSpdInSkill) return false; + if (Templete != other.Templete) return false; + if(!buffIds_.Equals(other.buffIds_)) return false; + if (SubType != other.SubType) return false; + if (Faction != other.Faction) return false; + if(!trapTagIds_.Equals(other.trapTagIds_)) return false; + if (SupCharge != other.SupCharge) return false; + if (IsShowRng != other.IsShowRng) return false; + if (Weight != other.Weight) return false; + if (ToughnessBrokenTime != other.ToughnessBrokenTime) return false; + if (Tag1 != other.Tag1) return false; + if (Tag2 != other.Tag2) return false; + if (Tag3 != other.Tag3) return false; + if (Tag4 != other.Tag4) return false; + if (Tag5 != other.Tag5) return false; + if (AttackHintType != other.AttackHintType) return false; + if (BlockPriority != other.BlockPriority) return false; + if (WayPointShift != other.WayPointShift) return false; + if (MonsterTeamId != other.MonsterTeamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (FormalNameId != 0) hash ^= FormalNameId.GetHashCode(); + if (EpicLv != 0) hash ^= EpicLv.GetHashCode(); + if (MonsterPosition != 0) hash ^= MonsterPosition.GetHashCode(); + if (BloodType != 0) hash ^= BloodType.GetHashCode(); + if (Force.Length != 0) hash ^= Force.GetHashCode(); + if (FCId != 0) hash ^= FCId.GetHashCode(); + if (FAId != 0) hash ^= FAId.GetHashCode(); + if (MovType != 0) hash ^= MovType.GetHashCode(); + if (RunSpd != 0) hash ^= RunSpd.GetHashCode(); + if (TransSpdScale != 0) hash ^= TransSpdScale.GetHashCode(); + if (WalkSpd != 0) hash ^= WalkSpd.GetHashCode(); + if (MovAcc != 0) hash ^= MovAcc.GetHashCode(); + if (VisionRng != 0) hash ^= VisionRng.GetHashCode(); + if (VisionDeg != 0) hash ^= VisionDeg.GetHashCode(); + if (HearRng != 0) hash ^= HearRng.GetHashCode(); + if (RefRng != 0) hash ^= RefRng.GetHashCode(); + if (ActRng != 0) hash ^= ActRng.GetHashCode(); + if (DisActRng != 0) hash ^= DisActRng.GetHashCode(); + if (SearchRng != 0) hash ^= SearchRng.GetHashCode(); + if (RotSpd != 0) hash ^= RotSpd.GetHashCode(); + if (RotSpdInSkill != 0) hash ^= RotSpdInSkill.GetHashCode(); + if (Templete != 0) hash ^= Templete.GetHashCode(); + hash ^= buffIds_.GetHashCode(); + if (SubType != 0) hash ^= SubType.GetHashCode(); + if (Faction != 0) hash ^= Faction.GetHashCode(); + hash ^= trapTagIds_.GetHashCode(); + if (SupCharge != 0) hash ^= SupCharge.GetHashCode(); + if (IsShowRng != false) hash ^= IsShowRng.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + if (ToughnessBrokenTime != 0) hash ^= ToughnessBrokenTime.GetHashCode(); + if (Tag1.Length != 0) hash ^= Tag1.GetHashCode(); + if (Tag2.Length != 0) hash ^= Tag2.GetHashCode(); + if (Tag3.Length != 0) hash ^= Tag3.GetHashCode(); + if (Tag4.Length != 0) hash ^= Tag4.GetHashCode(); + if (Tag5.Length != 0) hash ^= Tag5.GetHashCode(); + if (AttackHintType != 0) hash ^= AttackHintType.GetHashCode(); + if (BlockPriority != 0) hash ^= BlockPriority.GetHashCode(); + if (WayPointShift != 0) hash ^= WayPointShift.GetHashCode(); + if (MonsterTeamId != 0) hash ^= MonsterTeamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (FormalNameId != 0) { + output.WriteRawTag(24); + output.WriteInt32(FormalNameId); + } + if (EpicLv != 0) { + output.WriteRawTag(32); + output.WriteInt32(EpicLv); + } + if (MonsterPosition != 0) { + output.WriteRawTag(40); + output.WriteInt32(MonsterPosition); + } + if (BloodType != 0) { + output.WriteRawTag(48); + output.WriteInt32(BloodType); + } + if (Force.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Force); + } + if (FCId != 0) { + output.WriteRawTag(64); + output.WriteInt32(FCId); + } + if (FAId != 0) { + output.WriteRawTag(72); + output.WriteInt32(FAId); + } + if (MovType != 0) { + output.WriteRawTag(80); + output.WriteInt32(MovType); + } + if (RunSpd != 0) { + output.WriteRawTag(88); + output.WriteInt32(RunSpd); + } + if (TransSpdScale != 0) { + output.WriteRawTag(96); + output.WriteInt32(TransSpdScale); + } + if (WalkSpd != 0) { + output.WriteRawTag(104); + output.WriteInt32(WalkSpd); + } + if (MovAcc != 0) { + output.WriteRawTag(112); + output.WriteInt32(MovAcc); + } + if (VisionRng != 0) { + output.WriteRawTag(120); + output.WriteInt32(VisionRng); + } + if (VisionDeg != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(VisionDeg); + } + if (HearRng != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(HearRng); + } + if (RefRng != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(RefRng); + } + if (ActRng != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ActRng); + } + if (DisActRng != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DisActRng); + } + if (SearchRng != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(SearchRng); + } + if (RotSpd != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(RotSpd); + } + if (RotSpdInSkill != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(RotSpdInSkill); + } + if (Templete != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(Templete); + } + buffIds_.WriteTo(output, _repeated_buffIds_codec); + if (SubType != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(SubType); + } + if (Faction != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(Faction); + } + trapTagIds_.WriteTo(output, _repeated_trapTagIds_codec); + if (SupCharge != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(SupCharge); + } + if (IsShowRng != false) { + output.WriteRawTag(240, 1); + output.WriteBool(IsShowRng); + } + if (Weight != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(Weight); + } + if (ToughnessBrokenTime != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(ToughnessBrokenTime); + } + if (Tag1.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(Tag1); + } + if (Tag2.Length != 0) { + output.WriteRawTag(146, 2); + output.WriteString(Tag2); + } + if (Tag3.Length != 0) { + output.WriteRawTag(154, 2); + output.WriteString(Tag3); + } + if (Tag4.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(Tag4); + } + if (Tag5.Length != 0) { + output.WriteRawTag(170, 2); + output.WriteString(Tag5); + } + if (AttackHintType != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(AttackHintType); + } + if (BlockPriority != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(BlockPriority); + } + if (WayPointShift != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(WayPointShift); + } + if (MonsterTeamId != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(MonsterTeamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (FormalNameId != 0) { + output.WriteRawTag(24); + output.WriteInt32(FormalNameId); + } + if (EpicLv != 0) { + output.WriteRawTag(32); + output.WriteInt32(EpicLv); + } + if (MonsterPosition != 0) { + output.WriteRawTag(40); + output.WriteInt32(MonsterPosition); + } + if (BloodType != 0) { + output.WriteRawTag(48); + output.WriteInt32(BloodType); + } + if (Force.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Force); + } + if (FCId != 0) { + output.WriteRawTag(64); + output.WriteInt32(FCId); + } + if (FAId != 0) { + output.WriteRawTag(72); + output.WriteInt32(FAId); + } + if (MovType != 0) { + output.WriteRawTag(80); + output.WriteInt32(MovType); + } + if (RunSpd != 0) { + output.WriteRawTag(88); + output.WriteInt32(RunSpd); + } + if (TransSpdScale != 0) { + output.WriteRawTag(96); + output.WriteInt32(TransSpdScale); + } + if (WalkSpd != 0) { + output.WriteRawTag(104); + output.WriteInt32(WalkSpd); + } + if (MovAcc != 0) { + output.WriteRawTag(112); + output.WriteInt32(MovAcc); + } + if (VisionRng != 0) { + output.WriteRawTag(120); + output.WriteInt32(VisionRng); + } + if (VisionDeg != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(VisionDeg); + } + if (HearRng != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(HearRng); + } + if (RefRng != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(RefRng); + } + if (ActRng != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ActRng); + } + if (DisActRng != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DisActRng); + } + if (SearchRng != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(SearchRng); + } + if (RotSpd != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(RotSpd); + } + if (RotSpdInSkill != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(RotSpdInSkill); + } + if (Templete != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(Templete); + } + buffIds_.WriteTo(ref output, _repeated_buffIds_codec); + if (SubType != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(SubType); + } + if (Faction != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(Faction); + } + trapTagIds_.WriteTo(ref output, _repeated_trapTagIds_codec); + if (SupCharge != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(SupCharge); + } + if (IsShowRng != false) { + output.WriteRawTag(240, 1); + output.WriteBool(IsShowRng); + } + if (Weight != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(Weight); + } + if (ToughnessBrokenTime != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(ToughnessBrokenTime); + } + if (Tag1.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(Tag1); + } + if (Tag2.Length != 0) { + output.WriteRawTag(146, 2); + output.WriteString(Tag2); + } + if (Tag3.Length != 0) { + output.WriteRawTag(154, 2); + output.WriteString(Tag3); + } + if (Tag4.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(Tag4); + } + if (Tag5.Length != 0) { + output.WriteRawTag(170, 2); + output.WriteString(Tag5); + } + if (AttackHintType != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(AttackHintType); + } + if (BlockPriority != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(BlockPriority); + } + if (WayPointShift != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(WayPointShift); + } + if (MonsterTeamId != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(MonsterTeamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (FormalNameId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FormalNameId); + } + if (EpicLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EpicLv); + } + if (MonsterPosition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterPosition); + } + if (BloodType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BloodType); + } + if (Force.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Force); + } + if (FCId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FCId); + } + if (FAId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FAId); + } + if (MovType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MovType); + } + if (RunSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RunSpd); + } + if (TransSpdScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TransSpdScale); + } + if (WalkSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WalkSpd); + } + if (MovAcc != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MovAcc); + } + if (VisionRng != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VisionRng); + } + if (VisionDeg != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(VisionDeg); + } + if (HearRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HearRng); + } + if (RefRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RefRng); + } + if (ActRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ActRng); + } + if (DisActRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DisActRng); + } + if (SearchRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SearchRng); + } + if (RotSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RotSpd); + } + if (RotSpdInSkill != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RotSpdInSkill); + } + if (Templete != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Templete); + } + size += buffIds_.CalculateSize(_repeated_buffIds_codec); + if (SubType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SubType); + } + if (Faction != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Faction); + } + size += trapTagIds_.CalculateSize(_repeated_trapTagIds_codec); + if (SupCharge != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SupCharge); + } + if (IsShowRng != false) { + size += 2 + 1; + } + if (Weight != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (ToughnessBrokenTime != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToughnessBrokenTime); + } + if (Tag1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag1); + } + if (Tag2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag2); + } + if (Tag3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag3); + } + if (Tag4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag4); + } + if (Tag5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag5); + } + if (AttackHintType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AttackHintType); + } + if (BlockPriority != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(BlockPriority); + } + if (WayPointShift != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WayPointShift); + } + if (MonsterTeamId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MonsterTeamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Monster other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.FormalNameId != 0) { + FormalNameId = other.FormalNameId; + } + if (other.EpicLv != 0) { + EpicLv = other.EpicLv; + } + if (other.MonsterPosition != 0) { + MonsterPosition = other.MonsterPosition; + } + if (other.BloodType != 0) { + BloodType = other.BloodType; + } + if (other.Force.Length != 0) { + Force = other.Force; + } + if (other.FCId != 0) { + FCId = other.FCId; + } + if (other.FAId != 0) { + FAId = other.FAId; + } + if (other.MovType != 0) { + MovType = other.MovType; + } + if (other.RunSpd != 0) { + RunSpd = other.RunSpd; + } + if (other.TransSpdScale != 0) { + TransSpdScale = other.TransSpdScale; + } + if (other.WalkSpd != 0) { + WalkSpd = other.WalkSpd; + } + if (other.MovAcc != 0) { + MovAcc = other.MovAcc; + } + if (other.VisionRng != 0) { + VisionRng = other.VisionRng; + } + if (other.VisionDeg != 0) { + VisionDeg = other.VisionDeg; + } + if (other.HearRng != 0) { + HearRng = other.HearRng; + } + if (other.RefRng != 0) { + RefRng = other.RefRng; + } + if (other.ActRng != 0) { + ActRng = other.ActRng; + } + if (other.DisActRng != 0) { + DisActRng = other.DisActRng; + } + if (other.SearchRng != 0) { + SearchRng = other.SearchRng; + } + if (other.RotSpd != 0) { + RotSpd = other.RotSpd; + } + if (other.RotSpdInSkill != 0) { + RotSpdInSkill = other.RotSpdInSkill; + } + if (other.Templete != 0) { + Templete = other.Templete; + } + buffIds_.Add(other.buffIds_); + if (other.SubType != 0) { + SubType = other.SubType; + } + if (other.Faction != 0) { + Faction = other.Faction; + } + trapTagIds_.Add(other.trapTagIds_); + if (other.SupCharge != 0) { + SupCharge = other.SupCharge; + } + if (other.IsShowRng != false) { + IsShowRng = other.IsShowRng; + } + if (other.Weight != 0) { + Weight = other.Weight; + } + if (other.ToughnessBrokenTime != 0) { + ToughnessBrokenTime = other.ToughnessBrokenTime; + } + if (other.Tag1.Length != 0) { + Tag1 = other.Tag1; + } + if (other.Tag2.Length != 0) { + Tag2 = other.Tag2; + } + if (other.Tag3.Length != 0) { + Tag3 = other.Tag3; + } + if (other.Tag4.Length != 0) { + Tag4 = other.Tag4; + } + if (other.Tag5.Length != 0) { + Tag5 = other.Tag5; + } + if (other.AttackHintType != 0) { + AttackHintType = other.AttackHintType; + } + if (other.BlockPriority != 0) { + BlockPriority = other.BlockPriority; + } + if (other.WayPointShift != 0) { + WayPointShift = other.WayPointShift; + } + if (other.MonsterTeamId != 0) { + MonsterTeamId = other.MonsterTeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + FormalNameId = input.ReadInt32(); + break; + } + case 32: { + EpicLv = input.ReadInt32(); + break; + } + case 40: { + MonsterPosition = input.ReadInt32(); + break; + } + case 48: { + BloodType = input.ReadInt32(); + break; + } + case 58: { + Force = input.ReadString(); + break; + } + case 64: { + FCId = input.ReadInt32(); + break; + } + case 72: { + FAId = input.ReadInt32(); + break; + } + case 80: { + MovType = input.ReadInt32(); + break; + } + case 88: { + RunSpd = input.ReadInt32(); + break; + } + case 96: { + TransSpdScale = input.ReadInt32(); + break; + } + case 104: { + WalkSpd = input.ReadInt32(); + break; + } + case 112: { + MovAcc = input.ReadInt32(); + break; + } + case 120: { + VisionRng = input.ReadInt32(); + break; + } + case 128: { + VisionDeg = input.ReadInt32(); + break; + } + case 136: { + HearRng = input.ReadInt32(); + break; + } + case 144: { + RefRng = input.ReadInt32(); + break; + } + case 152: { + ActRng = input.ReadInt32(); + break; + } + case 160: { + DisActRng = input.ReadInt32(); + break; + } + case 168: { + SearchRng = input.ReadInt32(); + break; + } + case 176: { + RotSpd = input.ReadInt32(); + break; + } + case 184: { + RotSpdInSkill = input.ReadInt32(); + break; + } + case 192: { + Templete = input.ReadInt32(); + break; + } + case 202: + case 200: { + buffIds_.AddEntriesFrom(input, _repeated_buffIds_codec); + break; + } + case 208: { + SubType = input.ReadInt32(); + break; + } + case 216: { + Faction = input.ReadInt32(); + break; + } + case 226: + case 224: { + trapTagIds_.AddEntriesFrom(input, _repeated_trapTagIds_codec); + break; + } + case 232: { + SupCharge = input.ReadInt32(); + break; + } + case 240: { + IsShowRng = input.ReadBool(); + break; + } + case 248: { + Weight = input.ReadInt32(); + break; + } + case 256: { + ToughnessBrokenTime = input.ReadInt32(); + break; + } + case 266: { + Tag1 = input.ReadString(); + break; + } + case 274: { + Tag2 = input.ReadString(); + break; + } + case 282: { + Tag3 = input.ReadString(); + break; + } + case 290: { + Tag4 = input.ReadString(); + break; + } + case 298: { + Tag5 = input.ReadString(); + break; + } + case 304: { + AttackHintType = input.ReadInt32(); + break; + } + case 312: { + BlockPriority = input.ReadInt32(); + break; + } + case 320: { + WayPointShift = input.ReadInt32(); + break; + } + case 328: { + MonsterTeamId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + FormalNameId = input.ReadInt32(); + break; + } + case 32: { + EpicLv = input.ReadInt32(); + break; + } + case 40: { + MonsterPosition = input.ReadInt32(); + break; + } + case 48: { + BloodType = input.ReadInt32(); + break; + } + case 58: { + Force = input.ReadString(); + break; + } + case 64: { + FCId = input.ReadInt32(); + break; + } + case 72: { + FAId = input.ReadInt32(); + break; + } + case 80: { + MovType = input.ReadInt32(); + break; + } + case 88: { + RunSpd = input.ReadInt32(); + break; + } + case 96: { + TransSpdScale = input.ReadInt32(); + break; + } + case 104: { + WalkSpd = input.ReadInt32(); + break; + } + case 112: { + MovAcc = input.ReadInt32(); + break; + } + case 120: { + VisionRng = input.ReadInt32(); + break; + } + case 128: { + VisionDeg = input.ReadInt32(); + break; + } + case 136: { + HearRng = input.ReadInt32(); + break; + } + case 144: { + RefRng = input.ReadInt32(); + break; + } + case 152: { + ActRng = input.ReadInt32(); + break; + } + case 160: { + DisActRng = input.ReadInt32(); + break; + } + case 168: { + SearchRng = input.ReadInt32(); + break; + } + case 176: { + RotSpd = input.ReadInt32(); + break; + } + case 184: { + RotSpdInSkill = input.ReadInt32(); + break; + } + case 192: { + Templete = input.ReadInt32(); + break; + } + case 202: + case 200: { + buffIds_.AddEntriesFrom(ref input, _repeated_buffIds_codec); + break; + } + case 208: { + SubType = input.ReadInt32(); + break; + } + case 216: { + Faction = input.ReadInt32(); + break; + } + case 226: + case 224: { + trapTagIds_.AddEntriesFrom(ref input, _repeated_trapTagIds_codec); + break; + } + case 232: { + SupCharge = input.ReadInt32(); + break; + } + case 240: { + IsShowRng = input.ReadBool(); + break; + } + case 248: { + Weight = input.ReadInt32(); + break; + } + case 256: { + ToughnessBrokenTime = input.ReadInt32(); + break; + } + case 266: { + Tag1 = input.ReadString(); + break; + } + case 274: { + Tag2 = input.ReadString(); + break; + } + case 282: { + Tag3 = input.ReadString(); + break; + } + case 290: { + Tag4 = input.ReadString(); + break; + } + case 298: { + Tag5 = input.ReadString(); + break; + } + case 304: { + AttackHintType = input.ReadInt32(); + break; + } + case 312: { + BlockPriority = input.ReadInt32(); + break; + } + case 320: { + WayPointShift = input.ReadInt32(); + break; + } + case 328: { + MonsterTeamId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterAI.cs b/NTR.Common/protos/MonsterAI.cs new file mode 100644 index 0000000..6faaabd --- /dev/null +++ b/NTR.Common/protos/MonsterAI.cs @@ -0,0 +1,758 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterAI.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterAI.proto + public static partial class MonsterAIReflection { + + #region Descriptor + /// File descriptor for MonsterAI.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterAIReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Nb25zdGVyQUkucHJvdG8i9QIKCU1vbnN0ZXJBSRIKCgJpZBgBIAEoBRIY", + "ChBjb21ib19ncm91cF9wYXRoGAIgASgJEhsKE3NwYXduX3Nob3dfc2tpbGxf", + "aWQYAyABKAUSGgoSaWRsZV9zaG93X3NraWxsX2lkGAQgASgFEhQKDGRpZV9z", + "a2lsbF9pZBgFIAEoBRIXCg9hY3Rpb25fYV9pX3BhdGgYBiABKAkSGQoRYWN0", + "aW9uX2JyYW5jaF9pZHMYByADKAUSFgoOdGhpbmtfaW50ZXJ2YWwYCCABKAUS", + "FQoNaWRsZV9hX2lfcGF0aBgJIAEoCRIWCg5zcGF3bl9hX2lfcGF0aBgKIAEo", + "CRIZChFwYXJhbGxlbF9hX2lfcGF0aBgLIAEoCRIZChFjaGVja19hY2hpZXZl", + "bWVudBgMIAEoCBIUCgx3YW5kZXJfcmFuZ2UYDSABKAUSFwoPd2FuZGVyX2lu", + "dGVydmFsGA4gASgFEhMKC3dhbmRlcl9yYXRlGA8gASgFQg6qAgtOb3ZhLkNs", + "aWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterAI), global::Nova.Client.MonsterAI.Parser, new[]{ "Id", "ComboGroupPath", "SpawnShowSkillId", "IdleShowSkillId", "DieSkillId", "ActionAIPath", "ActionBranchIds", "ThinkInterval", "IdleAIPath", "SpawnAIPath", "ParallelAIPath", "CheckAchievement", "WanderRange", "WanderInterval", "WanderRate" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterAI : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterAI()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterAIReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterAI() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterAI(MonsterAI other) : this() { + id_ = other.id_; + comboGroupPath_ = other.comboGroupPath_; + spawnShowSkillId_ = other.spawnShowSkillId_; + idleShowSkillId_ = other.idleShowSkillId_; + dieSkillId_ = other.dieSkillId_; + actionAIPath_ = other.actionAIPath_; + actionBranchIds_ = other.actionBranchIds_.Clone(); + thinkInterval_ = other.thinkInterval_; + idleAIPath_ = other.idleAIPath_; + spawnAIPath_ = other.spawnAIPath_; + parallelAIPath_ = other.parallelAIPath_; + checkAchievement_ = other.checkAchievement_; + wanderRange_ = other.wanderRange_; + wanderInterval_ = other.wanderInterval_; + wanderRate_ = other.wanderRate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterAI Clone() { + return new MonsterAI(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "combo_group_path" field. + public const int ComboGroupPathFieldNumber = 2; + private string comboGroupPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ComboGroupPath { + get { return comboGroupPath_; } + set { + comboGroupPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spawn_show_skill_id" field. + public const int SpawnShowSkillIdFieldNumber = 3; + private int spawnShowSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpawnShowSkillId { + get { return spawnShowSkillId_; } + set { + spawnShowSkillId_ = value; + } + } + + /// Field number for the "idle_show_skill_id" field. + public const int IdleShowSkillIdFieldNumber = 4; + private int idleShowSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IdleShowSkillId { + get { return idleShowSkillId_; } + set { + idleShowSkillId_ = value; + } + } + + /// Field number for the "die_skill_id" field. + public const int DieSkillIdFieldNumber = 5; + private int dieSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DieSkillId { + get { return dieSkillId_; } + set { + dieSkillId_ = value; + } + } + + /// Field number for the "action_a_i_path" field. + public const int ActionAIPathFieldNumber = 6; + private string actionAIPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActionAIPath { + get { return actionAIPath_; } + set { + actionAIPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "action_branch_ids" field. + public const int ActionBranchIdsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_actionBranchIds_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField actionBranchIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActionBranchIds { + get { return actionBranchIds_; } + } + + /// Field number for the "think_interval" field. + public const int ThinkIntervalFieldNumber = 8; + private int thinkInterval_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThinkInterval { + get { return thinkInterval_; } + set { + thinkInterval_ = value; + } + } + + /// Field number for the "idle_a_i_path" field. + public const int IdleAIPathFieldNumber = 9; + private string idleAIPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IdleAIPath { + get { return idleAIPath_; } + set { + idleAIPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spawn_a_i_path" field. + public const int SpawnAIPathFieldNumber = 10; + private string spawnAIPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SpawnAIPath { + get { return spawnAIPath_; } + set { + spawnAIPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parallel_a_i_path" field. + public const int ParallelAIPathFieldNumber = 11; + private string parallelAIPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParallelAIPath { + get { return parallelAIPath_; } + set { + parallelAIPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "check_achievement" field. + public const int CheckAchievementFieldNumber = 12; + private bool checkAchievement_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CheckAchievement { + get { return checkAchievement_; } + set { + checkAchievement_ = value; + } + } + + /// Field number for the "wander_range" field. + public const int WanderRangeFieldNumber = 13; + private int wanderRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WanderRange { + get { return wanderRange_; } + set { + wanderRange_ = value; + } + } + + /// Field number for the "wander_interval" field. + public const int WanderIntervalFieldNumber = 14; + private int wanderInterval_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WanderInterval { + get { return wanderInterval_; } + set { + wanderInterval_ = value; + } + } + + /// Field number for the "wander_rate" field. + public const int WanderRateFieldNumber = 15; + private int wanderRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WanderRate { + get { return wanderRate_; } + set { + wanderRate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterAI); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterAI other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ComboGroupPath != other.ComboGroupPath) return false; + if (SpawnShowSkillId != other.SpawnShowSkillId) return false; + if (IdleShowSkillId != other.IdleShowSkillId) return false; + if (DieSkillId != other.DieSkillId) return false; + if (ActionAIPath != other.ActionAIPath) return false; + if(!actionBranchIds_.Equals(other.actionBranchIds_)) return false; + if (ThinkInterval != other.ThinkInterval) return false; + if (IdleAIPath != other.IdleAIPath) return false; + if (SpawnAIPath != other.SpawnAIPath) return false; + if (ParallelAIPath != other.ParallelAIPath) return false; + if (CheckAchievement != other.CheckAchievement) return false; + if (WanderRange != other.WanderRange) return false; + if (WanderInterval != other.WanderInterval) return false; + if (WanderRate != other.WanderRate) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ComboGroupPath.Length != 0) hash ^= ComboGroupPath.GetHashCode(); + if (SpawnShowSkillId != 0) hash ^= SpawnShowSkillId.GetHashCode(); + if (IdleShowSkillId != 0) hash ^= IdleShowSkillId.GetHashCode(); + if (DieSkillId != 0) hash ^= DieSkillId.GetHashCode(); + if (ActionAIPath.Length != 0) hash ^= ActionAIPath.GetHashCode(); + hash ^= actionBranchIds_.GetHashCode(); + if (ThinkInterval != 0) hash ^= ThinkInterval.GetHashCode(); + if (IdleAIPath.Length != 0) hash ^= IdleAIPath.GetHashCode(); + if (SpawnAIPath.Length != 0) hash ^= SpawnAIPath.GetHashCode(); + if (ParallelAIPath.Length != 0) hash ^= ParallelAIPath.GetHashCode(); + if (CheckAchievement != false) hash ^= CheckAchievement.GetHashCode(); + if (WanderRange != 0) hash ^= WanderRange.GetHashCode(); + if (WanderInterval != 0) hash ^= WanderInterval.GetHashCode(); + if (WanderRate != 0) hash ^= WanderRate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ComboGroupPath.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ComboGroupPath); + } + if (SpawnShowSkillId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SpawnShowSkillId); + } + if (IdleShowSkillId != 0) { + output.WriteRawTag(32); + output.WriteInt32(IdleShowSkillId); + } + if (DieSkillId != 0) { + output.WriteRawTag(40); + output.WriteInt32(DieSkillId); + } + if (ActionAIPath.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ActionAIPath); + } + actionBranchIds_.WriteTo(output, _repeated_actionBranchIds_codec); + if (ThinkInterval != 0) { + output.WriteRawTag(64); + output.WriteInt32(ThinkInterval); + } + if (IdleAIPath.Length != 0) { + output.WriteRawTag(74); + output.WriteString(IdleAIPath); + } + if (SpawnAIPath.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SpawnAIPath); + } + if (ParallelAIPath.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ParallelAIPath); + } + if (CheckAchievement != false) { + output.WriteRawTag(96); + output.WriteBool(CheckAchievement); + } + if (WanderRange != 0) { + output.WriteRawTag(104); + output.WriteInt32(WanderRange); + } + if (WanderInterval != 0) { + output.WriteRawTag(112); + output.WriteInt32(WanderInterval); + } + if (WanderRate != 0) { + output.WriteRawTag(120); + output.WriteInt32(WanderRate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ComboGroupPath.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ComboGroupPath); + } + if (SpawnShowSkillId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SpawnShowSkillId); + } + if (IdleShowSkillId != 0) { + output.WriteRawTag(32); + output.WriteInt32(IdleShowSkillId); + } + if (DieSkillId != 0) { + output.WriteRawTag(40); + output.WriteInt32(DieSkillId); + } + if (ActionAIPath.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ActionAIPath); + } + actionBranchIds_.WriteTo(ref output, _repeated_actionBranchIds_codec); + if (ThinkInterval != 0) { + output.WriteRawTag(64); + output.WriteInt32(ThinkInterval); + } + if (IdleAIPath.Length != 0) { + output.WriteRawTag(74); + output.WriteString(IdleAIPath); + } + if (SpawnAIPath.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SpawnAIPath); + } + if (ParallelAIPath.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ParallelAIPath); + } + if (CheckAchievement != false) { + output.WriteRawTag(96); + output.WriteBool(CheckAchievement); + } + if (WanderRange != 0) { + output.WriteRawTag(104); + output.WriteInt32(WanderRange); + } + if (WanderInterval != 0) { + output.WriteRawTag(112); + output.WriteInt32(WanderInterval); + } + if (WanderRate != 0) { + output.WriteRawTag(120); + output.WriteInt32(WanderRate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ComboGroupPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ComboGroupPath); + } + if (SpawnShowSkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpawnShowSkillId); + } + if (IdleShowSkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdleShowSkillId); + } + if (DieSkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DieSkillId); + } + if (ActionAIPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionAIPath); + } + size += actionBranchIds_.CalculateSize(_repeated_actionBranchIds_codec); + if (ThinkInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThinkInterval); + } + if (IdleAIPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IdleAIPath); + } + if (SpawnAIPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SpawnAIPath); + } + if (ParallelAIPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParallelAIPath); + } + if (CheckAchievement != false) { + size += 1 + 1; + } + if (WanderRange != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WanderRange); + } + if (WanderInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WanderInterval); + } + if (WanderRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WanderRate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterAI other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ComboGroupPath.Length != 0) { + ComboGroupPath = other.ComboGroupPath; + } + if (other.SpawnShowSkillId != 0) { + SpawnShowSkillId = other.SpawnShowSkillId; + } + if (other.IdleShowSkillId != 0) { + IdleShowSkillId = other.IdleShowSkillId; + } + if (other.DieSkillId != 0) { + DieSkillId = other.DieSkillId; + } + if (other.ActionAIPath.Length != 0) { + ActionAIPath = other.ActionAIPath; + } + actionBranchIds_.Add(other.actionBranchIds_); + if (other.ThinkInterval != 0) { + ThinkInterval = other.ThinkInterval; + } + if (other.IdleAIPath.Length != 0) { + IdleAIPath = other.IdleAIPath; + } + if (other.SpawnAIPath.Length != 0) { + SpawnAIPath = other.SpawnAIPath; + } + if (other.ParallelAIPath.Length != 0) { + ParallelAIPath = other.ParallelAIPath; + } + if (other.CheckAchievement != false) { + CheckAchievement = other.CheckAchievement; + } + if (other.WanderRange != 0) { + WanderRange = other.WanderRange; + } + if (other.WanderInterval != 0) { + WanderInterval = other.WanderInterval; + } + if (other.WanderRate != 0) { + WanderRate = other.WanderRate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + ComboGroupPath = input.ReadString(); + break; + } + case 24: { + SpawnShowSkillId = input.ReadInt32(); + break; + } + case 32: { + IdleShowSkillId = input.ReadInt32(); + break; + } + case 40: { + DieSkillId = input.ReadInt32(); + break; + } + case 50: { + ActionAIPath = input.ReadString(); + break; + } + case 58: + case 56: { + actionBranchIds_.AddEntriesFrom(input, _repeated_actionBranchIds_codec); + break; + } + case 64: { + ThinkInterval = input.ReadInt32(); + break; + } + case 74: { + IdleAIPath = input.ReadString(); + break; + } + case 82: { + SpawnAIPath = input.ReadString(); + break; + } + case 90: { + ParallelAIPath = input.ReadString(); + break; + } + case 96: { + CheckAchievement = input.ReadBool(); + break; + } + case 104: { + WanderRange = input.ReadInt32(); + break; + } + case 112: { + WanderInterval = input.ReadInt32(); + break; + } + case 120: { + WanderRate = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + ComboGroupPath = input.ReadString(); + break; + } + case 24: { + SpawnShowSkillId = input.ReadInt32(); + break; + } + case 32: { + IdleShowSkillId = input.ReadInt32(); + break; + } + case 40: { + DieSkillId = input.ReadInt32(); + break; + } + case 50: { + ActionAIPath = input.ReadString(); + break; + } + case 58: + case 56: { + actionBranchIds_.AddEntriesFrom(ref input, _repeated_actionBranchIds_codec); + break; + } + case 64: { + ThinkInterval = input.ReadInt32(); + break; + } + case 74: { + IdleAIPath = input.ReadString(); + break; + } + case 82: { + SpawnAIPath = input.ReadString(); + break; + } + case 90: { + ParallelAIPath = input.ReadString(); + break; + } + case 96: { + CheckAchievement = input.ReadBool(); + break; + } + case 104: { + WanderRange = input.ReadInt32(); + break; + } + case 112: { + WanderInterval = input.ReadInt32(); + break; + } + case 120: { + WanderRate = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterActionBranch.cs b/NTR.Common/protos/MonsterActionBranch.cs new file mode 100644 index 0000000..6e96295 --- /dev/null +++ b/NTR.Common/protos/MonsterActionBranch.cs @@ -0,0 +1,1246 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterActionBranch.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterActionBranch.proto + public static partial class MonsterActionBranchReflection { + + #region Descriptor + /// File descriptor for MonsterActionBranch.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterActionBranchReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlNb25zdGVyQWN0aW9uQnJhbmNoLnByb3RvIqQFChNNb25zdGVyQWN0aW9u", + "QnJhbmNoEgoKAmlkGAEgASgFEhAKCGdyb3VwX2lkGAIgASgFEhAKCHNraWxs", + "X2lkGAMgASgFEhAKCHByaW9yaXR5GAQgASgFEg4KBndlaWdodBgFIAEoBRIM", + "CgRyYXRlGAYgASgFEgsKA2NfZBgHIAEoBRIYChBpbml0aWFsX2NfZF9wb29s", + "GAggAygFEhcKD21pbl9pbml0aWFsX2NfZBgJIAEoBRIXCg9tYXhfaW5pdGlh", + "bF9jX2QYCiABKAUSFgoOc3RhcnRfY19kX3RpbWUYCyABKAUSEQoJZml4ZWRf", + "Y19kGAwgASgIEhgKEHJlbGVhc2VfZGlzdGFuY2UYDSABKAUSFQoNcmVsZWFz", + "ZV9hbmdsZRgOIAEoBRIWCg50cmFjZV9kdXJhdGlvbhgPIAEoBRIQCghhY3Rp", + "dmF0ZRgQIAEoCBIeChZhY3RpdmVfY29uZGl0aW9uX3R5cGUxGBEgASgFEhUK", + "DWFjdGl2ZV9wYXJhbTEYEiABKAkSFQoNYWN0aXZlX3BhcmFtMhgTIAEoCRIh", + "ChlkZV9hY3RpdmVfY29uZGl0aW9uX3R5cGUxGBQgASgFEhgKEGRlX2FjdGl2", + "ZV9wYXJhbTEYFSABKAkSGAoQZGVfYWN0aXZlX3BhcmFtMhgWIAEoCRIaChJm", + "b2xsb3dfZXZlbnRfdHlwZTEYFyABKAUSGwoTZm9sbG93X2V2ZW50X3BhcmFt", + "MRgYIAEoCRIaChJmb2xsb3dfZXZlbnRfdHlwZTIYGSABKAUSGwoTZm9sbG93", + "X2V2ZW50X3BhcmFtMhgaIAEoCRIaChJmb2xsb3dfZXZlbnRfdHlwZTMYGyAB", + "KAUSGwoTZm9sbG93X2V2ZW50X3BhcmFtMxgcIAEoCUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterActionBranch), global::Nova.Client.MonsterActionBranch.Parser, new[]{ "Id", "GroupId", "SkillId", "Priority", "Weight", "Rate", "CD", "InitialCDPool", "MinInitialCD", "MaxInitialCD", "StartCDTime", "FixedCD", "ReleaseDistance", "ReleaseAngle", "TraceDuration", "Activate", "ActiveConditionType1", "ActiveParam1", "ActiveParam2", "DeActiveConditionType1", "DeActiveParam1", "DeActiveParam2", "FollowEventType1", "FollowEventParam1", "FollowEventType2", "FollowEventParam2", "FollowEventType3", "FollowEventParam3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterActionBranch : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterActionBranch()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterActionBranchReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterActionBranch() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterActionBranch(MonsterActionBranch other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + skillId_ = other.skillId_; + priority_ = other.priority_; + weight_ = other.weight_; + rate_ = other.rate_; + cD_ = other.cD_; + initialCDPool_ = other.initialCDPool_.Clone(); + minInitialCD_ = other.minInitialCD_; + maxInitialCD_ = other.maxInitialCD_; + startCDTime_ = other.startCDTime_; + fixedCD_ = other.fixedCD_; + releaseDistance_ = other.releaseDistance_; + releaseAngle_ = other.releaseAngle_; + traceDuration_ = other.traceDuration_; + activate_ = other.activate_; + activeConditionType1_ = other.activeConditionType1_; + activeParam1_ = other.activeParam1_; + activeParam2_ = other.activeParam2_; + deActiveConditionType1_ = other.deActiveConditionType1_; + deActiveParam1_ = other.deActiveParam1_; + deActiveParam2_ = other.deActiveParam2_; + followEventType1_ = other.followEventType1_; + followEventParam1_ = other.followEventParam1_; + followEventType2_ = other.followEventType2_; + followEventParam2_ = other.followEventParam2_; + followEventType3_ = other.followEventType3_; + followEventParam3_ = other.followEventParam3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterActionBranch Clone() { + return new MonsterActionBranch(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "skill_id" field. + public const int SkillIdFieldNumber = 3; + private int skillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillId { + get { return skillId_; } + set { + skillId_ = value; + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 4; + private int priority_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 5; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 6; + private int rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rate { + get { return rate_; } + set { + rate_ = value; + } + } + + /// Field number for the "c_d" field. + public const int CDFieldNumber = 7; + private int cD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CD { + get { return cD_; } + set { + cD_ = value; + } + } + + /// Field number for the "initial_c_d_pool" field. + public const int InitialCDPoolFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_initialCDPool_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField initialCDPool_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField InitialCDPool { + get { return initialCDPool_; } + } + + /// Field number for the "min_initial_c_d" field. + public const int MinInitialCDFieldNumber = 9; + private int minInitialCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinInitialCD { + get { return minInitialCD_; } + set { + minInitialCD_ = value; + } + } + + /// Field number for the "max_initial_c_d" field. + public const int MaxInitialCDFieldNumber = 10; + private int maxInitialCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxInitialCD { + get { return maxInitialCD_; } + set { + maxInitialCD_ = value; + } + } + + /// Field number for the "start_c_d_time" field. + public const int StartCDTimeFieldNumber = 11; + private int startCDTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartCDTime { + get { return startCDTime_; } + set { + startCDTime_ = value; + } + } + + /// Field number for the "fixed_c_d" field. + public const int FixedCDFieldNumber = 12; + private bool fixedCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FixedCD { + get { return fixedCD_; } + set { + fixedCD_ = value; + } + } + + /// Field number for the "release_distance" field. + public const int ReleaseDistanceFieldNumber = 13; + private int releaseDistance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReleaseDistance { + get { return releaseDistance_; } + set { + releaseDistance_ = value; + } + } + + /// Field number for the "release_angle" field. + public const int ReleaseAngleFieldNumber = 14; + private int releaseAngle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReleaseAngle { + get { return releaseAngle_; } + set { + releaseAngle_ = value; + } + } + + /// Field number for the "trace_duration" field. + public const int TraceDurationFieldNumber = 15; + private int traceDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TraceDuration { + get { return traceDuration_; } + set { + traceDuration_ = value; + } + } + + /// Field number for the "activate" field. + public const int ActivateFieldNumber = 16; + private bool activate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Activate { + get { return activate_; } + set { + activate_ = value; + } + } + + /// Field number for the "active_condition_type1" field. + public const int ActiveConditionType1FieldNumber = 17; + private int activeConditionType1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActiveConditionType1 { + get { return activeConditionType1_; } + set { + activeConditionType1_ = value; + } + } + + /// Field number for the "active_param1" field. + public const int ActiveParam1FieldNumber = 18; + private string activeParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam1 { + get { return activeParam1_; } + set { + activeParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "active_param2" field. + public const int ActiveParam2FieldNumber = 19; + private string activeParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveParam2 { + get { return activeParam2_; } + set { + activeParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "de_active_condition_type1" field. + public const int DeActiveConditionType1FieldNumber = 20; + private int deActiveConditionType1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DeActiveConditionType1 { + get { return deActiveConditionType1_; } + set { + deActiveConditionType1_ = value; + } + } + + /// Field number for the "de_active_param1" field. + public const int DeActiveParam1FieldNumber = 21; + private string deActiveParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeActiveParam1 { + get { return deActiveParam1_; } + set { + deActiveParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "de_active_param2" field. + public const int DeActiveParam2FieldNumber = 22; + private string deActiveParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeActiveParam2 { + get { return deActiveParam2_; } + set { + deActiveParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "follow_event_type1" field. + public const int FollowEventType1FieldNumber = 23; + private int followEventType1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FollowEventType1 { + get { return followEventType1_; } + set { + followEventType1_ = value; + } + } + + /// Field number for the "follow_event_param1" field. + public const int FollowEventParam1FieldNumber = 24; + private string followEventParam1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FollowEventParam1 { + get { return followEventParam1_; } + set { + followEventParam1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "follow_event_type2" field. + public const int FollowEventType2FieldNumber = 25; + private int followEventType2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FollowEventType2 { + get { return followEventType2_; } + set { + followEventType2_ = value; + } + } + + /// Field number for the "follow_event_param2" field. + public const int FollowEventParam2FieldNumber = 26; + private string followEventParam2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FollowEventParam2 { + get { return followEventParam2_; } + set { + followEventParam2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "follow_event_type3" field. + public const int FollowEventType3FieldNumber = 27; + private int followEventType3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FollowEventType3 { + get { return followEventType3_; } + set { + followEventType3_ = value; + } + } + + /// Field number for the "follow_event_param3" field. + public const int FollowEventParam3FieldNumber = 28; + private string followEventParam3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FollowEventParam3 { + get { return followEventParam3_; } + set { + followEventParam3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterActionBranch); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterActionBranch other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (SkillId != other.SkillId) return false; + if (Priority != other.Priority) return false; + if (Weight != other.Weight) return false; + if (Rate != other.Rate) return false; + if (CD != other.CD) return false; + if(!initialCDPool_.Equals(other.initialCDPool_)) return false; + if (MinInitialCD != other.MinInitialCD) return false; + if (MaxInitialCD != other.MaxInitialCD) return false; + if (StartCDTime != other.StartCDTime) return false; + if (FixedCD != other.FixedCD) return false; + if (ReleaseDistance != other.ReleaseDistance) return false; + if (ReleaseAngle != other.ReleaseAngle) return false; + if (TraceDuration != other.TraceDuration) return false; + if (Activate != other.Activate) return false; + if (ActiveConditionType1 != other.ActiveConditionType1) return false; + if (ActiveParam1 != other.ActiveParam1) return false; + if (ActiveParam2 != other.ActiveParam2) return false; + if (DeActiveConditionType1 != other.DeActiveConditionType1) return false; + if (DeActiveParam1 != other.DeActiveParam1) return false; + if (DeActiveParam2 != other.DeActiveParam2) return false; + if (FollowEventType1 != other.FollowEventType1) return false; + if (FollowEventParam1 != other.FollowEventParam1) return false; + if (FollowEventType2 != other.FollowEventType2) return false; + if (FollowEventParam2 != other.FollowEventParam2) return false; + if (FollowEventType3 != other.FollowEventType3) return false; + if (FollowEventParam3 != other.FollowEventParam3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (SkillId != 0) hash ^= SkillId.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + if (Rate != 0) hash ^= Rate.GetHashCode(); + if (CD != 0) hash ^= CD.GetHashCode(); + hash ^= initialCDPool_.GetHashCode(); + if (MinInitialCD != 0) hash ^= MinInitialCD.GetHashCode(); + if (MaxInitialCD != 0) hash ^= MaxInitialCD.GetHashCode(); + if (StartCDTime != 0) hash ^= StartCDTime.GetHashCode(); + if (FixedCD != false) hash ^= FixedCD.GetHashCode(); + if (ReleaseDistance != 0) hash ^= ReleaseDistance.GetHashCode(); + if (ReleaseAngle != 0) hash ^= ReleaseAngle.GetHashCode(); + if (TraceDuration != 0) hash ^= TraceDuration.GetHashCode(); + if (Activate != false) hash ^= Activate.GetHashCode(); + if (ActiveConditionType1 != 0) hash ^= ActiveConditionType1.GetHashCode(); + if (ActiveParam1.Length != 0) hash ^= ActiveParam1.GetHashCode(); + if (ActiveParam2.Length != 0) hash ^= ActiveParam2.GetHashCode(); + if (DeActiveConditionType1 != 0) hash ^= DeActiveConditionType1.GetHashCode(); + if (DeActiveParam1.Length != 0) hash ^= DeActiveParam1.GetHashCode(); + if (DeActiveParam2.Length != 0) hash ^= DeActiveParam2.GetHashCode(); + if (FollowEventType1 != 0) hash ^= FollowEventType1.GetHashCode(); + if (FollowEventParam1.Length != 0) hash ^= FollowEventParam1.GetHashCode(); + if (FollowEventType2 != 0) hash ^= FollowEventType2.GetHashCode(); + if (FollowEventParam2.Length != 0) hash ^= FollowEventParam2.GetHashCode(); + if (FollowEventType3 != 0) hash ^= FollowEventType3.GetHashCode(); + if (FollowEventParam3.Length != 0) hash ^= FollowEventParam3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (SkillId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SkillId); + } + if (Priority != 0) { + output.WriteRawTag(32); + output.WriteInt32(Priority); + } + if (Weight != 0) { + output.WriteRawTag(40); + output.WriteInt32(Weight); + } + if (Rate != 0) { + output.WriteRawTag(48); + output.WriteInt32(Rate); + } + if (CD != 0) { + output.WriteRawTag(56); + output.WriteInt32(CD); + } + initialCDPool_.WriteTo(output, _repeated_initialCDPool_codec); + if (MinInitialCD != 0) { + output.WriteRawTag(72); + output.WriteInt32(MinInitialCD); + } + if (MaxInitialCD != 0) { + output.WriteRawTag(80); + output.WriteInt32(MaxInitialCD); + } + if (StartCDTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(StartCDTime); + } + if (FixedCD != false) { + output.WriteRawTag(96); + output.WriteBool(FixedCD); + } + if (ReleaseDistance != 0) { + output.WriteRawTag(104); + output.WriteInt32(ReleaseDistance); + } + if (ReleaseAngle != 0) { + output.WriteRawTag(112); + output.WriteInt32(ReleaseAngle); + } + if (TraceDuration != 0) { + output.WriteRawTag(120); + output.WriteInt32(TraceDuration); + } + if (Activate != false) { + output.WriteRawTag(128, 1); + output.WriteBool(Activate); + } + if (ActiveConditionType1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ActiveConditionType1); + } + if (ActiveParam1.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ActiveParam1); + } + if (ActiveParam2.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(ActiveParam2); + } + if (DeActiveConditionType1 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DeActiveConditionType1); + } + if (DeActiveParam1.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(DeActiveParam1); + } + if (DeActiveParam2.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(DeActiveParam2); + } + if (FollowEventType1 != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(FollowEventType1); + } + if (FollowEventParam1.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(FollowEventParam1); + } + if (FollowEventType2 != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(FollowEventType2); + } + if (FollowEventParam2.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(FollowEventParam2); + } + if (FollowEventType3 != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(FollowEventType3); + } + if (FollowEventParam3.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(FollowEventParam3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (SkillId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SkillId); + } + if (Priority != 0) { + output.WriteRawTag(32); + output.WriteInt32(Priority); + } + if (Weight != 0) { + output.WriteRawTag(40); + output.WriteInt32(Weight); + } + if (Rate != 0) { + output.WriteRawTag(48); + output.WriteInt32(Rate); + } + if (CD != 0) { + output.WriteRawTag(56); + output.WriteInt32(CD); + } + initialCDPool_.WriteTo(ref output, _repeated_initialCDPool_codec); + if (MinInitialCD != 0) { + output.WriteRawTag(72); + output.WriteInt32(MinInitialCD); + } + if (MaxInitialCD != 0) { + output.WriteRawTag(80); + output.WriteInt32(MaxInitialCD); + } + if (StartCDTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(StartCDTime); + } + if (FixedCD != false) { + output.WriteRawTag(96); + output.WriteBool(FixedCD); + } + if (ReleaseDistance != 0) { + output.WriteRawTag(104); + output.WriteInt32(ReleaseDistance); + } + if (ReleaseAngle != 0) { + output.WriteRawTag(112); + output.WriteInt32(ReleaseAngle); + } + if (TraceDuration != 0) { + output.WriteRawTag(120); + output.WriteInt32(TraceDuration); + } + if (Activate != false) { + output.WriteRawTag(128, 1); + output.WriteBool(Activate); + } + if (ActiveConditionType1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ActiveConditionType1); + } + if (ActiveParam1.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ActiveParam1); + } + if (ActiveParam2.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(ActiveParam2); + } + if (DeActiveConditionType1 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DeActiveConditionType1); + } + if (DeActiveParam1.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(DeActiveParam1); + } + if (DeActiveParam2.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(DeActiveParam2); + } + if (FollowEventType1 != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(FollowEventType1); + } + if (FollowEventParam1.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(FollowEventParam1); + } + if (FollowEventType2 != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(FollowEventType2); + } + if (FollowEventParam2.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(FollowEventParam2); + } + if (FollowEventType3 != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(FollowEventType3); + } + if (FollowEventParam3.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(FollowEventParam3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (SkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillId); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + if (Weight != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (Rate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rate); + } + if (CD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CD); + } + size += initialCDPool_.CalculateSize(_repeated_initialCDPool_codec); + if (MinInitialCD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinInitialCD); + } + if (MaxInitialCD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxInitialCD); + } + if (StartCDTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartCDTime); + } + if (FixedCD != false) { + size += 1 + 1; + } + if (ReleaseDistance != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReleaseDistance); + } + if (ReleaseAngle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReleaseAngle); + } + if (TraceDuration != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TraceDuration); + } + if (Activate != false) { + size += 2 + 1; + } + if (ActiveConditionType1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ActiveConditionType1); + } + if (ActiveParam1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ActiveParam1); + } + if (ActiveParam2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ActiveParam2); + } + if (DeActiveConditionType1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DeActiveConditionType1); + } + if (DeActiveParam1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DeActiveParam1); + } + if (DeActiveParam2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DeActiveParam2); + } + if (FollowEventType1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FollowEventType1); + } + if (FollowEventParam1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(FollowEventParam1); + } + if (FollowEventType2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FollowEventType2); + } + if (FollowEventParam2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(FollowEventParam2); + } + if (FollowEventType3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FollowEventType3); + } + if (FollowEventParam3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(FollowEventParam3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterActionBranch other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.SkillId != 0) { + SkillId = other.SkillId; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + if (other.Weight != 0) { + Weight = other.Weight; + } + if (other.Rate != 0) { + Rate = other.Rate; + } + if (other.CD != 0) { + CD = other.CD; + } + initialCDPool_.Add(other.initialCDPool_); + if (other.MinInitialCD != 0) { + MinInitialCD = other.MinInitialCD; + } + if (other.MaxInitialCD != 0) { + MaxInitialCD = other.MaxInitialCD; + } + if (other.StartCDTime != 0) { + StartCDTime = other.StartCDTime; + } + if (other.FixedCD != false) { + FixedCD = other.FixedCD; + } + if (other.ReleaseDistance != 0) { + ReleaseDistance = other.ReleaseDistance; + } + if (other.ReleaseAngle != 0) { + ReleaseAngle = other.ReleaseAngle; + } + if (other.TraceDuration != 0) { + TraceDuration = other.TraceDuration; + } + if (other.Activate != false) { + Activate = other.Activate; + } + if (other.ActiveConditionType1 != 0) { + ActiveConditionType1 = other.ActiveConditionType1; + } + if (other.ActiveParam1.Length != 0) { + ActiveParam1 = other.ActiveParam1; + } + if (other.ActiveParam2.Length != 0) { + ActiveParam2 = other.ActiveParam2; + } + if (other.DeActiveConditionType1 != 0) { + DeActiveConditionType1 = other.DeActiveConditionType1; + } + if (other.DeActiveParam1.Length != 0) { + DeActiveParam1 = other.DeActiveParam1; + } + if (other.DeActiveParam2.Length != 0) { + DeActiveParam2 = other.DeActiveParam2; + } + if (other.FollowEventType1 != 0) { + FollowEventType1 = other.FollowEventType1; + } + if (other.FollowEventParam1.Length != 0) { + FollowEventParam1 = other.FollowEventParam1; + } + if (other.FollowEventType2 != 0) { + FollowEventType2 = other.FollowEventType2; + } + if (other.FollowEventParam2.Length != 0) { + FollowEventParam2 = other.FollowEventParam2; + } + if (other.FollowEventType3 != 0) { + FollowEventType3 = other.FollowEventType3; + } + if (other.FollowEventParam3.Length != 0) { + FollowEventParam3 = other.FollowEventParam3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + SkillId = input.ReadInt32(); + break; + } + case 32: { + Priority = input.ReadInt32(); + break; + } + case 40: { + Weight = input.ReadInt32(); + break; + } + case 48: { + Rate = input.ReadInt32(); + break; + } + case 56: { + CD = input.ReadInt32(); + break; + } + case 66: + case 64: { + initialCDPool_.AddEntriesFrom(input, _repeated_initialCDPool_codec); + break; + } + case 72: { + MinInitialCD = input.ReadInt32(); + break; + } + case 80: { + MaxInitialCD = input.ReadInt32(); + break; + } + case 88: { + StartCDTime = input.ReadInt32(); + break; + } + case 96: { + FixedCD = input.ReadBool(); + break; + } + case 104: { + ReleaseDistance = input.ReadInt32(); + break; + } + case 112: { + ReleaseAngle = input.ReadInt32(); + break; + } + case 120: { + TraceDuration = input.ReadInt32(); + break; + } + case 128: { + Activate = input.ReadBool(); + break; + } + case 136: { + ActiveConditionType1 = input.ReadInt32(); + break; + } + case 146: { + ActiveParam1 = input.ReadString(); + break; + } + case 154: { + ActiveParam2 = input.ReadString(); + break; + } + case 160: { + DeActiveConditionType1 = input.ReadInt32(); + break; + } + case 170: { + DeActiveParam1 = input.ReadString(); + break; + } + case 178: { + DeActiveParam2 = input.ReadString(); + break; + } + case 184: { + FollowEventType1 = input.ReadInt32(); + break; + } + case 194: { + FollowEventParam1 = input.ReadString(); + break; + } + case 200: { + FollowEventType2 = input.ReadInt32(); + break; + } + case 210: { + FollowEventParam2 = input.ReadString(); + break; + } + case 216: { + FollowEventType3 = input.ReadInt32(); + break; + } + case 226: { + FollowEventParam3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + SkillId = input.ReadInt32(); + break; + } + case 32: { + Priority = input.ReadInt32(); + break; + } + case 40: { + Weight = input.ReadInt32(); + break; + } + case 48: { + Rate = input.ReadInt32(); + break; + } + case 56: { + CD = input.ReadInt32(); + break; + } + case 66: + case 64: { + initialCDPool_.AddEntriesFrom(ref input, _repeated_initialCDPool_codec); + break; + } + case 72: { + MinInitialCD = input.ReadInt32(); + break; + } + case 80: { + MaxInitialCD = input.ReadInt32(); + break; + } + case 88: { + StartCDTime = input.ReadInt32(); + break; + } + case 96: { + FixedCD = input.ReadBool(); + break; + } + case 104: { + ReleaseDistance = input.ReadInt32(); + break; + } + case 112: { + ReleaseAngle = input.ReadInt32(); + break; + } + case 120: { + TraceDuration = input.ReadInt32(); + break; + } + case 128: { + Activate = input.ReadBool(); + break; + } + case 136: { + ActiveConditionType1 = input.ReadInt32(); + break; + } + case 146: { + ActiveParam1 = input.ReadString(); + break; + } + case 154: { + ActiveParam2 = input.ReadString(); + break; + } + case 160: { + DeActiveConditionType1 = input.ReadInt32(); + break; + } + case 170: { + DeActiveParam1 = input.ReadString(); + break; + } + case 178: { + DeActiveParam2 = input.ReadString(); + break; + } + case 184: { + FollowEventType1 = input.ReadInt32(); + break; + } + case 194: { + FollowEventParam1 = input.ReadString(); + break; + } + case 200: { + FollowEventType2 = input.ReadInt32(); + break; + } + case 210: { + FollowEventParam2 = input.ReadString(); + break; + } + case 216: { + FollowEventType3 = input.ReadInt32(); + break; + } + case 226: { + FollowEventParam3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterBornGroup.cs b/NTR.Common/protos/MonsterBornGroup.cs new file mode 100644 index 0000000..bba34b7 --- /dev/null +++ b/NTR.Common/protos/MonsterBornGroup.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterBornGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterBornGroup.proto + public static partial class MonsterBornGroupReflection { + + #region Descriptor + /// File descriptor for MonsterBornGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterBornGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZNb25zdGVyQm9ybkdyb3VwLnByb3RvInIKEE1vbnN0ZXJCb3JuR3JvdXAS", + "EAoIZ3JvdXBfaWQYASABKAUSEgoKbW9uc3Rlcl9pZBgCIAEoBRISCgpkaWZm", + "aWN1bHR5GAMgASgFEhEKCW1pbl9mbG9vchgEIAEoBRIRCgltYXhfZmxvb3IY", + "BSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterBornGroup), global::Nova.Client.MonsterBornGroup.Parser, new[]{ "GroupId", "MonsterId", "Difficulty", "MinFloor", "MaxFloor" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterBornGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterBornGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterBornGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterBornGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterBornGroup(MonsterBornGroup other) : this() { + groupId_ = other.groupId_; + monsterId_ = other.monsterId_; + difficulty_ = other.difficulty_; + minFloor_ = other.minFloor_; + maxFloor_ = other.maxFloor_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterBornGroup Clone() { + return new MonsterBornGroup(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 2; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "min_floor" field. + public const int MinFloorFieldNumber = 4; + private int minFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinFloor { + get { return minFloor_; } + set { + minFloor_ = value; + } + } + + /// Field number for the "max_floor" field. + public const int MaxFloorFieldNumber = 5; + private int maxFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxFloor { + get { return maxFloor_; } + set { + maxFloor_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterBornGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterBornGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (MonsterId != other.MonsterId) return false; + if (Difficulty != other.Difficulty) return false; + if (MinFloor != other.MinFloor) return false; + if (MaxFloor != other.MaxFloor) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (MinFloor != 0) hash ^= MinFloor.GetHashCode(); + if (MaxFloor != 0) hash ^= MaxFloor.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(GroupId); + } + if (MonsterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (MinFloor != 0) { + output.WriteRawTag(32); + output.WriteInt32(MinFloor); + } + if (MaxFloor != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxFloor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(GroupId); + } + if (MonsterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (MinFloor != 0) { + output.WriteRawTag(32); + output.WriteInt32(MinFloor); + } + if (MaxFloor != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxFloor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (MinFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinFloor); + } + if (MaxFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxFloor); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterBornGroup other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.MinFloor != 0) { + MinFloor = other.MinFloor; + } + if (other.MaxFloor != 0) { + MaxFloor = other.MaxFloor; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GroupId = input.ReadInt32(); + break; + } + case 16: { + MonsterId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + MinFloor = input.ReadInt32(); + break; + } + case 40: { + MaxFloor = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GroupId = input.ReadInt32(); + break; + } + case 16: { + MonsterId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + MinFloor = input.ReadInt32(); + break; + } + case 40: { + MaxFloor = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterGroup.cs b/NTR.Common/protos/MonsterGroup.cs new file mode 100644 index 0000000..bb80a5b --- /dev/null +++ b/NTR.Common/protos/MonsterGroup.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterGroup.proto + public static partial class MonsterGroupReflection { + + #region Descriptor + /// File descriptor for MonsterGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJNb25zdGVyR3JvdXAucHJvdG8iLAoMTW9uc3Rlckdyb3VwEgoKAmlkGAEg", + "ASgFEhAKCG1vbnN0ZXJzGAIgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterGroup), global::Nova.Client.MonsterGroup.Parser, new[]{ "Id", "Monsters" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterGroup(MonsterGroup other) : this() { + id_ = other.id_; + monsters_ = other.monsters_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterGroup Clone() { + return new MonsterGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "monsters" field. + public const int MonstersFieldNumber = 2; + private string monsters_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Monsters { + get { return monsters_; } + set { + monsters_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Monsters != other.Monsters) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Monsters.Length != 0) hash ^= Monsters.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Monsters.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Monsters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Monsters.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Monsters); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Monsters.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Monsters); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Monsters.Length != 0) { + Monsters = other.Monsters; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Monsters = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Monsters = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterSkin.cs b/NTR.Common/protos/MonsterSkin.cs new file mode 100644 index 0000000..f66aac6 --- /dev/null +++ b/NTR.Common/protos/MonsterSkin.cs @@ -0,0 +1,766 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterSkin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterSkin.proto + public static partial class MonsterSkinReflection { + + #region Descriptor + /// File descriptor for MonsterSkin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterSkinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNb25zdGVyU2tpbi5wcm90byLOAgoLTW9uc3RlclNraW4SCgoCaWQYASAB", + "KAUSDAoEbmFtZRgCIAEoCRIMCgRkZXNjGAMgASgJEgwKBGljb24YBCABKAkS", + "EQoJaGludF9pY29uGAUgASgJEg0KBW1vZGVsGAYgASgJEhkKEXJ1bl9hbmlt", + "YXRpb25fc3BkGAcgASgFEhoKEndhbGtfYW5pbWF0aW9uX3NwZBgIIAEoBRIS", + "CgpiYXJfaGVpZ2h0GAkgASgFEhMKC21vZGVsX3NjYWxlGAogASgFEhYKDmJ1", + "ZmZfZl94X3NjYWxlGAsgASgFEhYKDmNvbGxpZGVyX3NjYWxlGAwgASgFEhsK", + "E2ZvcmJpZGRlbl9iZWhpdF9yb3QYDSABKAgSGgoSZWZmZWN0X3NjYWxlX3Zh", + "bHVlGA4gASgFEh4KFnRhZ19lZmZlY3Rfc2NhbGVfdmFsdWUYDyABKAVCDqoC", + "C05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterSkin), global::Nova.Client.MonsterSkin.Parser, new[]{ "Id", "Name", "Desc", "Icon", "HintIcon", "Model", "RunAnimationSpd", "WalkAnimationSpd", "BarHeight", "ModelScale", "BuffFXScale", "ColliderScale", "ForbiddenBehitRot", "EffectScaleValue", "TagEffectScaleValue" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterSkin : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterSkin()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterSkinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterSkin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterSkin(MonsterSkin other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + hintIcon_ = other.hintIcon_; + model_ = other.model_; + runAnimationSpd_ = other.runAnimationSpd_; + walkAnimationSpd_ = other.walkAnimationSpd_; + barHeight_ = other.barHeight_; + modelScale_ = other.modelScale_; + buffFXScale_ = other.buffFXScale_; + colliderScale_ = other.colliderScale_; + forbiddenBehitRot_ = other.forbiddenBehitRot_; + effectScaleValue_ = other.effectScaleValue_; + tagEffectScaleValue_ = other.tagEffectScaleValue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterSkin Clone() { + return new MonsterSkin(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hint_icon" field. + public const int HintIconFieldNumber = 5; + private string hintIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HintIcon { + get { return hintIcon_; } + set { + hintIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model" field. + public const int ModelFieldNumber = 6; + private string model_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Model { + get { return model_; } + set { + model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_animation_spd" field. + public const int RunAnimationSpdFieldNumber = 7; + private int runAnimationSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RunAnimationSpd { + get { return runAnimationSpd_; } + set { + runAnimationSpd_ = value; + } + } + + /// Field number for the "walk_animation_spd" field. + public const int WalkAnimationSpdFieldNumber = 8; + private int walkAnimationSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WalkAnimationSpd { + get { return walkAnimationSpd_; } + set { + walkAnimationSpd_ = value; + } + } + + /// Field number for the "bar_height" field. + public const int BarHeightFieldNumber = 9; + private int barHeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BarHeight { + get { return barHeight_; } + set { + barHeight_ = value; + } + } + + /// Field number for the "model_scale" field. + public const int ModelScaleFieldNumber = 10; + private int modelScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ModelScale { + get { return modelScale_; } + set { + modelScale_ = value; + } + } + + /// Field number for the "buff_f_x_scale" field. + public const int BuffFXScaleFieldNumber = 11; + private int buffFXScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffFXScale { + get { return buffFXScale_; } + set { + buffFXScale_ = value; + } + } + + /// Field number for the "collider_scale" field. + public const int ColliderScaleFieldNumber = 12; + private int colliderScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ColliderScale { + get { return colliderScale_; } + set { + colliderScale_ = value; + } + } + + /// Field number for the "forbidden_behit_rot" field. + public const int ForbiddenBehitRotFieldNumber = 13; + private bool forbiddenBehitRot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ForbiddenBehitRot { + get { return forbiddenBehitRot_; } + set { + forbiddenBehitRot_ = value; + } + } + + /// Field number for the "effect_scale_value" field. + public const int EffectScaleValueFieldNumber = 14; + private int effectScaleValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectScaleValue { + get { return effectScaleValue_; } + set { + effectScaleValue_ = value; + } + } + + /// Field number for the "tag_effect_scale_value" field. + public const int TagEffectScaleValueFieldNumber = 15; + private int tagEffectScaleValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TagEffectScaleValue { + get { return tagEffectScaleValue_; } + set { + tagEffectScaleValue_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterSkin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterSkin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (HintIcon != other.HintIcon) return false; + if (Model != other.Model) return false; + if (RunAnimationSpd != other.RunAnimationSpd) return false; + if (WalkAnimationSpd != other.WalkAnimationSpd) return false; + if (BarHeight != other.BarHeight) return false; + if (ModelScale != other.ModelScale) return false; + if (BuffFXScale != other.BuffFXScale) return false; + if (ColliderScale != other.ColliderScale) return false; + if (ForbiddenBehitRot != other.ForbiddenBehitRot) return false; + if (EffectScaleValue != other.EffectScaleValue) return false; + if (TagEffectScaleValue != other.TagEffectScaleValue) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (HintIcon.Length != 0) hash ^= HintIcon.GetHashCode(); + if (Model.Length != 0) hash ^= Model.GetHashCode(); + if (RunAnimationSpd != 0) hash ^= RunAnimationSpd.GetHashCode(); + if (WalkAnimationSpd != 0) hash ^= WalkAnimationSpd.GetHashCode(); + if (BarHeight != 0) hash ^= BarHeight.GetHashCode(); + if (ModelScale != 0) hash ^= ModelScale.GetHashCode(); + if (BuffFXScale != 0) hash ^= BuffFXScale.GetHashCode(); + if (ColliderScale != 0) hash ^= ColliderScale.GetHashCode(); + if (ForbiddenBehitRot != false) hash ^= ForbiddenBehitRot.GetHashCode(); + if (EffectScaleValue != 0) hash ^= EffectScaleValue.GetHashCode(); + if (TagEffectScaleValue != 0) hash ^= TagEffectScaleValue.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (HintIcon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(HintIcon); + } + if (Model.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Model); + } + if (RunAnimationSpd != 0) { + output.WriteRawTag(56); + output.WriteInt32(RunAnimationSpd); + } + if (WalkAnimationSpd != 0) { + output.WriteRawTag(64); + output.WriteInt32(WalkAnimationSpd); + } + if (BarHeight != 0) { + output.WriteRawTag(72); + output.WriteInt32(BarHeight); + } + if (ModelScale != 0) { + output.WriteRawTag(80); + output.WriteInt32(ModelScale); + } + if (BuffFXScale != 0) { + output.WriteRawTag(88); + output.WriteInt32(BuffFXScale); + } + if (ColliderScale != 0) { + output.WriteRawTag(96); + output.WriteInt32(ColliderScale); + } + if (ForbiddenBehitRot != false) { + output.WriteRawTag(104); + output.WriteBool(ForbiddenBehitRot); + } + if (EffectScaleValue != 0) { + output.WriteRawTag(112); + output.WriteInt32(EffectScaleValue); + } + if (TagEffectScaleValue != 0) { + output.WriteRawTag(120); + output.WriteInt32(TagEffectScaleValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (HintIcon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(HintIcon); + } + if (Model.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Model); + } + if (RunAnimationSpd != 0) { + output.WriteRawTag(56); + output.WriteInt32(RunAnimationSpd); + } + if (WalkAnimationSpd != 0) { + output.WriteRawTag(64); + output.WriteInt32(WalkAnimationSpd); + } + if (BarHeight != 0) { + output.WriteRawTag(72); + output.WriteInt32(BarHeight); + } + if (ModelScale != 0) { + output.WriteRawTag(80); + output.WriteInt32(ModelScale); + } + if (BuffFXScale != 0) { + output.WriteRawTag(88); + output.WriteInt32(BuffFXScale); + } + if (ColliderScale != 0) { + output.WriteRawTag(96); + output.WriteInt32(ColliderScale); + } + if (ForbiddenBehitRot != false) { + output.WriteRawTag(104); + output.WriteBool(ForbiddenBehitRot); + } + if (EffectScaleValue != 0) { + output.WriteRawTag(112); + output.WriteInt32(EffectScaleValue); + } + if (TagEffectScaleValue != 0) { + output.WriteRawTag(120); + output.WriteInt32(TagEffectScaleValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HintIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HintIcon); + } + if (Model.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); + } + if (RunAnimationSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RunAnimationSpd); + } + if (WalkAnimationSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WalkAnimationSpd); + } + if (BarHeight != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarHeight); + } + if (ModelScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModelScale); + } + if (BuffFXScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffFXScale); + } + if (ColliderScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColliderScale); + } + if (ForbiddenBehitRot != false) { + size += 1 + 1; + } + if (EffectScaleValue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectScaleValue); + } + if (TagEffectScaleValue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TagEffectScaleValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterSkin other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.HintIcon.Length != 0) { + HintIcon = other.HintIcon; + } + if (other.Model.Length != 0) { + Model = other.Model; + } + if (other.RunAnimationSpd != 0) { + RunAnimationSpd = other.RunAnimationSpd; + } + if (other.WalkAnimationSpd != 0) { + WalkAnimationSpd = other.WalkAnimationSpd; + } + if (other.BarHeight != 0) { + BarHeight = other.BarHeight; + } + if (other.ModelScale != 0) { + ModelScale = other.ModelScale; + } + if (other.BuffFXScale != 0) { + BuffFXScale = other.BuffFXScale; + } + if (other.ColliderScale != 0) { + ColliderScale = other.ColliderScale; + } + if (other.ForbiddenBehitRot != false) { + ForbiddenBehitRot = other.ForbiddenBehitRot; + } + if (other.EffectScaleValue != 0) { + EffectScaleValue = other.EffectScaleValue; + } + if (other.TagEffectScaleValue != 0) { + TagEffectScaleValue = other.TagEffectScaleValue; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + HintIcon = input.ReadString(); + break; + } + case 50: { + Model = input.ReadString(); + break; + } + case 56: { + RunAnimationSpd = input.ReadInt32(); + break; + } + case 64: { + WalkAnimationSpd = input.ReadInt32(); + break; + } + case 72: { + BarHeight = input.ReadInt32(); + break; + } + case 80: { + ModelScale = input.ReadInt32(); + break; + } + case 88: { + BuffFXScale = input.ReadInt32(); + break; + } + case 96: { + ColliderScale = input.ReadInt32(); + break; + } + case 104: { + ForbiddenBehitRot = input.ReadBool(); + break; + } + case 112: { + EffectScaleValue = input.ReadInt32(); + break; + } + case 120: { + TagEffectScaleValue = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + HintIcon = input.ReadString(); + break; + } + case 50: { + Model = input.ReadString(); + break; + } + case 56: { + RunAnimationSpd = input.ReadInt32(); + break; + } + case 64: { + WalkAnimationSpd = input.ReadInt32(); + break; + } + case 72: { + BarHeight = input.ReadInt32(); + break; + } + case 80: { + ModelScale = input.ReadInt32(); + break; + } + case 88: { + BuffFXScale = input.ReadInt32(); + break; + } + case 96: { + ColliderScale = input.ReadInt32(); + break; + } + case 104: { + ForbiddenBehitRot = input.ReadBool(); + break; + } + case 112: { + EffectScaleValue = input.ReadInt32(); + break; + } + case 120: { + TagEffectScaleValue = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterTeam.cs b/NTR.Common/protos/MonsterTeam.cs new file mode 100644 index 0000000..dacf619 --- /dev/null +++ b/NTR.Common/protos/MonsterTeam.cs @@ -0,0 +1,540 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterTeam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterTeam.proto + public static partial class MonsterTeamReflection { + + #region Descriptor + /// File descriptor for MonsterTeam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterTeamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNb25zdGVyVGVhbS5wcm90byKpAQoLTW9uc3RlclRlYW0SCgoCaWQYASAB", + "KAUSEAoIbWF0ZTBfaWQYAiABKAUSEAoIbWF0ZTFfaWQYAyABKAUSEAoIbWF0", + "ZTJfaWQYBCABKAUSEAoIbWF0ZTNfaWQYBSABKAUSEAoIbWF0ZTRfaWQYBiAB", + "KAUSEAoIbWF0ZTVfaWQYByABKAUSEAoIbWF0ZTZfaWQYCCABKAUSEAoIbWF0", + "ZTdfaWQYCSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterTeam), global::Nova.Client.MonsterTeam.Parser, new[]{ "Id", "Mate0Id", "Mate1Id", "Mate2Id", "Mate3Id", "Mate4Id", "Mate5Id", "Mate6Id", "Mate7Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterTeam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterTeam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterTeamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterTeam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterTeam(MonsterTeam other) : this() { + id_ = other.id_; + mate0Id_ = other.mate0Id_; + mate1Id_ = other.mate1Id_; + mate2Id_ = other.mate2Id_; + mate3Id_ = other.mate3Id_; + mate4Id_ = other.mate4Id_; + mate5Id_ = other.mate5Id_; + mate6Id_ = other.mate6Id_; + mate7Id_ = other.mate7Id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterTeam Clone() { + return new MonsterTeam(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "mate0_id" field. + public const int Mate0IdFieldNumber = 2; + private int mate0Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate0Id { + get { return mate0Id_; } + set { + mate0Id_ = value; + } + } + + /// Field number for the "mate1_id" field. + public const int Mate1IdFieldNumber = 3; + private int mate1Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate1Id { + get { return mate1Id_; } + set { + mate1Id_ = value; + } + } + + /// Field number for the "mate2_id" field. + public const int Mate2IdFieldNumber = 4; + private int mate2Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate2Id { + get { return mate2Id_; } + set { + mate2Id_ = value; + } + } + + /// Field number for the "mate3_id" field. + public const int Mate3IdFieldNumber = 5; + private int mate3Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate3Id { + get { return mate3Id_; } + set { + mate3Id_ = value; + } + } + + /// Field number for the "mate4_id" field. + public const int Mate4IdFieldNumber = 6; + private int mate4Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate4Id { + get { return mate4Id_; } + set { + mate4Id_ = value; + } + } + + /// Field number for the "mate5_id" field. + public const int Mate5IdFieldNumber = 7; + private int mate5Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate5Id { + get { return mate5Id_; } + set { + mate5Id_ = value; + } + } + + /// Field number for the "mate6_id" field. + public const int Mate6IdFieldNumber = 8; + private int mate6Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate6Id { + get { return mate6Id_; } + set { + mate6Id_ = value; + } + } + + /// Field number for the "mate7_id" field. + public const int Mate7IdFieldNumber = 9; + private int mate7Id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Mate7Id { + get { return mate7Id_; } + set { + mate7Id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterTeam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterTeam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Mate0Id != other.Mate0Id) return false; + if (Mate1Id != other.Mate1Id) return false; + if (Mate2Id != other.Mate2Id) return false; + if (Mate3Id != other.Mate3Id) return false; + if (Mate4Id != other.Mate4Id) return false; + if (Mate5Id != other.Mate5Id) return false; + if (Mate6Id != other.Mate6Id) return false; + if (Mate7Id != other.Mate7Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Mate0Id != 0) hash ^= Mate0Id.GetHashCode(); + if (Mate1Id != 0) hash ^= Mate1Id.GetHashCode(); + if (Mate2Id != 0) hash ^= Mate2Id.GetHashCode(); + if (Mate3Id != 0) hash ^= Mate3Id.GetHashCode(); + if (Mate4Id != 0) hash ^= Mate4Id.GetHashCode(); + if (Mate5Id != 0) hash ^= Mate5Id.GetHashCode(); + if (Mate6Id != 0) hash ^= Mate6Id.GetHashCode(); + if (Mate7Id != 0) hash ^= Mate7Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Mate0Id != 0) { + output.WriteRawTag(16); + output.WriteInt32(Mate0Id); + } + if (Mate1Id != 0) { + output.WriteRawTag(24); + output.WriteInt32(Mate1Id); + } + if (Mate2Id != 0) { + output.WriteRawTag(32); + output.WriteInt32(Mate2Id); + } + if (Mate3Id != 0) { + output.WriteRawTag(40); + output.WriteInt32(Mate3Id); + } + if (Mate4Id != 0) { + output.WriteRawTag(48); + output.WriteInt32(Mate4Id); + } + if (Mate5Id != 0) { + output.WriteRawTag(56); + output.WriteInt32(Mate5Id); + } + if (Mate6Id != 0) { + output.WriteRawTag(64); + output.WriteInt32(Mate6Id); + } + if (Mate7Id != 0) { + output.WriteRawTag(72); + output.WriteInt32(Mate7Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Mate0Id != 0) { + output.WriteRawTag(16); + output.WriteInt32(Mate0Id); + } + if (Mate1Id != 0) { + output.WriteRawTag(24); + output.WriteInt32(Mate1Id); + } + if (Mate2Id != 0) { + output.WriteRawTag(32); + output.WriteInt32(Mate2Id); + } + if (Mate3Id != 0) { + output.WriteRawTag(40); + output.WriteInt32(Mate3Id); + } + if (Mate4Id != 0) { + output.WriteRawTag(48); + output.WriteInt32(Mate4Id); + } + if (Mate5Id != 0) { + output.WriteRawTag(56); + output.WriteInt32(Mate5Id); + } + if (Mate6Id != 0) { + output.WriteRawTag(64); + output.WriteInt32(Mate6Id); + } + if (Mate7Id != 0) { + output.WriteRawTag(72); + output.WriteInt32(Mate7Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Mate0Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate0Id); + } + if (Mate1Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate1Id); + } + if (Mate2Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate2Id); + } + if (Mate3Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate3Id); + } + if (Mate4Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate4Id); + } + if (Mate5Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate5Id); + } + if (Mate6Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate6Id); + } + if (Mate7Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mate7Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterTeam other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Mate0Id != 0) { + Mate0Id = other.Mate0Id; + } + if (other.Mate1Id != 0) { + Mate1Id = other.Mate1Id; + } + if (other.Mate2Id != 0) { + Mate2Id = other.Mate2Id; + } + if (other.Mate3Id != 0) { + Mate3Id = other.Mate3Id; + } + if (other.Mate4Id != 0) { + Mate4Id = other.Mate4Id; + } + if (other.Mate5Id != 0) { + Mate5Id = other.Mate5Id; + } + if (other.Mate6Id != 0) { + Mate6Id = other.Mate6Id; + } + if (other.Mate7Id != 0) { + Mate7Id = other.Mate7Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Mate0Id = input.ReadInt32(); + break; + } + case 24: { + Mate1Id = input.ReadInt32(); + break; + } + case 32: { + Mate2Id = input.ReadInt32(); + break; + } + case 40: { + Mate3Id = input.ReadInt32(); + break; + } + case 48: { + Mate4Id = input.ReadInt32(); + break; + } + case 56: { + Mate5Id = input.ReadInt32(); + break; + } + case 64: { + Mate6Id = input.ReadInt32(); + break; + } + case 72: { + Mate7Id = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Mate0Id = input.ReadInt32(); + break; + } + case 24: { + Mate1Id = input.ReadInt32(); + break; + } + case 32: { + Mate2Id = input.ReadInt32(); + break; + } + case 40: { + Mate3Id = input.ReadInt32(); + break; + } + case 48: { + Mate4Id = input.ReadInt32(); + break; + } + case 56: { + Mate5Id = input.ReadInt32(); + break; + } + case 64: { + Mate6Id = input.ReadInt32(); + break; + } + case 72: { + Mate7Id = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterValueTemplete.cs b/NTR.Common/protos/MonsterValueTemplete.cs new file mode 100644 index 0000000..78ee135 --- /dev/null +++ b/NTR.Common/protos/MonsterValueTemplete.cs @@ -0,0 +1,2299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterValueTemplete.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterValueTemplete.proto + public static partial class MonsterValueTempleteReflection { + + #region Descriptor + /// File descriptor for MonsterValueTemplete.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterValueTempleteReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpNb25zdGVyVmFsdWVUZW1wbGV0ZS5wcm90byKqCAoUTW9uc3RlclZhbHVl", + "VGVtcGxldGUSCgoCaWQYASABKAMSEwoLdGVtcGxhdGVfaWQYAiABKAUSDAoE", + "bmFtZRgDIAEoCRIKCgJsdhgEIAEoBRIKCgJocBgFIAEoBRILCgNhdGsYBiAB", + "KAUSCwoDZGVmGAcgASgFEhEKCWNyaXRfcmF0ZRgIIAEoBRIYChBub3JtYWxf", + "Y3JpdF9yYXRlGAkgASgFEhcKD3NraWxsX2NyaXRfcmF0ZRgKIAEoBRIXCg91", + "bHRyYV9jcml0X3JhdGUYCyABKAUSFgoObWFya19jcml0X3JhdGUYDCABKAUS", + "GAoQc3VtbW9uX2NyaXRfcmF0ZRgNIAEoBRIcChRwcm9qZWN0aWxlX2NyaXRf", + "cmF0ZRgOIAEoBRIXCg9vdGhlcl9jcml0X3JhdGUYDyABKAUSFwoPY3JpdF9y", + "ZXNpc3RhbmNlGBAgASgFEhIKCmNyaXRfcG93ZXIYESABKAUSGQoRbm9ybWFs", + "X2NyaXRfcG93ZXIYEiABKAUSGAoQc2tpbGxfY3JpdF9wb3dlchgTIAEoBRIY", + "ChB1bHRyYV9jcml0X3Bvd2VyGBQgASgFEhcKD21hcmtfY3JpdF9wb3dlchgV", + "IAEoBRIZChFzdW1tb25fY3JpdF9wb3dlchgWIAEoBRIdChVwcm9qZWN0aWxl", + "X2NyaXRfcG93ZXIYFyABKAUSGAoQb3RoZXJfY3JpdF9wb3dlchgYIAEoBRIQ", + "CghoaXRfcmF0ZRgZIAEoBRILCgNldmQYGiABKAUSDwoHYXRrX3NwZBgbIAEo", + "BRISCgpkZWZfcGllcmNlGBwgASgFEhIKCmRlZl9pZ25vcmUYHSABKAUSDQoF", + "d19lX3AYHiABKAUSDQoFZl9lX3AYHyABKAUSDQoFc19lX3AYICABKAUSDQoF", + "YV9lX3AYISABKAUSDQoFbF9lX3AYIiABKAUSDQoFZF9lX3AYIyABKAUSDQoF", + "d19lX2kYJCABKAUSDQoFZl9lX2kYJSABKAUSDQoFc19lX2kYJiABKAUSDQoF", + "YV9lX2kYJyABKAUSDQoFbF9lX2kYKCABKAUSDQoFZF9lX2kYKSABKAUSDQoF", + "d19lX2UYKiABKAUSDQoFZl9lX2UYKyABKAUSDQoFc19lX2UYLCABKAUSDQoF", + "YV9lX2UYLSABKAUSDQoFbF9lX2UYLiABKAUSDQoFZF9lX2UYLyABKAUSDQoF", + "d19lX3IYMCABKAUSDQoFZl9lX3IYMSABKAUSDQoFc19lX3IYMiABKAUSDQoF", + "YV9lX3IYMyABKAUSDQoFbF9lX3IYNCABKAUSDQoFZF9lX3IYNSABKAUSEQoJ", + "dG91Z2huZXNzGDYgASgFEhAKCHN1cHByZXNzGDcgASgFEhsKE3JfY19kX21f", + "YV9yX2tfZF9tX2cYOCABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterValueTemplete), global::Nova.Client.MonsterValueTemplete.Parser, new[]{ "Id", "TemplateId", "Name", "Lv", "Hp", "Atk", "Def", "CritRate", "NormalCritRate", "SkillCritRate", "UltraCritRate", "MarkCritRate", "SummonCritRate", "ProjectileCritRate", "OtherCritRate", "CritResistance", "CritPower", "NormalCritPower", "SkillCritPower", "UltraCritPower", "MarkCritPower", "SummonCritPower", "ProjectileCritPower", "OtherCritPower", "HitRate", "Evd", "AtkSpd", "DefPierce", "DefIgnore", "WEP", "FEP", "SEP", "AEP", "LEP", "DEP", "WEI", "FEI", "SEI", "AEI", "LEI", "DEI", "WEE", "FEE", "SEE", "AEE", "LEE", "DEE", "WER", "FER", "SER", "AER", "LER", "DER", "Toughness", "Suppress", "RCDMARKDMG" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterValueTemplete : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterValueTemplete()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterValueTempleteReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterValueTemplete() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterValueTemplete(MonsterValueTemplete other) : this() { + id_ = other.id_; + templateId_ = other.templateId_; + name_ = other.name_; + lv_ = other.lv_; + hp_ = other.hp_; + atk_ = other.atk_; + def_ = other.def_; + critRate_ = other.critRate_; + normalCritRate_ = other.normalCritRate_; + skillCritRate_ = other.skillCritRate_; + ultraCritRate_ = other.ultraCritRate_; + markCritRate_ = other.markCritRate_; + summonCritRate_ = other.summonCritRate_; + projectileCritRate_ = other.projectileCritRate_; + otherCritRate_ = other.otherCritRate_; + critResistance_ = other.critResistance_; + critPower_ = other.critPower_; + normalCritPower_ = other.normalCritPower_; + skillCritPower_ = other.skillCritPower_; + ultraCritPower_ = other.ultraCritPower_; + markCritPower_ = other.markCritPower_; + summonCritPower_ = other.summonCritPower_; + projectileCritPower_ = other.projectileCritPower_; + otherCritPower_ = other.otherCritPower_; + hitRate_ = other.hitRate_; + evd_ = other.evd_; + atkSpd_ = other.atkSpd_; + defPierce_ = other.defPierce_; + defIgnore_ = other.defIgnore_; + wEP_ = other.wEP_; + fEP_ = other.fEP_; + sEP_ = other.sEP_; + aEP_ = other.aEP_; + lEP_ = other.lEP_; + dEP_ = other.dEP_; + wEI_ = other.wEI_; + fEI_ = other.fEI_; + sEI_ = other.sEI_; + aEI_ = other.aEI_; + lEI_ = other.lEI_; + dEI_ = other.dEI_; + wEE_ = other.wEE_; + fEE_ = other.fEE_; + sEE_ = other.sEE_; + aEE_ = other.aEE_; + lEE_ = other.lEE_; + dEE_ = other.dEE_; + wER_ = other.wER_; + fER_ = other.fER_; + sER_ = other.sER_; + aER_ = other.aER_; + lER_ = other.lER_; + dER_ = other.dER_; + toughness_ = other.toughness_; + suppress_ = other.suppress_; + rCDMARKDMG_ = other.rCDMARKDMG_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterValueTemplete Clone() { + return new MonsterValueTemplete(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "template_id" field. + public const int TemplateIdFieldNumber = 2; + private int templateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TemplateId { + get { return templateId_; } + set { + templateId_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "lv" field. + public const int LvFieldNumber = 4; + private int lv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Lv { + get { return lv_; } + set { + lv_ = value; + } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 5; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + /// Field number for the "atk" field. + public const int AtkFieldNumber = 6; + private int atk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Atk { + get { return atk_; } + set { + atk_ = value; + } + } + + /// Field number for the "def" field. + public const int DefFieldNumber = 7; + private int def_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Def { + get { return def_; } + set { + def_ = value; + } + } + + /// Field number for the "crit_rate" field. + public const int CritRateFieldNumber = 8; + private int critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// Field number for the "normal_crit_rate" field. + public const int NormalCritRateFieldNumber = 9; + private int normalCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalCritRate { + get { return normalCritRate_; } + set { + normalCritRate_ = value; + } + } + + /// Field number for the "skill_crit_rate" field. + public const int SkillCritRateFieldNumber = 10; + private int skillCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCritRate { + get { return skillCritRate_; } + set { + skillCritRate_ = value; + } + } + + /// Field number for the "ultra_crit_rate" field. + public const int UltraCritRateFieldNumber = 11; + private int ultraCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraCritRate { + get { return ultraCritRate_; } + set { + ultraCritRate_ = value; + } + } + + /// Field number for the "mark_crit_rate" field. + public const int MarkCritRateFieldNumber = 12; + private int markCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkCritRate { + get { return markCritRate_; } + set { + markCritRate_ = value; + } + } + + /// Field number for the "summon_crit_rate" field. + public const int SummonCritRateFieldNumber = 13; + private int summonCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonCritRate { + get { return summonCritRate_; } + set { + summonCritRate_ = value; + } + } + + /// Field number for the "projectile_crit_rate" field. + public const int ProjectileCritRateFieldNumber = 14; + private int projectileCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileCritRate { + get { return projectileCritRate_; } + set { + projectileCritRate_ = value; + } + } + + /// Field number for the "other_crit_rate" field. + public const int OtherCritRateFieldNumber = 15; + private int otherCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherCritRate { + get { return otherCritRate_; } + set { + otherCritRate_ = value; + } + } + + /// Field number for the "crit_resistance" field. + public const int CritResistanceFieldNumber = 16; + private int critResistance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritResistance { + get { return critResistance_; } + set { + critResistance_ = value; + } + } + + /// Field number for the "crit_power" field. + public const int CritPowerFieldNumber = 17; + private int critPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritPower { + get { return critPower_; } + set { + critPower_ = value; + } + } + + /// Field number for the "normal_crit_power" field. + public const int NormalCritPowerFieldNumber = 18; + private int normalCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalCritPower { + get { return normalCritPower_; } + set { + normalCritPower_ = value; + } + } + + /// Field number for the "skill_crit_power" field. + public const int SkillCritPowerFieldNumber = 19; + private int skillCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCritPower { + get { return skillCritPower_; } + set { + skillCritPower_ = value; + } + } + + /// Field number for the "ultra_crit_power" field. + public const int UltraCritPowerFieldNumber = 20; + private int ultraCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraCritPower { + get { return ultraCritPower_; } + set { + ultraCritPower_ = value; + } + } + + /// Field number for the "mark_crit_power" field. + public const int MarkCritPowerFieldNumber = 21; + private int markCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkCritPower { + get { return markCritPower_; } + set { + markCritPower_ = value; + } + } + + /// Field number for the "summon_crit_power" field. + public const int SummonCritPowerFieldNumber = 22; + private int summonCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonCritPower { + get { return summonCritPower_; } + set { + summonCritPower_ = value; + } + } + + /// Field number for the "projectile_crit_power" field. + public const int ProjectileCritPowerFieldNumber = 23; + private int projectileCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileCritPower { + get { return projectileCritPower_; } + set { + projectileCritPower_ = value; + } + } + + /// Field number for the "other_crit_power" field. + public const int OtherCritPowerFieldNumber = 24; + private int otherCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherCritPower { + get { return otherCritPower_; } + set { + otherCritPower_ = value; + } + } + + /// Field number for the "hit_rate" field. + public const int HitRateFieldNumber = 25; + private int hitRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HitRate { + get { return hitRate_; } + set { + hitRate_ = value; + } + } + + /// Field number for the "evd" field. + public const int EvdFieldNumber = 26; + private int evd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Evd { + get { return evd_; } + set { + evd_ = value; + } + } + + /// Field number for the "atk_spd" field. + public const int AtkSpdFieldNumber = 27; + private int atkSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AtkSpd { + get { return atkSpd_; } + set { + atkSpd_ = value; + } + } + + /// Field number for the "def_pierce" field. + public const int DefPierceFieldNumber = 28; + private int defPierce_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefPierce { + get { return defPierce_; } + set { + defPierce_ = value; + } + } + + /// Field number for the "def_ignore" field. + public const int DefIgnoreFieldNumber = 29; + private int defIgnore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefIgnore { + get { return defIgnore_; } + set { + defIgnore_ = value; + } + } + + /// Field number for the "w_e_p" field. + public const int WEPFieldNumber = 30; + private int wEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEP { + get { return wEP_; } + set { + wEP_ = value; + } + } + + /// Field number for the "f_e_p" field. + public const int FEPFieldNumber = 31; + private int fEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEP { + get { return fEP_; } + set { + fEP_ = value; + } + } + + /// Field number for the "s_e_p" field. + public const int SEPFieldNumber = 32; + private int sEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEP { + get { return sEP_; } + set { + sEP_ = value; + } + } + + /// Field number for the "a_e_p" field. + public const int AEPFieldNumber = 33; + private int aEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEP { + get { return aEP_; } + set { + aEP_ = value; + } + } + + /// Field number for the "l_e_p" field. + public const int LEPFieldNumber = 34; + private int lEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEP { + get { return lEP_; } + set { + lEP_ = value; + } + } + + /// Field number for the "d_e_p" field. + public const int DEPFieldNumber = 35; + private int dEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEP { + get { return dEP_; } + set { + dEP_ = value; + } + } + + /// Field number for the "w_e_i" field. + public const int WEIFieldNumber = 36; + private int wEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEI { + get { return wEI_; } + set { + wEI_ = value; + } + } + + /// Field number for the "f_e_i" field. + public const int FEIFieldNumber = 37; + private int fEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEI { + get { return fEI_; } + set { + fEI_ = value; + } + } + + /// Field number for the "s_e_i" field. + public const int SEIFieldNumber = 38; + private int sEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEI { + get { return sEI_; } + set { + sEI_ = value; + } + } + + /// Field number for the "a_e_i" field. + public const int AEIFieldNumber = 39; + private int aEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEI { + get { return aEI_; } + set { + aEI_ = value; + } + } + + /// Field number for the "l_e_i" field. + public const int LEIFieldNumber = 40; + private int lEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEI { + get { return lEI_; } + set { + lEI_ = value; + } + } + + /// Field number for the "d_e_i" field. + public const int DEIFieldNumber = 41; + private int dEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEI { + get { return dEI_; } + set { + dEI_ = value; + } + } + + /// Field number for the "w_e_e" field. + public const int WEEFieldNumber = 42; + private int wEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEE { + get { return wEE_; } + set { + wEE_ = value; + } + } + + /// Field number for the "f_e_e" field. + public const int FEEFieldNumber = 43; + private int fEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEE { + get { return fEE_; } + set { + fEE_ = value; + } + } + + /// Field number for the "s_e_e" field. + public const int SEEFieldNumber = 44; + private int sEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEE { + get { return sEE_; } + set { + sEE_ = value; + } + } + + /// Field number for the "a_e_e" field. + public const int AEEFieldNumber = 45; + private int aEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEE { + get { return aEE_; } + set { + aEE_ = value; + } + } + + /// Field number for the "l_e_e" field. + public const int LEEFieldNumber = 46; + private int lEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEE { + get { return lEE_; } + set { + lEE_ = value; + } + } + + /// Field number for the "d_e_e" field. + public const int DEEFieldNumber = 47; + private int dEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEE { + get { return dEE_; } + set { + dEE_ = value; + } + } + + /// Field number for the "w_e_r" field. + public const int WERFieldNumber = 48; + private int wER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WER { + get { return wER_; } + set { + wER_ = value; + } + } + + /// Field number for the "f_e_r" field. + public const int FERFieldNumber = 49; + private int fER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FER { + get { return fER_; } + set { + fER_ = value; + } + } + + /// Field number for the "s_e_r" field. + public const int SERFieldNumber = 50; + private int sER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SER { + get { return sER_; } + set { + sER_ = value; + } + } + + /// Field number for the "a_e_r" field. + public const int AERFieldNumber = 51; + private int aER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AER { + get { return aER_; } + set { + aER_ = value; + } + } + + /// Field number for the "l_e_r" field. + public const int LERFieldNumber = 52; + private int lER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LER { + get { return lER_; } + set { + lER_ = value; + } + } + + /// Field number for the "d_e_r" field. + public const int DERFieldNumber = 53; + private int dER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DER { + get { return dER_; } + set { + dER_ = value; + } + } + + /// Field number for the "toughness" field. + public const int ToughnessFieldNumber = 54; + private int toughness_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Toughness { + get { return toughness_; } + set { + toughness_ = value; + } + } + + /// Field number for the "suppress" field. + public const int SuppressFieldNumber = 55; + private int suppress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Suppress { + get { return suppress_; } + set { + suppress_ = value; + } + } + + /// Field number for the "r_c_d_m_a_r_k_d_m_g" field. + public const int RCDMARKDMGFieldNumber = 56; + private int rCDMARKDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RCDMARKDMG { + get { return rCDMARKDMG_; } + set { + rCDMARKDMG_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterValueTemplete); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterValueTemplete other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TemplateId != other.TemplateId) return false; + if (Name != other.Name) return false; + if (Lv != other.Lv) return false; + if (Hp != other.Hp) return false; + if (Atk != other.Atk) return false; + if (Def != other.Def) return false; + if (CritRate != other.CritRate) return false; + if (NormalCritRate != other.NormalCritRate) return false; + if (SkillCritRate != other.SkillCritRate) return false; + if (UltraCritRate != other.UltraCritRate) return false; + if (MarkCritRate != other.MarkCritRate) return false; + if (SummonCritRate != other.SummonCritRate) return false; + if (ProjectileCritRate != other.ProjectileCritRate) return false; + if (OtherCritRate != other.OtherCritRate) return false; + if (CritResistance != other.CritResistance) return false; + if (CritPower != other.CritPower) return false; + if (NormalCritPower != other.NormalCritPower) return false; + if (SkillCritPower != other.SkillCritPower) return false; + if (UltraCritPower != other.UltraCritPower) return false; + if (MarkCritPower != other.MarkCritPower) return false; + if (SummonCritPower != other.SummonCritPower) return false; + if (ProjectileCritPower != other.ProjectileCritPower) return false; + if (OtherCritPower != other.OtherCritPower) return false; + if (HitRate != other.HitRate) return false; + if (Evd != other.Evd) return false; + if (AtkSpd != other.AtkSpd) return false; + if (DefPierce != other.DefPierce) return false; + if (DefIgnore != other.DefIgnore) return false; + if (WEP != other.WEP) return false; + if (FEP != other.FEP) return false; + if (SEP != other.SEP) return false; + if (AEP != other.AEP) return false; + if (LEP != other.LEP) return false; + if (DEP != other.DEP) return false; + if (WEI != other.WEI) return false; + if (FEI != other.FEI) return false; + if (SEI != other.SEI) return false; + if (AEI != other.AEI) return false; + if (LEI != other.LEI) return false; + if (DEI != other.DEI) return false; + if (WEE != other.WEE) return false; + if (FEE != other.FEE) return false; + if (SEE != other.SEE) return false; + if (AEE != other.AEE) return false; + if (LEE != other.LEE) return false; + if (DEE != other.DEE) return false; + if (WER != other.WER) return false; + if (FER != other.FER) return false; + if (SER != other.SER) return false; + if (AER != other.AER) return false; + if (LER != other.LER) return false; + if (DER != other.DER) return false; + if (Toughness != other.Toughness) return false; + if (Suppress != other.Suppress) return false; + if (RCDMARKDMG != other.RCDMARKDMG) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0L) hash ^= Id.GetHashCode(); + if (TemplateId != 0) hash ^= TemplateId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Lv != 0) hash ^= Lv.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (Atk != 0) hash ^= Atk.GetHashCode(); + if (Def != 0) hash ^= Def.GetHashCode(); + if (CritRate != 0) hash ^= CritRate.GetHashCode(); + if (NormalCritRate != 0) hash ^= NormalCritRate.GetHashCode(); + if (SkillCritRate != 0) hash ^= SkillCritRate.GetHashCode(); + if (UltraCritRate != 0) hash ^= UltraCritRate.GetHashCode(); + if (MarkCritRate != 0) hash ^= MarkCritRate.GetHashCode(); + if (SummonCritRate != 0) hash ^= SummonCritRate.GetHashCode(); + if (ProjectileCritRate != 0) hash ^= ProjectileCritRate.GetHashCode(); + if (OtherCritRate != 0) hash ^= OtherCritRate.GetHashCode(); + if (CritResistance != 0) hash ^= CritResistance.GetHashCode(); + if (CritPower != 0) hash ^= CritPower.GetHashCode(); + if (NormalCritPower != 0) hash ^= NormalCritPower.GetHashCode(); + if (SkillCritPower != 0) hash ^= SkillCritPower.GetHashCode(); + if (UltraCritPower != 0) hash ^= UltraCritPower.GetHashCode(); + if (MarkCritPower != 0) hash ^= MarkCritPower.GetHashCode(); + if (SummonCritPower != 0) hash ^= SummonCritPower.GetHashCode(); + if (ProjectileCritPower != 0) hash ^= ProjectileCritPower.GetHashCode(); + if (OtherCritPower != 0) hash ^= OtherCritPower.GetHashCode(); + if (HitRate != 0) hash ^= HitRate.GetHashCode(); + if (Evd != 0) hash ^= Evd.GetHashCode(); + if (AtkSpd != 0) hash ^= AtkSpd.GetHashCode(); + if (DefPierce != 0) hash ^= DefPierce.GetHashCode(); + if (DefIgnore != 0) hash ^= DefIgnore.GetHashCode(); + if (WEP != 0) hash ^= WEP.GetHashCode(); + if (FEP != 0) hash ^= FEP.GetHashCode(); + if (SEP != 0) hash ^= SEP.GetHashCode(); + if (AEP != 0) hash ^= AEP.GetHashCode(); + if (LEP != 0) hash ^= LEP.GetHashCode(); + if (DEP != 0) hash ^= DEP.GetHashCode(); + if (WEI != 0) hash ^= WEI.GetHashCode(); + if (FEI != 0) hash ^= FEI.GetHashCode(); + if (SEI != 0) hash ^= SEI.GetHashCode(); + if (AEI != 0) hash ^= AEI.GetHashCode(); + if (LEI != 0) hash ^= LEI.GetHashCode(); + if (DEI != 0) hash ^= DEI.GetHashCode(); + if (WEE != 0) hash ^= WEE.GetHashCode(); + if (FEE != 0) hash ^= FEE.GetHashCode(); + if (SEE != 0) hash ^= SEE.GetHashCode(); + if (AEE != 0) hash ^= AEE.GetHashCode(); + if (LEE != 0) hash ^= LEE.GetHashCode(); + if (DEE != 0) hash ^= DEE.GetHashCode(); + if (WER != 0) hash ^= WER.GetHashCode(); + if (FER != 0) hash ^= FER.GetHashCode(); + if (SER != 0) hash ^= SER.GetHashCode(); + if (AER != 0) hash ^= AER.GetHashCode(); + if (LER != 0) hash ^= LER.GetHashCode(); + if (DER != 0) hash ^= DER.GetHashCode(); + if (Toughness != 0) hash ^= Toughness.GetHashCode(); + if (Suppress != 0) hash ^= Suppress.GetHashCode(); + if (RCDMARKDMG != 0) hash ^= RCDMARKDMG.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (TemplateId != 0) { + output.WriteRawTag(16); + output.WriteInt32(TemplateId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Lv != 0) { + output.WriteRawTag(32); + output.WriteInt32(Lv); + } + if (Hp != 0) { + output.WriteRawTag(40); + output.WriteInt32(Hp); + } + if (Atk != 0) { + output.WriteRawTag(48); + output.WriteInt32(Atk); + } + if (Def != 0) { + output.WriteRawTag(56); + output.WriteInt32(Def); + } + if (CritRate != 0) { + output.WriteRawTag(64); + output.WriteInt32(CritRate); + } + if (NormalCritRate != 0) { + output.WriteRawTag(72); + output.WriteInt32(NormalCritRate); + } + if (SkillCritRate != 0) { + output.WriteRawTag(80); + output.WriteInt32(SkillCritRate); + } + if (UltraCritRate != 0) { + output.WriteRawTag(88); + output.WriteInt32(UltraCritRate); + } + if (MarkCritRate != 0) { + output.WriteRawTag(96); + output.WriteInt32(MarkCritRate); + } + if (SummonCritRate != 0) { + output.WriteRawTag(104); + output.WriteInt32(SummonCritRate); + } + if (ProjectileCritRate != 0) { + output.WriteRawTag(112); + output.WriteInt32(ProjectileCritRate); + } + if (OtherCritRate != 0) { + output.WriteRawTag(120); + output.WriteInt32(OtherCritRate); + } + if (CritResistance != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(CritResistance); + } + if (CritPower != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(CritPower); + } + if (NormalCritPower != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(NormalCritPower); + } + if (SkillCritPower != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(SkillCritPower); + } + if (UltraCritPower != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(UltraCritPower); + } + if (MarkCritPower != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(MarkCritPower); + } + if (SummonCritPower != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SummonCritPower); + } + if (ProjectileCritPower != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ProjectileCritPower); + } + if (OtherCritPower != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(OtherCritPower); + } + if (HitRate != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(HitRate); + } + if (Evd != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(Evd); + } + if (AtkSpd != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(AtkSpd); + } + if (DefPierce != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(DefPierce); + } + if (DefIgnore != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(DEP); + } + if (WEI != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(WEI); + } + if (FEI != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(FEI); + } + if (SEI != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(SEI); + } + if (AEI != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(AEI); + } + if (LEI != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(LEI); + } + if (DEI != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(DEI); + } + if (WEE != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(DER); + } + if (Toughness != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(Toughness); + } + if (Suppress != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(Suppress); + } + if (RCDMARKDMG != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(RCDMARKDMG); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (TemplateId != 0) { + output.WriteRawTag(16); + output.WriteInt32(TemplateId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Lv != 0) { + output.WriteRawTag(32); + output.WriteInt32(Lv); + } + if (Hp != 0) { + output.WriteRawTag(40); + output.WriteInt32(Hp); + } + if (Atk != 0) { + output.WriteRawTag(48); + output.WriteInt32(Atk); + } + if (Def != 0) { + output.WriteRawTag(56); + output.WriteInt32(Def); + } + if (CritRate != 0) { + output.WriteRawTag(64); + output.WriteInt32(CritRate); + } + if (NormalCritRate != 0) { + output.WriteRawTag(72); + output.WriteInt32(NormalCritRate); + } + if (SkillCritRate != 0) { + output.WriteRawTag(80); + output.WriteInt32(SkillCritRate); + } + if (UltraCritRate != 0) { + output.WriteRawTag(88); + output.WriteInt32(UltraCritRate); + } + if (MarkCritRate != 0) { + output.WriteRawTag(96); + output.WriteInt32(MarkCritRate); + } + if (SummonCritRate != 0) { + output.WriteRawTag(104); + output.WriteInt32(SummonCritRate); + } + if (ProjectileCritRate != 0) { + output.WriteRawTag(112); + output.WriteInt32(ProjectileCritRate); + } + if (OtherCritRate != 0) { + output.WriteRawTag(120); + output.WriteInt32(OtherCritRate); + } + if (CritResistance != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(CritResistance); + } + if (CritPower != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(CritPower); + } + if (NormalCritPower != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(NormalCritPower); + } + if (SkillCritPower != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(SkillCritPower); + } + if (UltraCritPower != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(UltraCritPower); + } + if (MarkCritPower != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(MarkCritPower); + } + if (SummonCritPower != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SummonCritPower); + } + if (ProjectileCritPower != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ProjectileCritPower); + } + if (OtherCritPower != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(OtherCritPower); + } + if (HitRate != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(HitRate); + } + if (Evd != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(Evd); + } + if (AtkSpd != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(AtkSpd); + } + if (DefPierce != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(DefPierce); + } + if (DefIgnore != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(DEP); + } + if (WEI != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(WEI); + } + if (FEI != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(FEI); + } + if (SEI != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(SEI); + } + if (AEI != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(AEI); + } + if (LEI != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(LEI); + } + if (DEI != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(DEI); + } + if (WEE != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(DER); + } + if (Toughness != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(Toughness); + } + if (Suppress != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(Suppress); + } + if (RCDMARKDMG != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(RCDMARKDMG); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (TemplateId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TemplateId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Lv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Lv); + } + if (Hp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (Atk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Atk); + } + if (Def != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Def); + } + if (CritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CritRate); + } + if (NormalCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NormalCritRate); + } + if (SkillCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillCritRate); + } + if (UltraCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UltraCritRate); + } + if (MarkCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MarkCritRate); + } + if (SummonCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SummonCritRate); + } + if (ProjectileCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProjectileCritRate); + } + if (OtherCritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OtherCritRate); + } + if (CritResistance != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritResistance); + } + if (CritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritPower); + } + if (NormalCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalCritPower); + } + if (SkillCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillCritPower); + } + if (UltraCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UltraCritPower); + } + if (MarkCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MarkCritPower); + } + if (SummonCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SummonCritPower); + } + if (ProjectileCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ProjectileCritPower); + } + if (OtherCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OtherCritPower); + } + if (HitRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HitRate); + } + if (Evd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Evd); + } + if (AtkSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AtkSpd); + } + if (DefPierce != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefPierce); + } + if (DefIgnore != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefIgnore); + } + if (WEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEP); + } + if (FEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEP); + } + if (SEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEP); + } + if (AEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEP); + } + if (LEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEP); + } + if (DEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEP); + } + if (WEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEI); + } + if (FEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEI); + } + if (SEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEI); + } + if (AEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEI); + } + if (LEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEI); + } + if (DEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEI); + } + if (WEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEE); + } + if (FEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEE); + } + if (SEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEE); + } + if (AEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEE); + } + if (LEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEE); + } + if (DEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEE); + } + if (WER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WER); + } + if (FER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FER); + } + if (SER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SER); + } + if (AER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AER); + } + if (LER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LER); + } + if (DER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DER); + } + if (Toughness != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Toughness); + } + if (Suppress != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Suppress); + } + if (RCDMARKDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RCDMARKDMG); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterValueTemplete other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.TemplateId != 0) { + TemplateId = other.TemplateId; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Lv != 0) { + Lv = other.Lv; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + if (other.Atk != 0) { + Atk = other.Atk; + } + if (other.Def != 0) { + Def = other.Def; + } + if (other.CritRate != 0) { + CritRate = other.CritRate; + } + if (other.NormalCritRate != 0) { + NormalCritRate = other.NormalCritRate; + } + if (other.SkillCritRate != 0) { + SkillCritRate = other.SkillCritRate; + } + if (other.UltraCritRate != 0) { + UltraCritRate = other.UltraCritRate; + } + if (other.MarkCritRate != 0) { + MarkCritRate = other.MarkCritRate; + } + if (other.SummonCritRate != 0) { + SummonCritRate = other.SummonCritRate; + } + if (other.ProjectileCritRate != 0) { + ProjectileCritRate = other.ProjectileCritRate; + } + if (other.OtherCritRate != 0) { + OtherCritRate = other.OtherCritRate; + } + if (other.CritResistance != 0) { + CritResistance = other.CritResistance; + } + if (other.CritPower != 0) { + CritPower = other.CritPower; + } + if (other.NormalCritPower != 0) { + NormalCritPower = other.NormalCritPower; + } + if (other.SkillCritPower != 0) { + SkillCritPower = other.SkillCritPower; + } + if (other.UltraCritPower != 0) { + UltraCritPower = other.UltraCritPower; + } + if (other.MarkCritPower != 0) { + MarkCritPower = other.MarkCritPower; + } + if (other.SummonCritPower != 0) { + SummonCritPower = other.SummonCritPower; + } + if (other.ProjectileCritPower != 0) { + ProjectileCritPower = other.ProjectileCritPower; + } + if (other.OtherCritPower != 0) { + OtherCritPower = other.OtherCritPower; + } + if (other.HitRate != 0) { + HitRate = other.HitRate; + } + if (other.Evd != 0) { + Evd = other.Evd; + } + if (other.AtkSpd != 0) { + AtkSpd = other.AtkSpd; + } + if (other.DefPierce != 0) { + DefPierce = other.DefPierce; + } + if (other.DefIgnore != 0) { + DefIgnore = other.DefIgnore; + } + if (other.WEP != 0) { + WEP = other.WEP; + } + if (other.FEP != 0) { + FEP = other.FEP; + } + if (other.SEP != 0) { + SEP = other.SEP; + } + if (other.AEP != 0) { + AEP = other.AEP; + } + if (other.LEP != 0) { + LEP = other.LEP; + } + if (other.DEP != 0) { + DEP = other.DEP; + } + if (other.WEI != 0) { + WEI = other.WEI; + } + if (other.FEI != 0) { + FEI = other.FEI; + } + if (other.SEI != 0) { + SEI = other.SEI; + } + if (other.AEI != 0) { + AEI = other.AEI; + } + if (other.LEI != 0) { + LEI = other.LEI; + } + if (other.DEI != 0) { + DEI = other.DEI; + } + if (other.WEE != 0) { + WEE = other.WEE; + } + if (other.FEE != 0) { + FEE = other.FEE; + } + if (other.SEE != 0) { + SEE = other.SEE; + } + if (other.AEE != 0) { + AEE = other.AEE; + } + if (other.LEE != 0) { + LEE = other.LEE; + } + if (other.DEE != 0) { + DEE = other.DEE; + } + if (other.WER != 0) { + WER = other.WER; + } + if (other.FER != 0) { + FER = other.FER; + } + if (other.SER != 0) { + SER = other.SER; + } + if (other.AER != 0) { + AER = other.AER; + } + if (other.LER != 0) { + LER = other.LER; + } + if (other.DER != 0) { + DER = other.DER; + } + if (other.Toughness != 0) { + Toughness = other.Toughness; + } + if (other.Suppress != 0) { + Suppress = other.Suppress; + } + if (other.RCDMARKDMG != 0) { + RCDMARKDMG = other.RCDMARKDMG; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt64(); + break; + } + case 16: { + TemplateId = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Lv = input.ReadInt32(); + break; + } + case 40: { + Hp = input.ReadInt32(); + break; + } + case 48: { + Atk = input.ReadInt32(); + break; + } + case 56: { + Def = input.ReadInt32(); + break; + } + case 64: { + CritRate = input.ReadInt32(); + break; + } + case 72: { + NormalCritRate = input.ReadInt32(); + break; + } + case 80: { + SkillCritRate = input.ReadInt32(); + break; + } + case 88: { + UltraCritRate = input.ReadInt32(); + break; + } + case 96: { + MarkCritRate = input.ReadInt32(); + break; + } + case 104: { + SummonCritRate = input.ReadInt32(); + break; + } + case 112: { + ProjectileCritRate = input.ReadInt32(); + break; + } + case 120: { + OtherCritRate = input.ReadInt32(); + break; + } + case 128: { + CritResistance = input.ReadInt32(); + break; + } + case 136: { + CritPower = input.ReadInt32(); + break; + } + case 144: { + NormalCritPower = input.ReadInt32(); + break; + } + case 152: { + SkillCritPower = input.ReadInt32(); + break; + } + case 160: { + UltraCritPower = input.ReadInt32(); + break; + } + case 168: { + MarkCritPower = input.ReadInt32(); + break; + } + case 176: { + SummonCritPower = input.ReadInt32(); + break; + } + case 184: { + ProjectileCritPower = input.ReadInt32(); + break; + } + case 192: { + OtherCritPower = input.ReadInt32(); + break; + } + case 200: { + HitRate = input.ReadInt32(); + break; + } + case 208: { + Evd = input.ReadInt32(); + break; + } + case 216: { + AtkSpd = input.ReadInt32(); + break; + } + case 224: { + DefPierce = input.ReadInt32(); + break; + } + case 232: { + DefIgnore = input.ReadInt32(); + break; + } + case 240: { + WEP = input.ReadInt32(); + break; + } + case 248: { + FEP = input.ReadInt32(); + break; + } + case 256: { + SEP = input.ReadInt32(); + break; + } + case 264: { + AEP = input.ReadInt32(); + break; + } + case 272: { + LEP = input.ReadInt32(); + break; + } + case 280: { + DEP = input.ReadInt32(); + break; + } + case 288: { + WEI = input.ReadInt32(); + break; + } + case 296: { + FEI = input.ReadInt32(); + break; + } + case 304: { + SEI = input.ReadInt32(); + break; + } + case 312: { + AEI = input.ReadInt32(); + break; + } + case 320: { + LEI = input.ReadInt32(); + break; + } + case 328: { + DEI = input.ReadInt32(); + break; + } + case 336: { + WEE = input.ReadInt32(); + break; + } + case 344: { + FEE = input.ReadInt32(); + break; + } + case 352: { + SEE = input.ReadInt32(); + break; + } + case 360: { + AEE = input.ReadInt32(); + break; + } + case 368: { + LEE = input.ReadInt32(); + break; + } + case 376: { + DEE = input.ReadInt32(); + break; + } + case 384: { + WER = input.ReadInt32(); + break; + } + case 392: { + FER = input.ReadInt32(); + break; + } + case 400: { + SER = input.ReadInt32(); + break; + } + case 408: { + AER = input.ReadInt32(); + break; + } + case 416: { + LER = input.ReadInt32(); + break; + } + case 424: { + DER = input.ReadInt32(); + break; + } + case 432: { + Toughness = input.ReadInt32(); + break; + } + case 440: { + Suppress = input.ReadInt32(); + break; + } + case 448: { + RCDMARKDMG = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt64(); + break; + } + case 16: { + TemplateId = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Lv = input.ReadInt32(); + break; + } + case 40: { + Hp = input.ReadInt32(); + break; + } + case 48: { + Atk = input.ReadInt32(); + break; + } + case 56: { + Def = input.ReadInt32(); + break; + } + case 64: { + CritRate = input.ReadInt32(); + break; + } + case 72: { + NormalCritRate = input.ReadInt32(); + break; + } + case 80: { + SkillCritRate = input.ReadInt32(); + break; + } + case 88: { + UltraCritRate = input.ReadInt32(); + break; + } + case 96: { + MarkCritRate = input.ReadInt32(); + break; + } + case 104: { + SummonCritRate = input.ReadInt32(); + break; + } + case 112: { + ProjectileCritRate = input.ReadInt32(); + break; + } + case 120: { + OtherCritRate = input.ReadInt32(); + break; + } + case 128: { + CritResistance = input.ReadInt32(); + break; + } + case 136: { + CritPower = input.ReadInt32(); + break; + } + case 144: { + NormalCritPower = input.ReadInt32(); + break; + } + case 152: { + SkillCritPower = input.ReadInt32(); + break; + } + case 160: { + UltraCritPower = input.ReadInt32(); + break; + } + case 168: { + MarkCritPower = input.ReadInt32(); + break; + } + case 176: { + SummonCritPower = input.ReadInt32(); + break; + } + case 184: { + ProjectileCritPower = input.ReadInt32(); + break; + } + case 192: { + OtherCritPower = input.ReadInt32(); + break; + } + case 200: { + HitRate = input.ReadInt32(); + break; + } + case 208: { + Evd = input.ReadInt32(); + break; + } + case 216: { + AtkSpd = input.ReadInt32(); + break; + } + case 224: { + DefPierce = input.ReadInt32(); + break; + } + case 232: { + DefIgnore = input.ReadInt32(); + break; + } + case 240: { + WEP = input.ReadInt32(); + break; + } + case 248: { + FEP = input.ReadInt32(); + break; + } + case 256: { + SEP = input.ReadInt32(); + break; + } + case 264: { + AEP = input.ReadInt32(); + break; + } + case 272: { + LEP = input.ReadInt32(); + break; + } + case 280: { + DEP = input.ReadInt32(); + break; + } + case 288: { + WEI = input.ReadInt32(); + break; + } + case 296: { + FEI = input.ReadInt32(); + break; + } + case 304: { + SEI = input.ReadInt32(); + break; + } + case 312: { + AEI = input.ReadInt32(); + break; + } + case 320: { + LEI = input.ReadInt32(); + break; + } + case 328: { + DEI = input.ReadInt32(); + break; + } + case 336: { + WEE = input.ReadInt32(); + break; + } + case 344: { + FEE = input.ReadInt32(); + break; + } + case 352: { + SEE = input.ReadInt32(); + break; + } + case 360: { + AEE = input.ReadInt32(); + break; + } + case 368: { + LEE = input.ReadInt32(); + break; + } + case 376: { + DEE = input.ReadInt32(); + break; + } + case 384: { + WER = input.ReadInt32(); + break; + } + case 392: { + FER = input.ReadInt32(); + break; + } + case 400: { + SER = input.ReadInt32(); + break; + } + case 408: { + AER = input.ReadInt32(); + break; + } + case 416: { + LER = input.ReadInt32(); + break; + } + case 424: { + DER = input.ReadInt32(); + break; + } + case 432: { + Toughness = input.ReadInt32(); + break; + } + case 440: { + Suppress = input.ReadInt32(); + break; + } + case 448: { + RCDMARKDMG = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonsterValueTempleteAdjust.cs b/NTR.Common/protos/MonsterValueTempleteAdjust.cs new file mode 100644 index 0000000..2f6e594 --- /dev/null +++ b/NTR.Common/protos/MonsterValueTempleteAdjust.cs @@ -0,0 +1,1131 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterValueTempleteAdjust.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonsterValueTempleteAdjust.proto + public static partial class MonsterValueTempleteAdjustReflection { + + #region Descriptor + /// File descriptor for MonsterValueTempleteAdjust.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterValueTempleteAdjustReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBNb25zdGVyVmFsdWVUZW1wbGV0ZUFkanVzdC5wcm90byKCBAoaTW9uc3Rl", + "clZhbHVlVGVtcGxldGVBZGp1c3QSCgoCaWQYASABKAMSEwoLdGVtcGxhdGVf", + "aWQYAiABKAUSDAoEbmFtZRgDIAEoCRINCgVlX2VfdBgEIAEoBRISCgp3ZWFr", + "X2VfZV90GAUgAygFEhAKCGhwX3JhdGlvGAYgASgFEg4KBmhwX2ZpeBgHIAEo", + "BRIRCglhdGtfcmF0aW8YCCABKAUSDwoHYXRrX2ZpeBgJIAEoBRITCgt3X2Vf", + "cl9yYXRpbxgKIAEoBRIRCgl3X2Vfcl9maXgYCyABKAUSEwoLZl9lX3JfcmF0", + "aW8YDCABKAUSEQoJZl9lX3JfZml4GA0gASgFEhMKC3NfZV9yX3JhdGlvGA4g", + "ASgFEhEKCXNfZV9yX2ZpeBgPIAEoBRITCgthX2Vfcl9yYXRpbxgQIAEoBRIR", + "CglhX2Vfcl9maXgYESABKAUSEwoLbF9lX3JfcmF0aW8YEiABKAUSEQoJbF9l", + "X3JfZml4GBMgASgFEhMKC2RfZV9yX3JhdGlvGBQgASgFEhEKCWRfZV9yX2Zp", + "eBgVIAEoBRIXCg90b3VnaG5lc3NfcmF0aW8YFiABKAUSFQoNdG91Z2huZXNz", + "X2ZpeBgXIAEoBRIWCg5zdXBwcmVzc19yYXRpbxgYIAEoBRIUCgxzdXBwcmVz", + "c19maXgYGSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonsterValueTempleteAdjust), global::Nova.Client.MonsterValueTempleteAdjust.Parser, new[]{ "Id", "TemplateId", "Name", "EET", "WeakEET", "HpRatio", "HpFix", "AtkRatio", "AtkFix", "WERRatio", "WERFix", "FERRatio", "FERFix", "SERRatio", "SERFix", "AERRatio", "AERFix", "LERRatio", "LERFix", "DERRatio", "DERFix", "ToughnessRatio", "ToughnessFix", "SuppressRatio", "SuppressFix" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterValueTempleteAdjust : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterValueTempleteAdjust()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonsterValueTempleteAdjustReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterValueTempleteAdjust() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterValueTempleteAdjust(MonsterValueTempleteAdjust other) : this() { + id_ = other.id_; + templateId_ = other.templateId_; + name_ = other.name_; + eET_ = other.eET_; + weakEET_ = other.weakEET_.Clone(); + hpRatio_ = other.hpRatio_; + hpFix_ = other.hpFix_; + atkRatio_ = other.atkRatio_; + atkFix_ = other.atkFix_; + wERRatio_ = other.wERRatio_; + wERFix_ = other.wERFix_; + fERRatio_ = other.fERRatio_; + fERFix_ = other.fERFix_; + sERRatio_ = other.sERRatio_; + sERFix_ = other.sERFix_; + aERRatio_ = other.aERRatio_; + aERFix_ = other.aERFix_; + lERRatio_ = other.lERRatio_; + lERFix_ = other.lERFix_; + dERRatio_ = other.dERRatio_; + dERFix_ = other.dERFix_; + toughnessRatio_ = other.toughnessRatio_; + toughnessFix_ = other.toughnessFix_; + suppressRatio_ = other.suppressRatio_; + suppressFix_ = other.suppressFix_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterValueTempleteAdjust Clone() { + return new MonsterValueTempleteAdjust(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private long id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "template_id" field. + public const int TemplateIdFieldNumber = 2; + private int templateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TemplateId { + get { return templateId_; } + set { + templateId_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 4; + private int eET_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EET { + get { return eET_; } + set { + eET_ = value; + } + } + + /// Field number for the "weak_e_e_t" field. + public const int WeakEETFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_weakEET_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField weakEET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField WeakEET { + get { return weakEET_; } + } + + /// Field number for the "hp_ratio" field. + public const int HpRatioFieldNumber = 6; + private int hpRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HpRatio { + get { return hpRatio_; } + set { + hpRatio_ = value; + } + } + + /// Field number for the "hp_fix" field. + public const int HpFixFieldNumber = 7; + private int hpFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HpFix { + get { return hpFix_; } + set { + hpFix_ = value; + } + } + + /// Field number for the "atk_ratio" field. + public const int AtkRatioFieldNumber = 8; + private int atkRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AtkRatio { + get { return atkRatio_; } + set { + atkRatio_ = value; + } + } + + /// Field number for the "atk_fix" field. + public const int AtkFixFieldNumber = 9; + private int atkFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AtkFix { + get { return atkFix_; } + set { + atkFix_ = value; + } + } + + /// Field number for the "w_e_r_ratio" field. + public const int WERRatioFieldNumber = 10; + private int wERRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WERRatio { + get { return wERRatio_; } + set { + wERRatio_ = value; + } + } + + /// Field number for the "w_e_r_fix" field. + public const int WERFixFieldNumber = 11; + private int wERFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WERFix { + get { return wERFix_; } + set { + wERFix_ = value; + } + } + + /// Field number for the "f_e_r_ratio" field. + public const int FERRatioFieldNumber = 12; + private int fERRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FERRatio { + get { return fERRatio_; } + set { + fERRatio_ = value; + } + } + + /// Field number for the "f_e_r_fix" field. + public const int FERFixFieldNumber = 13; + private int fERFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FERFix { + get { return fERFix_; } + set { + fERFix_ = value; + } + } + + /// Field number for the "s_e_r_ratio" field. + public const int SERRatioFieldNumber = 14; + private int sERRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SERRatio { + get { return sERRatio_; } + set { + sERRatio_ = value; + } + } + + /// Field number for the "s_e_r_fix" field. + public const int SERFixFieldNumber = 15; + private int sERFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SERFix { + get { return sERFix_; } + set { + sERFix_ = value; + } + } + + /// Field number for the "a_e_r_ratio" field. + public const int AERRatioFieldNumber = 16; + private int aERRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AERRatio { + get { return aERRatio_; } + set { + aERRatio_ = value; + } + } + + /// Field number for the "a_e_r_fix" field. + public const int AERFixFieldNumber = 17; + private int aERFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AERFix { + get { return aERFix_; } + set { + aERFix_ = value; + } + } + + /// Field number for the "l_e_r_ratio" field. + public const int LERRatioFieldNumber = 18; + private int lERRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LERRatio { + get { return lERRatio_; } + set { + lERRatio_ = value; + } + } + + /// Field number for the "l_e_r_fix" field. + public const int LERFixFieldNumber = 19; + private int lERFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LERFix { + get { return lERFix_; } + set { + lERFix_ = value; + } + } + + /// Field number for the "d_e_r_ratio" field. + public const int DERRatioFieldNumber = 20; + private int dERRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DERRatio { + get { return dERRatio_; } + set { + dERRatio_ = value; + } + } + + /// Field number for the "d_e_r_fix" field. + public const int DERFixFieldNumber = 21; + private int dERFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DERFix { + get { return dERFix_; } + set { + dERFix_ = value; + } + } + + /// Field number for the "toughness_ratio" field. + public const int ToughnessRatioFieldNumber = 22; + private int toughnessRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToughnessRatio { + get { return toughnessRatio_; } + set { + toughnessRatio_ = value; + } + } + + /// Field number for the "toughness_fix" field. + public const int ToughnessFixFieldNumber = 23; + private int toughnessFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToughnessFix { + get { return toughnessFix_; } + set { + toughnessFix_ = value; + } + } + + /// Field number for the "suppress_ratio" field. + public const int SuppressRatioFieldNumber = 24; + private int suppressRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuppressRatio { + get { return suppressRatio_; } + set { + suppressRatio_ = value; + } + } + + /// Field number for the "suppress_fix" field. + public const int SuppressFixFieldNumber = 25; + private int suppressFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuppressFix { + get { return suppressFix_; } + set { + suppressFix_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterValueTempleteAdjust); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterValueTempleteAdjust other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TemplateId != other.TemplateId) return false; + if (Name != other.Name) return false; + if (EET != other.EET) return false; + if(!weakEET_.Equals(other.weakEET_)) return false; + if (HpRatio != other.HpRatio) return false; + if (HpFix != other.HpFix) return false; + if (AtkRatio != other.AtkRatio) return false; + if (AtkFix != other.AtkFix) return false; + if (WERRatio != other.WERRatio) return false; + if (WERFix != other.WERFix) return false; + if (FERRatio != other.FERRatio) return false; + if (FERFix != other.FERFix) return false; + if (SERRatio != other.SERRatio) return false; + if (SERFix != other.SERFix) return false; + if (AERRatio != other.AERRatio) return false; + if (AERFix != other.AERFix) return false; + if (LERRatio != other.LERRatio) return false; + if (LERFix != other.LERFix) return false; + if (DERRatio != other.DERRatio) return false; + if (DERFix != other.DERFix) return false; + if (ToughnessRatio != other.ToughnessRatio) return false; + if (ToughnessFix != other.ToughnessFix) return false; + if (SuppressRatio != other.SuppressRatio) return false; + if (SuppressFix != other.SuppressFix) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0L) hash ^= Id.GetHashCode(); + if (TemplateId != 0) hash ^= TemplateId.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (EET != 0) hash ^= EET.GetHashCode(); + hash ^= weakEET_.GetHashCode(); + if (HpRatio != 0) hash ^= HpRatio.GetHashCode(); + if (HpFix != 0) hash ^= HpFix.GetHashCode(); + if (AtkRatio != 0) hash ^= AtkRatio.GetHashCode(); + if (AtkFix != 0) hash ^= AtkFix.GetHashCode(); + if (WERRatio != 0) hash ^= WERRatio.GetHashCode(); + if (WERFix != 0) hash ^= WERFix.GetHashCode(); + if (FERRatio != 0) hash ^= FERRatio.GetHashCode(); + if (FERFix != 0) hash ^= FERFix.GetHashCode(); + if (SERRatio != 0) hash ^= SERRatio.GetHashCode(); + if (SERFix != 0) hash ^= SERFix.GetHashCode(); + if (AERRatio != 0) hash ^= AERRatio.GetHashCode(); + if (AERFix != 0) hash ^= AERFix.GetHashCode(); + if (LERRatio != 0) hash ^= LERRatio.GetHashCode(); + if (LERFix != 0) hash ^= LERFix.GetHashCode(); + if (DERRatio != 0) hash ^= DERRatio.GetHashCode(); + if (DERFix != 0) hash ^= DERFix.GetHashCode(); + if (ToughnessRatio != 0) hash ^= ToughnessRatio.GetHashCode(); + if (ToughnessFix != 0) hash ^= ToughnessFix.GetHashCode(); + if (SuppressRatio != 0) hash ^= SuppressRatio.GetHashCode(); + if (SuppressFix != 0) hash ^= SuppressFix.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (TemplateId != 0) { + output.WriteRawTag(16); + output.WriteInt32(TemplateId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (EET != 0) { + output.WriteRawTag(32); + output.WriteInt32(EET); + } + weakEET_.WriteTo(output, _repeated_weakEET_codec); + if (HpRatio != 0) { + output.WriteRawTag(48); + output.WriteInt32(HpRatio); + } + if (HpFix != 0) { + output.WriteRawTag(56); + output.WriteInt32(HpFix); + } + if (AtkRatio != 0) { + output.WriteRawTag(64); + output.WriteInt32(AtkRatio); + } + if (AtkFix != 0) { + output.WriteRawTag(72); + output.WriteInt32(AtkFix); + } + if (WERRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(WERRatio); + } + if (WERFix != 0) { + output.WriteRawTag(88); + output.WriteInt32(WERFix); + } + if (FERRatio != 0) { + output.WriteRawTag(96); + output.WriteInt32(FERRatio); + } + if (FERFix != 0) { + output.WriteRawTag(104); + output.WriteInt32(FERFix); + } + if (SERRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(SERRatio); + } + if (SERFix != 0) { + output.WriteRawTag(120); + output.WriteInt32(SERFix); + } + if (AERRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AERRatio); + } + if (AERFix != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AERFix); + } + if (LERRatio != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(LERRatio); + } + if (LERFix != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(LERFix); + } + if (DERRatio != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DERRatio); + } + if (DERFix != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(DERFix); + } + if (ToughnessRatio != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(ToughnessRatio); + } + if (ToughnessFix != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ToughnessFix); + } + if (SuppressRatio != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(SuppressRatio); + } + if (SuppressFix != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(SuppressFix); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Id); + } + if (TemplateId != 0) { + output.WriteRawTag(16); + output.WriteInt32(TemplateId); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (EET != 0) { + output.WriteRawTag(32); + output.WriteInt32(EET); + } + weakEET_.WriteTo(ref output, _repeated_weakEET_codec); + if (HpRatio != 0) { + output.WriteRawTag(48); + output.WriteInt32(HpRatio); + } + if (HpFix != 0) { + output.WriteRawTag(56); + output.WriteInt32(HpFix); + } + if (AtkRatio != 0) { + output.WriteRawTag(64); + output.WriteInt32(AtkRatio); + } + if (AtkFix != 0) { + output.WriteRawTag(72); + output.WriteInt32(AtkFix); + } + if (WERRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(WERRatio); + } + if (WERFix != 0) { + output.WriteRawTag(88); + output.WriteInt32(WERFix); + } + if (FERRatio != 0) { + output.WriteRawTag(96); + output.WriteInt32(FERRatio); + } + if (FERFix != 0) { + output.WriteRawTag(104); + output.WriteInt32(FERFix); + } + if (SERRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(SERRatio); + } + if (SERFix != 0) { + output.WriteRawTag(120); + output.WriteInt32(SERFix); + } + if (AERRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(AERRatio); + } + if (AERFix != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AERFix); + } + if (LERRatio != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(LERRatio); + } + if (LERFix != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(LERFix); + } + if (DERRatio != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DERRatio); + } + if (DERFix != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(DERFix); + } + if (ToughnessRatio != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(ToughnessRatio); + } + if (ToughnessFix != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ToughnessFix); + } + if (SuppressRatio != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(SuppressRatio); + } + if (SuppressFix != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(SuppressFix); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); + } + if (TemplateId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TemplateId); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (EET != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EET); + } + size += weakEET_.CalculateSize(_repeated_weakEET_codec); + if (HpRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HpRatio); + } + if (HpFix != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HpFix); + } + if (AtkRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AtkRatio); + } + if (AtkFix != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AtkFix); + } + if (WERRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WERRatio); + } + if (WERFix != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WERFix); + } + if (FERRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FERRatio); + } + if (FERFix != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FERFix); + } + if (SERRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SERRatio); + } + if (SERFix != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SERFix); + } + if (AERRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AERRatio); + } + if (AERFix != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AERFix); + } + if (LERRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LERRatio); + } + if (LERFix != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LERFix); + } + if (DERRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DERRatio); + } + if (DERFix != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DERFix); + } + if (ToughnessRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToughnessRatio); + } + if (ToughnessFix != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToughnessFix); + } + if (SuppressRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SuppressRatio); + } + if (SuppressFix != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SuppressFix); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterValueTempleteAdjust other) { + if (other == null) { + return; + } + if (other.Id != 0L) { + Id = other.Id; + } + if (other.TemplateId != 0) { + TemplateId = other.TemplateId; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.EET != 0) { + EET = other.EET; + } + weakEET_.Add(other.weakEET_); + if (other.HpRatio != 0) { + HpRatio = other.HpRatio; + } + if (other.HpFix != 0) { + HpFix = other.HpFix; + } + if (other.AtkRatio != 0) { + AtkRatio = other.AtkRatio; + } + if (other.AtkFix != 0) { + AtkFix = other.AtkFix; + } + if (other.WERRatio != 0) { + WERRatio = other.WERRatio; + } + if (other.WERFix != 0) { + WERFix = other.WERFix; + } + if (other.FERRatio != 0) { + FERRatio = other.FERRatio; + } + if (other.FERFix != 0) { + FERFix = other.FERFix; + } + if (other.SERRatio != 0) { + SERRatio = other.SERRatio; + } + if (other.SERFix != 0) { + SERFix = other.SERFix; + } + if (other.AERRatio != 0) { + AERRatio = other.AERRatio; + } + if (other.AERFix != 0) { + AERFix = other.AERFix; + } + if (other.LERRatio != 0) { + LERRatio = other.LERRatio; + } + if (other.LERFix != 0) { + LERFix = other.LERFix; + } + if (other.DERRatio != 0) { + DERRatio = other.DERRatio; + } + if (other.DERFix != 0) { + DERFix = other.DERFix; + } + if (other.ToughnessRatio != 0) { + ToughnessRatio = other.ToughnessRatio; + } + if (other.ToughnessFix != 0) { + ToughnessFix = other.ToughnessFix; + } + if (other.SuppressRatio != 0) { + SuppressRatio = other.SuppressRatio; + } + if (other.SuppressFix != 0) { + SuppressFix = other.SuppressFix; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt64(); + break; + } + case 16: { + TemplateId = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + EET = input.ReadInt32(); + break; + } + case 42: + case 40: { + weakEET_.AddEntriesFrom(input, _repeated_weakEET_codec); + break; + } + case 48: { + HpRatio = input.ReadInt32(); + break; + } + case 56: { + HpFix = input.ReadInt32(); + break; + } + case 64: { + AtkRatio = input.ReadInt32(); + break; + } + case 72: { + AtkFix = input.ReadInt32(); + break; + } + case 80: { + WERRatio = input.ReadInt32(); + break; + } + case 88: { + WERFix = input.ReadInt32(); + break; + } + case 96: { + FERRatio = input.ReadInt32(); + break; + } + case 104: { + FERFix = input.ReadInt32(); + break; + } + case 112: { + SERRatio = input.ReadInt32(); + break; + } + case 120: { + SERFix = input.ReadInt32(); + break; + } + case 128: { + AERRatio = input.ReadInt32(); + break; + } + case 136: { + AERFix = input.ReadInt32(); + break; + } + case 144: { + LERRatio = input.ReadInt32(); + break; + } + case 152: { + LERFix = input.ReadInt32(); + break; + } + case 160: { + DERRatio = input.ReadInt32(); + break; + } + case 168: { + DERFix = input.ReadInt32(); + break; + } + case 176: { + ToughnessRatio = input.ReadInt32(); + break; + } + case 184: { + ToughnessFix = input.ReadInt32(); + break; + } + case 192: { + SuppressRatio = input.ReadInt32(); + break; + } + case 200: { + SuppressFix = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt64(); + break; + } + case 16: { + TemplateId = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + EET = input.ReadInt32(); + break; + } + case 42: + case 40: { + weakEET_.AddEntriesFrom(ref input, _repeated_weakEET_codec); + break; + } + case 48: { + HpRatio = input.ReadInt32(); + break; + } + case 56: { + HpFix = input.ReadInt32(); + break; + } + case 64: { + AtkRatio = input.ReadInt32(); + break; + } + case 72: { + AtkFix = input.ReadInt32(); + break; + } + case 80: { + WERRatio = input.ReadInt32(); + break; + } + case 88: { + WERFix = input.ReadInt32(); + break; + } + case 96: { + FERRatio = input.ReadInt32(); + break; + } + case 104: { + FERFix = input.ReadInt32(); + break; + } + case 112: { + SERRatio = input.ReadInt32(); + break; + } + case 120: { + SERFix = input.ReadInt32(); + break; + } + case 128: { + AERRatio = input.ReadInt32(); + break; + } + case 136: { + AERFix = input.ReadInt32(); + break; + } + case 144: { + LERRatio = input.ReadInt32(); + break; + } + case 152: { + LERFix = input.ReadInt32(); + break; + } + case 160: { + DERRatio = input.ReadInt32(); + break; + } + case 168: { + DERFix = input.ReadInt32(); + break; + } + case 176: { + ToughnessRatio = input.ReadInt32(); + break; + } + case 184: { + ToughnessFix = input.ReadInt32(); + break; + } + case 192: { + SuppressRatio = input.ReadInt32(); + break; + } + case 200: { + SuppressFix = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/MonthlyCard.cs b/NTR.Common/protos/MonthlyCard.cs new file mode 100644 index 0000000..bfd1af2 --- /dev/null +++ b/NTR.Common/protos/MonthlyCard.cs @@ -0,0 +1,428 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonthlyCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from MonthlyCard.proto + public static partial class MonthlyCardReflection { + + #region Descriptor + /// File descriptor for MonthlyCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonthlyCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNb250aGx5Q2FyZC5wcm90byJ8CgtNb250aGx5Q2FyZBIKCgJpZBgBIAEo", + "BRIPCgdjYXJkX2lkGAIgASgFEhIKCnJld2FyZF9pZDEYAyABKAUSEwoLcmV3", + "YXJkX251bTEYBCABKAUSEgoKcmV3YXJkX2lkMhgFIAEoBRITCgtyZXdhcmRf", + "bnVtMhgGIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MonthlyCard), global::Nova.Client.MonthlyCard.Parser, new[]{ "Id", "CardId", "RewardId1", "RewardNum1", "RewardId2", "RewardNum2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonthlyCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonthlyCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.MonthlyCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonthlyCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonthlyCard(MonthlyCard other) : this() { + id_ = other.id_; + cardId_ = other.cardId_; + rewardId1_ = other.rewardId1_; + rewardNum1_ = other.rewardNum1_; + rewardId2_ = other.rewardId2_; + rewardNum2_ = other.rewardNum2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonthlyCard Clone() { + return new MonthlyCard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "card_id" field. + public const int CardIdFieldNumber = 2; + private int cardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CardId { + get { return cardId_; } + set { + cardId_ = value; + } + } + + /// Field number for the "reward_id1" field. + public const int RewardId1FieldNumber = 3; + private int rewardId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardId1 { + get { return rewardId1_; } + set { + rewardId1_ = value; + } + } + + /// Field number for the "reward_num1" field. + public const int RewardNum1FieldNumber = 4; + private int rewardNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardNum1 { + get { return rewardNum1_; } + set { + rewardNum1_ = value; + } + } + + /// Field number for the "reward_id2" field. + public const int RewardId2FieldNumber = 5; + private int rewardId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardId2 { + get { return rewardId2_; } + set { + rewardId2_ = value; + } + } + + /// Field number for the "reward_num2" field. + public const int RewardNum2FieldNumber = 6; + private int rewardNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardNum2 { + get { return rewardNum2_; } + set { + rewardNum2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonthlyCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonthlyCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CardId != other.CardId) return false; + if (RewardId1 != other.RewardId1) return false; + if (RewardNum1 != other.RewardNum1) return false; + if (RewardId2 != other.RewardId2) return false; + if (RewardNum2 != other.RewardNum2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CardId != 0) hash ^= CardId.GetHashCode(); + if (RewardId1 != 0) hash ^= RewardId1.GetHashCode(); + if (RewardNum1 != 0) hash ^= RewardNum1.GetHashCode(); + if (RewardId2 != 0) hash ^= RewardId2.GetHashCode(); + if (RewardNum2 != 0) hash ^= RewardNum2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CardId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CardId); + } + if (RewardId1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(RewardId1); + } + if (RewardNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(RewardNum1); + } + if (RewardId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(RewardId2); + } + if (RewardNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(RewardNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CardId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CardId); + } + if (RewardId1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(RewardId1); + } + if (RewardNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(RewardNum1); + } + if (RewardId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(RewardId2); + } + if (RewardNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(RewardNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CardId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CardId); + } + if (RewardId1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardId1); + } + if (RewardNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardNum1); + } + if (RewardId2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardId2); + } + if (RewardNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardNum2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonthlyCard other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CardId != 0) { + CardId = other.CardId; + } + if (other.RewardId1 != 0) { + RewardId1 = other.RewardId1; + } + if (other.RewardNum1 != 0) { + RewardNum1 = other.RewardNum1; + } + if (other.RewardId2 != 0) { + RewardId2 = other.RewardId2; + } + if (other.RewardNum2 != 0) { + RewardNum2 = other.RewardNum2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CardId = input.ReadInt32(); + break; + } + case 24: { + RewardId1 = input.ReadInt32(); + break; + } + case 32: { + RewardNum1 = input.ReadInt32(); + break; + } + case 40: { + RewardId2 = input.ReadInt32(); + break; + } + case 48: { + RewardNum2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CardId = input.ReadInt32(); + break; + } + case 24: { + RewardId1 = input.ReadInt32(); + break; + } + case 32: { + RewardNum1 = input.ReadInt32(); + break; + } + case 40: { + RewardId2 = input.ReadInt32(); + break; + } + case 48: { + RewardNum2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/NPCConfig.cs b/NTR.Common/protos/NPCConfig.cs new file mode 100644 index 0000000..25ff53f --- /dev/null +++ b/NTR.Common/protos/NPCConfig.cs @@ -0,0 +1,634 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NPCConfig.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from NPCConfig.proto + public static partial class NPCConfigReflection { + + #region Descriptor + /// File descriptor for NPCConfig.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NPCConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9OUENDb25maWcucHJvdG8i1AEKCU5QQ0NvbmZpZxIKCgJpZBgBIAEoBRIM", + "CgR0eXBlGAIgASgFEgwKBG5hbWUYAyABKAkSDAoEZGVzYxgEIAEoCRIQCghs", + "aXRlcmFyeRgFIAEoCRIVCg1yZWZyZXNoX3BvaW50GAYgASgFEhMKC2ZpcnN0", + "X2xpbmVzGAcgASgFEg0KBWxpbmVzGAggAygFEgwKBGNoYXQYCSADKAUSEQoJ", + "Y2hhdF9wcm9wGAogASgFEhEKCWNoYXRfdGltZRgLIAEoBRIQCghuX3BfY19p", + "ZBgMIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.NPCConfig), global::Nova.Client.NPCConfig.Parser, new[]{ "Id", "Type", "Name", "Desc", "Literary", "RefreshPoint", "FirstLines", "Lines", "Chat", "ChatProp", "ChatTime", "NPCId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NPCConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NPCConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.NPCConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NPCConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NPCConfig(NPCConfig other) : this() { + id_ = other.id_; + type_ = other.type_; + name_ = other.name_; + desc_ = other.desc_; + literary_ = other.literary_; + refreshPoint_ = other.refreshPoint_; + firstLines_ = other.firstLines_; + lines_ = other.lines_.Clone(); + chat_ = other.chat_.Clone(); + chatProp_ = other.chatProp_; + chatTime_ = other.chatTime_; + nPCId_ = other.nPCId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NPCConfig Clone() { + return new NPCConfig(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "literary" field. + public const int LiteraryFieldNumber = 5; + private string literary_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Literary { + get { return literary_; } + set { + literary_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "refresh_point" field. + public const int RefreshPointFieldNumber = 6; + private int refreshPoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshPoint { + get { return refreshPoint_; } + set { + refreshPoint_ = value; + } + } + + /// Field number for the "first_lines" field. + public const int FirstLinesFieldNumber = 7; + private int firstLines_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FirstLines { + get { return firstLines_; } + set { + firstLines_ = value; + } + } + + /// Field number for the "lines" field. + public const int LinesFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_lines_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField lines_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Lines { + get { return lines_; } + } + + /// Field number for the "chat" field. + public const int ChatFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_chat_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField chat_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Chat { + get { return chat_; } + } + + /// Field number for the "chat_prop" field. + public const int ChatPropFieldNumber = 10; + private int chatProp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ChatProp { + get { return chatProp_; } + set { + chatProp_ = value; + } + } + + /// Field number for the "chat_time" field. + public const int ChatTimeFieldNumber = 11; + private int chatTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ChatTime { + get { return chatTime_; } + set { + chatTime_ = value; + } + } + + /// Field number for the "n_p_c_id" field. + public const int NPCIdFieldNumber = 12; + private int nPCId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NPCId { + get { return nPCId_; } + set { + nPCId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NPCConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NPCConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Type != other.Type) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Literary != other.Literary) return false; + if (RefreshPoint != other.RefreshPoint) return false; + if (FirstLines != other.FirstLines) return false; + if(!lines_.Equals(other.lines_)) return false; + if(!chat_.Equals(other.chat_)) return false; + if (ChatProp != other.ChatProp) return false; + if (ChatTime != other.ChatTime) return false; + if (NPCId != other.NPCId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Literary.Length != 0) hash ^= Literary.GetHashCode(); + if (RefreshPoint != 0) hash ^= RefreshPoint.GetHashCode(); + if (FirstLines != 0) hash ^= FirstLines.GetHashCode(); + hash ^= lines_.GetHashCode(); + hash ^= chat_.GetHashCode(); + if (ChatProp != 0) hash ^= ChatProp.GetHashCode(); + if (ChatTime != 0) hash ^= ChatTime.GetHashCode(); + if (NPCId != 0) hash ^= NPCId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Literary.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Literary); + } + if (RefreshPoint != 0) { + output.WriteRawTag(48); + output.WriteInt32(RefreshPoint); + } + if (FirstLines != 0) { + output.WriteRawTag(56); + output.WriteInt32(FirstLines); + } + lines_.WriteTo(output, _repeated_lines_codec); + chat_.WriteTo(output, _repeated_chat_codec); + if (ChatProp != 0) { + output.WriteRawTag(80); + output.WriteInt32(ChatProp); + } + if (ChatTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(ChatTime); + } + if (NPCId != 0) { + output.WriteRawTag(96); + output.WriteInt32(NPCId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Literary.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Literary); + } + if (RefreshPoint != 0) { + output.WriteRawTag(48); + output.WriteInt32(RefreshPoint); + } + if (FirstLines != 0) { + output.WriteRawTag(56); + output.WriteInt32(FirstLines); + } + lines_.WriteTo(ref output, _repeated_lines_codec); + chat_.WriteTo(ref output, _repeated_chat_codec); + if (ChatProp != 0) { + output.WriteRawTag(80); + output.WriteInt32(ChatProp); + } + if (ChatTime != 0) { + output.WriteRawTag(88); + output.WriteInt32(ChatTime); + } + if (NPCId != 0) { + output.WriteRawTag(96); + output.WriteInt32(NPCId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Literary.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Literary); + } + if (RefreshPoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshPoint); + } + if (FirstLines != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirstLines); + } + size += lines_.CalculateSize(_repeated_lines_codec); + size += chat_.CalculateSize(_repeated_chat_codec); + if (ChatProp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChatProp); + } + if (ChatTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChatTime); + } + if (NPCId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NPCId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NPCConfig other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Literary.Length != 0) { + Literary = other.Literary; + } + if (other.RefreshPoint != 0) { + RefreshPoint = other.RefreshPoint; + } + if (other.FirstLines != 0) { + FirstLines = other.FirstLines; + } + lines_.Add(other.lines_); + chat_.Add(other.chat_); + if (other.ChatProp != 0) { + ChatProp = other.ChatProp; + } + if (other.ChatTime != 0) { + ChatTime = other.ChatTime; + } + if (other.NPCId != 0) { + NPCId = other.NPCId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + Literary = input.ReadString(); + break; + } + case 48: { + RefreshPoint = input.ReadInt32(); + break; + } + case 56: { + FirstLines = input.ReadInt32(); + break; + } + case 66: + case 64: { + lines_.AddEntriesFrom(input, _repeated_lines_codec); + break; + } + case 74: + case 72: { + chat_.AddEntriesFrom(input, _repeated_chat_codec); + break; + } + case 80: { + ChatProp = input.ReadInt32(); + break; + } + case 88: { + ChatTime = input.ReadInt32(); + break; + } + case 96: { + NPCId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + Literary = input.ReadString(); + break; + } + case 48: { + RefreshPoint = input.ReadInt32(); + break; + } + case 56: { + FirstLines = input.ReadInt32(); + break; + } + case 66: + case 64: { + lines_.AddEntriesFrom(ref input, _repeated_lines_codec); + break; + } + case 74: + case 72: { + chat_.AddEntriesFrom(ref input, _repeated_chat_codec); + break; + } + case 80: { + ChatProp = input.ReadInt32(); + break; + } + case 88: { + ChatTime = input.ReadInt32(); + break; + } + case 96: { + NPCId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/NPCSkin.cs b/NTR.Common/protos/NPCSkin.cs new file mode 100644 index 0000000..956551b --- /dev/null +++ b/NTR.Common/protos/NPCSkin.cs @@ -0,0 +1,914 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NPCSkin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from NPCSkin.proto + public static partial class NPCSkinReflection { + + #region Descriptor + /// File descriptor for NPCSkin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NPCSkinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1OUENTa2luLnByb3RvIukCCgdOUENTa2luEgoKAmlkGAEgASgFEgwKBG5h", + "bWUYAiABKAkSDAoEZGVzYxgDIAEoCRIPCgdpc19zaG93GAQgASgIEg8KB2No", + "YXJfaWQYBSABKAUSDAoEdHlwZRgGIAEoBRITCgtzb3VyY2VfZGVzYxgHIAEo", + "BRIMCgRpY29uGAggASgJEhYKDnNtYWxsX3BvcnRyYWl0GAkgASgJEhMKC21v", + "ZGVsX3NjYWxlGAogASgFEg0KBW1vZGVsGAsgASgJEhAKCHBvcnRyYWl0GAwg", + "ASgJEgoKAmJnGA0gASgJEg4KBm9mZnNldBgOIAEoCRIMCgRsMl9kGA8gASgJ", + "EhwKFGZ1bGxfc2NyZWVuX3BvcnRyYWl0GBAgASgJEhIKCnNraW5fdGhlbWUY", + "ESABKAUSGgoSaW50ZXJhY3RpdmVfYWN0aW9uGBIgASgIEh0KFWludGVyYWN0", + "aXZlX2FjdGlvbl9pZBgTIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.NPCSkin), global::Nova.Client.NPCSkin.Parser, new[]{ "Id", "Name", "Desc", "IsShow", "CharId", "Type", "SourceDesc", "Icon", "SmallPortrait", "ModelScale", "Model", "Portrait", "Bg", "Offset", "L2D", "FullScreenPortrait", "SkinTheme", "InteractiveAction", "InteractiveActionId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NPCSkin : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NPCSkin()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.NPCSkinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NPCSkin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NPCSkin(NPCSkin other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + isShow_ = other.isShow_; + charId_ = other.charId_; + type_ = other.type_; + sourceDesc_ = other.sourceDesc_; + icon_ = other.icon_; + smallPortrait_ = other.smallPortrait_; + modelScale_ = other.modelScale_; + model_ = other.model_; + portrait_ = other.portrait_; + bg_ = other.bg_; + offset_ = other.offset_; + l2D_ = other.l2D_; + fullScreenPortrait_ = other.fullScreenPortrait_; + skinTheme_ = other.skinTheme_; + interactiveAction_ = other.interactiveAction_; + interactiveActionId_ = other.interactiveActionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NPCSkin Clone() { + return new NPCSkin(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_show" field. + public const int IsShowFieldNumber = 4; + private bool isShow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsShow { + get { return isShow_; } + set { + isShow_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 5; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 6; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "source_desc" field. + public const int SourceDescFieldNumber = 7; + private int sourceDesc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SourceDesc { + get { return sourceDesc_; } + set { + sourceDesc_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "small_portrait" field. + public const int SmallPortraitFieldNumber = 9; + private string smallPortrait_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SmallPortrait { + get { return smallPortrait_; } + set { + smallPortrait_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model_scale" field. + public const int ModelScaleFieldNumber = 10; + private int modelScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ModelScale { + get { return modelScale_; } + set { + modelScale_ = value; + } + } + + /// Field number for the "model" field. + public const int ModelFieldNumber = 11; + private string model_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Model { + get { return model_; } + set { + model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "portrait" field. + public const int PortraitFieldNumber = 12; + private string portrait_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Portrait { + get { return portrait_; } + set { + portrait_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bg" field. + public const int BgFieldNumber = 13; + private string bg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bg { + get { return bg_; } + set { + bg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "offset" field. + public const int OffsetFieldNumber = 14; + private string offset_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Offset { + get { return offset_; } + set { + offset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "l2_d" field. + public const int L2DFieldNumber = 15; + private string l2D_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string L2D { + get { return l2D_; } + set { + l2D_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "full_screen_portrait" field. + public const int FullScreenPortraitFieldNumber = 16; + private string fullScreenPortrait_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FullScreenPortrait { + get { return fullScreenPortrait_; } + set { + fullScreenPortrait_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "skin_theme" field. + public const int SkinThemeFieldNumber = 17; + private int skinTheme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkinTheme { + get { return skinTheme_; } + set { + skinTheme_ = value; + } + } + + /// Field number for the "interactive_action" field. + public const int InteractiveActionFieldNumber = 18; + private bool interactiveAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InteractiveAction { + get { return interactiveAction_; } + set { + interactiveAction_ = value; + } + } + + /// Field number for the "interactive_action_id" field. + public const int InteractiveActionIdFieldNumber = 19; + private int interactiveActionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InteractiveActionId { + get { return interactiveActionId_; } + set { + interactiveActionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NPCSkin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NPCSkin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsShow != other.IsShow) return false; + if (CharId != other.CharId) return false; + if (Type != other.Type) return false; + if (SourceDesc != other.SourceDesc) return false; + if (Icon != other.Icon) return false; + if (SmallPortrait != other.SmallPortrait) return false; + if (ModelScale != other.ModelScale) return false; + if (Model != other.Model) return false; + if (Portrait != other.Portrait) return false; + if (Bg != other.Bg) return false; + if (Offset != other.Offset) return false; + if (L2D != other.L2D) return false; + if (FullScreenPortrait != other.FullScreenPortrait) return false; + if (SkinTheme != other.SkinTheme) return false; + if (InteractiveAction != other.InteractiveAction) return false; + if (InteractiveActionId != other.InteractiveActionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (IsShow != false) hash ^= IsShow.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (SourceDesc != 0) hash ^= SourceDesc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (SmallPortrait.Length != 0) hash ^= SmallPortrait.GetHashCode(); + if (ModelScale != 0) hash ^= ModelScale.GetHashCode(); + if (Model.Length != 0) hash ^= Model.GetHashCode(); + if (Portrait.Length != 0) hash ^= Portrait.GetHashCode(); + if (Bg.Length != 0) hash ^= Bg.GetHashCode(); + if (Offset.Length != 0) hash ^= Offset.GetHashCode(); + if (L2D.Length != 0) hash ^= L2D.GetHashCode(); + if (FullScreenPortrait.Length != 0) hash ^= FullScreenPortrait.GetHashCode(); + if (SkinTheme != 0) hash ^= SkinTheme.GetHashCode(); + if (InteractiveAction != false) hash ^= InteractiveAction.GetHashCode(); + if (InteractiveActionId != 0) hash ^= InteractiveActionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (IsShow != false) { + output.WriteRawTag(32); + output.WriteBool(IsShow); + } + if (CharId != 0) { + output.WriteRawTag(40); + output.WriteInt32(CharId); + } + if (Type != 0) { + output.WriteRawTag(48); + output.WriteInt32(Type); + } + if (SourceDesc != 0) { + output.WriteRawTag(56); + output.WriteInt32(SourceDesc); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (SmallPortrait.Length != 0) { + output.WriteRawTag(74); + output.WriteString(SmallPortrait); + } + if (ModelScale != 0) { + output.WriteRawTag(80); + output.WriteInt32(ModelScale); + } + if (Model.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Model); + } + if (Portrait.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Portrait); + } + if (Bg.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Bg); + } + if (Offset.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Offset); + } + if (L2D.Length != 0) { + output.WriteRawTag(122); + output.WriteString(L2D); + } + if (FullScreenPortrait.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(FullScreenPortrait); + } + if (SkinTheme != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(SkinTheme); + } + if (InteractiveAction != false) { + output.WriteRawTag(144, 1); + output.WriteBool(InteractiveAction); + } + if (InteractiveActionId != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(InteractiveActionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (IsShow != false) { + output.WriteRawTag(32); + output.WriteBool(IsShow); + } + if (CharId != 0) { + output.WriteRawTag(40); + output.WriteInt32(CharId); + } + if (Type != 0) { + output.WriteRawTag(48); + output.WriteInt32(Type); + } + if (SourceDesc != 0) { + output.WriteRawTag(56); + output.WriteInt32(SourceDesc); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (SmallPortrait.Length != 0) { + output.WriteRawTag(74); + output.WriteString(SmallPortrait); + } + if (ModelScale != 0) { + output.WriteRawTag(80); + output.WriteInt32(ModelScale); + } + if (Model.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Model); + } + if (Portrait.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Portrait); + } + if (Bg.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Bg); + } + if (Offset.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Offset); + } + if (L2D.Length != 0) { + output.WriteRawTag(122); + output.WriteString(L2D); + } + if (FullScreenPortrait.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(FullScreenPortrait); + } + if (SkinTheme != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(SkinTheme); + } + if (InteractiveAction != false) { + output.WriteRawTag(144, 1); + output.WriteBool(InteractiveAction); + } + if (InteractiveActionId != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(InteractiveActionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (IsShow != false) { + size += 1 + 1; + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (SourceDesc != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourceDesc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (SmallPortrait.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SmallPortrait); + } + if (ModelScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModelScale); + } + if (Model.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); + } + if (Portrait.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Portrait); + } + if (Bg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bg); + } + if (Offset.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Offset); + } + if (L2D.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(L2D); + } + if (FullScreenPortrait.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(FullScreenPortrait); + } + if (SkinTheme != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkinTheme); + } + if (InteractiveAction != false) { + size += 2 + 1; + } + if (InteractiveActionId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InteractiveActionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NPCSkin other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.IsShow != false) { + IsShow = other.IsShow; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.SourceDesc != 0) { + SourceDesc = other.SourceDesc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.SmallPortrait.Length != 0) { + SmallPortrait = other.SmallPortrait; + } + if (other.ModelScale != 0) { + ModelScale = other.ModelScale; + } + if (other.Model.Length != 0) { + Model = other.Model; + } + if (other.Portrait.Length != 0) { + Portrait = other.Portrait; + } + if (other.Bg.Length != 0) { + Bg = other.Bg; + } + if (other.Offset.Length != 0) { + Offset = other.Offset; + } + if (other.L2D.Length != 0) { + L2D = other.L2D; + } + if (other.FullScreenPortrait.Length != 0) { + FullScreenPortrait = other.FullScreenPortrait; + } + if (other.SkinTheme != 0) { + SkinTheme = other.SkinTheme; + } + if (other.InteractiveAction != false) { + InteractiveAction = other.InteractiveAction; + } + if (other.InteractiveActionId != 0) { + InteractiveActionId = other.InteractiveActionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + IsShow = input.ReadBool(); + break; + } + case 40: { + CharId = input.ReadInt32(); + break; + } + case 48: { + Type = input.ReadInt32(); + break; + } + case 56: { + SourceDesc = input.ReadInt32(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + SmallPortrait = input.ReadString(); + break; + } + case 80: { + ModelScale = input.ReadInt32(); + break; + } + case 90: { + Model = input.ReadString(); + break; + } + case 98: { + Portrait = input.ReadString(); + break; + } + case 106: { + Bg = input.ReadString(); + break; + } + case 114: { + Offset = input.ReadString(); + break; + } + case 122: { + L2D = input.ReadString(); + break; + } + case 130: { + FullScreenPortrait = input.ReadString(); + break; + } + case 136: { + SkinTheme = input.ReadInt32(); + break; + } + case 144: { + InteractiveAction = input.ReadBool(); + break; + } + case 152: { + InteractiveActionId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + IsShow = input.ReadBool(); + break; + } + case 40: { + CharId = input.ReadInt32(); + break; + } + case 48: { + Type = input.ReadInt32(); + break; + } + case 56: { + SourceDesc = input.ReadInt32(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + SmallPortrait = input.ReadString(); + break; + } + case 80: { + ModelScale = input.ReadInt32(); + break; + } + case 90: { + Model = input.ReadString(); + break; + } + case 98: { + Portrait = input.ReadString(); + break; + } + case 106: { + Bg = input.ReadString(); + break; + } + case 114: { + Offset = input.ReadString(); + break; + } + case 122: { + L2D = input.ReadString(); + break; + } + case 130: { + FullScreenPortrait = input.ReadString(); + break; + } + case 136: { + SkinTheme = input.ReadInt32(); + break; + } + case 144: { + InteractiveAction = input.ReadBool(); + break; + } + case 152: { + InteractiveActionId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Note.cs b/NTR.Common/protos/Note.cs new file mode 100644 index 0000000..ac4889b --- /dev/null +++ b/NTR.Common/protos/Note.cs @@ -0,0 +1,689 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Note.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Note.proto + public static partial class NoteReflection { + + #region Descriptor + /// File descriptor for Note.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NoteReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpOb3RlLnByb3RvIs4BCgROb3RlEgoKAmlkGAEgASgFEg0KBW5vdGVfGAIg", + "ASgFEg4KBnN0eWxlMRgDIAEoCRIOCgZzdHlsZTIYBCABKAkSDgoGc3R5bGUz", + "GAUgASgJEg4KBnN0eWxlNBgGIAEoCRIOCgZzdHlsZTUYByABKAkSDgoGc3R5", + "bGU2GAggASgJEg4KBnN0eWxlNxgJIAEoCRIOCgZzdHlsZTgYCiABKAkSDQoF", + "Y29sb3IYCyABKAkSDQoFbmFtZTEYDCABKAkSDQoFbmFtZTIYDSABKAlCDqoC", + "C05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Note), global::Nova.Client.Note.Parser, new[]{ "Id", "Note_", "Style1", "Style2", "Style3", "Style4", "Style5", "Style6", "Style7", "Style8", "Color", "Name1", "Name2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Note : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Note()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.NoteReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Note() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Note(Note other) : this() { + id_ = other.id_; + note_ = other.note_; + style1_ = other.style1_; + style2_ = other.style2_; + style3_ = other.style3_; + style4_ = other.style4_; + style5_ = other.style5_; + style6_ = other.style6_; + style7_ = other.style7_; + style8_ = other.style8_; + color_ = other.color_; + name1_ = other.name1_; + name2_ = other.name2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Note Clone() { + return new Note(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "note_" field. + public const int Note_FieldNumber = 2; + private int note_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Note_ { + get { return note_; } + set { + note_ = value; + } + } + + /// Field number for the "style1" field. + public const int Style1FieldNumber = 3; + private string style1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style1 { + get { return style1_; } + set { + style1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style2" field. + public const int Style2FieldNumber = 4; + private string style2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style2 { + get { return style2_; } + set { + style2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style3" field. + public const int Style3FieldNumber = 5; + private string style3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style3 { + get { return style3_; } + set { + style3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style4" field. + public const int Style4FieldNumber = 6; + private string style4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style4 { + get { return style4_; } + set { + style4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style5" field. + public const int Style5FieldNumber = 7; + private string style5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style5 { + get { return style5_; } + set { + style5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style6" field. + public const int Style6FieldNumber = 8; + private string style6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style6 { + get { return style6_; } + set { + style6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style7" field. + public const int Style7FieldNumber = 9; + private string style7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style7 { + get { return style7_; } + set { + style7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style8" field. + public const int Style8FieldNumber = 10; + private string style8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Style8 { + get { return style8_; } + set { + style8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 11; + private string color_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Color { + get { return color_; } + set { + color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name1" field. + public const int Name1FieldNumber = 12; + private string name1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name1 { + get { return name1_; } + set { + name1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name2" field. + public const int Name2FieldNumber = 13; + private string name2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name2 { + get { return name2_; } + set { + name2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Note); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Note other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Note_ != other.Note_) return false; + if (Style1 != other.Style1) return false; + if (Style2 != other.Style2) return false; + if (Style3 != other.Style3) return false; + if (Style4 != other.Style4) return false; + if (Style5 != other.Style5) return false; + if (Style6 != other.Style6) return false; + if (Style7 != other.Style7) return false; + if (Style8 != other.Style8) return false; + if (Color != other.Color) return false; + if (Name1 != other.Name1) return false; + if (Name2 != other.Name2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Note_ != 0) hash ^= Note_.GetHashCode(); + if (Style1.Length != 0) hash ^= Style1.GetHashCode(); + if (Style2.Length != 0) hash ^= Style2.GetHashCode(); + if (Style3.Length != 0) hash ^= Style3.GetHashCode(); + if (Style4.Length != 0) hash ^= Style4.GetHashCode(); + if (Style5.Length != 0) hash ^= Style5.GetHashCode(); + if (Style6.Length != 0) hash ^= Style6.GetHashCode(); + if (Style7.Length != 0) hash ^= Style7.GetHashCode(); + if (Style8.Length != 0) hash ^= Style8.GetHashCode(); + if (Color.Length != 0) hash ^= Color.GetHashCode(); + if (Name1.Length != 0) hash ^= Name1.GetHashCode(); + if (Name2.Length != 0) hash ^= Name2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Note_ != 0) { + output.WriteRawTag(16); + output.WriteInt32(Note_); + } + if (Style1.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Style1); + } + if (Style2.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Style2); + } + if (Style3.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Style3); + } + if (Style4.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Style4); + } + if (Style5.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Style5); + } + if (Style6.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Style6); + } + if (Style7.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Style7); + } + if (Style8.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Style8); + } + if (Color.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Color); + } + if (Name1.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Name1); + } + if (Name2.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Name2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Note_ != 0) { + output.WriteRawTag(16); + output.WriteInt32(Note_); + } + if (Style1.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Style1); + } + if (Style2.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Style2); + } + if (Style3.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Style3); + } + if (Style4.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Style4); + } + if (Style5.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Style5); + } + if (Style6.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Style6); + } + if (Style7.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Style7); + } + if (Style8.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Style8); + } + if (Color.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Color); + } + if (Name1.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Name1); + } + if (Name2.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Name2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Note_ != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Note_); + } + if (Style1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style1); + } + if (Style2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style2); + } + if (Style3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style3); + } + if (Style4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style4); + } + if (Style5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style5); + } + if (Style6.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style6); + } + if (Style7.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style7); + } + if (Style8.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Style8); + } + if (Color.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); + } + if (Name1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name1); + } + if (Name2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Note other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Note_ != 0) { + Note_ = other.Note_; + } + if (other.Style1.Length != 0) { + Style1 = other.Style1; + } + if (other.Style2.Length != 0) { + Style2 = other.Style2; + } + if (other.Style3.Length != 0) { + Style3 = other.Style3; + } + if (other.Style4.Length != 0) { + Style4 = other.Style4; + } + if (other.Style5.Length != 0) { + Style5 = other.Style5; + } + if (other.Style6.Length != 0) { + Style6 = other.Style6; + } + if (other.Style7.Length != 0) { + Style7 = other.Style7; + } + if (other.Style8.Length != 0) { + Style8 = other.Style8; + } + if (other.Color.Length != 0) { + Color = other.Color; + } + if (other.Name1.Length != 0) { + Name1 = other.Name1; + } + if (other.Name2.Length != 0) { + Name2 = other.Name2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Note_ = input.ReadInt32(); + break; + } + case 26: { + Style1 = input.ReadString(); + break; + } + case 34: { + Style2 = input.ReadString(); + break; + } + case 42: { + Style3 = input.ReadString(); + break; + } + case 50: { + Style4 = input.ReadString(); + break; + } + case 58: { + Style5 = input.ReadString(); + break; + } + case 66: { + Style6 = input.ReadString(); + break; + } + case 74: { + Style7 = input.ReadString(); + break; + } + case 82: { + Style8 = input.ReadString(); + break; + } + case 90: { + Color = input.ReadString(); + break; + } + case 98: { + Name1 = input.ReadString(); + break; + } + case 106: { + Name2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Note_ = input.ReadInt32(); + break; + } + case 26: { + Style1 = input.ReadString(); + break; + } + case 34: { + Style2 = input.ReadString(); + break; + } + case 42: { + Style3 = input.ReadString(); + break; + } + case 50: { + Style4 = input.ReadString(); + break; + } + case 58: { + Style5 = input.ReadString(); + break; + } + case 66: { + Style6 = input.ReadString(); + break; + } + case 74: { + Style7 = input.ReadString(); + break; + } + case 82: { + Style8 = input.ReadString(); + break; + } + case 90: { + Color = input.ReadString(); + break; + } + case 98: { + Name1 = input.ReadString(); + break; + } + case 106: { + Name2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/NoteDropGroup.cs b/NTR.Common/protos/NoteDropGroup.cs new file mode 100644 index 0000000..c245529 --- /dev/null +++ b/NTR.Common/protos/NoteDropGroup.cs @@ -0,0 +1,487 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NoteDropGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from NoteDropGroup.proto + public static partial class NoteDropGroupReflection { + + #region Descriptor + /// File descriptor for NoteDropGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NoteDropGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNOb3RlRHJvcEdyb3VwLnByb3RvIscBCg1Ob3RlRHJvcEdyb3VwEg0KBWlu", + "ZGV4GAEgASgFEhAKCGdyb3VwX2lkGAIgASgFEhkKEXJhbmRvbV9ub3RlX3Jh", + "bmdlGAMgAygFEhQKDGFfbm90ZV9yYW5nZRgEIAMoBRIUCgxiX25vdGVfcmFu", + "Z2UYBSADKAUSFAoMY19ub3RlX3JhbmdlGAYgAygFEhQKDGRfbm90ZV9yYW5n", + "ZRgHIAMoBRIUCgxlX25vdGVfcmFuZ2UYCCADKAUSDAoEaWNvbhgJIAEoCUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.NoteDropGroup), global::Nova.Client.NoteDropGroup.Parser, new[]{ "Index", "GroupId", "RandomNoteRange", "ANoteRange", "BNoteRange", "CNoteRange", "DNoteRange", "ENoteRange", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NoteDropGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NoteDropGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.NoteDropGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NoteDropGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NoteDropGroup(NoteDropGroup other) : this() { + index_ = other.index_; + groupId_ = other.groupId_; + randomNoteRange_ = other.randomNoteRange_.Clone(); + aNoteRange_ = other.aNoteRange_.Clone(); + bNoteRange_ = other.bNoteRange_.Clone(); + cNoteRange_ = other.cNoteRange_.Clone(); + dNoteRange_ = other.dNoteRange_.Clone(); + eNoteRange_ = other.eNoteRange_.Clone(); + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NoteDropGroup Clone() { + return new NoteDropGroup(this); + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 1; + private int index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "random_note_range" field. + public const int RandomNoteRangeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_randomNoteRange_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField randomNoteRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RandomNoteRange { + get { return randomNoteRange_; } + } + + /// Field number for the "a_note_range" field. + public const int ANoteRangeFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_aNoteRange_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField aNoteRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ANoteRange { + get { return aNoteRange_; } + } + + /// Field number for the "b_note_range" field. + public const int BNoteRangeFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_bNoteRange_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField bNoteRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BNoteRange { + get { return bNoteRange_; } + } + + /// Field number for the "c_note_range" field. + public const int CNoteRangeFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_cNoteRange_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField cNoteRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CNoteRange { + get { return cNoteRange_; } + } + + /// Field number for the "d_note_range" field. + public const int DNoteRangeFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_dNoteRange_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField dNoteRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DNoteRange { + get { return dNoteRange_; } + } + + /// Field number for the "e_note_range" field. + public const int ENoteRangeFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_eNoteRange_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField eNoteRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ENoteRange { + get { return eNoteRange_; } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 9; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NoteDropGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NoteDropGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Index != other.Index) return false; + if (GroupId != other.GroupId) return false; + if(!randomNoteRange_.Equals(other.randomNoteRange_)) return false; + if(!aNoteRange_.Equals(other.aNoteRange_)) return false; + if(!bNoteRange_.Equals(other.bNoteRange_)) return false; + if(!cNoteRange_.Equals(other.cNoteRange_)) return false; + if(!dNoteRange_.Equals(other.dNoteRange_)) return false; + if(!eNoteRange_.Equals(other.eNoteRange_)) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Index != 0) hash ^= Index.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + hash ^= randomNoteRange_.GetHashCode(); + hash ^= aNoteRange_.GetHashCode(); + hash ^= bNoteRange_.GetHashCode(); + hash ^= cNoteRange_.GetHashCode(); + hash ^= dNoteRange_.GetHashCode(); + hash ^= eNoteRange_.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Index != 0) { + output.WriteRawTag(8); + output.WriteInt32(Index); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + randomNoteRange_.WriteTo(output, _repeated_randomNoteRange_codec); + aNoteRange_.WriteTo(output, _repeated_aNoteRange_codec); + bNoteRange_.WriteTo(output, _repeated_bNoteRange_codec); + cNoteRange_.WriteTo(output, _repeated_cNoteRange_codec); + dNoteRange_.WriteTo(output, _repeated_dNoteRange_codec); + eNoteRange_.WriteTo(output, _repeated_eNoteRange_codec); + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Index != 0) { + output.WriteRawTag(8); + output.WriteInt32(Index); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + randomNoteRange_.WriteTo(ref output, _repeated_randomNoteRange_codec); + aNoteRange_.WriteTo(ref output, _repeated_aNoteRange_codec); + bNoteRange_.WriteTo(ref output, _repeated_bNoteRange_codec); + cNoteRange_.WriteTo(ref output, _repeated_cNoteRange_codec); + dNoteRange_.WriteTo(ref output, _repeated_dNoteRange_codec); + eNoteRange_.WriteTo(ref output, _repeated_eNoteRange_codec); + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + size += randomNoteRange_.CalculateSize(_repeated_randomNoteRange_codec); + size += aNoteRange_.CalculateSize(_repeated_aNoteRange_codec); + size += bNoteRange_.CalculateSize(_repeated_bNoteRange_codec); + size += cNoteRange_.CalculateSize(_repeated_cNoteRange_codec); + size += dNoteRange_.CalculateSize(_repeated_dNoteRange_codec); + size += eNoteRange_.CalculateSize(_repeated_eNoteRange_codec); + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NoteDropGroup other) { + if (other == null) { + return; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + randomNoteRange_.Add(other.randomNoteRange_); + aNoteRange_.Add(other.aNoteRange_); + bNoteRange_.Add(other.bNoteRange_); + cNoteRange_.Add(other.cNoteRange_); + dNoteRange_.Add(other.dNoteRange_); + eNoteRange_.Add(other.eNoteRange_); + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Index = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: + case 24: { + randomNoteRange_.AddEntriesFrom(input, _repeated_randomNoteRange_codec); + break; + } + case 34: + case 32: { + aNoteRange_.AddEntriesFrom(input, _repeated_aNoteRange_codec); + break; + } + case 42: + case 40: { + bNoteRange_.AddEntriesFrom(input, _repeated_bNoteRange_codec); + break; + } + case 50: + case 48: { + cNoteRange_.AddEntriesFrom(input, _repeated_cNoteRange_codec); + break; + } + case 58: + case 56: { + dNoteRange_.AddEntriesFrom(input, _repeated_dNoteRange_codec); + break; + } + case 66: + case 64: { + eNoteRange_.AddEntriesFrom(input, _repeated_eNoteRange_codec); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Index = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: + case 24: { + randomNoteRange_.AddEntriesFrom(ref input, _repeated_randomNoteRange_codec); + break; + } + case 34: + case 32: { + aNoteRange_.AddEntriesFrom(ref input, _repeated_aNoteRange_codec); + break; + } + case 42: + case 40: { + bNoteRange_.AddEntriesFrom(ref input, _repeated_bNoteRange_codec); + break; + } + case 50: + case 48: { + cNoteRange_.AddEntriesFrom(ref input, _repeated_cNoteRange_codec); + break; + } + case 58: + case 56: { + dNoteRange_.AddEntriesFrom(ref input, _repeated_dNoteRange_codec); + break; + } + case 66: + case 64: { + eNoteRange_.AddEntriesFrom(ref input, _repeated_eNoteRange_codec); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/OnceAdditionalAttribute.cs b/NTR.Common/protos/OnceAdditionalAttribute.cs new file mode 100644 index 0000000..bc7d00a --- /dev/null +++ b/NTR.Common/protos/OnceAdditionalAttribute.cs @@ -0,0 +1,354 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OnceAdditionalAttribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from OnceAdditionalAttribute.proto + public static partial class OnceAdditionalAttributeReflection { + + #region Descriptor + /// File descriptor for OnceAdditionalAttribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OnceAdditionalAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1PbmNlQWRkaXRpb25hbEF0dHJpYnV0ZS5wcm90byJrChdPbmNlQWRkaXRp", + "b25hbEF0dHJpYnV0ZRIKCgJpZBgBIAEoBRIXCg9sZXZlbF90eXBlX2RhdGEY", + "AiABKAUSEgoKbGV2ZWxfZGF0YRgDIAEoBRIXCg9tYWluX29yX3N1cHBvcnQY", + "BCABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.OnceAdditionalAttribute), global::Nova.Client.OnceAdditionalAttribute.Parser, new[]{ "Id", "LevelTypeData", "LevelData", "MainOrSupport" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OnceAdditionalAttribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnceAdditionalAttribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.OnceAdditionalAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnceAdditionalAttribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnceAdditionalAttribute(OnceAdditionalAttribute other) : this() { + id_ = other.id_; + levelTypeData_ = other.levelTypeData_; + levelData_ = other.levelData_; + mainOrSupport_ = other.mainOrSupport_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnceAdditionalAttribute Clone() { + return new OnceAdditionalAttribute(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level_type_data" field. + public const int LevelTypeDataFieldNumber = 2; + private int levelTypeData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTypeData { + get { return levelTypeData_; } + set { + levelTypeData_ = value; + } + } + + /// Field number for the "level_data" field. + public const int LevelDataFieldNumber = 3; + private int levelData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelData { + get { return levelData_; } + set { + levelData_ = value; + } + } + + /// Field number for the "main_or_support" field. + public const int MainOrSupportFieldNumber = 4; + private int mainOrSupport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainOrSupport { + get { return mainOrSupport_; } + set { + mainOrSupport_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OnceAdditionalAttribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OnceAdditionalAttribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (LevelTypeData != other.LevelTypeData) return false; + if (LevelData != other.LevelData) return false; + if (MainOrSupport != other.MainOrSupport) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (LevelTypeData != 0) hash ^= LevelTypeData.GetHashCode(); + if (LevelData != 0) hash ^= LevelData.GetHashCode(); + if (MainOrSupport != 0) hash ^= MainOrSupport.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelTypeData != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(32); + output.WriteInt32(MainOrSupport); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelTypeData != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(32); + output.WriteInt32(MainOrSupport); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (LevelTypeData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTypeData); + } + if (LevelData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelData); + } + if (MainOrSupport != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainOrSupport); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OnceAdditionalAttribute other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.LevelTypeData != 0) { + LevelTypeData = other.LevelTypeData; + } + if (other.LevelData != 0) { + LevelData = other.LevelData; + } + if (other.MainOrSupport != 0) { + MainOrSupport = other.MainOrSupport; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelTypeData = input.ReadInt32(); + break; + } + case 24: { + LevelData = input.ReadInt32(); + break; + } + case 32: { + MainOrSupport = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelTypeData = input.ReadInt32(); + break; + } + case 24: { + LevelData = input.ReadInt32(); + break; + } + case 32: { + MainOrSupport = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/OnceAdditionalAttributeValue.cs b/NTR.Common/protos/OnceAdditionalAttributeValue.cs new file mode 100644 index 0000000..61842f5 --- /dev/null +++ b/NTR.Common/protos/OnceAdditionalAttributeValue.cs @@ -0,0 +1,579 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OnceAdditionalAttributeValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from OnceAdditionalAttributeValue.proto + public static partial class OnceAdditionalAttributeValueReflection { + + #region Descriptor + /// File descriptor for OnceAdditionalAttributeValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OnceAdditionalAttributeValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJPbmNlQWRkaXRpb25hbEF0dHJpYnV0ZVZhbHVlLnByb3RvIvABChxPbmNl", + "QWRkaXRpb25hbEF0dHJpYnV0ZVZhbHVlEgoKAmlkGAEgASgFEhcKD2F0dHJp", + "YnV0ZV90eXBlMRgCIAEoBRIXCg9wYXJhbWV0ZXJfdHlwZTEYAyABKAUSDgoG", + "dmFsdWUxGAQgASgFEhcKD2F0dHJpYnV0ZV90eXBlMhgFIAEoBRIXCg9wYXJh", + "bWV0ZXJfdHlwZTIYBiABKAUSDgoGdmFsdWUyGAcgASgFEhcKD2F0dHJpYnV0", + "ZV90eXBlMxgIIAEoBRIXCg9wYXJhbWV0ZXJfdHlwZTMYCSABKAUSDgoGdmFs", + "dWUzGAogASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.OnceAdditionalAttributeValue), global::Nova.Client.OnceAdditionalAttributeValue.Parser, new[]{ "Id", "AttributeType1", "ParameterType1", "Value1", "AttributeType2", "ParameterType2", "Value2", "AttributeType3", "ParameterType3", "Value3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OnceAdditionalAttributeValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnceAdditionalAttributeValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.OnceAdditionalAttributeValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnceAdditionalAttributeValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnceAdditionalAttributeValue(OnceAdditionalAttributeValue other) : this() { + id_ = other.id_; + attributeType1_ = other.attributeType1_; + parameterType1_ = other.parameterType1_; + value1_ = other.value1_; + attributeType2_ = other.attributeType2_; + parameterType2_ = other.parameterType2_; + value2_ = other.value2_; + attributeType3_ = other.attributeType3_; + parameterType3_ = other.parameterType3_; + value3_ = other.value3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnceAdditionalAttributeValue Clone() { + return new OnceAdditionalAttributeValue(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "attribute_type1" field. + public const int AttributeType1FieldNumber = 2; + private int attributeType1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttributeType1 { + get { return attributeType1_; } + set { + attributeType1_ = value; + } + } + + /// Field number for the "parameter_type1" field. + public const int ParameterType1FieldNumber = 3; + private int parameterType1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ParameterType1 { + get { return parameterType1_; } + set { + parameterType1_ = value; + } + } + + /// Field number for the "value1" field. + public const int Value1FieldNumber = 4; + private int value1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value1 { + get { return value1_; } + set { + value1_ = value; + } + } + + /// Field number for the "attribute_type2" field. + public const int AttributeType2FieldNumber = 5; + private int attributeType2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttributeType2 { + get { return attributeType2_; } + set { + attributeType2_ = value; + } + } + + /// Field number for the "parameter_type2" field. + public const int ParameterType2FieldNumber = 6; + private int parameterType2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ParameterType2 { + get { return parameterType2_; } + set { + parameterType2_ = value; + } + } + + /// Field number for the "value2" field. + public const int Value2FieldNumber = 7; + private int value2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value2 { + get { return value2_; } + set { + value2_ = value; + } + } + + /// Field number for the "attribute_type3" field. + public const int AttributeType3FieldNumber = 8; + private int attributeType3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttributeType3 { + get { return attributeType3_; } + set { + attributeType3_ = value; + } + } + + /// Field number for the "parameter_type3" field. + public const int ParameterType3FieldNumber = 9; + private int parameterType3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ParameterType3 { + get { return parameterType3_; } + set { + parameterType3_ = value; + } + } + + /// Field number for the "value3" field. + public const int Value3FieldNumber = 10; + private int value3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value3 { + get { return value3_; } + set { + value3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OnceAdditionalAttributeValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OnceAdditionalAttributeValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AttributeType1 != other.AttributeType1) return false; + if (ParameterType1 != other.ParameterType1) return false; + if (Value1 != other.Value1) return false; + if (AttributeType2 != other.AttributeType2) return false; + if (ParameterType2 != other.ParameterType2) return false; + if (Value2 != other.Value2) return false; + if (AttributeType3 != other.AttributeType3) return false; + if (ParameterType3 != other.ParameterType3) return false; + if (Value3 != other.Value3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (AttributeType1 != 0) hash ^= AttributeType1.GetHashCode(); + if (ParameterType1 != 0) hash ^= ParameterType1.GetHashCode(); + if (Value1 != 0) hash ^= Value1.GetHashCode(); + if (AttributeType2 != 0) hash ^= AttributeType2.GetHashCode(); + if (ParameterType2 != 0) hash ^= ParameterType2.GetHashCode(); + if (Value2 != 0) hash ^= Value2.GetHashCode(); + if (AttributeType3 != 0) hash ^= AttributeType3.GetHashCode(); + if (ParameterType3 != 0) hash ^= ParameterType3.GetHashCode(); + if (Value3 != 0) hash ^= Value3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AttributeType1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(AttributeType1); + } + if (ParameterType1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(ParameterType1); + } + if (Value1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Value1); + } + if (AttributeType2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AttributeType2); + } + if (ParameterType2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(ParameterType2); + } + if (Value2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Value2); + } + if (AttributeType3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(AttributeType3); + } + if (ParameterType3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(ParameterType3); + } + if (Value3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Value3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AttributeType1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(AttributeType1); + } + if (ParameterType1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(ParameterType1); + } + if (Value1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(Value1); + } + if (AttributeType2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AttributeType2); + } + if (ParameterType2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(ParameterType2); + } + if (Value2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Value2); + } + if (AttributeType3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(AttributeType3); + } + if (ParameterType3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(ParameterType3); + } + if (Value3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Value3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (AttributeType1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttributeType1); + } + if (ParameterType1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParameterType1); + } + if (Value1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value1); + } + if (AttributeType2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttributeType2); + } + if (ParameterType2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParameterType2); + } + if (Value2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value2); + } + if (AttributeType3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttributeType3); + } + if (ParameterType3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParameterType3); + } + if (Value3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OnceAdditionalAttributeValue other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AttributeType1 != 0) { + AttributeType1 = other.AttributeType1; + } + if (other.ParameterType1 != 0) { + ParameterType1 = other.ParameterType1; + } + if (other.Value1 != 0) { + Value1 = other.Value1; + } + if (other.AttributeType2 != 0) { + AttributeType2 = other.AttributeType2; + } + if (other.ParameterType2 != 0) { + ParameterType2 = other.ParameterType2; + } + if (other.Value2 != 0) { + Value2 = other.Value2; + } + if (other.AttributeType3 != 0) { + AttributeType3 = other.AttributeType3; + } + if (other.ParameterType3 != 0) { + ParameterType3 = other.ParameterType3; + } + if (other.Value3 != 0) { + Value3 = other.Value3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttributeType1 = input.ReadInt32(); + break; + } + case 24: { + ParameterType1 = input.ReadInt32(); + break; + } + case 32: { + Value1 = input.ReadInt32(); + break; + } + case 40: { + AttributeType2 = input.ReadInt32(); + break; + } + case 48: { + ParameterType2 = input.ReadInt32(); + break; + } + case 56: { + Value2 = input.ReadInt32(); + break; + } + case 64: { + AttributeType3 = input.ReadInt32(); + break; + } + case 72: { + ParameterType3 = input.ReadInt32(); + break; + } + case 80: { + Value3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttributeType1 = input.ReadInt32(); + break; + } + case 24: { + ParameterType1 = input.ReadInt32(); + break; + } + case 32: { + Value1 = input.ReadInt32(); + break; + } + case 40: { + AttributeType2 = input.ReadInt32(); + break; + } + case 48: { + ParameterType2 = input.ReadInt32(); + break; + } + case 56: { + Value2 = input.ReadInt32(); + break; + } + case 64: { + AttributeType3 = input.ReadInt32(); + break; + } + case 72: { + ParameterType3 = input.ReadInt32(); + break; + } + case 80: { + Value3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/OpenFunc.cs b/NTR.Common/protos/OpenFunc.cs new file mode 100644 index 0000000..a504e89 --- /dev/null +++ b/NTR.Common/protos/OpenFunc.cs @@ -0,0 +1,540 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OpenFunc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from OpenFunc.proto + public static partial class OpenFuncReflection { + + #region Descriptor + /// File descriptor for OpenFunc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OpenFuncReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5PcGVuRnVuYy5wcm90byKuAQoIT3BlbkZ1bmMSCgoCaWQYASABKAUSDAoE", + "bmFtZRgCIAEoCRIYChBuZWVkX3dvcmxkX2NsYXNzGAMgASgFEhcKD25lZWRf", + "Y29uZGl0aW9ucxgEIAEoBRIWCg5uZWVkX3JvZ3VlbGlrZRgFIAEoBRITCgtw", + "b3Bfd2luZG93cxgGIAEoCBIMCgRkZXNjGAcgASgJEgwKBGljb24YCCABKAkS", + "DAoEdGlwcxgJIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.OpenFunc), global::Nova.Client.OpenFunc.Parser, new[]{ "Id", "Name", "NeedWorldClass", "NeedConditions", "NeedRoguelike", "PopWindows", "Desc", "Icon", "Tips" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OpenFunc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenFunc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.OpenFuncReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenFunc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenFunc(OpenFunc other) : this() { + id_ = other.id_; + name_ = other.name_; + needWorldClass_ = other.needWorldClass_; + needConditions_ = other.needConditions_; + needRoguelike_ = other.needRoguelike_; + popWindows_ = other.popWindows_; + desc_ = other.desc_; + icon_ = other.icon_; + tips_ = other.tips_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenFunc Clone() { + return new OpenFunc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "need_world_class" field. + public const int NeedWorldClassFieldNumber = 3; + private int needWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedWorldClass { + get { return needWorldClass_; } + set { + needWorldClass_ = value; + } + } + + /// Field number for the "need_conditions" field. + public const int NeedConditionsFieldNumber = 4; + private int needConditions_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedConditions { + get { return needConditions_; } + set { + needConditions_ = value; + } + } + + /// Field number for the "need_roguelike" field. + public const int NeedRoguelikeFieldNumber = 5; + private int needRoguelike_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedRoguelike { + get { return needRoguelike_; } + set { + needRoguelike_ = value; + } + } + + /// Field number for the "pop_windows" field. + public const int PopWindowsFieldNumber = 6; + private bool popWindows_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PopWindows { + get { return popWindows_; } + set { + popWindows_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 7; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tips" field. + public const int TipsFieldNumber = 9; + private string tips_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tips { + get { return tips_; } + set { + tips_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OpenFunc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OpenFunc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (NeedWorldClass != other.NeedWorldClass) return false; + if (NeedConditions != other.NeedConditions) return false; + if (NeedRoguelike != other.NeedRoguelike) return false; + if (PopWindows != other.PopWindows) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (Tips != other.Tips) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (NeedWorldClass != 0) hash ^= NeedWorldClass.GetHashCode(); + if (NeedConditions != 0) hash ^= NeedConditions.GetHashCode(); + if (NeedRoguelike != 0) hash ^= NeedRoguelike.GetHashCode(); + if (PopWindows != false) hash ^= PopWindows.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Tips.Length != 0) hash ^= Tips.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(24); + output.WriteInt32(NeedWorldClass); + } + if (NeedConditions != 0) { + output.WriteRawTag(32); + output.WriteInt32(NeedConditions); + } + if (NeedRoguelike != 0) { + output.WriteRawTag(40); + output.WriteInt32(NeedRoguelike); + } + if (PopWindows != false) { + output.WriteRawTag(48); + output.WriteBool(PopWindows); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (Tips.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Tips); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(24); + output.WriteInt32(NeedWorldClass); + } + if (NeedConditions != 0) { + output.WriteRawTag(32); + output.WriteInt32(NeedConditions); + } + if (NeedRoguelike != 0) { + output.WriteRawTag(40); + output.WriteInt32(NeedRoguelike); + } + if (PopWindows != false) { + output.WriteRawTag(48); + output.WriteBool(PopWindows); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (Tips.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Tips); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (NeedWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedWorldClass); + } + if (NeedConditions != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedConditions); + } + if (NeedRoguelike != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedRoguelike); + } + if (PopWindows != false) { + size += 1 + 1; + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Tips.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tips); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OpenFunc other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.NeedWorldClass != 0) { + NeedWorldClass = other.NeedWorldClass; + } + if (other.NeedConditions != 0) { + NeedConditions = other.NeedConditions; + } + if (other.NeedRoguelike != 0) { + NeedRoguelike = other.NeedRoguelike; + } + if (other.PopWindows != false) { + PopWindows = other.PopWindows; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Tips.Length != 0) { + Tips = other.Tips; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 32: { + NeedConditions = input.ReadInt32(); + break; + } + case 40: { + NeedRoguelike = input.ReadInt32(); + break; + } + case 48: { + PopWindows = input.ReadBool(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + Tips = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 32: { + NeedConditions = input.ReadInt32(); + break; + } + case 40: { + NeedRoguelike = input.ReadInt32(); + break; + } + case 48: { + PopWindows = input.ReadBool(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + Tips = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PeriodicQuest.cs b/NTR.Common/protos/PeriodicQuest.cs new file mode 100644 index 0000000..e8d4bf8 --- /dev/null +++ b/NTR.Common/protos/PeriodicQuest.cs @@ -0,0 +1,465 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PeriodicQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PeriodicQuest.proto + public static partial class PeriodicQuestReflection { + + #region Descriptor + /// File descriptor for PeriodicQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PeriodicQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNQZXJpb2RpY1F1ZXN0LnByb3RvIoABCg1QZXJpb2RpY1F1ZXN0EgoKAmlk", + "GAEgASgFEg4KBmJlbG9uZxgCIAEoBRIPCgdncm91cGlkGAMgASgFEg0KBXRp", + "dGxlGAQgASgJEg8KB2p1bXBfdG8YBSABKAUSDgoGcmV3YXJkGAYgASgFEhIK", + "CnJld2FyZF9xdHkYByABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PeriodicQuest), global::Nova.Client.PeriodicQuest.Parser, new[]{ "Id", "Belong", "Groupid", "Title", "JumpTo", "Reward", "RewardQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PeriodicQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PeriodicQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PeriodicQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuest(PeriodicQuest other) : this() { + id_ = other.id_; + belong_ = other.belong_; + groupid_ = other.groupid_; + title_ = other.title_; + jumpTo_ = other.jumpTo_; + reward_ = other.reward_; + rewardQty_ = other.rewardQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuest Clone() { + return new PeriodicQuest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "belong" field. + public const int BelongFieldNumber = 2; + private int belong_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Belong { + get { return belong_; } + set { + belong_ = value; + } + } + + /// Field number for the "groupid" field. + public const int GroupidFieldNumber = 3; + private int groupid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Groupid { + get { return groupid_; } + set { + groupid_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 4; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jump_to" field. + public const int JumpToFieldNumber = 5; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 6; + private int reward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward { + get { return reward_; } + set { + reward_ = value; + } + } + + /// Field number for the "reward_qty" field. + public const int RewardQtyFieldNumber = 7; + private int rewardQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty { + get { return rewardQty_; } + set { + rewardQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PeriodicQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PeriodicQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Belong != other.Belong) return false; + if (Groupid != other.Groupid) return false; + if (Title != other.Title) return false; + if (JumpTo != other.JumpTo) return false; + if (Reward != other.Reward) return false; + if (RewardQty != other.RewardQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Belong != 0) hash ^= Belong.GetHashCode(); + if (Groupid != 0) hash ^= Groupid.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Reward != 0) hash ^= Reward.GetHashCode(); + if (RewardQty != 0) hash ^= RewardQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Belong != 0) { + output.WriteRawTag(16); + output.WriteInt32(Belong); + } + if (Groupid != 0) { + output.WriteRawTag(24); + output.WriteInt32(Groupid); + } + if (Title.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(40); + output.WriteInt32(JumpTo); + } + if (Reward != 0) { + output.WriteRawTag(48); + output.WriteInt32(Reward); + } + if (RewardQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Belong != 0) { + output.WriteRawTag(16); + output.WriteInt32(Belong); + } + if (Groupid != 0) { + output.WriteRawTag(24); + output.WriteInt32(Groupid); + } + if (Title.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(40); + output.WriteInt32(JumpTo); + } + if (Reward != 0) { + output.WriteRawTag(48); + output.WriteInt32(Reward); + } + if (RewardQty != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Belong != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Belong); + } + if (Groupid != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Groupid); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Reward != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward); + } + if (RewardQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PeriodicQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Belong != 0) { + Belong = other.Belong; + } + if (other.Groupid != 0) { + Groupid = other.Groupid; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Reward != 0) { + Reward = other.Reward; + } + if (other.RewardQty != 0) { + RewardQty = other.RewardQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Belong = input.ReadInt32(); + break; + } + case 24: { + Groupid = input.ReadInt32(); + break; + } + case 34: { + Title = input.ReadString(); + break; + } + case 40: { + JumpTo = input.ReadInt32(); + break; + } + case 48: { + Reward = input.ReadInt32(); + break; + } + case 56: { + RewardQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Belong = input.ReadInt32(); + break; + } + case 24: { + Groupid = input.ReadInt32(); + break; + } + case 34: { + Title = input.ReadString(); + break; + } + case 40: { + JumpTo = input.ReadInt32(); + break; + } + case 48: { + Reward = input.ReadInt32(); + break; + } + case 56: { + RewardQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PeriodicQuestControl.cs b/NTR.Common/protos/PeriodicQuestControl.cs new file mode 100644 index 0000000..ff8975a --- /dev/null +++ b/NTR.Common/protos/PeriodicQuestControl.cs @@ -0,0 +1,617 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PeriodicQuestControl.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PeriodicQuestControl.proto + public static partial class PeriodicQuestControlReflection { + + #region Descriptor + /// File descriptor for PeriodicQuestControl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PeriodicQuestControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQZXJpb2RpY1F1ZXN0Q29udHJvbC5wcm90byKHAgoUUGVyaW9kaWNRdWVz", + "dENvbnRyb2wSCgoCaWQYASABKAUSFQoNZmluYWxfcmV3YXJkMRgCIAEoBRIZ", + "ChFmaW5hbF9yZXdhcmRfcXR5MRgDIAEoBRIVCg1maW5hbF9yZXdhcmQyGAQg", + "ASgFEhkKEWZpbmFsX3Jld2FyZF9xdHkyGAUgASgFEhUKDWZpbmFsX3Jld2Fy", + "ZDMYBiABKAUSGQoRZmluYWxfcmV3YXJkX3F0eTMYByABKAUSEAoIZGVzX3Rl", + "eHQYCCABKAkSEgoKdV9pX2Fzc2V0cxgJIAEoCRIRCgljdHJsX25hbWUYCiAB", + "KAkSFAoMcHJldmlld190eXBlGAsgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PeriodicQuestControl), global::Nova.Client.PeriodicQuestControl.Parser, new[]{ "Id", "FinalReward1", "FinalRewardQty1", "FinalReward2", "FinalRewardQty2", "FinalReward3", "FinalRewardQty3", "DesText", "UIAssets", "CtrlName", "PreviewType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PeriodicQuestControl : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PeriodicQuestControl()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PeriodicQuestControlReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuestControl() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuestControl(PeriodicQuestControl other) : this() { + id_ = other.id_; + finalReward1_ = other.finalReward1_; + finalRewardQty1_ = other.finalRewardQty1_; + finalReward2_ = other.finalReward2_; + finalRewardQty2_ = other.finalRewardQty2_; + finalReward3_ = other.finalReward3_; + finalRewardQty3_ = other.finalRewardQty3_; + desText_ = other.desText_; + uIAssets_ = other.uIAssets_; + ctrlName_ = other.ctrlName_; + previewType_ = other.previewType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuestControl Clone() { + return new PeriodicQuestControl(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "final_reward1" field. + public const int FinalReward1FieldNumber = 2; + private int finalReward1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalReward1 { + get { return finalReward1_; } + set { + finalReward1_ = value; + } + } + + /// Field number for the "final_reward_qty1" field. + public const int FinalRewardQty1FieldNumber = 3; + private int finalRewardQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalRewardQty1 { + get { return finalRewardQty1_; } + set { + finalRewardQty1_ = value; + } + } + + /// Field number for the "final_reward2" field. + public const int FinalReward2FieldNumber = 4; + private int finalReward2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalReward2 { + get { return finalReward2_; } + set { + finalReward2_ = value; + } + } + + /// Field number for the "final_reward_qty2" field. + public const int FinalRewardQty2FieldNumber = 5; + private int finalRewardQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalRewardQty2 { + get { return finalRewardQty2_; } + set { + finalRewardQty2_ = value; + } + } + + /// Field number for the "final_reward3" field. + public const int FinalReward3FieldNumber = 6; + private int finalReward3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalReward3 { + get { return finalReward3_; } + set { + finalReward3_ = value; + } + } + + /// Field number for the "final_reward_qty3" field. + public const int FinalRewardQty3FieldNumber = 7; + private int finalRewardQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalRewardQty3 { + get { return finalRewardQty3_; } + set { + finalRewardQty3_ = value; + } + } + + /// Field number for the "des_text" field. + public const int DesTextFieldNumber = 8; + private string desText_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DesText { + get { return desText_; } + set { + desText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "u_i_assets" field. + public const int UIAssetsFieldNumber = 9; + private string uIAssets_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UIAssets { + get { return uIAssets_; } + set { + uIAssets_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ctrl_name" field. + public const int CtrlNameFieldNumber = 10; + private string ctrlName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CtrlName { + get { return ctrlName_; } + set { + ctrlName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "preview_type" field. + public const int PreviewTypeFieldNumber = 11; + private int previewType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewType { + get { return previewType_; } + set { + previewType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PeriodicQuestControl); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PeriodicQuestControl other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (FinalReward1 != other.FinalReward1) return false; + if (FinalRewardQty1 != other.FinalRewardQty1) return false; + if (FinalReward2 != other.FinalReward2) return false; + if (FinalRewardQty2 != other.FinalRewardQty2) return false; + if (FinalReward3 != other.FinalReward3) return false; + if (FinalRewardQty3 != other.FinalRewardQty3) return false; + if (DesText != other.DesText) return false; + if (UIAssets != other.UIAssets) return false; + if (CtrlName != other.CtrlName) return false; + if (PreviewType != other.PreviewType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (FinalReward1 != 0) hash ^= FinalReward1.GetHashCode(); + if (FinalRewardQty1 != 0) hash ^= FinalRewardQty1.GetHashCode(); + if (FinalReward2 != 0) hash ^= FinalReward2.GetHashCode(); + if (FinalRewardQty2 != 0) hash ^= FinalRewardQty2.GetHashCode(); + if (FinalReward3 != 0) hash ^= FinalReward3.GetHashCode(); + if (FinalRewardQty3 != 0) hash ^= FinalRewardQty3.GetHashCode(); + if (DesText.Length != 0) hash ^= DesText.GetHashCode(); + if (UIAssets.Length != 0) hash ^= UIAssets.GetHashCode(); + if (CtrlName.Length != 0) hash ^= CtrlName.GetHashCode(); + if (PreviewType != 0) hash ^= PreviewType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (FinalReward1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(FinalReward1); + } + if (FinalRewardQty1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(FinalRewardQty1); + } + if (FinalReward2 != 0) { + output.WriteRawTag(32); + output.WriteInt32(FinalReward2); + } + if (FinalRewardQty2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(FinalRewardQty2); + } + if (FinalReward3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(FinalReward3); + } + if (FinalRewardQty3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(FinalRewardQty3); + } + if (DesText.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DesText); + } + if (UIAssets.Length != 0) { + output.WriteRawTag(74); + output.WriteString(UIAssets); + } + if (CtrlName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CtrlName); + } + if (PreviewType != 0) { + output.WriteRawTag(88); + output.WriteInt32(PreviewType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (FinalReward1 != 0) { + output.WriteRawTag(16); + output.WriteInt32(FinalReward1); + } + if (FinalRewardQty1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(FinalRewardQty1); + } + if (FinalReward2 != 0) { + output.WriteRawTag(32); + output.WriteInt32(FinalReward2); + } + if (FinalRewardQty2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(FinalRewardQty2); + } + if (FinalReward3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(FinalReward3); + } + if (FinalRewardQty3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(FinalRewardQty3); + } + if (DesText.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DesText); + } + if (UIAssets.Length != 0) { + output.WriteRawTag(74); + output.WriteString(UIAssets); + } + if (CtrlName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CtrlName); + } + if (PreviewType != 0) { + output.WriteRawTag(88); + output.WriteInt32(PreviewType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (FinalReward1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalReward1); + } + if (FinalRewardQty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalRewardQty1); + } + if (FinalReward2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalReward2); + } + if (FinalRewardQty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalRewardQty2); + } + if (FinalReward3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalReward3); + } + if (FinalRewardQty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalRewardQty3); + } + if (DesText.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DesText); + } + if (UIAssets.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UIAssets); + } + if (CtrlName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CtrlName); + } + if (PreviewType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreviewType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PeriodicQuestControl other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.FinalReward1 != 0) { + FinalReward1 = other.FinalReward1; + } + if (other.FinalRewardQty1 != 0) { + FinalRewardQty1 = other.FinalRewardQty1; + } + if (other.FinalReward2 != 0) { + FinalReward2 = other.FinalReward2; + } + if (other.FinalRewardQty2 != 0) { + FinalRewardQty2 = other.FinalRewardQty2; + } + if (other.FinalReward3 != 0) { + FinalReward3 = other.FinalReward3; + } + if (other.FinalRewardQty3 != 0) { + FinalRewardQty3 = other.FinalRewardQty3; + } + if (other.DesText.Length != 0) { + DesText = other.DesText; + } + if (other.UIAssets.Length != 0) { + UIAssets = other.UIAssets; + } + if (other.CtrlName.Length != 0) { + CtrlName = other.CtrlName; + } + if (other.PreviewType != 0) { + PreviewType = other.PreviewType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + FinalReward1 = input.ReadInt32(); + break; + } + case 24: { + FinalRewardQty1 = input.ReadInt32(); + break; + } + case 32: { + FinalReward2 = input.ReadInt32(); + break; + } + case 40: { + FinalRewardQty2 = input.ReadInt32(); + break; + } + case 48: { + FinalReward3 = input.ReadInt32(); + break; + } + case 56: { + FinalRewardQty3 = input.ReadInt32(); + break; + } + case 66: { + DesText = input.ReadString(); + break; + } + case 74: { + UIAssets = input.ReadString(); + break; + } + case 82: { + CtrlName = input.ReadString(); + break; + } + case 88: { + PreviewType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + FinalReward1 = input.ReadInt32(); + break; + } + case 24: { + FinalRewardQty1 = input.ReadInt32(); + break; + } + case 32: { + FinalReward2 = input.ReadInt32(); + break; + } + case 40: { + FinalRewardQty2 = input.ReadInt32(); + break; + } + case 48: { + FinalReward3 = input.ReadInt32(); + break; + } + case 56: { + FinalRewardQty3 = input.ReadInt32(); + break; + } + case 66: { + DesText = input.ReadString(); + break; + } + case 74: { + UIAssets = input.ReadString(); + break; + } + case 82: { + CtrlName = input.ReadString(); + break; + } + case 88: { + PreviewType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PeriodicQuestGroup.cs b/NTR.Common/protos/PeriodicQuestGroup.cs new file mode 100644 index 0000000..4c95142 --- /dev/null +++ b/NTR.Common/protos/PeriodicQuestGroup.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PeriodicQuestGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PeriodicQuestGroup.proto + public static partial class PeriodicQuestGroupReflection { + + #region Descriptor + /// File descriptor for PeriodicQuestGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PeriodicQuestGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhQZXJpb2RpY1F1ZXN0R3JvdXAucHJvdG8iSwoSUGVyaW9kaWNRdWVzdEdy", + "b3VwEg4KBmJlbG9uZxgBIAEoBRIQCghncm91cF9pZBgCIAEoBRITCgt1bmxv", + "Y2tfdGltZRgDIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PeriodicQuestGroup), global::Nova.Client.PeriodicQuestGroup.Parser, new[]{ "Belong", "GroupId", "UnlockTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PeriodicQuestGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PeriodicQuestGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PeriodicQuestGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuestGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuestGroup(PeriodicQuestGroup other) : this() { + belong_ = other.belong_; + groupId_ = other.groupId_; + unlockTime_ = other.unlockTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeriodicQuestGroup Clone() { + return new PeriodicQuestGroup(this); + } + + /// Field number for the "belong" field. + public const int BelongFieldNumber = 1; + private int belong_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Belong { + get { return belong_; } + set { + belong_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "unlock_time" field. + public const int UnlockTimeFieldNumber = 3; + private int unlockTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockTime { + get { return unlockTime_; } + set { + unlockTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PeriodicQuestGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PeriodicQuestGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Belong != other.Belong) return false; + if (GroupId != other.GroupId) return false; + if (UnlockTime != other.UnlockTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Belong != 0) hash ^= Belong.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (UnlockTime != 0) hash ^= UnlockTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Belong != 0) { + output.WriteRawTag(8); + output.WriteInt32(Belong); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (UnlockTime != 0) { + output.WriteRawTag(24); + output.WriteInt32(UnlockTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Belong != 0) { + output.WriteRawTag(8); + output.WriteInt32(Belong); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (UnlockTime != 0) { + output.WriteRawTag(24); + output.WriteInt32(UnlockTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Belong != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Belong); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (UnlockTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PeriodicQuestGroup other) { + if (other == null) { + return; + } + if (other.Belong != 0) { + Belong = other.Belong; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.UnlockTime != 0) { + UnlockTime = other.UnlockTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Belong = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + UnlockTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Belong = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + UnlockTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Perk.cs b/NTR.Common/protos/Perk.cs new file mode 100644 index 0000000..1015ecb --- /dev/null +++ b/NTR.Common/protos/Perk.cs @@ -0,0 +1,1178 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Perk.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Perk.proto + public static partial class PerkReflection { + + #region Descriptor + /// File descriptor for Perk.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PerkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpQZXJrLnByb3RvIqIECgRQZXJrEgoKAmlkGAEgASgFEhEKCW1heF9sZXZl", + "bBgCIAEoBRIYChBhZGRpdGlvbmFsX2xldmVsGAMgASgIEg0KBWVfZV90GAQg", + "ASgFEhYKDnNjb3JlX2dyb3VwX2lkGAUgASgFEhYKDnN0cmVuZ3RoX3Njb3Jl", + "GAYgAygFEhEKCXBlcmtfdHlwZRgHIAEoBRIPCgdjaGFyX2lkGAggASgFEhYK", + "DmNoYXJfcGVya190eXBlGAkgASgFEg0KBXRoZW1lGAogASgFEhQKDGdhbWVf", + "Ym9va19pZBgLIAEoBRIcChRvcGVyYXRpbmdfZmxvb3JfdHlwZRgMIAMoBRIY", + "ChBvcGVyYXRpbmdfbnVtYmVyGA0gASgFEg0KBXByaWNlGA4gASgFEgwKBHNs", + "b3QYDyABKAUSDAoEdGFncxgQIAMoBRIUCgxwcmVfcGVya19pZHMYESADKAUS", + "FAoMcHJlX3RhZ19wa2dzGBIgASgJEhIKCm5lZWRfZmxvb3IYEyABKAUSFwoP", + "ZWZmZWN0X2dyb3VwX2lkGBQgASgFEhQKDGlzX2VmZmVjdGl2ZRgVIAEoCBIR", + "CglwZXJrX3RhZzEYFiABKAkSEQoJcGVya190YWcyGBcgASgJEhEKCXBlcmtf", + "dGFnMxgYIAEoCRIRCglwZXJrX3RhZzQYGSABKAkSEQoJbG9nb19pY29uGBog", + "ASgJEhAKCHNsb3RfdGFnGBsgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Perk), global::Nova.Client.Perk.Parser, new[]{ "Id", "MaxLevel", "AdditionalLevel", "EET", "ScoreGroupId", "StrengthScore", "PerkType", "CharId", "CharPerkType", "Theme", "GameBookId", "OperatingFloorType", "OperatingNumber", "Price", "Slot", "Tags", "PrePerkIds", "PreTagPkgs", "NeedFloor", "EffectGroupId", "IsEffective", "PerkTag1", "PerkTag2", "PerkTag3", "PerkTag4", "LogoIcon", "SlotTag" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Perk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Perk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PerkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Perk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Perk(Perk other) : this() { + id_ = other.id_; + maxLevel_ = other.maxLevel_; + additionalLevel_ = other.additionalLevel_; + eET_ = other.eET_; + scoreGroupId_ = other.scoreGroupId_; + strengthScore_ = other.strengthScore_.Clone(); + perkType_ = other.perkType_; + charId_ = other.charId_; + charPerkType_ = other.charPerkType_; + theme_ = other.theme_; + gameBookId_ = other.gameBookId_; + operatingFloorType_ = other.operatingFloorType_.Clone(); + operatingNumber_ = other.operatingNumber_; + price_ = other.price_; + slot_ = other.slot_; + tags_ = other.tags_.Clone(); + prePerkIds_ = other.prePerkIds_.Clone(); + preTagPkgs_ = other.preTagPkgs_; + needFloor_ = other.needFloor_; + effectGroupId_ = other.effectGroupId_; + isEffective_ = other.isEffective_; + perkTag1_ = other.perkTag1_; + perkTag2_ = other.perkTag2_; + perkTag3_ = other.perkTag3_; + perkTag4_ = other.perkTag4_; + logoIcon_ = other.logoIcon_; + slotTag_ = other.slotTag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Perk Clone() { + return new Perk(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "max_level" field. + public const int MaxLevelFieldNumber = 2; + private int maxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxLevel { + get { return maxLevel_; } + set { + maxLevel_ = value; + } + } + + /// Field number for the "additional_level" field. + public const int AdditionalLevelFieldNumber = 3; + private bool additionalLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AdditionalLevel { + get { return additionalLevel_; } + set { + additionalLevel_ = value; + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 4; + private int eET_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EET { + get { return eET_; } + set { + eET_ = value; + } + } + + /// Field number for the "score_group_id" field. + public const int ScoreGroupIdFieldNumber = 5; + private int scoreGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ScoreGroupId { + get { return scoreGroupId_; } + set { + scoreGroupId_ = value; + } + } + + /// Field number for the "strength_score" field. + public const int StrengthScoreFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_strengthScore_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField strengthScore_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StrengthScore { + get { return strengthScore_; } + } + + /// Field number for the "perk_type" field. + public const int PerkTypeFieldNumber = 7; + private int perkType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerkType { + get { return perkType_; } + set { + perkType_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 8; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "char_perk_type" field. + public const int CharPerkTypeFieldNumber = 9; + private int charPerkType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharPerkType { + get { return charPerkType_; } + set { + charPerkType_ = value; + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 10; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "game_book_id" field. + public const int GameBookIdFieldNumber = 11; + private int gameBookId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GameBookId { + get { return gameBookId_; } + set { + gameBookId_ = value; + } + } + + /// Field number for the "operating_floor_type" field. + public const int OperatingFloorTypeFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_operatingFloorType_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField operatingFloorType_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OperatingFloorType { + get { return operatingFloorType_; } + } + + /// Field number for the "operating_number" field. + public const int OperatingNumberFieldNumber = 13; + private int operatingNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OperatingNumber { + get { return operatingNumber_; } + set { + operatingNumber_ = value; + } + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 14; + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { return price_; } + set { + price_ = value; + } + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 15; + private int slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 16; + private static readonly pb::FieldCodec _repeated_tags_codec + = pb::FieldCodec.ForInt32(130); + private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tags { + get { return tags_; } + } + + /// Field number for the "pre_perk_ids" field. + public const int PrePerkIdsFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_prePerkIds_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField prePerkIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrePerkIds { + get { return prePerkIds_; } + } + + /// Field number for the "pre_tag_pkgs" field. + public const int PreTagPkgsFieldNumber = 18; + private string preTagPkgs_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PreTagPkgs { + get { return preTagPkgs_; } + set { + preTagPkgs_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "need_floor" field. + public const int NeedFloorFieldNumber = 19; + private int needFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedFloor { + get { return needFloor_; } + set { + needFloor_ = value; + } + } + + /// Field number for the "effect_group_id" field. + public const int EffectGroupIdFieldNumber = 20; + private int effectGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectGroupId { + get { return effectGroupId_; } + set { + effectGroupId_ = value; + } + } + + /// Field number for the "is_effective" field. + public const int IsEffectiveFieldNumber = 21; + private bool isEffective_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsEffective { + get { return isEffective_; } + set { + isEffective_ = value; + } + } + + /// Field number for the "perk_tag1" field. + public const int PerkTag1FieldNumber = 22; + private string perkTag1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PerkTag1 { + get { return perkTag1_; } + set { + perkTag1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "perk_tag2" field. + public const int PerkTag2FieldNumber = 23; + private string perkTag2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PerkTag2 { + get { return perkTag2_; } + set { + perkTag2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "perk_tag3" field. + public const int PerkTag3FieldNumber = 24; + private string perkTag3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PerkTag3 { + get { return perkTag3_; } + set { + perkTag3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "perk_tag4" field. + public const int PerkTag4FieldNumber = 25; + private string perkTag4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PerkTag4 { + get { return perkTag4_; } + set { + perkTag4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "logo_icon" field. + public const int LogoIconFieldNumber = 26; + private string logoIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LogoIcon { + get { return logoIcon_; } + set { + logoIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "slot_tag" field. + public const int SlotTagFieldNumber = 27; + private string slotTag_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SlotTag { + get { return slotTag_; } + set { + slotTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Perk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Perk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MaxLevel != other.MaxLevel) return false; + if (AdditionalLevel != other.AdditionalLevel) return false; + if (EET != other.EET) return false; + if (ScoreGroupId != other.ScoreGroupId) return false; + if(!strengthScore_.Equals(other.strengthScore_)) return false; + if (PerkType != other.PerkType) return false; + if (CharId != other.CharId) return false; + if (CharPerkType != other.CharPerkType) return false; + if (Theme != other.Theme) return false; + if (GameBookId != other.GameBookId) return false; + if(!operatingFloorType_.Equals(other.operatingFloorType_)) return false; + if (OperatingNumber != other.OperatingNumber) return false; + if (Price != other.Price) return false; + if (Slot != other.Slot) return false; + if(!tags_.Equals(other.tags_)) return false; + if(!prePerkIds_.Equals(other.prePerkIds_)) return false; + if (PreTagPkgs != other.PreTagPkgs) return false; + if (NeedFloor != other.NeedFloor) return false; + if (EffectGroupId != other.EffectGroupId) return false; + if (IsEffective != other.IsEffective) return false; + if (PerkTag1 != other.PerkTag1) return false; + if (PerkTag2 != other.PerkTag2) return false; + if (PerkTag3 != other.PerkTag3) return false; + if (PerkTag4 != other.PerkTag4) return false; + if (LogoIcon != other.LogoIcon) return false; + if (SlotTag != other.SlotTag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MaxLevel != 0) hash ^= MaxLevel.GetHashCode(); + if (AdditionalLevel != false) hash ^= AdditionalLevel.GetHashCode(); + if (EET != 0) hash ^= EET.GetHashCode(); + if (ScoreGroupId != 0) hash ^= ScoreGroupId.GetHashCode(); + hash ^= strengthScore_.GetHashCode(); + if (PerkType != 0) hash ^= PerkType.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (CharPerkType != 0) hash ^= CharPerkType.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (GameBookId != 0) hash ^= GameBookId.GetHashCode(); + hash ^= operatingFloorType_.GetHashCode(); + if (OperatingNumber != 0) hash ^= OperatingNumber.GetHashCode(); + if (Price != 0) hash ^= Price.GetHashCode(); + if (Slot != 0) hash ^= Slot.GetHashCode(); + hash ^= tags_.GetHashCode(); + hash ^= prePerkIds_.GetHashCode(); + if (PreTagPkgs.Length != 0) hash ^= PreTagPkgs.GetHashCode(); + if (NeedFloor != 0) hash ^= NeedFloor.GetHashCode(); + if (EffectGroupId != 0) hash ^= EffectGroupId.GetHashCode(); + if (IsEffective != false) hash ^= IsEffective.GetHashCode(); + if (PerkTag1.Length != 0) hash ^= PerkTag1.GetHashCode(); + if (PerkTag2.Length != 0) hash ^= PerkTag2.GetHashCode(); + if (PerkTag3.Length != 0) hash ^= PerkTag3.GetHashCode(); + if (PerkTag4.Length != 0) hash ^= PerkTag4.GetHashCode(); + if (LogoIcon.Length != 0) hash ^= LogoIcon.GetHashCode(); + if (SlotTag.Length != 0) hash ^= SlotTag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MaxLevel != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxLevel); + } + if (AdditionalLevel != false) { + output.WriteRawTag(24); + output.WriteBool(AdditionalLevel); + } + if (EET != 0) { + output.WriteRawTag(32); + output.WriteInt32(EET); + } + if (ScoreGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ScoreGroupId); + } + strengthScore_.WriteTo(output, _repeated_strengthScore_codec); + if (PerkType != 0) { + output.WriteRawTag(56); + output.WriteInt32(PerkType); + } + if (CharId != 0) { + output.WriteRawTag(64); + output.WriteInt32(CharId); + } + if (CharPerkType != 0) { + output.WriteRawTag(72); + output.WriteInt32(CharPerkType); + } + if (Theme != 0) { + output.WriteRawTag(80); + output.WriteInt32(Theme); + } + if (GameBookId != 0) { + output.WriteRawTag(88); + output.WriteInt32(GameBookId); + } + operatingFloorType_.WriteTo(output, _repeated_operatingFloorType_codec); + if (OperatingNumber != 0) { + output.WriteRawTag(104); + output.WriteInt32(OperatingNumber); + } + if (Price != 0) { + output.WriteRawTag(112); + output.WriteInt32(Price); + } + if (Slot != 0) { + output.WriteRawTag(120); + output.WriteInt32(Slot); + } + tags_.WriteTo(output, _repeated_tags_codec); + prePerkIds_.WriteTo(output, _repeated_prePerkIds_codec); + if (PreTagPkgs.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(PreTagPkgs); + } + if (NeedFloor != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(NeedFloor); + } + if (EffectGroupId != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(EffectGroupId); + } + if (IsEffective != false) { + output.WriteRawTag(168, 1); + output.WriteBool(IsEffective); + } + if (PerkTag1.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(PerkTag1); + } + if (PerkTag2.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(PerkTag2); + } + if (PerkTag3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(PerkTag3); + } + if (PerkTag4.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(PerkTag4); + } + if (LogoIcon.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(LogoIcon); + } + if (SlotTag.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(SlotTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MaxLevel != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxLevel); + } + if (AdditionalLevel != false) { + output.WriteRawTag(24); + output.WriteBool(AdditionalLevel); + } + if (EET != 0) { + output.WriteRawTag(32); + output.WriteInt32(EET); + } + if (ScoreGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ScoreGroupId); + } + strengthScore_.WriteTo(ref output, _repeated_strengthScore_codec); + if (PerkType != 0) { + output.WriteRawTag(56); + output.WriteInt32(PerkType); + } + if (CharId != 0) { + output.WriteRawTag(64); + output.WriteInt32(CharId); + } + if (CharPerkType != 0) { + output.WriteRawTag(72); + output.WriteInt32(CharPerkType); + } + if (Theme != 0) { + output.WriteRawTag(80); + output.WriteInt32(Theme); + } + if (GameBookId != 0) { + output.WriteRawTag(88); + output.WriteInt32(GameBookId); + } + operatingFloorType_.WriteTo(ref output, _repeated_operatingFloorType_codec); + if (OperatingNumber != 0) { + output.WriteRawTag(104); + output.WriteInt32(OperatingNumber); + } + if (Price != 0) { + output.WriteRawTag(112); + output.WriteInt32(Price); + } + if (Slot != 0) { + output.WriteRawTag(120); + output.WriteInt32(Slot); + } + tags_.WriteTo(ref output, _repeated_tags_codec); + prePerkIds_.WriteTo(ref output, _repeated_prePerkIds_codec); + if (PreTagPkgs.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(PreTagPkgs); + } + if (NeedFloor != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(NeedFloor); + } + if (EffectGroupId != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(EffectGroupId); + } + if (IsEffective != false) { + output.WriteRawTag(168, 1); + output.WriteBool(IsEffective); + } + if (PerkTag1.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(PerkTag1); + } + if (PerkTag2.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(PerkTag2); + } + if (PerkTag3.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(PerkTag3); + } + if (PerkTag4.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(PerkTag4); + } + if (LogoIcon.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(LogoIcon); + } + if (SlotTag.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(SlotTag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MaxLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxLevel); + } + if (AdditionalLevel != false) { + size += 1 + 1; + } + if (EET != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EET); + } + if (ScoreGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScoreGroupId); + } + size += strengthScore_.CalculateSize(_repeated_strengthScore_codec); + if (PerkType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PerkType); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (CharPerkType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharPerkType); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (GameBookId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameBookId); + } + size += operatingFloorType_.CalculateSize(_repeated_operatingFloorType_codec); + if (OperatingNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OperatingNumber); + } + if (Price != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Slot); + } + size += tags_.CalculateSize(_repeated_tags_codec); + size += prePerkIds_.CalculateSize(_repeated_prePerkIds_codec); + if (PreTagPkgs.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PreTagPkgs); + } + if (NeedFloor != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NeedFloor); + } + if (EffectGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EffectGroupId); + } + if (IsEffective != false) { + size += 2 + 1; + } + if (PerkTag1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PerkTag1); + } + if (PerkTag2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PerkTag2); + } + if (PerkTag3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PerkTag3); + } + if (PerkTag4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PerkTag4); + } + if (LogoIcon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(LogoIcon); + } + if (SlotTag.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SlotTag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Perk other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MaxLevel != 0) { + MaxLevel = other.MaxLevel; + } + if (other.AdditionalLevel != false) { + AdditionalLevel = other.AdditionalLevel; + } + if (other.EET != 0) { + EET = other.EET; + } + if (other.ScoreGroupId != 0) { + ScoreGroupId = other.ScoreGroupId; + } + strengthScore_.Add(other.strengthScore_); + if (other.PerkType != 0) { + PerkType = other.PerkType; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.CharPerkType != 0) { + CharPerkType = other.CharPerkType; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.GameBookId != 0) { + GameBookId = other.GameBookId; + } + operatingFloorType_.Add(other.operatingFloorType_); + if (other.OperatingNumber != 0) { + OperatingNumber = other.OperatingNumber; + } + if (other.Price != 0) { + Price = other.Price; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + tags_.Add(other.tags_); + prePerkIds_.Add(other.prePerkIds_); + if (other.PreTagPkgs.Length != 0) { + PreTagPkgs = other.PreTagPkgs; + } + if (other.NeedFloor != 0) { + NeedFloor = other.NeedFloor; + } + if (other.EffectGroupId != 0) { + EffectGroupId = other.EffectGroupId; + } + if (other.IsEffective != false) { + IsEffective = other.IsEffective; + } + if (other.PerkTag1.Length != 0) { + PerkTag1 = other.PerkTag1; + } + if (other.PerkTag2.Length != 0) { + PerkTag2 = other.PerkTag2; + } + if (other.PerkTag3.Length != 0) { + PerkTag3 = other.PerkTag3; + } + if (other.PerkTag4.Length != 0) { + PerkTag4 = other.PerkTag4; + } + if (other.LogoIcon.Length != 0) { + LogoIcon = other.LogoIcon; + } + if (other.SlotTag.Length != 0) { + SlotTag = other.SlotTag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MaxLevel = input.ReadInt32(); + break; + } + case 24: { + AdditionalLevel = input.ReadBool(); + break; + } + case 32: { + EET = input.ReadInt32(); + break; + } + case 40: { + ScoreGroupId = input.ReadInt32(); + break; + } + case 50: + case 48: { + strengthScore_.AddEntriesFrom(input, _repeated_strengthScore_codec); + break; + } + case 56: { + PerkType = input.ReadInt32(); + break; + } + case 64: { + CharId = input.ReadInt32(); + break; + } + case 72: { + CharPerkType = input.ReadInt32(); + break; + } + case 80: { + Theme = input.ReadInt32(); + break; + } + case 88: { + GameBookId = input.ReadInt32(); + break; + } + case 98: + case 96: { + operatingFloorType_.AddEntriesFrom(input, _repeated_operatingFloorType_codec); + break; + } + case 104: { + OperatingNumber = input.ReadInt32(); + break; + } + case 112: { + Price = input.ReadInt32(); + break; + } + case 120: { + Slot = input.ReadInt32(); + break; + } + case 130: + case 128: { + tags_.AddEntriesFrom(input, _repeated_tags_codec); + break; + } + case 138: + case 136: { + prePerkIds_.AddEntriesFrom(input, _repeated_prePerkIds_codec); + break; + } + case 146: { + PreTagPkgs = input.ReadString(); + break; + } + case 152: { + NeedFloor = input.ReadInt32(); + break; + } + case 160: { + EffectGroupId = input.ReadInt32(); + break; + } + case 168: { + IsEffective = input.ReadBool(); + break; + } + case 178: { + PerkTag1 = input.ReadString(); + break; + } + case 186: { + PerkTag2 = input.ReadString(); + break; + } + case 194: { + PerkTag3 = input.ReadString(); + break; + } + case 202: { + PerkTag4 = input.ReadString(); + break; + } + case 210: { + LogoIcon = input.ReadString(); + break; + } + case 218: { + SlotTag = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MaxLevel = input.ReadInt32(); + break; + } + case 24: { + AdditionalLevel = input.ReadBool(); + break; + } + case 32: { + EET = input.ReadInt32(); + break; + } + case 40: { + ScoreGroupId = input.ReadInt32(); + break; + } + case 50: + case 48: { + strengthScore_.AddEntriesFrom(ref input, _repeated_strengthScore_codec); + break; + } + case 56: { + PerkType = input.ReadInt32(); + break; + } + case 64: { + CharId = input.ReadInt32(); + break; + } + case 72: { + CharPerkType = input.ReadInt32(); + break; + } + case 80: { + Theme = input.ReadInt32(); + break; + } + case 88: { + GameBookId = input.ReadInt32(); + break; + } + case 98: + case 96: { + operatingFloorType_.AddEntriesFrom(ref input, _repeated_operatingFloorType_codec); + break; + } + case 104: { + OperatingNumber = input.ReadInt32(); + break; + } + case 112: { + Price = input.ReadInt32(); + break; + } + case 120: { + Slot = input.ReadInt32(); + break; + } + case 130: + case 128: { + tags_.AddEntriesFrom(ref input, _repeated_tags_codec); + break; + } + case 138: + case 136: { + prePerkIds_.AddEntriesFrom(ref input, _repeated_prePerkIds_codec); + break; + } + case 146: { + PreTagPkgs = input.ReadString(); + break; + } + case 152: { + NeedFloor = input.ReadInt32(); + break; + } + case 160: { + EffectGroupId = input.ReadInt32(); + break; + } + case 168: { + IsEffective = input.ReadBool(); + break; + } + case 178: { + PerkTag1 = input.ReadString(); + break; + } + case 186: { + PerkTag2 = input.ReadString(); + break; + } + case 194: { + PerkTag3 = input.ReadString(); + break; + } + case 202: { + PerkTag4 = input.ReadString(); + break; + } + case 210: { + LogoIcon = input.ReadString(); + break; + } + case 218: { + SlotTag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PerkPassiveSkill.cs b/NTR.Common/protos/PerkPassiveSkill.cs new file mode 100644 index 0000000..34b4e66 --- /dev/null +++ b/NTR.Common/protos/PerkPassiveSkill.cs @@ -0,0 +1,839 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PerkPassiveSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PerkPassiveSkill.proto + public static partial class PerkPassiveSkillReflection { + + #region Descriptor + /// File descriptor for PerkPassiveSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PerkPassiveSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZQZXJrUGFzc2l2ZVNraWxsLnByb3RvIq4CChBQZXJrUGFzc2l2ZVNraWxs", + "EgoKAmlkGAEgASgFEhEKCXNoYXJlX2NfZBgCIAEoCBITCgtzaGFyZV90aW1l", + "cxgDIAEoCBISCgplZmZlY3RfaWQxGAQgASgFEhIKCmVmZmVjdF9pZDIYBSAB", + "KAUSEgoKZWZmZWN0X2lkMxgGIAEoBRISCgplZmZlY3RfaWQ0GAcgASgFEgwK", + "BG5hbWUYCCABKAkSDAoEZGVzYxgJIAEoCRINCgVkZXNjMRgKIAEoCRIOCgZw", + "YXJhbTEYCyABKAkSDQoFZGVzYzIYDCABKAkSDgoGcGFyYW0yGA0gASgJEg0K", + "BWRlc2MzGA4gASgJEg4KBnBhcmFtMxgPIAEoCRINCgVkZXNjNBgQIAEoCRIO", + "CgZwYXJhbTQYESABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PerkPassiveSkill), global::Nova.Client.PerkPassiveSkill.Parser, new[]{ "Id", "ShareCD", "ShareTimes", "EffectId1", "EffectId2", "EffectId3", "EffectId4", "Name", "Desc", "Desc1", "Param1", "Desc2", "Param2", "Desc3", "Param3", "Desc4", "Param4" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PerkPassiveSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerkPassiveSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PerkPassiveSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerkPassiveSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerkPassiveSkill(PerkPassiveSkill other) : this() { + id_ = other.id_; + shareCD_ = other.shareCD_; + shareTimes_ = other.shareTimes_; + effectId1_ = other.effectId1_; + effectId2_ = other.effectId2_; + effectId3_ = other.effectId3_; + effectId4_ = other.effectId4_; + name_ = other.name_; + desc_ = other.desc_; + desc1_ = other.desc1_; + param1_ = other.param1_; + desc2_ = other.desc2_; + param2_ = other.param2_; + desc3_ = other.desc3_; + param3_ = other.param3_; + desc4_ = other.desc4_; + param4_ = other.param4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerkPassiveSkill Clone() { + return new PerkPassiveSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "share_c_d" field. + public const int ShareCDFieldNumber = 2; + private bool shareCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShareCD { + get { return shareCD_; } + set { + shareCD_ = value; + } + } + + /// Field number for the "share_times" field. + public const int ShareTimesFieldNumber = 3; + private bool shareTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShareTimes { + get { return shareTimes_; } + set { + shareTimes_ = value; + } + } + + /// Field number for the "effect_id1" field. + public const int EffectId1FieldNumber = 4; + private int effectId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId1 { + get { return effectId1_; } + set { + effectId1_ = value; + } + } + + /// Field number for the "effect_id2" field. + public const int EffectId2FieldNumber = 5; + private int effectId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId2 { + get { return effectId2_; } + set { + effectId2_ = value; + } + } + + /// Field number for the "effect_id3" field. + public const int EffectId3FieldNumber = 6; + private int effectId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId3 { + get { return effectId3_; } + set { + effectId3_ = value; + } + } + + /// Field number for the "effect_id4" field. + public const int EffectId4FieldNumber = 7; + private int effectId4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId4 { + get { return effectId4_; } + set { + effectId4_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 8; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 9; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc1" field. + public const int Desc1FieldNumber = 10; + private string desc1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc1 { + get { return desc1_; } + set { + desc1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 11; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc2" field. + public const int Desc2FieldNumber = 12; + private string desc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc2 { + get { return desc2_; } + set { + desc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 13; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc3" field. + public const int Desc3FieldNumber = 14; + private string desc3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc3 { + get { return desc3_; } + set { + desc3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 15; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc4" field. + public const int Desc4FieldNumber = 16; + private string desc4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc4 { + get { return desc4_; } + set { + desc4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 17; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PerkPassiveSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PerkPassiveSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ShareCD != other.ShareCD) return false; + if (ShareTimes != other.ShareTimes) return false; + if (EffectId1 != other.EffectId1) return false; + if (EffectId2 != other.EffectId2) return false; + if (EffectId3 != other.EffectId3) return false; + if (EffectId4 != other.EffectId4) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Desc1 != other.Desc1) return false; + if (Param1 != other.Param1) return false; + if (Desc2 != other.Desc2) return false; + if (Param2 != other.Param2) return false; + if (Desc3 != other.Desc3) return false; + if (Param3 != other.Param3) return false; + if (Desc4 != other.Desc4) return false; + if (Param4 != other.Param4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ShareCD != false) hash ^= ShareCD.GetHashCode(); + if (ShareTimes != false) hash ^= ShareTimes.GetHashCode(); + if (EffectId1 != 0) hash ^= EffectId1.GetHashCode(); + if (EffectId2 != 0) hash ^= EffectId2.GetHashCode(); + if (EffectId3 != 0) hash ^= EffectId3.GetHashCode(); + if (EffectId4 != 0) hash ^= EffectId4.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Desc1.Length != 0) hash ^= Desc1.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Desc2.Length != 0) hash ^= Desc2.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Desc3.Length != 0) hash ^= Desc3.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Desc4.Length != 0) hash ^= Desc4.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShareCD != false) { + output.WriteRawTag(16); + output.WriteBool(ShareCD); + } + if (ShareTimes != false) { + output.WriteRawTag(24); + output.WriteBool(ShareTimes); + } + if (EffectId1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(EffectId1); + } + if (EffectId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(EffectId2); + } + if (EffectId3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(EffectId3); + } + if (EffectId4 != 0) { + output.WriteRawTag(56); + output.WriteInt32(EffectId4); + } + if (Name.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc); + } + if (Desc1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Desc1); + } + if (Param1.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param1); + } + if (Desc2.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Desc2); + } + if (Param2.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param2); + } + if (Desc3.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Desc3); + } + if (Param3.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Param3); + } + if (Desc4.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Desc4); + } + if (Param4.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Param4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShareCD != false) { + output.WriteRawTag(16); + output.WriteBool(ShareCD); + } + if (ShareTimes != false) { + output.WriteRawTag(24); + output.WriteBool(ShareTimes); + } + if (EffectId1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(EffectId1); + } + if (EffectId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(EffectId2); + } + if (EffectId3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(EffectId3); + } + if (EffectId4 != 0) { + output.WriteRawTag(56); + output.WriteInt32(EffectId4); + } + if (Name.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc); + } + if (Desc1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Desc1); + } + if (Param1.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param1); + } + if (Desc2.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Desc2); + } + if (Param2.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param2); + } + if (Desc3.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Desc3); + } + if (Param3.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Param3); + } + if (Desc4.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Desc4); + } + if (Param4.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Param4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ShareCD != false) { + size += 1 + 1; + } + if (ShareTimes != false) { + size += 1 + 1; + } + if (EffectId1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId1); + } + if (EffectId2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId2); + } + if (EffectId3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId3); + } + if (EffectId4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId4); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Desc1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc1); + } + if (Param1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Desc2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc2); + } + if (Param2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Desc3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc3); + } + if (Param3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Desc4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc4); + } + if (Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PerkPassiveSkill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ShareCD != false) { + ShareCD = other.ShareCD; + } + if (other.ShareTimes != false) { + ShareTimes = other.ShareTimes; + } + if (other.EffectId1 != 0) { + EffectId1 = other.EffectId1; + } + if (other.EffectId2 != 0) { + EffectId2 = other.EffectId2; + } + if (other.EffectId3 != 0) { + EffectId3 = other.EffectId3; + } + if (other.EffectId4 != 0) { + EffectId4 = other.EffectId4; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Desc1.Length != 0) { + Desc1 = other.Desc1; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Desc2.Length != 0) { + Desc2 = other.Desc2; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Desc3.Length != 0) { + Desc3 = other.Desc3; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Desc4.Length != 0) { + Desc4 = other.Desc4; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShareCD = input.ReadBool(); + break; + } + case 24: { + ShareTimes = input.ReadBool(); + break; + } + case 32: { + EffectId1 = input.ReadInt32(); + break; + } + case 40: { + EffectId2 = input.ReadInt32(); + break; + } + case 48: { + EffectId3 = input.ReadInt32(); + break; + } + case 56: { + EffectId4 = input.ReadInt32(); + break; + } + case 66: { + Name = input.ReadString(); + break; + } + case 74: { + Desc = input.ReadString(); + break; + } + case 82: { + Desc1 = input.ReadString(); + break; + } + case 90: { + Param1 = input.ReadString(); + break; + } + case 98: { + Desc2 = input.ReadString(); + break; + } + case 106: { + Param2 = input.ReadString(); + break; + } + case 114: { + Desc3 = input.ReadString(); + break; + } + case 122: { + Param3 = input.ReadString(); + break; + } + case 130: { + Desc4 = input.ReadString(); + break; + } + case 138: { + Param4 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShareCD = input.ReadBool(); + break; + } + case 24: { + ShareTimes = input.ReadBool(); + break; + } + case 32: { + EffectId1 = input.ReadInt32(); + break; + } + case 40: { + EffectId2 = input.ReadInt32(); + break; + } + case 48: { + EffectId3 = input.ReadInt32(); + break; + } + case 56: { + EffectId4 = input.ReadInt32(); + break; + } + case 66: { + Name = input.ReadString(); + break; + } + case 74: { + Desc = input.ReadString(); + break; + } + case 82: { + Desc1 = input.ReadString(); + break; + } + case 90: { + Param1 = input.ReadString(); + break; + } + case 98: { + Desc2 = input.ReadString(); + break; + } + case 106: { + Param2 = input.ReadString(); + break; + } + case 114: { + Desc3 = input.ReadString(); + break; + } + case 122: { + Param3 = input.ReadString(); + break; + } + case 130: { + Desc4 = input.ReadString(); + break; + } + case 138: { + Param4 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PlayerHead.cs b/NTR.Common/protos/PlayerHead.cs new file mode 100644 index 0000000..0b30a68 --- /dev/null +++ b/NTR.Common/protos/PlayerHead.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerHead.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PlayerHead.proto + public static partial class PlayerHeadReflection { + + #region Descriptor + /// File descriptor for PlayerHead.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerHeadReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBQbGF5ZXJIZWFkLnByb3RvIiYKClBsYXllckhlYWQSCgoCaWQYASABKAUS", + "DAoEaWNvbhgCIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PlayerHead), global::Nova.Client.PlayerHead.Parser, new[]{ "Id", "Icon" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerHead : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerHead()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PlayerHeadReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHead() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHead(PlayerHead other) : this() { + id_ = other.id_; + icon_ = other.icon_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHead Clone() { + return new PlayerHead(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 2; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerHead); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerHead other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Icon != other.Icon) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerHead other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Plot.cs b/NTR.Common/protos/Plot.cs new file mode 100644 index 0000000..d0ad622 --- /dev/null +++ b/NTR.Common/protos/Plot.cs @@ -0,0 +1,606 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Plot.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Plot.proto + public static partial class PlotReflection { + + #region Descriptor + /// File descriptor for Plot.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlotReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpQbG90LnByb3RvItcBCgRQbG90EgoKAmlkGAEgASgFEgwKBGNoYXIYAiAB", + "KAUSDAoEbmFtZRgDIAEoCRIMCgRkZXNjGAQgASgJEg4KBmF2Z19pZBgFIAEo", + "CRIRCgltYWlubGluZXMYBiADKAUSHQoVdW5sb2NrX2FmZmluaXR5X2xldmVs", + "GAcgASgFEhcKD2Nvbm5lY3RfY2hhdF9pZBgIIAEoBRIZChFjaGFyX2FkdmFu", + "Y2VfY29uZBgJIAEoCRIPCgdyZXdhcmRzGAogASgJEhIKCnBpY19zb3VyY2UY", + "CyABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Plot), global::Nova.Client.Plot.Parser, new[]{ "Id", "Char", "Name", "Desc", "AvgId", "Mainlines", "UnlockAffinityLevel", "ConnectChatId", "CharAdvanceCond", "Rewards", "PicSource" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Plot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Plot()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PlotReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Plot() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Plot(Plot other) : this() { + id_ = other.id_; + char_ = other.char_; + name_ = other.name_; + desc_ = other.desc_; + avgId_ = other.avgId_; + mainlines_ = other.mainlines_.Clone(); + unlockAffinityLevel_ = other.unlockAffinityLevel_; + connectChatId_ = other.connectChatId_; + charAdvanceCond_ = other.charAdvanceCond_; + rewards_ = other.rewards_; + picSource_ = other.picSource_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Plot Clone() { + return new Plot(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char" field. + public const int CharFieldNumber = 2; + private int char_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Char { + get { return char_; } + set { + char_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "avg_id" field. + public const int AvgIdFieldNumber = 5; + private string avgId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AvgId { + get { return avgId_; } + set { + avgId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mainlines" field. + public const int MainlinesFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_mainlines_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField mainlines_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Mainlines { + get { return mainlines_; } + } + + /// Field number for the "unlock_affinity_level" field. + public const int UnlockAffinityLevelFieldNumber = 7; + private int unlockAffinityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockAffinityLevel { + get { return unlockAffinityLevel_; } + set { + unlockAffinityLevel_ = value; + } + } + + /// Field number for the "connect_chat_id" field. + public const int ConnectChatIdFieldNumber = 8; + private int connectChatId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ConnectChatId { + get { return connectChatId_; } + set { + connectChatId_ = value; + } + } + + /// Field number for the "char_advance_cond" field. + public const int CharAdvanceCondFieldNumber = 9; + private string charAdvanceCond_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CharAdvanceCond { + get { return charAdvanceCond_; } + set { + charAdvanceCond_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rewards" field. + public const int RewardsFieldNumber = 10; + private string rewards_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Rewards { + get { return rewards_; } + set { + rewards_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "pic_source" field. + public const int PicSourceFieldNumber = 11; + private string picSource_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PicSource { + get { return picSource_; } + set { + picSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Plot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Plot other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Char != other.Char) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (AvgId != other.AvgId) return false; + if(!mainlines_.Equals(other.mainlines_)) return false; + if (UnlockAffinityLevel != other.UnlockAffinityLevel) return false; + if (ConnectChatId != other.ConnectChatId) return false; + if (CharAdvanceCond != other.CharAdvanceCond) return false; + if (Rewards != other.Rewards) return false; + if (PicSource != other.PicSource) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Char != 0) hash ^= Char.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (AvgId.Length != 0) hash ^= AvgId.GetHashCode(); + hash ^= mainlines_.GetHashCode(); + if (UnlockAffinityLevel != 0) hash ^= UnlockAffinityLevel.GetHashCode(); + if (ConnectChatId != 0) hash ^= ConnectChatId.GetHashCode(); + if (CharAdvanceCond.Length != 0) hash ^= CharAdvanceCond.GetHashCode(); + if (Rewards.Length != 0) hash ^= Rewards.GetHashCode(); + if (PicSource.Length != 0) hash ^= PicSource.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Char != 0) { + output.WriteRawTag(16); + output.WriteInt32(Char); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (AvgId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AvgId); + } + mainlines_.WriteTo(output, _repeated_mainlines_codec); + if (UnlockAffinityLevel != 0) { + output.WriteRawTag(56); + output.WriteInt32(UnlockAffinityLevel); + } + if (ConnectChatId != 0) { + output.WriteRawTag(64); + output.WriteInt32(ConnectChatId); + } + if (CharAdvanceCond.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CharAdvanceCond); + } + if (Rewards.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Rewards); + } + if (PicSource.Length != 0) { + output.WriteRawTag(90); + output.WriteString(PicSource); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Char != 0) { + output.WriteRawTag(16); + output.WriteInt32(Char); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (AvgId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AvgId); + } + mainlines_.WriteTo(ref output, _repeated_mainlines_codec); + if (UnlockAffinityLevel != 0) { + output.WriteRawTag(56); + output.WriteInt32(UnlockAffinityLevel); + } + if (ConnectChatId != 0) { + output.WriteRawTag(64); + output.WriteInt32(ConnectChatId); + } + if (CharAdvanceCond.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CharAdvanceCond); + } + if (Rewards.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Rewards); + } + if (PicSource.Length != 0) { + output.WriteRawTag(90); + output.WriteString(PicSource); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Char != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Char); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (AvgId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AvgId); + } + size += mainlines_.CalculateSize(_repeated_mainlines_codec); + if (UnlockAffinityLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockAffinityLevel); + } + if (ConnectChatId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ConnectChatId); + } + if (CharAdvanceCond.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CharAdvanceCond); + } + if (Rewards.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Rewards); + } + if (PicSource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PicSource); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Plot other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Char != 0) { + Char = other.Char; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.AvgId.Length != 0) { + AvgId = other.AvgId; + } + mainlines_.Add(other.mainlines_); + if (other.UnlockAffinityLevel != 0) { + UnlockAffinityLevel = other.UnlockAffinityLevel; + } + if (other.ConnectChatId != 0) { + ConnectChatId = other.ConnectChatId; + } + if (other.CharAdvanceCond.Length != 0) { + CharAdvanceCond = other.CharAdvanceCond; + } + if (other.Rewards.Length != 0) { + Rewards = other.Rewards; + } + if (other.PicSource.Length != 0) { + PicSource = other.PicSource; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Char = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + AvgId = input.ReadString(); + break; + } + case 50: + case 48: { + mainlines_.AddEntriesFrom(input, _repeated_mainlines_codec); + break; + } + case 56: { + UnlockAffinityLevel = input.ReadInt32(); + break; + } + case 64: { + ConnectChatId = input.ReadInt32(); + break; + } + case 74: { + CharAdvanceCond = input.ReadString(); + break; + } + case 82: { + Rewards = input.ReadString(); + break; + } + case 90: { + PicSource = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Char = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 42: { + AvgId = input.ReadString(); + break; + } + case 50: + case 48: { + mainlines_.AddEntriesFrom(ref input, _repeated_mainlines_codec); + break; + } + case 56: { + UnlockAffinityLevel = input.ReadInt32(); + break; + } + case 64: { + ConnectChatId = input.ReadInt32(); + break; + } + case 74: { + CharAdvanceCond = input.ReadString(); + break; + } + case 82: { + Rewards = input.ReadString(); + break; + } + case 90: { + PicSource = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Potential.cs b/NTR.Common/protos/Potential.cs new file mode 100644 index 0000000..bf6f178 --- /dev/null +++ b/NTR.Common/protos/Potential.cs @@ -0,0 +1,1392 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Potential.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Potential.proto + public static partial class PotentialReflection { + + #region Descriptor + /// File descriptor for Potential.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PotentialReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Qb3RlbnRpYWwucHJvdG8i5QQKCVBvdGVudGlhbBIKCgJpZBgBIAEoBRIP", + "CgdjaGFyX2lkGAIgASgFEhMKC2JyYW5jaF90eXBlGAMgASgFEhEKCW1heF9s", + "ZXZlbBgEIAEoBRIWCg5zY29yZV9ncm91cF9pZBgFIAEoBRITCgtidWlsZF9z", + "Y29yZRgGIAMoBRIUCgxnYW1lX2Jvb2tfaWQYByABKAUSFwoPZWZmZWN0X2dy", + "b3VwX2lkGAggASgFEhQKDGlzX2VmZmVjdGl2ZRgJIAEoCBIWCg5wb3RlbnRp", + "YWxfdGFnMRgKIAEoCRIWCg5wb3RlbnRpYWxfdGFnMhgLIAEoCRIWCg5wb3Rl", + "bnRpYWxfdGFnMxgMIAEoCRIWCg5wb3RlbnRpYWxfdGFnNBgNIAEoCRIOCgZj", + "b3JuZXIYDiABKAUSDQoFc3BfYmcYDyABKAkSDwoHc3BfZmFjZRgQIAEoCRIS", + "CgplZmZlY3RfaWQxGBEgASgFEhIKCmVmZmVjdF9pZDIYEiABKAUSEgoKZWZm", + "ZWN0X2lkMxgTIAEoBRISCgplZmZlY3RfaWQ0GBQgASgFEhIKCmJyaWVmX2Rl", + "c2MYFSABKAkSDAoEZGVzYxgWIAEoCRIOCgZwYXJhbTEYFyABKAkSDgoGcGFy", + "YW0yGBggASgJEg4KBnBhcmFtMxgZIAEoCRIOCgZwYXJhbTQYGiABKAkSDgoG", + "cGFyYW01GBsgASgJEg4KBnBhcmFtNhgcIAEoCRIOCgZwYXJhbTcYHSABKAkS", + "DgoGcGFyYW04GB4gASgJEg4KBnBhcmFtORgfIAEoCRIPCgdwYXJhbTEwGCAg", + "ASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Potential), global::Nova.Client.Potential.Parser, new[]{ "Id", "CharId", "BranchType", "MaxLevel", "ScoreGroupId", "BuildScore", "GameBookId", "EffectGroupId", "IsEffective", "PotentialTag1", "PotentialTag2", "PotentialTag3", "PotentialTag4", "Corner", "SpBg", "SpFace", "EffectId1", "EffectId2", "EffectId3", "EffectId4", "BriefDesc", "Desc", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6", "Param7", "Param8", "Param9", "Param10" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Potential : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Potential()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PotentialReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Potential() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Potential(Potential other) : this() { + id_ = other.id_; + charId_ = other.charId_; + branchType_ = other.branchType_; + maxLevel_ = other.maxLevel_; + scoreGroupId_ = other.scoreGroupId_; + buildScore_ = other.buildScore_.Clone(); + gameBookId_ = other.gameBookId_; + effectGroupId_ = other.effectGroupId_; + isEffective_ = other.isEffective_; + potentialTag1_ = other.potentialTag1_; + potentialTag2_ = other.potentialTag2_; + potentialTag3_ = other.potentialTag3_; + potentialTag4_ = other.potentialTag4_; + corner_ = other.corner_; + spBg_ = other.spBg_; + spFace_ = other.spFace_; + effectId1_ = other.effectId1_; + effectId2_ = other.effectId2_; + effectId3_ = other.effectId3_; + effectId4_ = other.effectId4_; + briefDesc_ = other.briefDesc_; + desc_ = other.desc_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + param5_ = other.param5_; + param6_ = other.param6_; + param7_ = other.param7_; + param8_ = other.param8_; + param9_ = other.param9_; + param10_ = other.param10_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Potential Clone() { + return new Potential(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "branch_type" field. + public const int BranchTypeFieldNumber = 3; + private int branchType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BranchType { + get { return branchType_; } + set { + branchType_ = value; + } + } + + /// Field number for the "max_level" field. + public const int MaxLevelFieldNumber = 4; + private int maxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxLevel { + get { return maxLevel_; } + set { + maxLevel_ = value; + } + } + + /// Field number for the "score_group_id" field. + public const int ScoreGroupIdFieldNumber = 5; + private int scoreGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ScoreGroupId { + get { return scoreGroupId_; } + set { + scoreGroupId_ = value; + } + } + + /// Field number for the "build_score" field. + public const int BuildScoreFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_buildScore_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField buildScore_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuildScore { + get { return buildScore_; } + } + + /// Field number for the "game_book_id" field. + public const int GameBookIdFieldNumber = 7; + private int gameBookId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GameBookId { + get { return gameBookId_; } + set { + gameBookId_ = value; + } + } + + /// Field number for the "effect_group_id" field. + public const int EffectGroupIdFieldNumber = 8; + private int effectGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectGroupId { + get { return effectGroupId_; } + set { + effectGroupId_ = value; + } + } + + /// Field number for the "is_effective" field. + public const int IsEffectiveFieldNumber = 9; + private bool isEffective_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsEffective { + get { return isEffective_; } + set { + isEffective_ = value; + } + } + + /// Field number for the "potential_tag1" field. + public const int PotentialTag1FieldNumber = 10; + private string potentialTag1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PotentialTag1 { + get { return potentialTag1_; } + set { + potentialTag1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "potential_tag2" field. + public const int PotentialTag2FieldNumber = 11; + private string potentialTag2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PotentialTag2 { + get { return potentialTag2_; } + set { + potentialTag2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "potential_tag3" field. + public const int PotentialTag3FieldNumber = 12; + private string potentialTag3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PotentialTag3 { + get { return potentialTag3_; } + set { + potentialTag3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "potential_tag4" field. + public const int PotentialTag4FieldNumber = 13; + private string potentialTag4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PotentialTag4 { + get { return potentialTag4_; } + set { + potentialTag4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "corner" field. + public const int CornerFieldNumber = 14; + private int corner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Corner { + get { return corner_; } + set { + corner_ = value; + } + } + + /// Field number for the "sp_bg" field. + public const int SpBgFieldNumber = 15; + private string spBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SpBg { + get { return spBg_; } + set { + spBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sp_face" field. + public const int SpFaceFieldNumber = 16; + private string spFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SpFace { + get { return spFace_; } + set { + spFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "effect_id1" field. + public const int EffectId1FieldNumber = 17; + private int effectId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId1 { + get { return effectId1_; } + set { + effectId1_ = value; + } + } + + /// Field number for the "effect_id2" field. + public const int EffectId2FieldNumber = 18; + private int effectId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId2 { + get { return effectId2_; } + set { + effectId2_ = value; + } + } + + /// Field number for the "effect_id3" field. + public const int EffectId3FieldNumber = 19; + private int effectId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId3 { + get { return effectId3_; } + set { + effectId3_ = value; + } + } + + /// Field number for the "effect_id4" field. + public const int EffectId4FieldNumber = 20; + private int effectId4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId4 { + get { return effectId4_; } + set { + effectId4_ = value; + } + } + + /// Field number for the "brief_desc" field. + public const int BriefDescFieldNumber = 21; + private string briefDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BriefDesc { + get { return briefDesc_; } + set { + briefDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 22; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 23; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 24; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 25; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 26; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param5" field. + public const int Param5FieldNumber = 27; + private string param5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param5 { + get { return param5_; } + set { + param5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param6" field. + public const int Param6FieldNumber = 28; + private string param6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param6 { + get { return param6_; } + set { + param6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param7" field. + public const int Param7FieldNumber = 29; + private string param7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param7 { + get { return param7_; } + set { + param7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param8" field. + public const int Param8FieldNumber = 30; + private string param8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param8 { + get { return param8_; } + set { + param8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param9" field. + public const int Param9FieldNumber = 31; + private string param9_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param9 { + get { return param9_; } + set { + param9_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param10" field. + public const int Param10FieldNumber = 32; + private string param10_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param10 { + get { return param10_; } + set { + param10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Potential); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Potential other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharId != other.CharId) return false; + if (BranchType != other.BranchType) return false; + if (MaxLevel != other.MaxLevel) return false; + if (ScoreGroupId != other.ScoreGroupId) return false; + if(!buildScore_.Equals(other.buildScore_)) return false; + if (GameBookId != other.GameBookId) return false; + if (EffectGroupId != other.EffectGroupId) return false; + if (IsEffective != other.IsEffective) return false; + if (PotentialTag1 != other.PotentialTag1) return false; + if (PotentialTag2 != other.PotentialTag2) return false; + if (PotentialTag3 != other.PotentialTag3) return false; + if (PotentialTag4 != other.PotentialTag4) return false; + if (Corner != other.Corner) return false; + if (SpBg != other.SpBg) return false; + if (SpFace != other.SpFace) return false; + if (EffectId1 != other.EffectId1) return false; + if (EffectId2 != other.EffectId2) return false; + if (EffectId3 != other.EffectId3) return false; + if (EffectId4 != other.EffectId4) return false; + if (BriefDesc != other.BriefDesc) return false; + if (Desc != other.Desc) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + if (Param5 != other.Param5) return false; + if (Param6 != other.Param6) return false; + if (Param7 != other.Param7) return false; + if (Param8 != other.Param8) return false; + if (Param9 != other.Param9) return false; + if (Param10 != other.Param10) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (BranchType != 0) hash ^= BranchType.GetHashCode(); + if (MaxLevel != 0) hash ^= MaxLevel.GetHashCode(); + if (ScoreGroupId != 0) hash ^= ScoreGroupId.GetHashCode(); + hash ^= buildScore_.GetHashCode(); + if (GameBookId != 0) hash ^= GameBookId.GetHashCode(); + if (EffectGroupId != 0) hash ^= EffectGroupId.GetHashCode(); + if (IsEffective != false) hash ^= IsEffective.GetHashCode(); + if (PotentialTag1.Length != 0) hash ^= PotentialTag1.GetHashCode(); + if (PotentialTag2.Length != 0) hash ^= PotentialTag2.GetHashCode(); + if (PotentialTag3.Length != 0) hash ^= PotentialTag3.GetHashCode(); + if (PotentialTag4.Length != 0) hash ^= PotentialTag4.GetHashCode(); + if (Corner != 0) hash ^= Corner.GetHashCode(); + if (SpBg.Length != 0) hash ^= SpBg.GetHashCode(); + if (SpFace.Length != 0) hash ^= SpFace.GetHashCode(); + if (EffectId1 != 0) hash ^= EffectId1.GetHashCode(); + if (EffectId2 != 0) hash ^= EffectId2.GetHashCode(); + if (EffectId3 != 0) hash ^= EffectId3.GetHashCode(); + if (EffectId4 != 0) hash ^= EffectId4.GetHashCode(); + if (BriefDesc.Length != 0) hash ^= BriefDesc.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (Param5.Length != 0) hash ^= Param5.GetHashCode(); + if (Param6.Length != 0) hash ^= Param6.GetHashCode(); + if (Param7.Length != 0) hash ^= Param7.GetHashCode(); + if (Param8.Length != 0) hash ^= Param8.GetHashCode(); + if (Param9.Length != 0) hash ^= Param9.GetHashCode(); + if (Param10.Length != 0) hash ^= Param10.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (BranchType != 0) { + output.WriteRawTag(24); + output.WriteInt32(BranchType); + } + if (MaxLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(MaxLevel); + } + if (ScoreGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ScoreGroupId); + } + buildScore_.WriteTo(output, _repeated_buildScore_codec); + if (GameBookId != 0) { + output.WriteRawTag(56); + output.WriteInt32(GameBookId); + } + if (EffectGroupId != 0) { + output.WriteRawTag(64); + output.WriteInt32(EffectGroupId); + } + if (IsEffective != false) { + output.WriteRawTag(72); + output.WriteBool(IsEffective); + } + if (PotentialTag1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(PotentialTag1); + } + if (PotentialTag2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(PotentialTag2); + } + if (PotentialTag3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(PotentialTag3); + } + if (PotentialTag4.Length != 0) { + output.WriteRawTag(106); + output.WriteString(PotentialTag4); + } + if (Corner != 0) { + output.WriteRawTag(112); + output.WriteInt32(Corner); + } + if (SpBg.Length != 0) { + output.WriteRawTag(122); + output.WriteString(SpBg); + } + if (SpFace.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(SpFace); + } + if (EffectId1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(EffectId1); + } + if (EffectId2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(EffectId2); + } + if (EffectId3 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(EffectId3); + } + if (EffectId4 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(EffectId4); + } + if (BriefDesc.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(BriefDesc); + } + if (Desc.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Desc); + } + if (Param1.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (BranchType != 0) { + output.WriteRawTag(24); + output.WriteInt32(BranchType); + } + if (MaxLevel != 0) { + output.WriteRawTag(32); + output.WriteInt32(MaxLevel); + } + if (ScoreGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ScoreGroupId); + } + buildScore_.WriteTo(ref output, _repeated_buildScore_codec); + if (GameBookId != 0) { + output.WriteRawTag(56); + output.WriteInt32(GameBookId); + } + if (EffectGroupId != 0) { + output.WriteRawTag(64); + output.WriteInt32(EffectGroupId); + } + if (IsEffective != false) { + output.WriteRawTag(72); + output.WriteBool(IsEffective); + } + if (PotentialTag1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(PotentialTag1); + } + if (PotentialTag2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(PotentialTag2); + } + if (PotentialTag3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(PotentialTag3); + } + if (PotentialTag4.Length != 0) { + output.WriteRawTag(106); + output.WriteString(PotentialTag4); + } + if (Corner != 0) { + output.WriteRawTag(112); + output.WriteInt32(Corner); + } + if (SpBg.Length != 0) { + output.WriteRawTag(122); + output.WriteString(SpBg); + } + if (SpFace.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(SpFace); + } + if (EffectId1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(EffectId1); + } + if (EffectId2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(EffectId2); + } + if (EffectId3 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(EffectId3); + } + if (EffectId4 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(EffectId4); + } + if (BriefDesc.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(BriefDesc); + } + if (Desc.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Desc); + } + if (Param1.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(250, 1); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (BranchType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BranchType); + } + if (MaxLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxLevel); + } + if (ScoreGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScoreGroupId); + } + size += buildScore_.CalculateSize(_repeated_buildScore_codec); + if (GameBookId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameBookId); + } + if (EffectGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectGroupId); + } + if (IsEffective != false) { + size += 1 + 1; + } + if (PotentialTag1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PotentialTag1); + } + if (PotentialTag2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PotentialTag2); + } + if (PotentialTag3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PotentialTag3); + } + if (PotentialTag4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PotentialTag4); + } + if (Corner != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Corner); + } + if (SpBg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SpBg); + } + if (SpFace.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SpFace); + } + if (EffectId1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EffectId1); + } + if (EffectId2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EffectId2); + } + if (EffectId3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EffectId3); + } + if (EffectId4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EffectId4); + } + if (BriefDesc.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BriefDesc); + } + if (Desc.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Param1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (Param5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param5); + } + if (Param6.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param6); + } + if (Param7.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param7); + } + if (Param8.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param8); + } + if (Param9.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param9); + } + if (Param10.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param10); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Potential other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.BranchType != 0) { + BranchType = other.BranchType; + } + if (other.MaxLevel != 0) { + MaxLevel = other.MaxLevel; + } + if (other.ScoreGroupId != 0) { + ScoreGroupId = other.ScoreGroupId; + } + buildScore_.Add(other.buildScore_); + if (other.GameBookId != 0) { + GameBookId = other.GameBookId; + } + if (other.EffectGroupId != 0) { + EffectGroupId = other.EffectGroupId; + } + if (other.IsEffective != false) { + IsEffective = other.IsEffective; + } + if (other.PotentialTag1.Length != 0) { + PotentialTag1 = other.PotentialTag1; + } + if (other.PotentialTag2.Length != 0) { + PotentialTag2 = other.PotentialTag2; + } + if (other.PotentialTag3.Length != 0) { + PotentialTag3 = other.PotentialTag3; + } + if (other.PotentialTag4.Length != 0) { + PotentialTag4 = other.PotentialTag4; + } + if (other.Corner != 0) { + Corner = other.Corner; + } + if (other.SpBg.Length != 0) { + SpBg = other.SpBg; + } + if (other.SpFace.Length != 0) { + SpFace = other.SpFace; + } + if (other.EffectId1 != 0) { + EffectId1 = other.EffectId1; + } + if (other.EffectId2 != 0) { + EffectId2 = other.EffectId2; + } + if (other.EffectId3 != 0) { + EffectId3 = other.EffectId3; + } + if (other.EffectId4 != 0) { + EffectId4 = other.EffectId4; + } + if (other.BriefDesc.Length != 0) { + BriefDesc = other.BriefDesc; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + if (other.Param5.Length != 0) { + Param5 = other.Param5; + } + if (other.Param6.Length != 0) { + Param6 = other.Param6; + } + if (other.Param7.Length != 0) { + Param7 = other.Param7; + } + if (other.Param8.Length != 0) { + Param8 = other.Param8; + } + if (other.Param9.Length != 0) { + Param9 = other.Param9; + } + if (other.Param10.Length != 0) { + Param10 = other.Param10; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + BranchType = input.ReadInt32(); + break; + } + case 32: { + MaxLevel = input.ReadInt32(); + break; + } + case 40: { + ScoreGroupId = input.ReadInt32(); + break; + } + case 50: + case 48: { + buildScore_.AddEntriesFrom(input, _repeated_buildScore_codec); + break; + } + case 56: { + GameBookId = input.ReadInt32(); + break; + } + case 64: { + EffectGroupId = input.ReadInt32(); + break; + } + case 72: { + IsEffective = input.ReadBool(); + break; + } + case 82: { + PotentialTag1 = input.ReadString(); + break; + } + case 90: { + PotentialTag2 = input.ReadString(); + break; + } + case 98: { + PotentialTag3 = input.ReadString(); + break; + } + case 106: { + PotentialTag4 = input.ReadString(); + break; + } + case 112: { + Corner = input.ReadInt32(); + break; + } + case 122: { + SpBg = input.ReadString(); + break; + } + case 130: { + SpFace = input.ReadString(); + break; + } + case 136: { + EffectId1 = input.ReadInt32(); + break; + } + case 144: { + EffectId2 = input.ReadInt32(); + break; + } + case 152: { + EffectId3 = input.ReadInt32(); + break; + } + case 160: { + EffectId4 = input.ReadInt32(); + break; + } + case 170: { + BriefDesc = input.ReadString(); + break; + } + case 178: { + Desc = input.ReadString(); + break; + } + case 186: { + Param1 = input.ReadString(); + break; + } + case 194: { + Param2 = input.ReadString(); + break; + } + case 202: { + Param3 = input.ReadString(); + break; + } + case 210: { + Param4 = input.ReadString(); + break; + } + case 218: { + Param5 = input.ReadString(); + break; + } + case 226: { + Param6 = input.ReadString(); + break; + } + case 234: { + Param7 = input.ReadString(); + break; + } + case 242: { + Param8 = input.ReadString(); + break; + } + case 250: { + Param9 = input.ReadString(); + break; + } + case 258: { + Param10 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + BranchType = input.ReadInt32(); + break; + } + case 32: { + MaxLevel = input.ReadInt32(); + break; + } + case 40: { + ScoreGroupId = input.ReadInt32(); + break; + } + case 50: + case 48: { + buildScore_.AddEntriesFrom(ref input, _repeated_buildScore_codec); + break; + } + case 56: { + GameBookId = input.ReadInt32(); + break; + } + case 64: { + EffectGroupId = input.ReadInt32(); + break; + } + case 72: { + IsEffective = input.ReadBool(); + break; + } + case 82: { + PotentialTag1 = input.ReadString(); + break; + } + case 90: { + PotentialTag2 = input.ReadString(); + break; + } + case 98: { + PotentialTag3 = input.ReadString(); + break; + } + case 106: { + PotentialTag4 = input.ReadString(); + break; + } + case 112: { + Corner = input.ReadInt32(); + break; + } + case 122: { + SpBg = input.ReadString(); + break; + } + case 130: { + SpFace = input.ReadString(); + break; + } + case 136: { + EffectId1 = input.ReadInt32(); + break; + } + case 144: { + EffectId2 = input.ReadInt32(); + break; + } + case 152: { + EffectId3 = input.ReadInt32(); + break; + } + case 160: { + EffectId4 = input.ReadInt32(); + break; + } + case 170: { + BriefDesc = input.ReadString(); + break; + } + case 178: { + Desc = input.ReadString(); + break; + } + case 186: { + Param1 = input.ReadString(); + break; + } + case 194: { + Param2 = input.ReadString(); + break; + } + case 202: { + Param3 = input.ReadString(); + break; + } + case 210: { + Param4 = input.ReadString(); + break; + } + case 218: { + Param5 = input.ReadString(); + break; + } + case 226: { + Param6 = input.ReadString(); + break; + } + case 234: { + Param7 = input.ReadString(); + break; + } + case 242: { + Param8 = input.ReadString(); + break; + } + case 250: { + Param9 = input.ReadString(); + break; + } + case 258: { + Param10 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PotentialPassiveSkill.cs b/NTR.Common/protos/PotentialPassiveSkill.cs new file mode 100644 index 0000000..e2a3104 --- /dev/null +++ b/NTR.Common/protos/PotentialPassiveSkill.cs @@ -0,0 +1,690 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PotentialPassiveSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PotentialPassiveSkill.proto + public static partial class PotentialPassiveSkillReflection { + + #region Descriptor + /// File descriptor for PotentialPassiveSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PotentialPassiveSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtQb3RlbnRpYWxQYXNzaXZlU2tpbGwucHJvdG8i/QEKFVBvdGVudGlhbFBh", + "c3NpdmVTa2lsbBIKCgJpZBgBIAEoBRIRCglzaGFyZV9jX2QYAiABKAgSEwoL", + "c2hhcmVfdGltZXMYAyABKAgSEgoKZWZmZWN0X2lkMRgEIAEoBRISCgplZmZl", + "Y3RfaWQyGAUgASgFEhIKCmVmZmVjdF9pZDMYBiABKAUSEgoKZWZmZWN0X2lk", + "NBgHIAEoBRISCgpicmllZl9kZXNjGAggASgJEgwKBGRlc2MYCSABKAkSDgoG", + "cGFyYW0xGAogASgJEg4KBnBhcmFtMhgLIAEoCRIOCgZwYXJhbTMYDCABKAkS", + "DgoGcGFyYW00GA0gASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PotentialPassiveSkill), global::Nova.Client.PotentialPassiveSkill.Parser, new[]{ "Id", "ShareCD", "ShareTimes", "EffectId1", "EffectId2", "EffectId3", "EffectId4", "BriefDesc", "Desc", "Param1", "Param2", "Param3", "Param4" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PotentialPassiveSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PotentialPassiveSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PotentialPassiveSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PotentialPassiveSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PotentialPassiveSkill(PotentialPassiveSkill other) : this() { + id_ = other.id_; + shareCD_ = other.shareCD_; + shareTimes_ = other.shareTimes_; + effectId1_ = other.effectId1_; + effectId2_ = other.effectId2_; + effectId3_ = other.effectId3_; + effectId4_ = other.effectId4_; + briefDesc_ = other.briefDesc_; + desc_ = other.desc_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PotentialPassiveSkill Clone() { + return new PotentialPassiveSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "share_c_d" field. + public const int ShareCDFieldNumber = 2; + private bool shareCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShareCD { + get { return shareCD_; } + set { + shareCD_ = value; + } + } + + /// Field number for the "share_times" field. + public const int ShareTimesFieldNumber = 3; + private bool shareTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShareTimes { + get { return shareTimes_; } + set { + shareTimes_ = value; + } + } + + /// Field number for the "effect_id1" field. + public const int EffectId1FieldNumber = 4; + private int effectId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId1 { + get { return effectId1_; } + set { + effectId1_ = value; + } + } + + /// Field number for the "effect_id2" field. + public const int EffectId2FieldNumber = 5; + private int effectId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId2 { + get { return effectId2_; } + set { + effectId2_ = value; + } + } + + /// Field number for the "effect_id3" field. + public const int EffectId3FieldNumber = 6; + private int effectId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId3 { + get { return effectId3_; } + set { + effectId3_ = value; + } + } + + /// Field number for the "effect_id4" field. + public const int EffectId4FieldNumber = 7; + private int effectId4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId4 { + get { return effectId4_; } + set { + effectId4_ = value; + } + } + + /// Field number for the "brief_desc" field. + public const int BriefDescFieldNumber = 8; + private string briefDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BriefDesc { + get { return briefDesc_; } + set { + briefDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 9; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 10; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 11; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 12; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 13; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PotentialPassiveSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PotentialPassiveSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ShareCD != other.ShareCD) return false; + if (ShareTimes != other.ShareTimes) return false; + if (EffectId1 != other.EffectId1) return false; + if (EffectId2 != other.EffectId2) return false; + if (EffectId3 != other.EffectId3) return false; + if (EffectId4 != other.EffectId4) return false; + if (BriefDesc != other.BriefDesc) return false; + if (Desc != other.Desc) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ShareCD != false) hash ^= ShareCD.GetHashCode(); + if (ShareTimes != false) hash ^= ShareTimes.GetHashCode(); + if (EffectId1 != 0) hash ^= EffectId1.GetHashCode(); + if (EffectId2 != 0) hash ^= EffectId2.GetHashCode(); + if (EffectId3 != 0) hash ^= EffectId3.GetHashCode(); + if (EffectId4 != 0) hash ^= EffectId4.GetHashCode(); + if (BriefDesc.Length != 0) hash ^= BriefDesc.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShareCD != false) { + output.WriteRawTag(16); + output.WriteBool(ShareCD); + } + if (ShareTimes != false) { + output.WriteRawTag(24); + output.WriteBool(ShareTimes); + } + if (EffectId1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(EffectId1); + } + if (EffectId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(EffectId2); + } + if (EffectId3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(EffectId3); + } + if (EffectId4 != 0) { + output.WriteRawTag(56); + output.WriteInt32(EffectId4); + } + if (BriefDesc.Length != 0) { + output.WriteRawTag(66); + output.WriteString(BriefDesc); + } + if (Desc.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc); + } + if (Param1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShareCD != false) { + output.WriteRawTag(16); + output.WriteBool(ShareCD); + } + if (ShareTimes != false) { + output.WriteRawTag(24); + output.WriteBool(ShareTimes); + } + if (EffectId1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(EffectId1); + } + if (EffectId2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(EffectId2); + } + if (EffectId3 != 0) { + output.WriteRawTag(48); + output.WriteInt32(EffectId3); + } + if (EffectId4 != 0) { + output.WriteRawTag(56); + output.WriteInt32(EffectId4); + } + if (BriefDesc.Length != 0) { + output.WriteRawTag(66); + output.WriteString(BriefDesc); + } + if (Desc.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc); + } + if (Param1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ShareCD != false) { + size += 1 + 1; + } + if (ShareTimes != false) { + size += 1 + 1; + } + if (EffectId1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId1); + } + if (EffectId2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId2); + } + if (EffectId3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId3); + } + if (EffectId4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId4); + } + if (BriefDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BriefDesc); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Param1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PotentialPassiveSkill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ShareCD != false) { + ShareCD = other.ShareCD; + } + if (other.ShareTimes != false) { + ShareTimes = other.ShareTimes; + } + if (other.EffectId1 != 0) { + EffectId1 = other.EffectId1; + } + if (other.EffectId2 != 0) { + EffectId2 = other.EffectId2; + } + if (other.EffectId3 != 0) { + EffectId3 = other.EffectId3; + } + if (other.EffectId4 != 0) { + EffectId4 = other.EffectId4; + } + if (other.BriefDesc.Length != 0) { + BriefDesc = other.BriefDesc; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShareCD = input.ReadBool(); + break; + } + case 24: { + ShareTimes = input.ReadBool(); + break; + } + case 32: { + EffectId1 = input.ReadInt32(); + break; + } + case 40: { + EffectId2 = input.ReadInt32(); + break; + } + case 48: { + EffectId3 = input.ReadInt32(); + break; + } + case 56: { + EffectId4 = input.ReadInt32(); + break; + } + case 66: { + BriefDesc = input.ReadString(); + break; + } + case 74: { + Desc = input.ReadString(); + break; + } + case 82: { + Param1 = input.ReadString(); + break; + } + case 90: { + Param2 = input.ReadString(); + break; + } + case 98: { + Param3 = input.ReadString(); + break; + } + case 106: { + Param4 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShareCD = input.ReadBool(); + break; + } + case 24: { + ShareTimes = input.ReadBool(); + break; + } + case 32: { + EffectId1 = input.ReadInt32(); + break; + } + case 40: { + EffectId2 = input.ReadInt32(); + break; + } + case 48: { + EffectId3 = input.ReadInt32(); + break; + } + case 56: { + EffectId4 = input.ReadInt32(); + break; + } + case 66: { + BriefDesc = input.ReadString(); + break; + } + case 74: { + Desc = input.ReadString(); + break; + } + case 82: { + Param1 = input.ReadString(); + break; + } + case 90: { + Param2 = input.ReadString(); + break; + } + case 98: { + Param3 = input.ReadString(); + break; + } + case 106: { + Param4 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PreviewMonsterGroup.cs b/NTR.Common/protos/PreviewMonsterGroup.cs new file mode 100644 index 0000000..2bbeefc --- /dev/null +++ b/NTR.Common/protos/PreviewMonsterGroup.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PreviewMonsterGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PreviewMonsterGroup.proto + public static partial class PreviewMonsterGroupReflection { + + #region Descriptor + /// File descriptor for PreviewMonsterGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PreviewMonsterGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlQcmV2aWV3TW9uc3Rlckdyb3VwLnByb3RvInQKE1ByZXZpZXdNb25zdGVy", + "R3JvdXASCgoCaWQYASABKAUSEAoIZ3JvdXBfaWQYAiABKAUSHwoXcHJldmll", + "d19tb25zdGVyX2xpc3RfaWQYAyABKAUSDgoGbWluX2x2GAQgASgJEg4KBm1h", + "eF9sdhgFIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PreviewMonsterGroup), global::Nova.Client.PreviewMonsterGroup.Parser, new[]{ "Id", "GroupId", "PreviewMonsterListId", "MinLv", "MaxLv" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PreviewMonsterGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PreviewMonsterGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PreviewMonsterGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreviewMonsterGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreviewMonsterGroup(PreviewMonsterGroup other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + previewMonsterListId_ = other.previewMonsterListId_; + minLv_ = other.minLv_; + maxLv_ = other.maxLv_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreviewMonsterGroup Clone() { + return new PreviewMonsterGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "preview_monster_list_id" field. + public const int PreviewMonsterListIdFieldNumber = 3; + private int previewMonsterListId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterListId { + get { return previewMonsterListId_; } + set { + previewMonsterListId_ = value; + } + } + + /// Field number for the "min_lv" field. + public const int MinLvFieldNumber = 4; + private string minLv_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MinLv { + get { return minLv_; } + set { + minLv_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "max_lv" field. + public const int MaxLvFieldNumber = 5; + private string maxLv_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MaxLv { + get { return maxLv_; } + set { + maxLv_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PreviewMonsterGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PreviewMonsterGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (PreviewMonsterListId != other.PreviewMonsterListId) return false; + if (MinLv != other.MinLv) return false; + if (MaxLv != other.MaxLv) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (PreviewMonsterListId != 0) hash ^= PreviewMonsterListId.GetHashCode(); + if (MinLv.Length != 0) hash ^= MinLv.GetHashCode(); + if (MaxLv.Length != 0) hash ^= MaxLv.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (PreviewMonsterListId != 0) { + output.WriteRawTag(24); + output.WriteInt32(PreviewMonsterListId); + } + if (MinLv.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MinLv); + } + if (MaxLv.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MaxLv); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (PreviewMonsterListId != 0) { + output.WriteRawTag(24); + output.WriteInt32(PreviewMonsterListId); + } + if (MinLv.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MinLv); + } + if (MaxLv.Length != 0) { + output.WriteRawTag(42); + output.WriteString(MaxLv); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (PreviewMonsterListId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterListId); + } + if (MinLv.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MinLv); + } + if (MaxLv.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MaxLv); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PreviewMonsterGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.PreviewMonsterListId != 0) { + PreviewMonsterListId = other.PreviewMonsterListId; + } + if (other.MinLv.Length != 0) { + MinLv = other.MinLv; + } + if (other.MaxLv.Length != 0) { + MaxLv = other.MaxLv; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + PreviewMonsterListId = input.ReadInt32(); + break; + } + case 34: { + MinLv = input.ReadString(); + break; + } + case 42: { + MaxLv = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + PreviewMonsterListId = input.ReadInt32(); + break; + } + case 34: { + MinLv = input.ReadString(); + break; + } + case 42: { + MaxLv = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/PreviewMonsterList.cs b/NTR.Common/protos/PreviewMonsterList.cs new file mode 100644 index 0000000..e6b7510 --- /dev/null +++ b/NTR.Common/protos/PreviewMonsterList.cs @@ -0,0 +1,860 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PreviewMonsterList.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from PreviewMonsterList.proto + public static partial class PreviewMonsterListReflection { + + #region Descriptor + /// File descriptor for PreviewMonsterList.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PreviewMonsterListReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhQcmV2aWV3TW9uc3Rlckxpc3QucHJvdG8i5wIKElByZXZpZXdNb25zdGVy", + "TGlzdBIKCgJpZBgBIAEoBRIMCgRpY29uGAIgASgJEgwKBG5hbWUYAyABKAkS", + "FAoMcmVzaXN0X2VfZV90GAQgAygFEg0KBWVfZV90GAUgAygFEgwKBGRlc2MY", + "BiABKAkSEgoKc2tpbGxfZGVzYxgHIAEoCRIPCgdlcGljX2x2GAggASgFEgsK", + "A2hfcBgJIAEoBRINCgVhX3RfaxgKIAEoBRINCgVkX2VfZhgLIAEoBRIZChF0", + "X29fdV9nX2hfbl9lX3NfcxgMIAEoBRIWCg5hYmlsaXR5X3RpdGxlMRgNIAEo", + "CRIVCg1hYmlsaXR5X2Rlc2MxGA4gASgJEhYKDmFiaWxpdHlfdGl0bGUyGA8g", + "ASgJEhUKDWFiaWxpdHlfZGVzYzIYECABKAkSFgoOYWJpbGl0eV90aXRsZTMY", + "ESABKAkSFQoNYWJpbGl0eV9kZXNjMxgSIAEoCUIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.PreviewMonsterList), global::Nova.Client.PreviewMonsterList.Parser, new[]{ "Id", "Icon", "Name", "ResistEET", "EET", "Desc", "SkillDesc", "EpicLv", "HP", "ATK", "DEF", "TOUGHNESS", "AbilityTitle1", "AbilityDesc1", "AbilityTitle2", "AbilityDesc2", "AbilityTitle3", "AbilityDesc3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PreviewMonsterList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PreviewMonsterList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.PreviewMonsterListReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreviewMonsterList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreviewMonsterList(PreviewMonsterList other) : this() { + id_ = other.id_; + icon_ = other.icon_; + name_ = other.name_; + resistEET_ = other.resistEET_.Clone(); + eET_ = other.eET_.Clone(); + desc_ = other.desc_; + skillDesc_ = other.skillDesc_; + epicLv_ = other.epicLv_; + hP_ = other.hP_; + aTK_ = other.aTK_; + dEF_ = other.dEF_; + tOUGHNESS_ = other.tOUGHNESS_; + abilityTitle1_ = other.abilityTitle1_; + abilityDesc1_ = other.abilityDesc1_; + abilityTitle2_ = other.abilityTitle2_; + abilityDesc2_ = other.abilityDesc2_; + abilityTitle3_ = other.abilityTitle3_; + abilityDesc3_ = other.abilityDesc3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PreviewMonsterList Clone() { + return new PreviewMonsterList(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 2; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resist_e_e_t" field. + public const int ResistEETFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_resistEET_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField resistEET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ResistEET { + get { return resistEET_; } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_eET_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField eET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EET { + get { return eET_; } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 6; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "skill_desc" field. + public const int SkillDescFieldNumber = 7; + private string skillDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SkillDesc { + get { return skillDesc_; } + set { + skillDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "epic_lv" field. + public const int EpicLvFieldNumber = 8; + private int epicLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EpicLv { + get { return epicLv_; } + set { + epicLv_ = value; + } + } + + /// Field number for the "h_p" field. + public const int HPFieldNumber = 9; + private int hP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HP { + get { return hP_; } + set { + hP_ = value; + } + } + + /// Field number for the "a_t_k" field. + public const int ATKFieldNumber = 10; + private int aTK_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ATK { + get { return aTK_; } + set { + aTK_ = value; + } + } + + /// Field number for the "d_e_f" field. + public const int DEFFieldNumber = 11; + private int dEF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEF { + get { return dEF_; } + set { + dEF_ = value; + } + } + + /// Field number for the "t_o_u_g_h_n_e_s_s" field. + public const int TOUGHNESSFieldNumber = 12; + private int tOUGHNESS_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TOUGHNESS { + get { return tOUGHNESS_; } + set { + tOUGHNESS_ = value; + } + } + + /// Field number for the "ability_title1" field. + public const int AbilityTitle1FieldNumber = 13; + private string abilityTitle1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbilityTitle1 { + get { return abilityTitle1_; } + set { + abilityTitle1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ability_desc1" field. + public const int AbilityDesc1FieldNumber = 14; + private string abilityDesc1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbilityDesc1 { + get { return abilityDesc1_; } + set { + abilityDesc1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ability_title2" field. + public const int AbilityTitle2FieldNumber = 15; + private string abilityTitle2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbilityTitle2 { + get { return abilityTitle2_; } + set { + abilityTitle2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ability_desc2" field. + public const int AbilityDesc2FieldNumber = 16; + private string abilityDesc2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbilityDesc2 { + get { return abilityDesc2_; } + set { + abilityDesc2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ability_title3" field. + public const int AbilityTitle3FieldNumber = 17; + private string abilityTitle3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbilityTitle3 { + get { return abilityTitle3_; } + set { + abilityTitle3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ability_desc3" field. + public const int AbilityDesc3FieldNumber = 18; + private string abilityDesc3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbilityDesc3 { + get { return abilityDesc3_; } + set { + abilityDesc3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PreviewMonsterList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PreviewMonsterList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Icon != other.Icon) return false; + if (Name != other.Name) return false; + if(!resistEET_.Equals(other.resistEET_)) return false; + if(!eET_.Equals(other.eET_)) return false; + if (Desc != other.Desc) return false; + if (SkillDesc != other.SkillDesc) return false; + if (EpicLv != other.EpicLv) return false; + if (HP != other.HP) return false; + if (ATK != other.ATK) return false; + if (DEF != other.DEF) return false; + if (TOUGHNESS != other.TOUGHNESS) return false; + if (AbilityTitle1 != other.AbilityTitle1) return false; + if (AbilityDesc1 != other.AbilityDesc1) return false; + if (AbilityTitle2 != other.AbilityTitle2) return false; + if (AbilityDesc2 != other.AbilityDesc2) return false; + if (AbilityTitle3 != other.AbilityTitle3) return false; + if (AbilityDesc3 != other.AbilityDesc3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= resistEET_.GetHashCode(); + hash ^= eET_.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (SkillDesc.Length != 0) hash ^= SkillDesc.GetHashCode(); + if (EpicLv != 0) hash ^= EpicLv.GetHashCode(); + if (HP != 0) hash ^= HP.GetHashCode(); + if (ATK != 0) hash ^= ATK.GetHashCode(); + if (DEF != 0) hash ^= DEF.GetHashCode(); + if (TOUGHNESS != 0) hash ^= TOUGHNESS.GetHashCode(); + if (AbilityTitle1.Length != 0) hash ^= AbilityTitle1.GetHashCode(); + if (AbilityDesc1.Length != 0) hash ^= AbilityDesc1.GetHashCode(); + if (AbilityTitle2.Length != 0) hash ^= AbilityTitle2.GetHashCode(); + if (AbilityDesc2.Length != 0) hash ^= AbilityDesc2.GetHashCode(); + if (AbilityTitle3.Length != 0) hash ^= AbilityTitle3.GetHashCode(); + if (AbilityDesc3.Length != 0) hash ^= AbilityDesc3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + resistEET_.WriteTo(output, _repeated_resistEET_codec); + eET_.WriteTo(output, _repeated_eET_codec); + if (Desc.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Desc); + } + if (SkillDesc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(SkillDesc); + } + if (EpicLv != 0) { + output.WriteRawTag(64); + output.WriteInt32(EpicLv); + } + if (HP != 0) { + output.WriteRawTag(72); + output.WriteInt32(HP); + } + if (ATK != 0) { + output.WriteRawTag(80); + output.WriteInt32(ATK); + } + if (DEF != 0) { + output.WriteRawTag(88); + output.WriteInt32(DEF); + } + if (TOUGHNESS != 0) { + output.WriteRawTag(96); + output.WriteInt32(TOUGHNESS); + } + if (AbilityTitle1.Length != 0) { + output.WriteRawTag(106); + output.WriteString(AbilityTitle1); + } + if (AbilityDesc1.Length != 0) { + output.WriteRawTag(114); + output.WriteString(AbilityDesc1); + } + if (AbilityTitle2.Length != 0) { + output.WriteRawTag(122); + output.WriteString(AbilityTitle2); + } + if (AbilityDesc2.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(AbilityDesc2); + } + if (AbilityTitle3.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(AbilityTitle3); + } + if (AbilityDesc3.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(AbilityDesc3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + resistEET_.WriteTo(ref output, _repeated_resistEET_codec); + eET_.WriteTo(ref output, _repeated_eET_codec); + if (Desc.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Desc); + } + if (SkillDesc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(SkillDesc); + } + if (EpicLv != 0) { + output.WriteRawTag(64); + output.WriteInt32(EpicLv); + } + if (HP != 0) { + output.WriteRawTag(72); + output.WriteInt32(HP); + } + if (ATK != 0) { + output.WriteRawTag(80); + output.WriteInt32(ATK); + } + if (DEF != 0) { + output.WriteRawTag(88); + output.WriteInt32(DEF); + } + if (TOUGHNESS != 0) { + output.WriteRawTag(96); + output.WriteInt32(TOUGHNESS); + } + if (AbilityTitle1.Length != 0) { + output.WriteRawTag(106); + output.WriteString(AbilityTitle1); + } + if (AbilityDesc1.Length != 0) { + output.WriteRawTag(114); + output.WriteString(AbilityDesc1); + } + if (AbilityTitle2.Length != 0) { + output.WriteRawTag(122); + output.WriteString(AbilityTitle2); + } + if (AbilityDesc2.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(AbilityDesc2); + } + if (AbilityTitle3.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(AbilityTitle3); + } + if (AbilityDesc3.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(AbilityDesc3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += resistEET_.CalculateSize(_repeated_resistEET_codec); + size += eET_.CalculateSize(_repeated_eET_codec); + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (SkillDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillDesc); + } + if (EpicLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EpicLv); + } + if (HP != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HP); + } + if (ATK != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ATK); + } + if (DEF != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DEF); + } + if (TOUGHNESS != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TOUGHNESS); + } + if (AbilityTitle1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AbilityTitle1); + } + if (AbilityDesc1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AbilityDesc1); + } + if (AbilityTitle2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AbilityTitle2); + } + if (AbilityDesc2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AbilityDesc2); + } + if (AbilityTitle3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AbilityTitle3); + } + if (AbilityDesc3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AbilityDesc3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PreviewMonsterList other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + resistEET_.Add(other.resistEET_); + eET_.Add(other.eET_); + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.SkillDesc.Length != 0) { + SkillDesc = other.SkillDesc; + } + if (other.EpicLv != 0) { + EpicLv = other.EpicLv; + } + if (other.HP != 0) { + HP = other.HP; + } + if (other.ATK != 0) { + ATK = other.ATK; + } + if (other.DEF != 0) { + DEF = other.DEF; + } + if (other.TOUGHNESS != 0) { + TOUGHNESS = other.TOUGHNESS; + } + if (other.AbilityTitle1.Length != 0) { + AbilityTitle1 = other.AbilityTitle1; + } + if (other.AbilityDesc1.Length != 0) { + AbilityDesc1 = other.AbilityDesc1; + } + if (other.AbilityTitle2.Length != 0) { + AbilityTitle2 = other.AbilityTitle2; + } + if (other.AbilityDesc2.Length != 0) { + AbilityDesc2 = other.AbilityDesc2; + } + if (other.AbilityTitle3.Length != 0) { + AbilityTitle3 = other.AbilityTitle3; + } + if (other.AbilityDesc3.Length != 0) { + AbilityDesc3 = other.AbilityDesc3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: + case 32: { + resistEET_.AddEntriesFrom(input, _repeated_resistEET_codec); + break; + } + case 42: + case 40: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + case 50: { + Desc = input.ReadString(); + break; + } + case 58: { + SkillDesc = input.ReadString(); + break; + } + case 64: { + EpicLv = input.ReadInt32(); + break; + } + case 72: { + HP = input.ReadInt32(); + break; + } + case 80: { + ATK = input.ReadInt32(); + break; + } + case 88: { + DEF = input.ReadInt32(); + break; + } + case 96: { + TOUGHNESS = input.ReadInt32(); + break; + } + case 106: { + AbilityTitle1 = input.ReadString(); + break; + } + case 114: { + AbilityDesc1 = input.ReadString(); + break; + } + case 122: { + AbilityTitle2 = input.ReadString(); + break; + } + case 130: { + AbilityDesc2 = input.ReadString(); + break; + } + case 138: { + AbilityTitle3 = input.ReadString(); + break; + } + case 146: { + AbilityDesc3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: + case 32: { + resistEET_.AddEntriesFrom(ref input, _repeated_resistEET_codec); + break; + } + case 42: + case 40: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + case 50: { + Desc = input.ReadString(); + break; + } + case 58: { + SkillDesc = input.ReadString(); + break; + } + case 64: { + EpicLv = input.ReadInt32(); + break; + } + case 72: { + HP = input.ReadInt32(); + break; + } + case 80: { + ATK = input.ReadInt32(); + break; + } + case 88: { + DEF = input.ReadInt32(); + break; + } + case 96: { + TOUGHNESS = input.ReadInt32(); + break; + } + case 106: { + AbilityTitle1 = input.ReadString(); + break; + } + case 114: { + AbilityDesc1 = input.ReadString(); + break; + } + case 122: { + AbilityTitle2 = input.ReadString(); + break; + } + case 130: { + AbilityDesc2 = input.ReadString(); + break; + } + case 138: { + AbilityTitle3 = input.ReadString(); + break; + } + case 146: { + AbilityDesc3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Production.cs b/NTR.Common/protos/Production.cs new file mode 100644 index 0000000..b6a4093 --- /dev/null +++ b/NTR.Common/protos/Production.cs @@ -0,0 +1,1029 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Production.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Production.proto + public static partial class ProductionReflection { + + #region Descriptor + /// File descriptor for Production.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ProductionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBQcm9kdWN0aW9uLnByb3RvIpIECgpQcm9kdWN0aW9uEgoKAmlkGAEgASgF", + "EgwKBG5hbWUYAiABKAkSDAoEZGVzYxgDIAEoCRIVCg1wcm9kdWN0aW9uX2lk", + "GAQgASgFEhwKFHByb2R1Y3Rpb25fcGVyX2JhdGNoGAUgASgFEhoKEnNob3df", + "cHJvZHVjdGlvbl9pZBgGIAEoBRIhChlzaG93X3Byb2R1Y3Rpb25fcGVyX2Jh", + "dGNoGAcgASgFEg0KBWdyb3VwGAggASgFEgsKA3RhZxgJIAEoBRIYChByYXdf", + "bWF0ZXJpYWxfaWQxGAogASgFEhsKE3Jhd19tYXRlcmlhbF9jb3VudDEYCyAB", + "KAUSGAoQcmF3X21hdGVyaWFsX2lkMhgMIAEoBRIbChNyYXdfbWF0ZXJpYWxf", + "Y291bnQyGA0gASgFEhgKEHJhd19tYXRlcmlhbF9pZDMYDiABKAUSGwoTcmF3", + "X21hdGVyaWFsX2NvdW50MxgPIAEoBRIYChByYXdfbWF0ZXJpYWxfaWQ0GBAg", + "ASgFEhsKE3Jhd19tYXRlcmlhbF9jb3VudDQYESABKAUSGwoTaXNfc2hvd193", + "b3JsZF9sZXZlbBgSIAEoBRIaChJ1bmxvY2tfd29ybGRfbGV2ZWwYEyABKAUS", + "EgoKdW5sb2NrX3RpcBgUIAEoCRIPCgdzb3J0X2lkGBUgASgFEhIKCmlzX2Fj", + "dGl2ZWQYFiABKAhCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Production), global::Nova.Client.Production.Parser, new[]{ "Id", "Name", "Desc", "ProductionId", "ProductionPerBatch", "ShowProductionId", "ShowProductionPerBatch", "Group", "Tag", "RawMaterialId1", "RawMaterialCount1", "RawMaterialId2", "RawMaterialCount2", "RawMaterialId3", "RawMaterialCount3", "RawMaterialId4", "RawMaterialCount4", "IsShowWorldLevel", "UnlockWorldLevel", "UnlockTip", "SortId", "IsActived" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Production : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Production()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ProductionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Production() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Production(Production other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + productionId_ = other.productionId_; + productionPerBatch_ = other.productionPerBatch_; + showProductionId_ = other.showProductionId_; + showProductionPerBatch_ = other.showProductionPerBatch_; + group_ = other.group_; + tag_ = other.tag_; + rawMaterialId1_ = other.rawMaterialId1_; + rawMaterialCount1_ = other.rawMaterialCount1_; + rawMaterialId2_ = other.rawMaterialId2_; + rawMaterialCount2_ = other.rawMaterialCount2_; + rawMaterialId3_ = other.rawMaterialId3_; + rawMaterialCount3_ = other.rawMaterialCount3_; + rawMaterialId4_ = other.rawMaterialId4_; + rawMaterialCount4_ = other.rawMaterialCount4_; + isShowWorldLevel_ = other.isShowWorldLevel_; + unlockWorldLevel_ = other.unlockWorldLevel_; + unlockTip_ = other.unlockTip_; + sortId_ = other.sortId_; + isActived_ = other.isActived_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Production Clone() { + return new Production(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "production_id" field. + public const int ProductionIdFieldNumber = 4; + private int productionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProductionId { + get { return productionId_; } + set { + productionId_ = value; + } + } + + /// Field number for the "production_per_batch" field. + public const int ProductionPerBatchFieldNumber = 5; + private int productionPerBatch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProductionPerBatch { + get { return productionPerBatch_; } + set { + productionPerBatch_ = value; + } + } + + /// Field number for the "show_production_id" field. + public const int ShowProductionIdFieldNumber = 6; + private int showProductionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowProductionId { + get { return showProductionId_; } + set { + showProductionId_ = value; + } + } + + /// Field number for the "show_production_per_batch" field. + public const int ShowProductionPerBatchFieldNumber = 7; + private int showProductionPerBatch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowProductionPerBatch { + get { return showProductionPerBatch_; } + set { + showProductionPerBatch_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 8; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 9; + private int tag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tag { + get { return tag_; } + set { + tag_ = value; + } + } + + /// Field number for the "raw_material_id1" field. + public const int RawMaterialId1FieldNumber = 10; + private int rawMaterialId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialId1 { + get { return rawMaterialId1_; } + set { + rawMaterialId1_ = value; + } + } + + /// Field number for the "raw_material_count1" field. + public const int RawMaterialCount1FieldNumber = 11; + private int rawMaterialCount1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialCount1 { + get { return rawMaterialCount1_; } + set { + rawMaterialCount1_ = value; + } + } + + /// Field number for the "raw_material_id2" field. + public const int RawMaterialId2FieldNumber = 12; + private int rawMaterialId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialId2 { + get { return rawMaterialId2_; } + set { + rawMaterialId2_ = value; + } + } + + /// Field number for the "raw_material_count2" field. + public const int RawMaterialCount2FieldNumber = 13; + private int rawMaterialCount2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialCount2 { + get { return rawMaterialCount2_; } + set { + rawMaterialCount2_ = value; + } + } + + /// Field number for the "raw_material_id3" field. + public const int RawMaterialId3FieldNumber = 14; + private int rawMaterialId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialId3 { + get { return rawMaterialId3_; } + set { + rawMaterialId3_ = value; + } + } + + /// Field number for the "raw_material_count3" field. + public const int RawMaterialCount3FieldNumber = 15; + private int rawMaterialCount3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialCount3 { + get { return rawMaterialCount3_; } + set { + rawMaterialCount3_ = value; + } + } + + /// Field number for the "raw_material_id4" field. + public const int RawMaterialId4FieldNumber = 16; + private int rawMaterialId4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialId4 { + get { return rawMaterialId4_; } + set { + rawMaterialId4_ = value; + } + } + + /// Field number for the "raw_material_count4" field. + public const int RawMaterialCount4FieldNumber = 17; + private int rawMaterialCount4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawMaterialCount4 { + get { return rawMaterialCount4_; } + set { + rawMaterialCount4_ = value; + } + } + + /// Field number for the "is_show_world_level" field. + public const int IsShowWorldLevelFieldNumber = 18; + private int isShowWorldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IsShowWorldLevel { + get { return isShowWorldLevel_; } + set { + isShowWorldLevel_ = value; + } + } + + /// Field number for the "unlock_world_level" field. + public const int UnlockWorldLevelFieldNumber = 19; + private int unlockWorldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockWorldLevel { + get { return unlockWorldLevel_; } + set { + unlockWorldLevel_ = value; + } + } + + /// Field number for the "unlock_tip" field. + public const int UnlockTipFieldNumber = 20; + private string unlockTip_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockTip { + get { return unlockTip_; } + set { + unlockTip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort_id" field. + public const int SortIdFieldNumber = 21; + private int sortId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortId { + get { return sortId_; } + set { + sortId_ = value; + } + } + + /// Field number for the "is_actived" field. + public const int IsActivedFieldNumber = 22; + private bool isActived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsActived { + get { return isActived_; } + set { + isActived_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Production); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Production other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ProductionId != other.ProductionId) return false; + if (ProductionPerBatch != other.ProductionPerBatch) return false; + if (ShowProductionId != other.ShowProductionId) return false; + if (ShowProductionPerBatch != other.ShowProductionPerBatch) return false; + if (Group != other.Group) return false; + if (Tag != other.Tag) return false; + if (RawMaterialId1 != other.RawMaterialId1) return false; + if (RawMaterialCount1 != other.RawMaterialCount1) return false; + if (RawMaterialId2 != other.RawMaterialId2) return false; + if (RawMaterialCount2 != other.RawMaterialCount2) return false; + if (RawMaterialId3 != other.RawMaterialId3) return false; + if (RawMaterialCount3 != other.RawMaterialCount3) return false; + if (RawMaterialId4 != other.RawMaterialId4) return false; + if (RawMaterialCount4 != other.RawMaterialCount4) return false; + if (IsShowWorldLevel != other.IsShowWorldLevel) return false; + if (UnlockWorldLevel != other.UnlockWorldLevel) return false; + if (UnlockTip != other.UnlockTip) return false; + if (SortId != other.SortId) return false; + if (IsActived != other.IsActived) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (ProductionId != 0) hash ^= ProductionId.GetHashCode(); + if (ProductionPerBatch != 0) hash ^= ProductionPerBatch.GetHashCode(); + if (ShowProductionId != 0) hash ^= ShowProductionId.GetHashCode(); + if (ShowProductionPerBatch != 0) hash ^= ShowProductionPerBatch.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (Tag != 0) hash ^= Tag.GetHashCode(); + if (RawMaterialId1 != 0) hash ^= RawMaterialId1.GetHashCode(); + if (RawMaterialCount1 != 0) hash ^= RawMaterialCount1.GetHashCode(); + if (RawMaterialId2 != 0) hash ^= RawMaterialId2.GetHashCode(); + if (RawMaterialCount2 != 0) hash ^= RawMaterialCount2.GetHashCode(); + if (RawMaterialId3 != 0) hash ^= RawMaterialId3.GetHashCode(); + if (RawMaterialCount3 != 0) hash ^= RawMaterialCount3.GetHashCode(); + if (RawMaterialId4 != 0) hash ^= RawMaterialId4.GetHashCode(); + if (RawMaterialCount4 != 0) hash ^= RawMaterialCount4.GetHashCode(); + if (IsShowWorldLevel != 0) hash ^= IsShowWorldLevel.GetHashCode(); + if (UnlockWorldLevel != 0) hash ^= UnlockWorldLevel.GetHashCode(); + if (UnlockTip.Length != 0) hash ^= UnlockTip.GetHashCode(); + if (SortId != 0) hash ^= SortId.GetHashCode(); + if (IsActived != false) hash ^= IsActived.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (ProductionId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ProductionId); + } + if (ProductionPerBatch != 0) { + output.WriteRawTag(40); + output.WriteInt32(ProductionPerBatch); + } + if (ShowProductionId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ShowProductionId); + } + if (ShowProductionPerBatch != 0) { + output.WriteRawTag(56); + output.WriteInt32(ShowProductionPerBatch); + } + if (Group != 0) { + output.WriteRawTag(64); + output.WriteInt32(Group); + } + if (Tag != 0) { + output.WriteRawTag(72); + output.WriteInt32(Tag); + } + if (RawMaterialId1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(RawMaterialId1); + } + if (RawMaterialCount1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(RawMaterialCount1); + } + if (RawMaterialId2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(RawMaterialId2); + } + if (RawMaterialCount2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(RawMaterialCount2); + } + if (RawMaterialId3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(RawMaterialId3); + } + if (RawMaterialCount3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(RawMaterialCount3); + } + if (RawMaterialId4 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(RawMaterialId4); + } + if (RawMaterialCount4 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(RawMaterialCount4); + } + if (IsShowWorldLevel != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(IsShowWorldLevel); + } + if (UnlockWorldLevel != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(UnlockWorldLevel); + } + if (UnlockTip.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(UnlockTip); + } + if (SortId != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(SortId); + } + if (IsActived != false) { + output.WriteRawTag(176, 1); + output.WriteBool(IsActived); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (ProductionId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ProductionId); + } + if (ProductionPerBatch != 0) { + output.WriteRawTag(40); + output.WriteInt32(ProductionPerBatch); + } + if (ShowProductionId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ShowProductionId); + } + if (ShowProductionPerBatch != 0) { + output.WriteRawTag(56); + output.WriteInt32(ShowProductionPerBatch); + } + if (Group != 0) { + output.WriteRawTag(64); + output.WriteInt32(Group); + } + if (Tag != 0) { + output.WriteRawTag(72); + output.WriteInt32(Tag); + } + if (RawMaterialId1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(RawMaterialId1); + } + if (RawMaterialCount1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(RawMaterialCount1); + } + if (RawMaterialId2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(RawMaterialId2); + } + if (RawMaterialCount2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(RawMaterialCount2); + } + if (RawMaterialId3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(RawMaterialId3); + } + if (RawMaterialCount3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(RawMaterialCount3); + } + if (RawMaterialId4 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(RawMaterialId4); + } + if (RawMaterialCount4 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(RawMaterialCount4); + } + if (IsShowWorldLevel != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(IsShowWorldLevel); + } + if (UnlockWorldLevel != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(UnlockWorldLevel); + } + if (UnlockTip.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(UnlockTip); + } + if (SortId != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(SortId); + } + if (IsActived != false) { + output.WriteRawTag(176, 1); + output.WriteBool(IsActived); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (ProductionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProductionId); + } + if (ProductionPerBatch != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProductionPerBatch); + } + if (ShowProductionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowProductionId); + } + if (ShowProductionPerBatch != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowProductionPerBatch); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (Tag != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tag); + } + if (RawMaterialId1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialId1); + } + if (RawMaterialCount1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialCount1); + } + if (RawMaterialId2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialId2); + } + if (RawMaterialCount2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialCount2); + } + if (RawMaterialId3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialId3); + } + if (RawMaterialCount3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialCount3); + } + if (RawMaterialId4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialId4); + } + if (RawMaterialCount4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RawMaterialCount4); + } + if (IsShowWorldLevel != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(IsShowWorldLevel); + } + if (UnlockWorldLevel != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UnlockWorldLevel); + } + if (UnlockTip.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UnlockTip); + } + if (SortId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SortId); + } + if (IsActived != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Production other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.ProductionId != 0) { + ProductionId = other.ProductionId; + } + if (other.ProductionPerBatch != 0) { + ProductionPerBatch = other.ProductionPerBatch; + } + if (other.ShowProductionId != 0) { + ShowProductionId = other.ShowProductionId; + } + if (other.ShowProductionPerBatch != 0) { + ShowProductionPerBatch = other.ShowProductionPerBatch; + } + if (other.Group != 0) { + Group = other.Group; + } + if (other.Tag != 0) { + Tag = other.Tag; + } + if (other.RawMaterialId1 != 0) { + RawMaterialId1 = other.RawMaterialId1; + } + if (other.RawMaterialCount1 != 0) { + RawMaterialCount1 = other.RawMaterialCount1; + } + if (other.RawMaterialId2 != 0) { + RawMaterialId2 = other.RawMaterialId2; + } + if (other.RawMaterialCount2 != 0) { + RawMaterialCount2 = other.RawMaterialCount2; + } + if (other.RawMaterialId3 != 0) { + RawMaterialId3 = other.RawMaterialId3; + } + if (other.RawMaterialCount3 != 0) { + RawMaterialCount3 = other.RawMaterialCount3; + } + if (other.RawMaterialId4 != 0) { + RawMaterialId4 = other.RawMaterialId4; + } + if (other.RawMaterialCount4 != 0) { + RawMaterialCount4 = other.RawMaterialCount4; + } + if (other.IsShowWorldLevel != 0) { + IsShowWorldLevel = other.IsShowWorldLevel; + } + if (other.UnlockWorldLevel != 0) { + UnlockWorldLevel = other.UnlockWorldLevel; + } + if (other.UnlockTip.Length != 0) { + UnlockTip = other.UnlockTip; + } + if (other.SortId != 0) { + SortId = other.SortId; + } + if (other.IsActived != false) { + IsActived = other.IsActived; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + ProductionId = input.ReadInt32(); + break; + } + case 40: { + ProductionPerBatch = input.ReadInt32(); + break; + } + case 48: { + ShowProductionId = input.ReadInt32(); + break; + } + case 56: { + ShowProductionPerBatch = input.ReadInt32(); + break; + } + case 64: { + Group = input.ReadInt32(); + break; + } + case 72: { + Tag = input.ReadInt32(); + break; + } + case 80: { + RawMaterialId1 = input.ReadInt32(); + break; + } + case 88: { + RawMaterialCount1 = input.ReadInt32(); + break; + } + case 96: { + RawMaterialId2 = input.ReadInt32(); + break; + } + case 104: { + RawMaterialCount2 = input.ReadInt32(); + break; + } + case 112: { + RawMaterialId3 = input.ReadInt32(); + break; + } + case 120: { + RawMaterialCount3 = input.ReadInt32(); + break; + } + case 128: { + RawMaterialId4 = input.ReadInt32(); + break; + } + case 136: { + RawMaterialCount4 = input.ReadInt32(); + break; + } + case 144: { + IsShowWorldLevel = input.ReadInt32(); + break; + } + case 152: { + UnlockWorldLevel = input.ReadInt32(); + break; + } + case 162: { + UnlockTip = input.ReadString(); + break; + } + case 168: { + SortId = input.ReadInt32(); + break; + } + case 176: { + IsActived = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + ProductionId = input.ReadInt32(); + break; + } + case 40: { + ProductionPerBatch = input.ReadInt32(); + break; + } + case 48: { + ShowProductionId = input.ReadInt32(); + break; + } + case 56: { + ShowProductionPerBatch = input.ReadInt32(); + break; + } + case 64: { + Group = input.ReadInt32(); + break; + } + case 72: { + Tag = input.ReadInt32(); + break; + } + case 80: { + RawMaterialId1 = input.ReadInt32(); + break; + } + case 88: { + RawMaterialCount1 = input.ReadInt32(); + break; + } + case 96: { + RawMaterialId2 = input.ReadInt32(); + break; + } + case 104: { + RawMaterialCount2 = input.ReadInt32(); + break; + } + case 112: { + RawMaterialId3 = input.ReadInt32(); + break; + } + case 120: { + RawMaterialCount3 = input.ReadInt32(); + break; + } + case 128: { + RawMaterialId4 = input.ReadInt32(); + break; + } + case 136: { + RawMaterialCount4 = input.ReadInt32(); + break; + } + case 144: { + IsShowWorldLevel = input.ReadInt32(); + break; + } + case 152: { + UnlockWorldLevel = input.ReadInt32(); + break; + } + case 162: { + UnlockTip = input.ReadString(); + break; + } + case 168: { + SortId = input.ReadInt32(); + break; + } + case 176: { + IsActived = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ProductionType.cs b/NTR.Common/protos/ProductionType.cs new file mode 100644 index 0000000..41016a1 --- /dev/null +++ b/NTR.Common/protos/ProductionType.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ProductionType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ProductionType.proto + public static partial class ProductionTypeReflection { + + #region Descriptor + /// File descriptor for ProductionType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ProductionTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRQcm9kdWN0aW9uVHlwZS5wcm90byJACg5Qcm9kdWN0aW9uVHlwZRIKCgJp", + "ZBgBIAEoBRIRCgl0eXBlX25hbWUYAiABKAkSDwoHc29ydF9pZBgDIAEoBUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ProductionType), global::Nova.Client.ProductionType.Parser, new[]{ "Id", "TypeName", "SortId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ProductionType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductionType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ProductionTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProductionType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProductionType(ProductionType other) : this() { + id_ = other.id_; + typeName_ = other.typeName_; + sortId_ = other.sortId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProductionType Clone() { + return new ProductionType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type_name" field. + public const int TypeNameFieldNumber = 2; + private string typeName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeName { + get { return typeName_; } + set { + typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort_id" field. + public const int SortIdFieldNumber = 3; + private int sortId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortId { + get { return sortId_; } + set { + sortId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ProductionType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProductionType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (TypeName != other.TypeName) return false; + if (SortId != other.SortId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); + if (SortId != 0) hash ^= SortId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (TypeName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TypeName); + } + if (SortId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SortId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (TypeName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TypeName); + } + if (SortId != 0) { + output.WriteRawTag(24); + output.WriteInt32(SortId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (TypeName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); + } + if (SortId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SortId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProductionType other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.TypeName.Length != 0) { + TypeName = other.TypeName; + } + if (other.SortId != 0) { + SortId = other.SortId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + TypeName = input.ReadString(); + break; + } + case 24: { + SortId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + TypeName = input.ReadString(); + break; + } + case 24: { + SortId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/RandomLevelMonster.cs b/NTR.Common/protos/RandomLevelMonster.cs new file mode 100644 index 0000000..24d9d94 --- /dev/null +++ b/NTR.Common/protos/RandomLevelMonster.cs @@ -0,0 +1,2055 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RandomLevelMonster.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from RandomLevelMonster.proto + public static partial class RandomLevelMonsterReflection { + + #region Descriptor + /// File descriptor for RandomLevelMonster.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RandomLevelMonsterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSYW5kb21MZXZlbE1vbnN0ZXIucHJvdG8i0QYKElJhbmRvbUxldmVsTW9u", + "c3RlchIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEg8KB2VwaWNfbHYYAyAB", + "KAUSEgoKYmxvb2RfdHlwZRgEIAEoBRINCgVlX2VfdBgFIAEoBRIOCgZmX2Nf", + "aWQYBiABKAUSDgoGZl9hX2lkGAcgASgFEhAKCG1vdl90eXBlGAggASgFEg8K", + "B3J1bl9zcGQYCSABKAUSFwoPdHJhbnNfc3BkX3NjYWxlGAogASgFEhAKCHdh", + "bGtfc3BkGAsgASgFEg8KB21vdl9hY2MYDCABKAUSEgoKdmlzaW9uX3JuZxgN", + "IAEoBRISCgp2aXNpb25fZGVnGA4gASgFEhAKCGhlYXJfcm5nGA8gASgFEg8K", + "B3JlZl9ybmcYECABKAUSDwoHYWN0X3JuZxgRIAEoBRITCgtkaXNfYWN0X3Ju", + "ZxgSIAEoBRIPCgdyb3Rfc3BkGBMgASgFEhAKCHRlbXBsZXRlGBQgASgFEg0K", + "BXdfZV9wGBUgASgFEg0KBWZfZV9wGBYgASgFEg0KBXNfZV9wGBcgASgFEg0K", + "BWFfZV9wGBggASgFEg0KBWxfZV9wGBkgASgFEg0KBWRfZV9wGBogASgFEg0K", + "BXdfZV9lGBsgASgFEg0KBWZfZV9lGBwgASgFEg0KBXNfZV9lGB0gASgFEg0K", + "BWFfZV9lGB4gASgFEg0KBWxfZV9lGB8gASgFEg0KBWRfZV9lGCAgASgFEg0K", + "BXdfZV9yGCEgASgFEg0KBWZfZV9yGCIgASgFEg0KBXNfZV9yGCMgASgFEg0K", + "BWFfZV9yGCQgASgFEg0KBWxfZV9yGCUgASgFEg0KBWRfZV9yGCYgASgFEhAK", + "CGJ1ZmZfaWRzGCcgAygFEg4KBndlaWdodBgoIAEoBRIUCgx0cmFwX3RhZ19p", + "ZHMYKSADKAUSDwoHZmFjdGlvbhgqIAEoBRISCgpzdXBfY2hhcmdlGCsgASgF", + "EhMKC2lzX3Nob3dfcm5nGCwgASgIEhQKDHRyYXBfYXR0cl9pZBgtIAEoBRIM", + "CgR0YWcxGC4gASgJEgwKBHRhZzIYLyABKAkSDAoEdGFnMxgwIAEoCRIMCgR0", + "YWc0GDEgASgJEgwKBHRhZzUYMiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.RandomLevelMonster), global::Nova.Client.RandomLevelMonster.Parser, new[]{ "Id", "Name", "EpicLv", "BloodType", "EET", "FCId", "FAId", "MovType", "RunSpd", "TransSpdScale", "WalkSpd", "MovAcc", "VisionRng", "VisionDeg", "HearRng", "RefRng", "ActRng", "DisActRng", "RotSpd", "Templete", "WEP", "FEP", "SEP", "AEP", "LEP", "DEP", "WEE", "FEE", "SEE", "AEE", "LEE", "DEE", "WER", "FER", "SER", "AER", "LER", "DER", "BuffIds", "Weight", "TrapTagIds", "Faction", "SupCharge", "IsShowRng", "TrapAttrId", "Tag1", "Tag2", "Tag3", "Tag4", "Tag5" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RandomLevelMonster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RandomLevelMonster()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RandomLevelMonsterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RandomLevelMonster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RandomLevelMonster(RandomLevelMonster other) : this() { + id_ = other.id_; + name_ = other.name_; + epicLv_ = other.epicLv_; + bloodType_ = other.bloodType_; + eET_ = other.eET_; + fCId_ = other.fCId_; + fAId_ = other.fAId_; + movType_ = other.movType_; + runSpd_ = other.runSpd_; + transSpdScale_ = other.transSpdScale_; + walkSpd_ = other.walkSpd_; + movAcc_ = other.movAcc_; + visionRng_ = other.visionRng_; + visionDeg_ = other.visionDeg_; + hearRng_ = other.hearRng_; + refRng_ = other.refRng_; + actRng_ = other.actRng_; + disActRng_ = other.disActRng_; + rotSpd_ = other.rotSpd_; + templete_ = other.templete_; + wEP_ = other.wEP_; + fEP_ = other.fEP_; + sEP_ = other.sEP_; + aEP_ = other.aEP_; + lEP_ = other.lEP_; + dEP_ = other.dEP_; + wEE_ = other.wEE_; + fEE_ = other.fEE_; + sEE_ = other.sEE_; + aEE_ = other.aEE_; + lEE_ = other.lEE_; + dEE_ = other.dEE_; + wER_ = other.wER_; + fER_ = other.fER_; + sER_ = other.sER_; + aER_ = other.aER_; + lER_ = other.lER_; + dER_ = other.dER_; + buffIds_ = other.buffIds_.Clone(); + weight_ = other.weight_; + trapTagIds_ = other.trapTagIds_.Clone(); + faction_ = other.faction_; + supCharge_ = other.supCharge_; + isShowRng_ = other.isShowRng_; + trapAttrId_ = other.trapAttrId_; + tag1_ = other.tag1_; + tag2_ = other.tag2_; + tag3_ = other.tag3_; + tag4_ = other.tag4_; + tag5_ = other.tag5_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RandomLevelMonster Clone() { + return new RandomLevelMonster(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "epic_lv" field. + public const int EpicLvFieldNumber = 3; + private int epicLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EpicLv { + get { return epicLv_; } + set { + epicLv_ = value; + } + } + + /// Field number for the "blood_type" field. + public const int BloodTypeFieldNumber = 4; + private int bloodType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BloodType { + get { return bloodType_; } + set { + bloodType_ = value; + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 5; + private int eET_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EET { + get { return eET_; } + set { + eET_ = value; + } + } + + /// Field number for the "f_c_id" field. + public const int FCIdFieldNumber = 6; + private int fCId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FCId { + get { return fCId_; } + set { + fCId_ = value; + } + } + + /// Field number for the "f_a_id" field. + public const int FAIdFieldNumber = 7; + private int fAId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FAId { + get { return fAId_; } + set { + fAId_ = value; + } + } + + /// Field number for the "mov_type" field. + public const int MovTypeFieldNumber = 8; + private int movType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovType { + get { return movType_; } + set { + movType_ = value; + } + } + + /// Field number for the "run_spd" field. + public const int RunSpdFieldNumber = 9; + private int runSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RunSpd { + get { return runSpd_; } + set { + runSpd_ = value; + } + } + + /// Field number for the "trans_spd_scale" field. + public const int TransSpdScaleFieldNumber = 10; + private int transSpdScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TransSpdScale { + get { return transSpdScale_; } + set { + transSpdScale_ = value; + } + } + + /// Field number for the "walk_spd" field. + public const int WalkSpdFieldNumber = 11; + private int walkSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WalkSpd { + get { return walkSpd_; } + set { + walkSpd_ = value; + } + } + + /// Field number for the "mov_acc" field. + public const int MovAccFieldNumber = 12; + private int movAcc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovAcc { + get { return movAcc_; } + set { + movAcc_ = value; + } + } + + /// Field number for the "vision_rng" field. + public const int VisionRngFieldNumber = 13; + private int visionRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionRng { + get { return visionRng_; } + set { + visionRng_ = value; + } + } + + /// Field number for the "vision_deg" field. + public const int VisionDegFieldNumber = 14; + private int visionDeg_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VisionDeg { + get { return visionDeg_; } + set { + visionDeg_ = value; + } + } + + /// Field number for the "hear_rng" field. + public const int HearRngFieldNumber = 15; + private int hearRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HearRng { + get { return hearRng_; } + set { + hearRng_ = value; + } + } + + /// Field number for the "ref_rng" field. + public const int RefRngFieldNumber = 16; + private int refRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefRng { + get { return refRng_; } + set { + refRng_ = value; + } + } + + /// Field number for the "act_rng" field. + public const int ActRngFieldNumber = 17; + private int actRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActRng { + get { return actRng_; } + set { + actRng_ = value; + } + } + + /// Field number for the "dis_act_rng" field. + public const int DisActRngFieldNumber = 18; + private int disActRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DisActRng { + get { return disActRng_; } + set { + disActRng_ = value; + } + } + + /// Field number for the "rot_spd" field. + public const int RotSpdFieldNumber = 19; + private int rotSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RotSpd { + get { return rotSpd_; } + set { + rotSpd_ = value; + } + } + + /// Field number for the "templete" field. + public const int TempleteFieldNumber = 20; + private int templete_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Templete { + get { return templete_; } + set { + templete_ = value; + } + } + + /// Field number for the "w_e_p" field. + public const int WEPFieldNumber = 21; + private int wEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEP { + get { return wEP_; } + set { + wEP_ = value; + } + } + + /// Field number for the "f_e_p" field. + public const int FEPFieldNumber = 22; + private int fEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEP { + get { return fEP_; } + set { + fEP_ = value; + } + } + + /// Field number for the "s_e_p" field. + public const int SEPFieldNumber = 23; + private int sEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEP { + get { return sEP_; } + set { + sEP_ = value; + } + } + + /// Field number for the "a_e_p" field. + public const int AEPFieldNumber = 24; + private int aEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEP { + get { return aEP_; } + set { + aEP_ = value; + } + } + + /// Field number for the "l_e_p" field. + public const int LEPFieldNumber = 25; + private int lEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEP { + get { return lEP_; } + set { + lEP_ = value; + } + } + + /// Field number for the "d_e_p" field. + public const int DEPFieldNumber = 26; + private int dEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEP { + get { return dEP_; } + set { + dEP_ = value; + } + } + + /// Field number for the "w_e_e" field. + public const int WEEFieldNumber = 27; + private int wEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEE { + get { return wEE_; } + set { + wEE_ = value; + } + } + + /// Field number for the "f_e_e" field. + public const int FEEFieldNumber = 28; + private int fEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEE { + get { return fEE_; } + set { + fEE_ = value; + } + } + + /// Field number for the "s_e_e" field. + public const int SEEFieldNumber = 29; + private int sEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEE { + get { return sEE_; } + set { + sEE_ = value; + } + } + + /// Field number for the "a_e_e" field. + public const int AEEFieldNumber = 30; + private int aEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEE { + get { return aEE_; } + set { + aEE_ = value; + } + } + + /// Field number for the "l_e_e" field. + public const int LEEFieldNumber = 31; + private int lEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEE { + get { return lEE_; } + set { + lEE_ = value; + } + } + + /// Field number for the "d_e_e" field. + public const int DEEFieldNumber = 32; + private int dEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEE { + get { return dEE_; } + set { + dEE_ = value; + } + } + + /// Field number for the "w_e_r" field. + public const int WERFieldNumber = 33; + private int wER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WER { + get { return wER_; } + set { + wER_ = value; + } + } + + /// Field number for the "f_e_r" field. + public const int FERFieldNumber = 34; + private int fER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FER { + get { return fER_; } + set { + fER_ = value; + } + } + + /// Field number for the "s_e_r" field. + public const int SERFieldNumber = 35; + private int sER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SER { + get { return sER_; } + set { + sER_ = value; + } + } + + /// Field number for the "a_e_r" field. + public const int AERFieldNumber = 36; + private int aER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AER { + get { return aER_; } + set { + aER_ = value; + } + } + + /// Field number for the "l_e_r" field. + public const int LERFieldNumber = 37; + private int lER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LER { + get { return lER_; } + set { + lER_ = value; + } + } + + /// Field number for the "d_e_r" field. + public const int DERFieldNumber = 38; + private int dER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DER { + get { return dER_; } + set { + dER_ = value; + } + } + + /// Field number for the "buff_ids" field. + public const int BuffIdsFieldNumber = 39; + private static readonly pb::FieldCodec _repeated_buffIds_codec + = pb::FieldCodec.ForInt32(314); + private readonly pbc::RepeatedField buffIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffIds { + get { return buffIds_; } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 40; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + /// Field number for the "trap_tag_ids" field. + public const int TrapTagIdsFieldNumber = 41; + private static readonly pb::FieldCodec _repeated_trapTagIds_codec + = pb::FieldCodec.ForInt32(330); + private readonly pbc::RepeatedField trapTagIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TrapTagIds { + get { return trapTagIds_; } + } + + /// Field number for the "faction" field. + public const int FactionFieldNumber = 42; + private int faction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Faction { + get { return faction_; } + set { + faction_ = value; + } + } + + /// Field number for the "sup_charge" field. + public const int SupChargeFieldNumber = 43; + private int supCharge_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SupCharge { + get { return supCharge_; } + set { + supCharge_ = value; + } + } + + /// Field number for the "is_show_rng" field. + public const int IsShowRngFieldNumber = 44; + private bool isShowRng_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsShowRng { + get { return isShowRng_; } + set { + isShowRng_ = value; + } + } + + /// Field number for the "trap_attr_id" field. + public const int TrapAttrIdFieldNumber = 45; + private int trapAttrId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TrapAttrId { + get { return trapAttrId_; } + set { + trapAttrId_ = value; + } + } + + /// Field number for the "tag1" field. + public const int Tag1FieldNumber = 46; + private string tag1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag1 { + get { return tag1_; } + set { + tag1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag2" field. + public const int Tag2FieldNumber = 47; + private string tag2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag2 { + get { return tag2_; } + set { + tag2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag3" field. + public const int Tag3FieldNumber = 48; + private string tag3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag3 { + get { return tag3_; } + set { + tag3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag4" field. + public const int Tag4FieldNumber = 49; + private string tag4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag4 { + get { return tag4_; } + set { + tag4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag5" field. + public const int Tag5FieldNumber = 50; + private string tag5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag5 { + get { return tag5_; } + set { + tag5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RandomLevelMonster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RandomLevelMonster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (EpicLv != other.EpicLv) return false; + if (BloodType != other.BloodType) return false; + if (EET != other.EET) return false; + if (FCId != other.FCId) return false; + if (FAId != other.FAId) return false; + if (MovType != other.MovType) return false; + if (RunSpd != other.RunSpd) return false; + if (TransSpdScale != other.TransSpdScale) return false; + if (WalkSpd != other.WalkSpd) return false; + if (MovAcc != other.MovAcc) return false; + if (VisionRng != other.VisionRng) return false; + if (VisionDeg != other.VisionDeg) return false; + if (HearRng != other.HearRng) return false; + if (RefRng != other.RefRng) return false; + if (ActRng != other.ActRng) return false; + if (DisActRng != other.DisActRng) return false; + if (RotSpd != other.RotSpd) return false; + if (Templete != other.Templete) return false; + if (WEP != other.WEP) return false; + if (FEP != other.FEP) return false; + if (SEP != other.SEP) return false; + if (AEP != other.AEP) return false; + if (LEP != other.LEP) return false; + if (DEP != other.DEP) return false; + if (WEE != other.WEE) return false; + if (FEE != other.FEE) return false; + if (SEE != other.SEE) return false; + if (AEE != other.AEE) return false; + if (LEE != other.LEE) return false; + if (DEE != other.DEE) return false; + if (WER != other.WER) return false; + if (FER != other.FER) return false; + if (SER != other.SER) return false; + if (AER != other.AER) return false; + if (LER != other.LER) return false; + if (DER != other.DER) return false; + if(!buffIds_.Equals(other.buffIds_)) return false; + if (Weight != other.Weight) return false; + if(!trapTagIds_.Equals(other.trapTagIds_)) return false; + if (Faction != other.Faction) return false; + if (SupCharge != other.SupCharge) return false; + if (IsShowRng != other.IsShowRng) return false; + if (TrapAttrId != other.TrapAttrId) return false; + if (Tag1 != other.Tag1) return false; + if (Tag2 != other.Tag2) return false; + if (Tag3 != other.Tag3) return false; + if (Tag4 != other.Tag4) return false; + if (Tag5 != other.Tag5) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (EpicLv != 0) hash ^= EpicLv.GetHashCode(); + if (BloodType != 0) hash ^= BloodType.GetHashCode(); + if (EET != 0) hash ^= EET.GetHashCode(); + if (FCId != 0) hash ^= FCId.GetHashCode(); + if (FAId != 0) hash ^= FAId.GetHashCode(); + if (MovType != 0) hash ^= MovType.GetHashCode(); + if (RunSpd != 0) hash ^= RunSpd.GetHashCode(); + if (TransSpdScale != 0) hash ^= TransSpdScale.GetHashCode(); + if (WalkSpd != 0) hash ^= WalkSpd.GetHashCode(); + if (MovAcc != 0) hash ^= MovAcc.GetHashCode(); + if (VisionRng != 0) hash ^= VisionRng.GetHashCode(); + if (VisionDeg != 0) hash ^= VisionDeg.GetHashCode(); + if (HearRng != 0) hash ^= HearRng.GetHashCode(); + if (RefRng != 0) hash ^= RefRng.GetHashCode(); + if (ActRng != 0) hash ^= ActRng.GetHashCode(); + if (DisActRng != 0) hash ^= DisActRng.GetHashCode(); + if (RotSpd != 0) hash ^= RotSpd.GetHashCode(); + if (Templete != 0) hash ^= Templete.GetHashCode(); + if (WEP != 0) hash ^= WEP.GetHashCode(); + if (FEP != 0) hash ^= FEP.GetHashCode(); + if (SEP != 0) hash ^= SEP.GetHashCode(); + if (AEP != 0) hash ^= AEP.GetHashCode(); + if (LEP != 0) hash ^= LEP.GetHashCode(); + if (DEP != 0) hash ^= DEP.GetHashCode(); + if (WEE != 0) hash ^= WEE.GetHashCode(); + if (FEE != 0) hash ^= FEE.GetHashCode(); + if (SEE != 0) hash ^= SEE.GetHashCode(); + if (AEE != 0) hash ^= AEE.GetHashCode(); + if (LEE != 0) hash ^= LEE.GetHashCode(); + if (DEE != 0) hash ^= DEE.GetHashCode(); + if (WER != 0) hash ^= WER.GetHashCode(); + if (FER != 0) hash ^= FER.GetHashCode(); + if (SER != 0) hash ^= SER.GetHashCode(); + if (AER != 0) hash ^= AER.GetHashCode(); + if (LER != 0) hash ^= LER.GetHashCode(); + if (DER != 0) hash ^= DER.GetHashCode(); + hash ^= buffIds_.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + hash ^= trapTagIds_.GetHashCode(); + if (Faction != 0) hash ^= Faction.GetHashCode(); + if (SupCharge != 0) hash ^= SupCharge.GetHashCode(); + if (IsShowRng != false) hash ^= IsShowRng.GetHashCode(); + if (TrapAttrId != 0) hash ^= TrapAttrId.GetHashCode(); + if (Tag1.Length != 0) hash ^= Tag1.GetHashCode(); + if (Tag2.Length != 0) hash ^= Tag2.GetHashCode(); + if (Tag3.Length != 0) hash ^= Tag3.GetHashCode(); + if (Tag4.Length != 0) hash ^= Tag4.GetHashCode(); + if (Tag5.Length != 0) hash ^= Tag5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (EpicLv != 0) { + output.WriteRawTag(24); + output.WriteInt32(EpicLv); + } + if (BloodType != 0) { + output.WriteRawTag(32); + output.WriteInt32(BloodType); + } + if (EET != 0) { + output.WriteRawTag(40); + output.WriteInt32(EET); + } + if (FCId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FCId); + } + if (FAId != 0) { + output.WriteRawTag(56); + output.WriteInt32(FAId); + } + if (MovType != 0) { + output.WriteRawTag(64); + output.WriteInt32(MovType); + } + if (RunSpd != 0) { + output.WriteRawTag(72); + output.WriteInt32(RunSpd); + } + if (TransSpdScale != 0) { + output.WriteRawTag(80); + output.WriteInt32(TransSpdScale); + } + if (WalkSpd != 0) { + output.WriteRawTag(88); + output.WriteInt32(WalkSpd); + } + if (MovAcc != 0) { + output.WriteRawTag(96); + output.WriteInt32(MovAcc); + } + if (VisionRng != 0) { + output.WriteRawTag(104); + output.WriteInt32(VisionRng); + } + if (VisionDeg != 0) { + output.WriteRawTag(112); + output.WriteInt32(VisionDeg); + } + if (HearRng != 0) { + output.WriteRawTag(120); + output.WriteInt32(HearRng); + } + if (RefRng != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(RefRng); + } + if (ActRng != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ActRng); + } + if (DisActRng != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(DisActRng); + } + if (RotSpd != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(RotSpd); + } + if (Templete != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Templete); + } + if (WEP != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(DEP); + } + if (WEE != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(DER); + } + buffIds_.WriteTo(output, _repeated_buffIds_codec); + if (Weight != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(Weight); + } + trapTagIds_.WriteTo(output, _repeated_trapTagIds_codec); + if (Faction != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(Faction); + } + if (SupCharge != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(SupCharge); + } + if (IsShowRng != false) { + output.WriteRawTag(224, 2); + output.WriteBool(IsShowRng); + } + if (TrapAttrId != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(TrapAttrId); + } + if (Tag1.Length != 0) { + output.WriteRawTag(242, 2); + output.WriteString(Tag1); + } + if (Tag2.Length != 0) { + output.WriteRawTag(250, 2); + output.WriteString(Tag2); + } + if (Tag3.Length != 0) { + output.WriteRawTag(130, 3); + output.WriteString(Tag3); + } + if (Tag4.Length != 0) { + output.WriteRawTag(138, 3); + output.WriteString(Tag4); + } + if (Tag5.Length != 0) { + output.WriteRawTag(146, 3); + output.WriteString(Tag5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (EpicLv != 0) { + output.WriteRawTag(24); + output.WriteInt32(EpicLv); + } + if (BloodType != 0) { + output.WriteRawTag(32); + output.WriteInt32(BloodType); + } + if (EET != 0) { + output.WriteRawTag(40); + output.WriteInt32(EET); + } + if (FCId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FCId); + } + if (FAId != 0) { + output.WriteRawTag(56); + output.WriteInt32(FAId); + } + if (MovType != 0) { + output.WriteRawTag(64); + output.WriteInt32(MovType); + } + if (RunSpd != 0) { + output.WriteRawTag(72); + output.WriteInt32(RunSpd); + } + if (TransSpdScale != 0) { + output.WriteRawTag(80); + output.WriteInt32(TransSpdScale); + } + if (WalkSpd != 0) { + output.WriteRawTag(88); + output.WriteInt32(WalkSpd); + } + if (MovAcc != 0) { + output.WriteRawTag(96); + output.WriteInt32(MovAcc); + } + if (VisionRng != 0) { + output.WriteRawTag(104); + output.WriteInt32(VisionRng); + } + if (VisionDeg != 0) { + output.WriteRawTag(112); + output.WriteInt32(VisionDeg); + } + if (HearRng != 0) { + output.WriteRawTag(120); + output.WriteInt32(HearRng); + } + if (RefRng != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(RefRng); + } + if (ActRng != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ActRng); + } + if (DisActRng != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(DisActRng); + } + if (RotSpd != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(RotSpd); + } + if (Templete != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Templete); + } + if (WEP != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(DEP); + } + if (WEE != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(DER); + } + buffIds_.WriteTo(ref output, _repeated_buffIds_codec); + if (Weight != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(Weight); + } + trapTagIds_.WriteTo(ref output, _repeated_trapTagIds_codec); + if (Faction != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(Faction); + } + if (SupCharge != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(SupCharge); + } + if (IsShowRng != false) { + output.WriteRawTag(224, 2); + output.WriteBool(IsShowRng); + } + if (TrapAttrId != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(TrapAttrId); + } + if (Tag1.Length != 0) { + output.WriteRawTag(242, 2); + output.WriteString(Tag1); + } + if (Tag2.Length != 0) { + output.WriteRawTag(250, 2); + output.WriteString(Tag2); + } + if (Tag3.Length != 0) { + output.WriteRawTag(130, 3); + output.WriteString(Tag3); + } + if (Tag4.Length != 0) { + output.WriteRawTag(138, 3); + output.WriteString(Tag4); + } + if (Tag5.Length != 0) { + output.WriteRawTag(146, 3); + output.WriteString(Tag5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (EpicLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EpicLv); + } + if (BloodType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BloodType); + } + if (EET != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EET); + } + if (FCId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FCId); + } + if (FAId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FAId); + } + if (MovType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MovType); + } + if (RunSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RunSpd); + } + if (TransSpdScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TransSpdScale); + } + if (WalkSpd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WalkSpd); + } + if (MovAcc != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MovAcc); + } + if (VisionRng != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VisionRng); + } + if (VisionDeg != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VisionDeg); + } + if (HearRng != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HearRng); + } + if (RefRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RefRng); + } + if (ActRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ActRng); + } + if (DisActRng != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DisActRng); + } + if (RotSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RotSpd); + } + if (Templete != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Templete); + } + if (WEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEP); + } + if (FEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEP); + } + if (SEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEP); + } + if (AEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEP); + } + if (LEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEP); + } + if (DEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEP); + } + if (WEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEE); + } + if (FEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEE); + } + if (SEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEE); + } + if (AEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEE); + } + if (LEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEE); + } + if (DEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEE); + } + if (WER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WER); + } + if (FER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FER); + } + if (SER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SER); + } + if (AER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AER); + } + if (LER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LER); + } + if (DER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DER); + } + size += buffIds_.CalculateSize(_repeated_buffIds_codec); + if (Weight != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + size += trapTagIds_.CalculateSize(_repeated_trapTagIds_codec); + if (Faction != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Faction); + } + if (SupCharge != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SupCharge); + } + if (IsShowRng != false) { + size += 2 + 1; + } + if (TrapAttrId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TrapAttrId); + } + if (Tag1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag1); + } + if (Tag2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag2); + } + if (Tag3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag3); + } + if (Tag4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag4); + } + if (Tag5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RandomLevelMonster other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.EpicLv != 0) { + EpicLv = other.EpicLv; + } + if (other.BloodType != 0) { + BloodType = other.BloodType; + } + if (other.EET != 0) { + EET = other.EET; + } + if (other.FCId != 0) { + FCId = other.FCId; + } + if (other.FAId != 0) { + FAId = other.FAId; + } + if (other.MovType != 0) { + MovType = other.MovType; + } + if (other.RunSpd != 0) { + RunSpd = other.RunSpd; + } + if (other.TransSpdScale != 0) { + TransSpdScale = other.TransSpdScale; + } + if (other.WalkSpd != 0) { + WalkSpd = other.WalkSpd; + } + if (other.MovAcc != 0) { + MovAcc = other.MovAcc; + } + if (other.VisionRng != 0) { + VisionRng = other.VisionRng; + } + if (other.VisionDeg != 0) { + VisionDeg = other.VisionDeg; + } + if (other.HearRng != 0) { + HearRng = other.HearRng; + } + if (other.RefRng != 0) { + RefRng = other.RefRng; + } + if (other.ActRng != 0) { + ActRng = other.ActRng; + } + if (other.DisActRng != 0) { + DisActRng = other.DisActRng; + } + if (other.RotSpd != 0) { + RotSpd = other.RotSpd; + } + if (other.Templete != 0) { + Templete = other.Templete; + } + if (other.WEP != 0) { + WEP = other.WEP; + } + if (other.FEP != 0) { + FEP = other.FEP; + } + if (other.SEP != 0) { + SEP = other.SEP; + } + if (other.AEP != 0) { + AEP = other.AEP; + } + if (other.LEP != 0) { + LEP = other.LEP; + } + if (other.DEP != 0) { + DEP = other.DEP; + } + if (other.WEE != 0) { + WEE = other.WEE; + } + if (other.FEE != 0) { + FEE = other.FEE; + } + if (other.SEE != 0) { + SEE = other.SEE; + } + if (other.AEE != 0) { + AEE = other.AEE; + } + if (other.LEE != 0) { + LEE = other.LEE; + } + if (other.DEE != 0) { + DEE = other.DEE; + } + if (other.WER != 0) { + WER = other.WER; + } + if (other.FER != 0) { + FER = other.FER; + } + if (other.SER != 0) { + SER = other.SER; + } + if (other.AER != 0) { + AER = other.AER; + } + if (other.LER != 0) { + LER = other.LER; + } + if (other.DER != 0) { + DER = other.DER; + } + buffIds_.Add(other.buffIds_); + if (other.Weight != 0) { + Weight = other.Weight; + } + trapTagIds_.Add(other.trapTagIds_); + if (other.Faction != 0) { + Faction = other.Faction; + } + if (other.SupCharge != 0) { + SupCharge = other.SupCharge; + } + if (other.IsShowRng != false) { + IsShowRng = other.IsShowRng; + } + if (other.TrapAttrId != 0) { + TrapAttrId = other.TrapAttrId; + } + if (other.Tag1.Length != 0) { + Tag1 = other.Tag1; + } + if (other.Tag2.Length != 0) { + Tag2 = other.Tag2; + } + if (other.Tag3.Length != 0) { + Tag3 = other.Tag3; + } + if (other.Tag4.Length != 0) { + Tag4 = other.Tag4; + } + if (other.Tag5.Length != 0) { + Tag5 = other.Tag5; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + EpicLv = input.ReadInt32(); + break; + } + case 32: { + BloodType = input.ReadInt32(); + break; + } + case 40: { + EET = input.ReadInt32(); + break; + } + case 48: { + FCId = input.ReadInt32(); + break; + } + case 56: { + FAId = input.ReadInt32(); + break; + } + case 64: { + MovType = input.ReadInt32(); + break; + } + case 72: { + RunSpd = input.ReadInt32(); + break; + } + case 80: { + TransSpdScale = input.ReadInt32(); + break; + } + case 88: { + WalkSpd = input.ReadInt32(); + break; + } + case 96: { + MovAcc = input.ReadInt32(); + break; + } + case 104: { + VisionRng = input.ReadInt32(); + break; + } + case 112: { + VisionDeg = input.ReadInt32(); + break; + } + case 120: { + HearRng = input.ReadInt32(); + break; + } + case 128: { + RefRng = input.ReadInt32(); + break; + } + case 136: { + ActRng = input.ReadInt32(); + break; + } + case 144: { + DisActRng = input.ReadInt32(); + break; + } + case 152: { + RotSpd = input.ReadInt32(); + break; + } + case 160: { + Templete = input.ReadInt32(); + break; + } + case 168: { + WEP = input.ReadInt32(); + break; + } + case 176: { + FEP = input.ReadInt32(); + break; + } + case 184: { + SEP = input.ReadInt32(); + break; + } + case 192: { + AEP = input.ReadInt32(); + break; + } + case 200: { + LEP = input.ReadInt32(); + break; + } + case 208: { + DEP = input.ReadInt32(); + break; + } + case 216: { + WEE = input.ReadInt32(); + break; + } + case 224: { + FEE = input.ReadInt32(); + break; + } + case 232: { + SEE = input.ReadInt32(); + break; + } + case 240: { + AEE = input.ReadInt32(); + break; + } + case 248: { + LEE = input.ReadInt32(); + break; + } + case 256: { + DEE = input.ReadInt32(); + break; + } + case 264: { + WER = input.ReadInt32(); + break; + } + case 272: { + FER = input.ReadInt32(); + break; + } + case 280: { + SER = input.ReadInt32(); + break; + } + case 288: { + AER = input.ReadInt32(); + break; + } + case 296: { + LER = input.ReadInt32(); + break; + } + case 304: { + DER = input.ReadInt32(); + break; + } + case 314: + case 312: { + buffIds_.AddEntriesFrom(input, _repeated_buffIds_codec); + break; + } + case 320: { + Weight = input.ReadInt32(); + break; + } + case 330: + case 328: { + trapTagIds_.AddEntriesFrom(input, _repeated_trapTagIds_codec); + break; + } + case 336: { + Faction = input.ReadInt32(); + break; + } + case 344: { + SupCharge = input.ReadInt32(); + break; + } + case 352: { + IsShowRng = input.ReadBool(); + break; + } + case 360: { + TrapAttrId = input.ReadInt32(); + break; + } + case 370: { + Tag1 = input.ReadString(); + break; + } + case 378: { + Tag2 = input.ReadString(); + break; + } + case 386: { + Tag3 = input.ReadString(); + break; + } + case 394: { + Tag4 = input.ReadString(); + break; + } + case 402: { + Tag5 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + EpicLv = input.ReadInt32(); + break; + } + case 32: { + BloodType = input.ReadInt32(); + break; + } + case 40: { + EET = input.ReadInt32(); + break; + } + case 48: { + FCId = input.ReadInt32(); + break; + } + case 56: { + FAId = input.ReadInt32(); + break; + } + case 64: { + MovType = input.ReadInt32(); + break; + } + case 72: { + RunSpd = input.ReadInt32(); + break; + } + case 80: { + TransSpdScale = input.ReadInt32(); + break; + } + case 88: { + WalkSpd = input.ReadInt32(); + break; + } + case 96: { + MovAcc = input.ReadInt32(); + break; + } + case 104: { + VisionRng = input.ReadInt32(); + break; + } + case 112: { + VisionDeg = input.ReadInt32(); + break; + } + case 120: { + HearRng = input.ReadInt32(); + break; + } + case 128: { + RefRng = input.ReadInt32(); + break; + } + case 136: { + ActRng = input.ReadInt32(); + break; + } + case 144: { + DisActRng = input.ReadInt32(); + break; + } + case 152: { + RotSpd = input.ReadInt32(); + break; + } + case 160: { + Templete = input.ReadInt32(); + break; + } + case 168: { + WEP = input.ReadInt32(); + break; + } + case 176: { + FEP = input.ReadInt32(); + break; + } + case 184: { + SEP = input.ReadInt32(); + break; + } + case 192: { + AEP = input.ReadInt32(); + break; + } + case 200: { + LEP = input.ReadInt32(); + break; + } + case 208: { + DEP = input.ReadInt32(); + break; + } + case 216: { + WEE = input.ReadInt32(); + break; + } + case 224: { + FEE = input.ReadInt32(); + break; + } + case 232: { + SEE = input.ReadInt32(); + break; + } + case 240: { + AEE = input.ReadInt32(); + break; + } + case 248: { + LEE = input.ReadInt32(); + break; + } + case 256: { + DEE = input.ReadInt32(); + break; + } + case 264: { + WER = input.ReadInt32(); + break; + } + case 272: { + FER = input.ReadInt32(); + break; + } + case 280: { + SER = input.ReadInt32(); + break; + } + case 288: { + AER = input.ReadInt32(); + break; + } + case 296: { + LER = input.ReadInt32(); + break; + } + case 304: { + DER = input.ReadInt32(); + break; + } + case 314: + case 312: { + buffIds_.AddEntriesFrom(ref input, _repeated_buffIds_codec); + break; + } + case 320: { + Weight = input.ReadInt32(); + break; + } + case 330: + case 328: { + trapTagIds_.AddEntriesFrom(ref input, _repeated_trapTagIds_codec); + break; + } + case 336: { + Faction = input.ReadInt32(); + break; + } + case 344: { + SupCharge = input.ReadInt32(); + break; + } + case 352: { + IsShowRng = input.ReadBool(); + break; + } + case 360: { + TrapAttrId = input.ReadInt32(); + break; + } + case 370: { + Tag1 = input.ReadString(); + break; + } + case 378: { + Tag2 = input.ReadString(); + break; + } + case 386: { + Tag3 = input.ReadString(); + break; + } + case 394: { + Tag4 = input.ReadString(); + break; + } + case 402: { + Tag5 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Rank.cs b/NTR.Common/protos/Rank.cs new file mode 100644 index 0000000..14f5f11 --- /dev/null +++ b/NTR.Common/protos/Rank.cs @@ -0,0 +1,278 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Rank.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Rank.proto + public static partial class RankReflection { + + #region Descriptor + /// File descriptor for Rank.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RankReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpSYW5rLnByb3RvIiIKBFJhbmsSDQoFcmFua18YASABKAUSCwoDZXhwGAIg", + "ASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Rank), global::Nova.Client.Rank.Parser, new[]{ "Rank_", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Rank : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rank()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RankReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rank() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rank(Rank other) : this() { + rank_ = other.rank_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rank Clone() { + return new Rank(this); + } + + /// Field number for the "rank_" field. + public const int Rank_FieldNumber = 1; + private int rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rank_ { + get { return rank_; } + set { + rank_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 2; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Rank); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Rank other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Rank_ != other.Rank_) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Rank_ != 0) hash ^= Rank_.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Rank_ != 0) { + output.WriteRawTag(8); + output.WriteInt32(Rank_); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Rank_ != 0) { + output.WriteRawTag(8); + output.WriteInt32(Rank_); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Rank_ != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank_); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Rank other) { + if (other == null) { + return; + } + if (other.Rank_ != 0) { + Rank_ = other.Rank_; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Rank_ = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Rank_ = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Recorder.cs b/NTR.Common/protos/Recorder.cs new file mode 100644 index 0000000..ae2b4e9 --- /dev/null +++ b/NTR.Common/protos/Recorder.cs @@ -0,0 +1,4181 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Recorder.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Recorder.proto + public static partial class RecorderReflection { + + #region Descriptor + /// File descriptor for Recorder.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RecorderReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5SZWNvcmRlci5wcm90byKhEAoIUmVjb3JkZXISEQoJbWF4X2ZyYW1lGAEg", + "ASgNEhAKCGZsb29yX2lkGAIgASgNEiEKCHNwYXduZXJzGAMgAygLMg8uUmVj", + "b3JkZXIuU3Bhd24SIQoHZGFtYWdlcxgEIAMoCzIQLlJlY29yZGVyLkRhbWFn", + "ZRIfCgZkZWF0aHMYBSADKAsyDy5SZWNvcmRlci5EZWF0aBpsCgVTcGF3bhIQ", + "CghmcmFtZV9pZBgBIAEoDRImCghlbnRfdHlwZRgCIAEoDjIULlJlY29yZGVy", + "LkVudGl0eVR5cGUSCgoCaWQYAyABKA0SEAoIcHJvdG9faWQYBCABKA0SCwoD", + "aF9wGAUgASgFGskBCgZEYW1hZ2USCgoCaWQYASABKA0SEAoIZnJhbWVfaWQY", + "AiABKA0SJgoIZG1nX3R5cGUYAyABKA4yFC5SZWNvcmRlci5EYW1hZ2VUeXBl", + "Eg0KBXZhbHVlGAQgASgFEhYKDmhpdF9kYW1hZ2VfaV9kGAUgASgFEhAKCGlz", + "X2NyaXRlGAYgASgIEiAKBGZyb20YByABKAsyEi5SZWNvcmRlci5BdHRhY2tl", + "chIeCgJ0bxgIIAEoCzISLlJlY29yZGVyLkRlZmVuZGVyGsoFCghBdHRhY2tl", + "chIKCgJpZBgBIAEoDRIQCghwcm90b19pZBgCIAEoDRIoCgllbnRfY2xhc3MY", + "AyABKA4yFS5SZWNvcmRlci5FbnRpdHlDbGFzcxILCgNhdGsYBCABKAISGwoT", + "c2tpbGxfcGVyY2VudF9hbWVuZBgFIAEoAhIiChp0YWxlbnRfZ3JvdXBfcGVy", + "Y2VudF9hbWVuZBgGIAEoAhIXCg9za2lsbF9hYnNfYW1lbmQYByABKAISHgoW", + "dGFsZW50X2dyb3VwX2Fic19hbWVuZBgIIAEoAhIcChRwZXJrX2ludGVuc2l0", + "eV9yYXRpbxgJIAEoAhIWCg5zbG90X2RtZ19yYXRpbxgKIAEoAhILCgNlX2UY", + "CyABKAISFQoNZ2VuX2RtZ19yYXRpbxgMIAEoAhIQCghkbWdfcGx1cxgNIAEo", + "AhISCgpjcml0X3JhdGlvGA4gASgCEhcKD2ZpbmFsX2RtZ19yYXRpbxgPIAEo", + "AhIWCg5maW5hbF9kbWdfcGx1cxgQIAEoAhIRCgljcml0X3JhdGUYESABKAIS", + "EgoKZGVmX3BpZXJjZRgSIAEoAhISCgpkZWZfaWdub3JlGBMgASgCEg0KBXdf", + "ZV9wGBQgASgFEg0KBWZfZV9wGBUgASgFEg0KBXNfZV9wGBYgASgFEg0KBWFf", + "ZV9wGBcgASgFEg0KBWxfZV9wGBggASgFEg0KBWRfZV9wGBkgASgFEg0KBXdf", + "ZV9pGBogASgCEg0KBWZfZV9pGBsgASgCEg0KBXNfZV9pGBwgASgCEg0KBWFf", + "ZV9pGB0gASgCEg0KBWxfZV9pGB4gASgCEg0KBWRfZV9pGB8gASgCEhEKCWJ1", + "ZmZfaV9kcxggIAMoBRITCgtlZmZlY3RfaV9kcxgiIAMoBRInCgphdHRyaWJ1", + "dGVzGCMgAygLMhMuUmVjb3JkZXIuQXR0cmlidXRlGlkKCUF0dHJpYnV0ZRIO", + "CgZvcmlnaW4YASABKAISEgoKYmFzZV9hbWVuZBgCIAEoAhIVCg1wZXJjZW50", + "X2FtZW5kGAMgASgCEhEKCWFic19hbWVuZBgEIAEoAhrcAwoIRGVmZW5kZXIS", + "CgoCaWQYASABKA0SEAoIcHJvdG9faWQYAiABKA0SKAoJZW50X2NsYXNzGAMg", + "ASgOMhUuUmVjb3JkZXIuRW50aXR5Q2xhc3MSCwoDaF9wGAQgASgFEg8KB21h", + "eF9oX3AYBSABKAUSEAoIZXJfYW1lbmQYBiABKAISEQoJZGVmX2FtZW5kGAcg", + "ASgCEhoKEnJjZF9zbG90X2RtZ19yYXRpbxgIIAEoAhIRCgllX2Vfcl9jX2QY", + "CSABKAISGQoRZ2VuX2RtZ19yY2RfcmF0aW8YCiABKAISFAoMZG1nX3BsdXNf", + "cmNkGAsgASgCEg8KB3NyY19kZWYYDCABKAISFwoPY3JpdF9yZXNpc3RhbmNl", + "GA0gASgCEg0KBXdfZV9yGA4gASgFEg0KBWZfZV9yGA8gASgFEg0KBXNfZV9y", + "GBAgASgFEg0KBWFfZV9yGBEgASgFEg0KBWxfZV9yGBIgASgFEg0KBWRfZV9y", + "GBMgASgFEhAKCHN1cHByZXNzGBQgASgCEhEKCWJ1ZmZfaV9kcxgVIAMoBRIT", + "CgtlZmZlY3RfaV9kcxgXIAMoBRInCgphdHRyaWJ1dGVzGBggAygLMhMuUmVj", + "b3JkZXIuQXR0cmlidXRlGiUKBURlYXRoEhAKCGZyYW1lX2lkGAEgASgNEgoK", + "AmlkGAIgASgNIjkKCkVudGl0eVR5cGUSCgoGUExBWUVSEAASCAoEQk9TUxAB", + "EgoKBkxFQURFUhACEgkKBUVMSVRFEAMivwEKCkRhbWFnZVR5cGUSCgoGTk9S", + "TUFMEAASCAoESEVBTBABEggKBFJFQUwQAhIKCgZESVJFQ1QQAxIPCgtESVJF", + "Q1RfSEVBTBAEEgcKA0RPVBAFEgwKCERPVF9IRUFMEAYSDQoJSFBfQUJTT1JC", + "EAcSDQoJSFBfUkVEVUNFEAgSDgoKSFBfUkVDT1ZFUhAJEg0KCUhQX1JFVkVS", + "VBAKEhAKDERBTUFHRV9ERUxBWRALEg4KCkhFQUxfREVMQVkQDCIkCgtFbnRp", + "dHlDbGFzcxIICgRST0xFEAASCwoHTU9OU1RFUhABQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder), global::Nova.Client.Recorder.Parser, new[]{ "MaxFrame", "FloorId", "Spawners", "Damages", "Deaths" }, null, new[]{ typeof(global::Nova.Client.Recorder.Types.EntityType), typeof(global::Nova.Client.Recorder.Types.DamageType), typeof(global::Nova.Client.Recorder.Types.EntityClass) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder.Types.Spawn), global::Nova.Client.Recorder.Types.Spawn.Parser, new[]{ "FrameId", "EntType", "Id", "ProtoId", "HP" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder.Types.Damage), global::Nova.Client.Recorder.Types.Damage.Parser, new[]{ "Id", "FrameId", "DmgType", "Value", "HitDamageID", "IsCrite", "From", "To" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder.Types.Attacker), global::Nova.Client.Recorder.Types.Attacker.Parser, new[]{ "Id", "ProtoId", "EntClass", "Atk", "SkillPercentAmend", "TalentGroupPercentAmend", "SkillAbsAmend", "TalentGroupAbsAmend", "PerkIntensityRatio", "SlotDmgRatio", "EE", "GenDmgRatio", "DmgPlus", "CritRatio", "FinalDmgRatio", "FinalDmgPlus", "CritRate", "DefPierce", "DefIgnore", "WEP", "FEP", "SEP", "AEP", "LEP", "DEP", "WEI", "FEI", "SEI", "AEI", "LEI", "DEI", "BuffIDs", "EffectIDs", "Attributes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder.Types.Attribute), global::Nova.Client.Recorder.Types.Attribute.Parser, new[]{ "Origin", "BaseAmend", "PercentAmend", "AbsAmend" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder.Types.Defender), global::Nova.Client.Recorder.Types.Defender.Parser, new[]{ "Id", "ProtoId", "EntClass", "HP", "MaxHP", "ErAmend", "DefAmend", "RcdSlotDmgRatio", "EERCD", "GenDmgRcdRatio", "DmgPlusRcd", "SrcDef", "CritResistance", "WER", "FER", "SER", "AER", "LER", "DER", "Suppress", "BuffIDs", "EffectIDs", "Attributes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorder.Types.Death), global::Nova.Client.Recorder.Types.Death.Parser, new[]{ "FrameId", "Id" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Recorder : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Recorder()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RecorderReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Recorder() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Recorder(Recorder other) : this() { + maxFrame_ = other.maxFrame_; + floorId_ = other.floorId_; + spawners_ = other.spawners_.Clone(); + damages_ = other.damages_.Clone(); + deaths_ = other.deaths_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Recorder Clone() { + return new Recorder(this); + } + + /// Field number for the "max_frame" field. + public const int MaxFrameFieldNumber = 1; + private uint maxFrame_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxFrame { + get { return maxFrame_; } + set { + maxFrame_ = value; + } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 2; + private uint floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// Field number for the "spawners" field. + public const int SpawnersFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_spawners_codec + = pb::FieldCodec.ForMessage(26, global::Nova.Client.Recorder.Types.Spawn.Parser); + private readonly pbc::RepeatedField spawners_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Spawners { + get { return spawners_; } + } + + /// Field number for the "damages" field. + public const int DamagesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_damages_codec + = pb::FieldCodec.ForMessage(34, global::Nova.Client.Recorder.Types.Damage.Parser); + private readonly pbc::RepeatedField damages_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Damages { + get { return damages_; } + } + + /// Field number for the "deaths" field. + public const int DeathsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_deaths_codec + = pb::FieldCodec.ForMessage(42, global::Nova.Client.Recorder.Types.Death.Parser); + private readonly pbc::RepeatedField deaths_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Deaths { + get { return deaths_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Recorder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Recorder other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxFrame != other.MaxFrame) return false; + if (FloorId != other.FloorId) return false; + if(!spawners_.Equals(other.spawners_)) return false; + if(!damages_.Equals(other.damages_)) return false; + if(!deaths_.Equals(other.deaths_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MaxFrame != 0) hash ^= MaxFrame.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + hash ^= spawners_.GetHashCode(); + hash ^= damages_.GetHashCode(); + hash ^= deaths_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MaxFrame != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MaxFrame); + } + if (FloorId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FloorId); + } + spawners_.WriteTo(output, _repeated_spawners_codec); + damages_.WriteTo(output, _repeated_damages_codec); + deaths_.WriteTo(output, _repeated_deaths_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MaxFrame != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MaxFrame); + } + if (FloorId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FloorId); + } + spawners_.WriteTo(ref output, _repeated_spawners_codec); + damages_.WriteTo(ref output, _repeated_damages_codec); + deaths_.WriteTo(ref output, _repeated_deaths_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MaxFrame != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxFrame); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FloorId); + } + size += spawners_.CalculateSize(_repeated_spawners_codec); + size += damages_.CalculateSize(_repeated_damages_codec); + size += deaths_.CalculateSize(_repeated_deaths_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Recorder other) { + if (other == null) { + return; + } + if (other.MaxFrame != 0) { + MaxFrame = other.MaxFrame; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + spawners_.Add(other.spawners_); + damages_.Add(other.damages_); + deaths_.Add(other.deaths_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MaxFrame = input.ReadUInt32(); + break; + } + case 16: { + FloorId = input.ReadUInt32(); + break; + } + case 26: { + spawners_.AddEntriesFrom(input, _repeated_spawners_codec); + break; + } + case 34: { + damages_.AddEntriesFrom(input, _repeated_damages_codec); + break; + } + case 42: { + deaths_.AddEntriesFrom(input, _repeated_deaths_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MaxFrame = input.ReadUInt32(); + break; + } + case 16: { + FloorId = input.ReadUInt32(); + break; + } + case 26: { + spawners_.AddEntriesFrom(ref input, _repeated_spawners_codec); + break; + } + case 34: { + damages_.AddEntriesFrom(ref input, _repeated_damages_codec); + break; + } + case 42: { + deaths_.AddEntriesFrom(ref input, _repeated_deaths_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Recorder message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum EntityType { + [pbr::OriginalName("PLAYER")] Player = 0, + [pbr::OriginalName("BOSS")] Boss = 1, + [pbr::OriginalName("LEADER")] Leader = 2, + [pbr::OriginalName("ELITE")] Elite = 3, + } + + public enum DamageType { + [pbr::OriginalName("NORMAL")] Normal = 0, + [pbr::OriginalName("HEAL")] Heal = 1, + [pbr::OriginalName("REAL")] Real = 2, + [pbr::OriginalName("DIRECT")] Direct = 3, + [pbr::OriginalName("DIRECT_HEAL")] DirectHeal = 4, + [pbr::OriginalName("DOT")] Dot = 5, + [pbr::OriginalName("DOT_HEAL")] DotHeal = 6, + [pbr::OriginalName("HP_ABSORB")] HpAbsorb = 7, + [pbr::OriginalName("HP_REDUCE")] HpReduce = 8, + [pbr::OriginalName("HP_RECOVER")] HpRecover = 9, + [pbr::OriginalName("HP_REVERT")] HpRevert = 10, + [pbr::OriginalName("DAMAGE_DELAY")] DamageDelay = 11, + [pbr::OriginalName("HEAL_DELAY")] HealDelay = 12, + } + + public enum EntityClass { + [pbr::OriginalName("ROLE")] Role = 0, + [pbr::OriginalName("MONSTER")] Monster = 1, + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Spawn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Spawn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorder.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Spawn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Spawn(Spawn other) : this() { + frameId_ = other.frameId_; + entType_ = other.entType_; + id_ = other.id_; + protoId_ = other.protoId_; + hP_ = other.hP_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Spawn Clone() { + return new Spawn(this); + } + + /// Field number for the "frame_id" field. + public const int FrameIdFieldNumber = 1; + private uint frameId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameId { + get { return frameId_; } + set { + frameId_ = value; + } + } + + /// Field number for the "ent_type" field. + public const int EntTypeFieldNumber = 2; + private global::Nova.Client.Recorder.Types.EntityType entType_ = global::Nova.Client.Recorder.Types.EntityType.Player; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorder.Types.EntityType EntType { + get { return entType_; } + set { + entType_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "proto_id" field. + public const int ProtoIdFieldNumber = 4; + private uint protoId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ProtoId { + get { return protoId_; } + set { + protoId_ = value; + } + } + + /// Field number for the "h_p" field. + public const int HPFieldNumber = 5; + private int hP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HP { + get { return hP_; } + set { + hP_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Spawn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Spawn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FrameId != other.FrameId) return false; + if (EntType != other.EntType) return false; + if (Id != other.Id) return false; + if (ProtoId != other.ProtoId) return false; + if (HP != other.HP) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FrameId != 0) hash ^= FrameId.GetHashCode(); + if (EntType != global::Nova.Client.Recorder.Types.EntityType.Player) hash ^= EntType.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (ProtoId != 0) hash ^= ProtoId.GetHashCode(); + if (HP != 0) hash ^= HP.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FrameId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FrameId); + } + if (EntType != global::Nova.Client.Recorder.Types.EntityType.Player) { + output.WriteRawTag(16); + output.WriteEnum((int) EntType); + } + if (Id != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Id); + } + if (ProtoId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ProtoId); + } + if (HP != 0) { + output.WriteRawTag(40); + output.WriteInt32(HP); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FrameId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FrameId); + } + if (EntType != global::Nova.Client.Recorder.Types.EntityType.Player) { + output.WriteRawTag(16); + output.WriteEnum((int) EntType); + } + if (Id != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Id); + } + if (ProtoId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ProtoId); + } + if (HP != 0) { + output.WriteRawTag(40); + output.WriteInt32(HP); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FrameId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameId); + } + if (EntType != global::Nova.Client.Recorder.Types.EntityType.Player) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EntType); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (ProtoId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtoId); + } + if (HP != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HP); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Spawn other) { + if (other == null) { + return; + } + if (other.FrameId != 0) { + FrameId = other.FrameId; + } + if (other.EntType != global::Nova.Client.Recorder.Types.EntityType.Player) { + EntType = other.EntType; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ProtoId != 0) { + ProtoId = other.ProtoId; + } + if (other.HP != 0) { + HP = other.HP; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FrameId = input.ReadUInt32(); + break; + } + case 16: { + EntType = (global::Nova.Client.Recorder.Types.EntityType) input.ReadEnum(); + break; + } + case 24: { + Id = input.ReadUInt32(); + break; + } + case 32: { + ProtoId = input.ReadUInt32(); + break; + } + case 40: { + HP = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FrameId = input.ReadUInt32(); + break; + } + case 16: { + EntType = (global::Nova.Client.Recorder.Types.EntityType) input.ReadEnum(); + break; + } + case 24: { + Id = input.ReadUInt32(); + break; + } + case 32: { + ProtoId = input.ReadUInt32(); + break; + } + case 40: { + HP = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Damage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Damage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorder.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Damage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Damage(Damage other) : this() { + id_ = other.id_; + frameId_ = other.frameId_; + dmgType_ = other.dmgType_; + value_ = other.value_; + hitDamageID_ = other.hitDamageID_; + isCrite_ = other.isCrite_; + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Damage Clone() { + return new Damage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "frame_id" field. + public const int FrameIdFieldNumber = 2; + private uint frameId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameId { + get { return frameId_; } + set { + frameId_ = value; + } + } + + /// Field number for the "dmg_type" field. + public const int DmgTypeFieldNumber = 3; + private global::Nova.Client.Recorder.Types.DamageType dmgType_ = global::Nova.Client.Recorder.Types.DamageType.Normal; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorder.Types.DamageType DmgType { + get { return dmgType_; } + set { + dmgType_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 4; + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "hit_damage_i_d" field. + public const int HitDamageIDFieldNumber = 5; + private int hitDamageID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HitDamageID { + get { return hitDamageID_; } + set { + hitDamageID_ = value; + } + } + + /// Field number for the "is_crite" field. + public const int IsCriteFieldNumber = 6; + private bool isCrite_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsCrite { + get { return isCrite_; } + set { + isCrite_ = value; + } + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 7; + private global::Nova.Client.Recorder.Types.Attacker from_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorder.Types.Attacker From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 8; + private global::Nova.Client.Recorder.Types.Defender to_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorder.Types.Defender To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Damage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Damage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (FrameId != other.FrameId) return false; + if (DmgType != other.DmgType) return false; + if (Value != other.Value) return false; + if (HitDamageID != other.HitDamageID) return false; + if (IsCrite != other.IsCrite) return false; + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (FrameId != 0) hash ^= FrameId.GetHashCode(); + if (DmgType != global::Nova.Client.Recorder.Types.DamageType.Normal) hash ^= DmgType.GetHashCode(); + if (Value != 0) hash ^= Value.GetHashCode(); + if (HitDamageID != 0) hash ^= HitDamageID.GetHashCode(); + if (IsCrite != false) hash ^= IsCrite.GetHashCode(); + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (FrameId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FrameId); + } + if (DmgType != global::Nova.Client.Recorder.Types.DamageType.Normal) { + output.WriteRawTag(24); + output.WriteEnum((int) DmgType); + } + if (Value != 0) { + output.WriteRawTag(32); + output.WriteInt32(Value); + } + if (HitDamageID != 0) { + output.WriteRawTag(40); + output.WriteInt32(HitDamageID); + } + if (IsCrite != false) { + output.WriteRawTag(48); + output.WriteBool(IsCrite); + } + if (from_ != null) { + output.WriteRawTag(58); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(66); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (FrameId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(FrameId); + } + if (DmgType != global::Nova.Client.Recorder.Types.DamageType.Normal) { + output.WriteRawTag(24); + output.WriteEnum((int) DmgType); + } + if (Value != 0) { + output.WriteRawTag(32); + output.WriteInt32(Value); + } + if (HitDamageID != 0) { + output.WriteRawTag(40); + output.WriteInt32(HitDamageID); + } + if (IsCrite != false) { + output.WriteRawTag(48); + output.WriteBool(IsCrite); + } + if (from_ != null) { + output.WriteRawTag(58); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(66); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (FrameId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameId); + } + if (DmgType != global::Nova.Client.Recorder.Types.DamageType.Normal) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DmgType); + } + if (Value != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (HitDamageID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HitDamageID); + } + if (IsCrite != false) { + size += 1 + 1; + } + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Damage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.FrameId != 0) { + FrameId = other.FrameId; + } + if (other.DmgType != global::Nova.Client.Recorder.Types.DamageType.Normal) { + DmgType = other.DmgType; + } + if (other.Value != 0) { + Value = other.Value; + } + if (other.HitDamageID != 0) { + HitDamageID = other.HitDamageID; + } + if (other.IsCrite != false) { + IsCrite = other.IsCrite; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::Nova.Client.Recorder.Types.Attacker(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::Nova.Client.Recorder.Types.Defender(); + } + To.MergeFrom(other.To); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + FrameId = input.ReadUInt32(); + break; + } + case 24: { + DmgType = (global::Nova.Client.Recorder.Types.DamageType) input.ReadEnum(); + break; + } + case 32: { + Value = input.ReadInt32(); + break; + } + case 40: { + HitDamageID = input.ReadInt32(); + break; + } + case 48: { + IsCrite = input.ReadBool(); + break; + } + case 58: { + if (from_ == null) { + From = new global::Nova.Client.Recorder.Types.Attacker(); + } + input.ReadMessage(From); + break; + } + case 66: { + if (to_ == null) { + To = new global::Nova.Client.Recorder.Types.Defender(); + } + input.ReadMessage(To); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + FrameId = input.ReadUInt32(); + break; + } + case 24: { + DmgType = (global::Nova.Client.Recorder.Types.DamageType) input.ReadEnum(); + break; + } + case 32: { + Value = input.ReadInt32(); + break; + } + case 40: { + HitDamageID = input.ReadInt32(); + break; + } + case 48: { + IsCrite = input.ReadBool(); + break; + } + case 58: { + if (from_ == null) { + From = new global::Nova.Client.Recorder.Types.Attacker(); + } + input.ReadMessage(From); + break; + } + case 66: { + if (to_ == null) { + To = new global::Nova.Client.Recorder.Types.Defender(); + } + input.ReadMessage(To); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Attacker : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attacker()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorder.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attacker() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attacker(Attacker other) : this() { + id_ = other.id_; + protoId_ = other.protoId_; + entClass_ = other.entClass_; + atk_ = other.atk_; + skillPercentAmend_ = other.skillPercentAmend_; + talentGroupPercentAmend_ = other.talentGroupPercentAmend_; + skillAbsAmend_ = other.skillAbsAmend_; + talentGroupAbsAmend_ = other.talentGroupAbsAmend_; + perkIntensityRatio_ = other.perkIntensityRatio_; + slotDmgRatio_ = other.slotDmgRatio_; + eE_ = other.eE_; + genDmgRatio_ = other.genDmgRatio_; + dmgPlus_ = other.dmgPlus_; + critRatio_ = other.critRatio_; + finalDmgRatio_ = other.finalDmgRatio_; + finalDmgPlus_ = other.finalDmgPlus_; + critRate_ = other.critRate_; + defPierce_ = other.defPierce_; + defIgnore_ = other.defIgnore_; + wEP_ = other.wEP_; + fEP_ = other.fEP_; + sEP_ = other.sEP_; + aEP_ = other.aEP_; + lEP_ = other.lEP_; + dEP_ = other.dEP_; + wEI_ = other.wEI_; + fEI_ = other.fEI_; + sEI_ = other.sEI_; + aEI_ = other.aEI_; + lEI_ = other.lEI_; + dEI_ = other.dEI_; + buffIDs_ = other.buffIDs_.Clone(); + effectIDs_ = other.effectIDs_.Clone(); + attributes_ = other.attributes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attacker Clone() { + return new Attacker(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "proto_id" field. + public const int ProtoIdFieldNumber = 2; + private uint protoId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ProtoId { + get { return protoId_; } + set { + protoId_ = value; + } + } + + /// Field number for the "ent_class" field. + public const int EntClassFieldNumber = 3; + private global::Nova.Client.Recorder.Types.EntityClass entClass_ = global::Nova.Client.Recorder.Types.EntityClass.Role; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorder.Types.EntityClass EntClass { + get { return entClass_; } + set { + entClass_ = value; + } + } + + /// Field number for the "atk" field. + public const int AtkFieldNumber = 4; + private float atk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Atk { + get { return atk_; } + set { + atk_ = value; + } + } + + /// Field number for the "skill_percent_amend" field. + public const int SkillPercentAmendFieldNumber = 5; + private float skillPercentAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float SkillPercentAmend { + get { return skillPercentAmend_; } + set { + skillPercentAmend_ = value; + } + } + + /// Field number for the "talent_group_percent_amend" field. + public const int TalentGroupPercentAmendFieldNumber = 6; + private float talentGroupPercentAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float TalentGroupPercentAmend { + get { return talentGroupPercentAmend_; } + set { + talentGroupPercentAmend_ = value; + } + } + + /// Field number for the "skill_abs_amend" field. + public const int SkillAbsAmendFieldNumber = 7; + private float skillAbsAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float SkillAbsAmend { + get { return skillAbsAmend_; } + set { + skillAbsAmend_ = value; + } + } + + /// Field number for the "talent_group_abs_amend" field. + public const int TalentGroupAbsAmendFieldNumber = 8; + private float talentGroupAbsAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float TalentGroupAbsAmend { + get { return talentGroupAbsAmend_; } + set { + talentGroupAbsAmend_ = value; + } + } + + /// Field number for the "perk_intensity_ratio" field. + public const int PerkIntensityRatioFieldNumber = 9; + private float perkIntensityRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float PerkIntensityRatio { + get { return perkIntensityRatio_; } + set { + perkIntensityRatio_ = value; + } + } + + /// Field number for the "slot_dmg_ratio" field. + public const int SlotDmgRatioFieldNumber = 10; + private float slotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float SlotDmgRatio { + get { return slotDmgRatio_; } + set { + slotDmgRatio_ = value; + } + } + + /// Field number for the "e_e" field. + public const int EEFieldNumber = 11; + private float eE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float EE { + get { return eE_; } + set { + eE_ = value; + } + } + + /// Field number for the "gen_dmg_ratio" field. + public const int GenDmgRatioFieldNumber = 12; + private float genDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float GenDmgRatio { + get { return genDmgRatio_; } + set { + genDmgRatio_ = value; + } + } + + /// Field number for the "dmg_plus" field. + public const int DmgPlusFieldNumber = 13; + private float dmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DmgPlus { + get { return dmgPlus_; } + set { + dmgPlus_ = value; + } + } + + /// Field number for the "crit_ratio" field. + public const int CritRatioFieldNumber = 14; + private float critRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CritRatio { + get { return critRatio_; } + set { + critRatio_ = value; + } + } + + /// Field number for the "final_dmg_ratio" field. + public const int FinalDmgRatioFieldNumber = 15; + private float finalDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FinalDmgRatio { + get { return finalDmgRatio_; } + set { + finalDmgRatio_ = value; + } + } + + /// Field number for the "final_dmg_plus" field. + public const int FinalDmgPlusFieldNumber = 16; + private float finalDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FinalDmgPlus { + get { return finalDmgPlus_; } + set { + finalDmgPlus_ = value; + } + } + + /// Field number for the "crit_rate" field. + public const int CritRateFieldNumber = 17; + private float critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// Field number for the "def_pierce" field. + public const int DefPierceFieldNumber = 18; + private float defPierce_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DefPierce { + get { return defPierce_; } + set { + defPierce_ = value; + } + } + + /// Field number for the "def_ignore" field. + public const int DefIgnoreFieldNumber = 19; + private float defIgnore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DefIgnore { + get { return defIgnore_; } + set { + defIgnore_ = value; + } + } + + /// Field number for the "w_e_p" field. + public const int WEPFieldNumber = 20; + private int wEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEP { + get { return wEP_; } + set { + wEP_ = value; + } + } + + /// Field number for the "f_e_p" field. + public const int FEPFieldNumber = 21; + private int fEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEP { + get { return fEP_; } + set { + fEP_ = value; + } + } + + /// Field number for the "s_e_p" field. + public const int SEPFieldNumber = 22; + private int sEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEP { + get { return sEP_; } + set { + sEP_ = value; + } + } + + /// Field number for the "a_e_p" field. + public const int AEPFieldNumber = 23; + private int aEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEP { + get { return aEP_; } + set { + aEP_ = value; + } + } + + /// Field number for the "l_e_p" field. + public const int LEPFieldNumber = 24; + private int lEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEP { + get { return lEP_; } + set { + lEP_ = value; + } + } + + /// Field number for the "d_e_p" field. + public const int DEPFieldNumber = 25; + private int dEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEP { + get { return dEP_; } + set { + dEP_ = value; + } + } + + /// Field number for the "w_e_i" field. + public const int WEIFieldNumber = 26; + private float wEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WEI { + get { return wEI_; } + set { + wEI_ = value; + } + } + + /// Field number for the "f_e_i" field. + public const int FEIFieldNumber = 27; + private float fEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FEI { + get { return fEI_; } + set { + fEI_ = value; + } + } + + /// Field number for the "s_e_i" field. + public const int SEIFieldNumber = 28; + private float sEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float SEI { + get { return sEI_; } + set { + sEI_ = value; + } + } + + /// Field number for the "a_e_i" field. + public const int AEIFieldNumber = 29; + private float aEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AEI { + get { return aEI_; } + set { + aEI_ = value; + } + } + + /// Field number for the "l_e_i" field. + public const int LEIFieldNumber = 30; + private float lEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LEI { + get { return lEI_; } + set { + lEI_ = value; + } + } + + /// Field number for the "d_e_i" field. + public const int DEIFieldNumber = 31; + private float dEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DEI { + get { return dEI_; } + set { + dEI_ = value; + } + } + + /// Field number for the "buff_i_ds" field. + public const int BuffIDsFieldNumber = 32; + private static readonly pb::FieldCodec _repeated_buffIDs_codec + = pb::FieldCodec.ForInt32(258); + private readonly pbc::RepeatedField buffIDs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffIDs { + get { return buffIDs_; } + } + + /// Field number for the "effect_i_ds" field. + public const int EffectIDsFieldNumber = 34; + private static readonly pb::FieldCodec _repeated_effectIDs_codec + = pb::FieldCodec.ForInt32(274); + private readonly pbc::RepeatedField effectIDs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectIDs { + get { return effectIDs_; } + } + + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 35; + private static readonly pb::FieldCodec _repeated_attributes_codec + = pb::FieldCodec.ForMessage(282, global::Nova.Client.Recorder.Types.Attribute.Parser); + private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Attributes { + get { return attributes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Attacker); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Attacker other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ProtoId != other.ProtoId) return false; + if (EntClass != other.EntClass) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Atk, other.Atk)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SkillPercentAmend, other.SkillPercentAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TalentGroupPercentAmend, other.TalentGroupPercentAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SkillAbsAmend, other.SkillAbsAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TalentGroupAbsAmend, other.TalentGroupAbsAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PerkIntensityRatio, other.PerkIntensityRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SlotDmgRatio, other.SlotDmgRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EE, other.EE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(GenDmgRatio, other.GenDmgRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DmgPlus, other.DmgPlus)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CritRatio, other.CritRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FinalDmgRatio, other.FinalDmgRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FinalDmgPlus, other.FinalDmgPlus)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CritRate, other.CritRate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefPierce, other.DefPierce)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefIgnore, other.DefIgnore)) return false; + if (WEP != other.WEP) return false; + if (FEP != other.FEP) return false; + if (SEP != other.SEP) return false; + if (AEP != other.AEP) return false; + if (LEP != other.LEP) return false; + if (DEP != other.DEP) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WEI, other.WEI)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FEI, other.FEI)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SEI, other.SEI)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AEI, other.AEI)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LEI, other.LEI)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DEI, other.DEI)) return false; + if(!buffIDs_.Equals(other.buffIDs_)) return false; + if(!effectIDs_.Equals(other.effectIDs_)) return false; + if(!attributes_.Equals(other.attributes_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ProtoId != 0) hash ^= ProtoId.GetHashCode(); + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) hash ^= EntClass.GetHashCode(); + if (Atk != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Atk); + if (SkillPercentAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SkillPercentAmend); + if (TalentGroupPercentAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TalentGroupPercentAmend); + if (SkillAbsAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SkillAbsAmend); + if (TalentGroupAbsAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TalentGroupAbsAmend); + if (PerkIntensityRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PerkIntensityRatio); + if (SlotDmgRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SlotDmgRatio); + if (EE != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EE); + if (GenDmgRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GenDmgRatio); + if (DmgPlus != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DmgPlus); + if (CritRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CritRatio); + if (FinalDmgRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FinalDmgRatio); + if (FinalDmgPlus != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FinalDmgPlus); + if (CritRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CritRate); + if (DefPierce != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefPierce); + if (DefIgnore != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefIgnore); + if (WEP != 0) hash ^= WEP.GetHashCode(); + if (FEP != 0) hash ^= FEP.GetHashCode(); + if (SEP != 0) hash ^= SEP.GetHashCode(); + if (AEP != 0) hash ^= AEP.GetHashCode(); + if (LEP != 0) hash ^= LEP.GetHashCode(); + if (DEP != 0) hash ^= DEP.GetHashCode(); + if (WEI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WEI); + if (FEI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FEI); + if (SEI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SEI); + if (AEI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AEI); + if (LEI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LEI); + if (DEI != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DEI); + hash ^= buffIDs_.GetHashCode(); + hash ^= effectIDs_.GetHashCode(); + hash ^= attributes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (ProtoId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ProtoId); + } + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + output.WriteRawTag(24); + output.WriteEnum((int) EntClass); + } + if (Atk != 0F) { + output.WriteRawTag(37); + output.WriteFloat(Atk); + } + if (SkillPercentAmend != 0F) { + output.WriteRawTag(45); + output.WriteFloat(SkillPercentAmend); + } + if (TalentGroupPercentAmend != 0F) { + output.WriteRawTag(53); + output.WriteFloat(TalentGroupPercentAmend); + } + if (SkillAbsAmend != 0F) { + output.WriteRawTag(61); + output.WriteFloat(SkillAbsAmend); + } + if (TalentGroupAbsAmend != 0F) { + output.WriteRawTag(69); + output.WriteFloat(TalentGroupAbsAmend); + } + if (PerkIntensityRatio != 0F) { + output.WriteRawTag(77); + output.WriteFloat(PerkIntensityRatio); + } + if (SlotDmgRatio != 0F) { + output.WriteRawTag(85); + output.WriteFloat(SlotDmgRatio); + } + if (EE != 0F) { + output.WriteRawTag(93); + output.WriteFloat(EE); + } + if (GenDmgRatio != 0F) { + output.WriteRawTag(101); + output.WriteFloat(GenDmgRatio); + } + if (DmgPlus != 0F) { + output.WriteRawTag(109); + output.WriteFloat(DmgPlus); + } + if (CritRatio != 0F) { + output.WriteRawTag(117); + output.WriteFloat(CritRatio); + } + if (FinalDmgRatio != 0F) { + output.WriteRawTag(125); + output.WriteFloat(FinalDmgRatio); + } + if (FinalDmgPlus != 0F) { + output.WriteRawTag(133, 1); + output.WriteFloat(FinalDmgPlus); + } + if (CritRate != 0F) { + output.WriteRawTag(141, 1); + output.WriteFloat(CritRate); + } + if (DefPierce != 0F) { + output.WriteRawTag(149, 1); + output.WriteFloat(DefPierce); + } + if (DefIgnore != 0F) { + output.WriteRawTag(157, 1); + output.WriteFloat(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(DEP); + } + if (WEI != 0F) { + output.WriteRawTag(213, 1); + output.WriteFloat(WEI); + } + if (FEI != 0F) { + output.WriteRawTag(221, 1); + output.WriteFloat(FEI); + } + if (SEI != 0F) { + output.WriteRawTag(229, 1); + output.WriteFloat(SEI); + } + if (AEI != 0F) { + output.WriteRawTag(237, 1); + output.WriteFloat(AEI); + } + if (LEI != 0F) { + output.WriteRawTag(245, 1); + output.WriteFloat(LEI); + } + if (DEI != 0F) { + output.WriteRawTag(253, 1); + output.WriteFloat(DEI); + } + buffIDs_.WriteTo(output, _repeated_buffIDs_codec); + effectIDs_.WriteTo(output, _repeated_effectIDs_codec); + attributes_.WriteTo(output, _repeated_attributes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (ProtoId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ProtoId); + } + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + output.WriteRawTag(24); + output.WriteEnum((int) EntClass); + } + if (Atk != 0F) { + output.WriteRawTag(37); + output.WriteFloat(Atk); + } + if (SkillPercentAmend != 0F) { + output.WriteRawTag(45); + output.WriteFloat(SkillPercentAmend); + } + if (TalentGroupPercentAmend != 0F) { + output.WriteRawTag(53); + output.WriteFloat(TalentGroupPercentAmend); + } + if (SkillAbsAmend != 0F) { + output.WriteRawTag(61); + output.WriteFloat(SkillAbsAmend); + } + if (TalentGroupAbsAmend != 0F) { + output.WriteRawTag(69); + output.WriteFloat(TalentGroupAbsAmend); + } + if (PerkIntensityRatio != 0F) { + output.WriteRawTag(77); + output.WriteFloat(PerkIntensityRatio); + } + if (SlotDmgRatio != 0F) { + output.WriteRawTag(85); + output.WriteFloat(SlotDmgRatio); + } + if (EE != 0F) { + output.WriteRawTag(93); + output.WriteFloat(EE); + } + if (GenDmgRatio != 0F) { + output.WriteRawTag(101); + output.WriteFloat(GenDmgRatio); + } + if (DmgPlus != 0F) { + output.WriteRawTag(109); + output.WriteFloat(DmgPlus); + } + if (CritRatio != 0F) { + output.WriteRawTag(117); + output.WriteFloat(CritRatio); + } + if (FinalDmgRatio != 0F) { + output.WriteRawTag(125); + output.WriteFloat(FinalDmgRatio); + } + if (FinalDmgPlus != 0F) { + output.WriteRawTag(133, 1); + output.WriteFloat(FinalDmgPlus); + } + if (CritRate != 0F) { + output.WriteRawTag(141, 1); + output.WriteFloat(CritRate); + } + if (DefPierce != 0F) { + output.WriteRawTag(149, 1); + output.WriteFloat(DefPierce); + } + if (DefIgnore != 0F) { + output.WriteRawTag(157, 1); + output.WriteFloat(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(DEP); + } + if (WEI != 0F) { + output.WriteRawTag(213, 1); + output.WriteFloat(WEI); + } + if (FEI != 0F) { + output.WriteRawTag(221, 1); + output.WriteFloat(FEI); + } + if (SEI != 0F) { + output.WriteRawTag(229, 1); + output.WriteFloat(SEI); + } + if (AEI != 0F) { + output.WriteRawTag(237, 1); + output.WriteFloat(AEI); + } + if (LEI != 0F) { + output.WriteRawTag(245, 1); + output.WriteFloat(LEI); + } + if (DEI != 0F) { + output.WriteRawTag(253, 1); + output.WriteFloat(DEI); + } + buffIDs_.WriteTo(ref output, _repeated_buffIDs_codec); + effectIDs_.WriteTo(ref output, _repeated_effectIDs_codec); + attributes_.WriteTo(ref output, _repeated_attributes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (ProtoId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtoId); + } + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EntClass); + } + if (Atk != 0F) { + size += 1 + 4; + } + if (SkillPercentAmend != 0F) { + size += 1 + 4; + } + if (TalentGroupPercentAmend != 0F) { + size += 1 + 4; + } + if (SkillAbsAmend != 0F) { + size += 1 + 4; + } + if (TalentGroupAbsAmend != 0F) { + size += 1 + 4; + } + if (PerkIntensityRatio != 0F) { + size += 1 + 4; + } + if (SlotDmgRatio != 0F) { + size += 1 + 4; + } + if (EE != 0F) { + size += 1 + 4; + } + if (GenDmgRatio != 0F) { + size += 1 + 4; + } + if (DmgPlus != 0F) { + size += 1 + 4; + } + if (CritRatio != 0F) { + size += 1 + 4; + } + if (FinalDmgRatio != 0F) { + size += 1 + 4; + } + if (FinalDmgPlus != 0F) { + size += 2 + 4; + } + if (CritRate != 0F) { + size += 2 + 4; + } + if (DefPierce != 0F) { + size += 2 + 4; + } + if (DefIgnore != 0F) { + size += 2 + 4; + } + if (WEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEP); + } + if (FEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEP); + } + if (SEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEP); + } + if (AEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEP); + } + if (LEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEP); + } + if (DEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEP); + } + if (WEI != 0F) { + size += 2 + 4; + } + if (FEI != 0F) { + size += 2 + 4; + } + if (SEI != 0F) { + size += 2 + 4; + } + if (AEI != 0F) { + size += 2 + 4; + } + if (LEI != 0F) { + size += 2 + 4; + } + if (DEI != 0F) { + size += 2 + 4; + } + size += buffIDs_.CalculateSize(_repeated_buffIDs_codec); + size += effectIDs_.CalculateSize(_repeated_effectIDs_codec); + size += attributes_.CalculateSize(_repeated_attributes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Attacker other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ProtoId != 0) { + ProtoId = other.ProtoId; + } + if (other.EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + EntClass = other.EntClass; + } + if (other.Atk != 0F) { + Atk = other.Atk; + } + if (other.SkillPercentAmend != 0F) { + SkillPercentAmend = other.SkillPercentAmend; + } + if (other.TalentGroupPercentAmend != 0F) { + TalentGroupPercentAmend = other.TalentGroupPercentAmend; + } + if (other.SkillAbsAmend != 0F) { + SkillAbsAmend = other.SkillAbsAmend; + } + if (other.TalentGroupAbsAmend != 0F) { + TalentGroupAbsAmend = other.TalentGroupAbsAmend; + } + if (other.PerkIntensityRatio != 0F) { + PerkIntensityRatio = other.PerkIntensityRatio; + } + if (other.SlotDmgRatio != 0F) { + SlotDmgRatio = other.SlotDmgRatio; + } + if (other.EE != 0F) { + EE = other.EE; + } + if (other.GenDmgRatio != 0F) { + GenDmgRatio = other.GenDmgRatio; + } + if (other.DmgPlus != 0F) { + DmgPlus = other.DmgPlus; + } + if (other.CritRatio != 0F) { + CritRatio = other.CritRatio; + } + if (other.FinalDmgRatio != 0F) { + FinalDmgRatio = other.FinalDmgRatio; + } + if (other.FinalDmgPlus != 0F) { + FinalDmgPlus = other.FinalDmgPlus; + } + if (other.CritRate != 0F) { + CritRate = other.CritRate; + } + if (other.DefPierce != 0F) { + DefPierce = other.DefPierce; + } + if (other.DefIgnore != 0F) { + DefIgnore = other.DefIgnore; + } + if (other.WEP != 0) { + WEP = other.WEP; + } + if (other.FEP != 0) { + FEP = other.FEP; + } + if (other.SEP != 0) { + SEP = other.SEP; + } + if (other.AEP != 0) { + AEP = other.AEP; + } + if (other.LEP != 0) { + LEP = other.LEP; + } + if (other.DEP != 0) { + DEP = other.DEP; + } + if (other.WEI != 0F) { + WEI = other.WEI; + } + if (other.FEI != 0F) { + FEI = other.FEI; + } + if (other.SEI != 0F) { + SEI = other.SEI; + } + if (other.AEI != 0F) { + AEI = other.AEI; + } + if (other.LEI != 0F) { + LEI = other.LEI; + } + if (other.DEI != 0F) { + DEI = other.DEI; + } + buffIDs_.Add(other.buffIDs_); + effectIDs_.Add(other.effectIDs_); + attributes_.Add(other.attributes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + ProtoId = input.ReadUInt32(); + break; + } + case 24: { + EntClass = (global::Nova.Client.Recorder.Types.EntityClass) input.ReadEnum(); + break; + } + case 37: { + Atk = input.ReadFloat(); + break; + } + case 45: { + SkillPercentAmend = input.ReadFloat(); + break; + } + case 53: { + TalentGroupPercentAmend = input.ReadFloat(); + break; + } + case 61: { + SkillAbsAmend = input.ReadFloat(); + break; + } + case 69: { + TalentGroupAbsAmend = input.ReadFloat(); + break; + } + case 77: { + PerkIntensityRatio = input.ReadFloat(); + break; + } + case 85: { + SlotDmgRatio = input.ReadFloat(); + break; + } + case 93: { + EE = input.ReadFloat(); + break; + } + case 101: { + GenDmgRatio = input.ReadFloat(); + break; + } + case 109: { + DmgPlus = input.ReadFloat(); + break; + } + case 117: { + CritRatio = input.ReadFloat(); + break; + } + case 125: { + FinalDmgRatio = input.ReadFloat(); + break; + } + case 133: { + FinalDmgPlus = input.ReadFloat(); + break; + } + case 141: { + CritRate = input.ReadFloat(); + break; + } + case 149: { + DefPierce = input.ReadFloat(); + break; + } + case 157: { + DefIgnore = input.ReadFloat(); + break; + } + case 160: { + WEP = input.ReadInt32(); + break; + } + case 168: { + FEP = input.ReadInt32(); + break; + } + case 176: { + SEP = input.ReadInt32(); + break; + } + case 184: { + AEP = input.ReadInt32(); + break; + } + case 192: { + LEP = input.ReadInt32(); + break; + } + case 200: { + DEP = input.ReadInt32(); + break; + } + case 213: { + WEI = input.ReadFloat(); + break; + } + case 221: { + FEI = input.ReadFloat(); + break; + } + case 229: { + SEI = input.ReadFloat(); + break; + } + case 237: { + AEI = input.ReadFloat(); + break; + } + case 245: { + LEI = input.ReadFloat(); + break; + } + case 253: { + DEI = input.ReadFloat(); + break; + } + case 258: + case 256: { + buffIDs_.AddEntriesFrom(input, _repeated_buffIDs_codec); + break; + } + case 274: + case 272: { + effectIDs_.AddEntriesFrom(input, _repeated_effectIDs_codec); + break; + } + case 282: { + attributes_.AddEntriesFrom(input, _repeated_attributes_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + ProtoId = input.ReadUInt32(); + break; + } + case 24: { + EntClass = (global::Nova.Client.Recorder.Types.EntityClass) input.ReadEnum(); + break; + } + case 37: { + Atk = input.ReadFloat(); + break; + } + case 45: { + SkillPercentAmend = input.ReadFloat(); + break; + } + case 53: { + TalentGroupPercentAmend = input.ReadFloat(); + break; + } + case 61: { + SkillAbsAmend = input.ReadFloat(); + break; + } + case 69: { + TalentGroupAbsAmend = input.ReadFloat(); + break; + } + case 77: { + PerkIntensityRatio = input.ReadFloat(); + break; + } + case 85: { + SlotDmgRatio = input.ReadFloat(); + break; + } + case 93: { + EE = input.ReadFloat(); + break; + } + case 101: { + GenDmgRatio = input.ReadFloat(); + break; + } + case 109: { + DmgPlus = input.ReadFloat(); + break; + } + case 117: { + CritRatio = input.ReadFloat(); + break; + } + case 125: { + FinalDmgRatio = input.ReadFloat(); + break; + } + case 133: { + FinalDmgPlus = input.ReadFloat(); + break; + } + case 141: { + CritRate = input.ReadFloat(); + break; + } + case 149: { + DefPierce = input.ReadFloat(); + break; + } + case 157: { + DefIgnore = input.ReadFloat(); + break; + } + case 160: { + WEP = input.ReadInt32(); + break; + } + case 168: { + FEP = input.ReadInt32(); + break; + } + case 176: { + SEP = input.ReadInt32(); + break; + } + case 184: { + AEP = input.ReadInt32(); + break; + } + case 192: { + LEP = input.ReadInt32(); + break; + } + case 200: { + DEP = input.ReadInt32(); + break; + } + case 213: { + WEI = input.ReadFloat(); + break; + } + case 221: { + FEI = input.ReadFloat(); + break; + } + case 229: { + SEI = input.ReadFloat(); + break; + } + case 237: { + AEI = input.ReadFloat(); + break; + } + case 245: { + LEI = input.ReadFloat(); + break; + } + case 253: { + DEI = input.ReadFloat(); + break; + } + case 258: + case 256: { + buffIDs_.AddEntriesFrom(ref input, _repeated_buffIDs_codec); + break; + } + case 274: + case 272: { + effectIDs_.AddEntriesFrom(ref input, _repeated_effectIDs_codec); + break; + } + case 282: { + attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Attribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorder.Descriptor.NestedTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute(Attribute other) : this() { + origin_ = other.origin_; + baseAmend_ = other.baseAmend_; + percentAmend_ = other.percentAmend_; + absAmend_ = other.absAmend_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attribute Clone() { + return new Attribute(this); + } + + /// Field number for the "origin" field. + public const int OriginFieldNumber = 1; + private float origin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Origin { + get { return origin_; } + set { + origin_ = value; + } + } + + /// Field number for the "base_amend" field. + public const int BaseAmendFieldNumber = 2; + private float baseAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float BaseAmend { + get { return baseAmend_; } + set { + baseAmend_ = value; + } + } + + /// Field number for the "percent_amend" field. + public const int PercentAmendFieldNumber = 3; + private float percentAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float PercentAmend { + get { return percentAmend_; } + set { + percentAmend_ = value; + } + } + + /// Field number for the "abs_amend" field. + public const int AbsAmendFieldNumber = 4; + private float absAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AbsAmend { + get { return absAmend_; } + set { + absAmend_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Attribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Attribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Origin, other.Origin)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BaseAmend, other.BaseAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PercentAmend, other.PercentAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AbsAmend, other.AbsAmend)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Origin != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Origin); + if (BaseAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BaseAmend); + if (PercentAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PercentAmend); + if (AbsAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AbsAmend); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Origin != 0F) { + output.WriteRawTag(13); + output.WriteFloat(Origin); + } + if (BaseAmend != 0F) { + output.WriteRawTag(21); + output.WriteFloat(BaseAmend); + } + if (PercentAmend != 0F) { + output.WriteRawTag(29); + output.WriteFloat(PercentAmend); + } + if (AbsAmend != 0F) { + output.WriteRawTag(37); + output.WriteFloat(AbsAmend); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Origin != 0F) { + output.WriteRawTag(13); + output.WriteFloat(Origin); + } + if (BaseAmend != 0F) { + output.WriteRawTag(21); + output.WriteFloat(BaseAmend); + } + if (PercentAmend != 0F) { + output.WriteRawTag(29); + output.WriteFloat(PercentAmend); + } + if (AbsAmend != 0F) { + output.WriteRawTag(37); + output.WriteFloat(AbsAmend); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Origin != 0F) { + size += 1 + 4; + } + if (BaseAmend != 0F) { + size += 1 + 4; + } + if (PercentAmend != 0F) { + size += 1 + 4; + } + if (AbsAmend != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Attribute other) { + if (other == null) { + return; + } + if (other.Origin != 0F) { + Origin = other.Origin; + } + if (other.BaseAmend != 0F) { + BaseAmend = other.BaseAmend; + } + if (other.PercentAmend != 0F) { + PercentAmend = other.PercentAmend; + } + if (other.AbsAmend != 0F) { + AbsAmend = other.AbsAmend; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Origin = input.ReadFloat(); + break; + } + case 21: { + BaseAmend = input.ReadFloat(); + break; + } + case 29: { + PercentAmend = input.ReadFloat(); + break; + } + case 37: { + AbsAmend = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Origin = input.ReadFloat(); + break; + } + case 21: { + BaseAmend = input.ReadFloat(); + break; + } + case 29: { + PercentAmend = input.ReadFloat(); + break; + } + case 37: { + AbsAmend = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Defender : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Defender()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorder.Descriptor.NestedTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Defender() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Defender(Defender other) : this() { + id_ = other.id_; + protoId_ = other.protoId_; + entClass_ = other.entClass_; + hP_ = other.hP_; + maxHP_ = other.maxHP_; + erAmend_ = other.erAmend_; + defAmend_ = other.defAmend_; + rcdSlotDmgRatio_ = other.rcdSlotDmgRatio_; + eERCD_ = other.eERCD_; + genDmgRcdRatio_ = other.genDmgRcdRatio_; + dmgPlusRcd_ = other.dmgPlusRcd_; + srcDef_ = other.srcDef_; + critResistance_ = other.critResistance_; + wER_ = other.wER_; + fER_ = other.fER_; + sER_ = other.sER_; + aER_ = other.aER_; + lER_ = other.lER_; + dER_ = other.dER_; + suppress_ = other.suppress_; + buffIDs_ = other.buffIDs_.Clone(); + effectIDs_ = other.effectIDs_.Clone(); + attributes_ = other.attributes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Defender Clone() { + return new Defender(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "proto_id" field. + public const int ProtoIdFieldNumber = 2; + private uint protoId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ProtoId { + get { return protoId_; } + set { + protoId_ = value; + } + } + + /// Field number for the "ent_class" field. + public const int EntClassFieldNumber = 3; + private global::Nova.Client.Recorder.Types.EntityClass entClass_ = global::Nova.Client.Recorder.Types.EntityClass.Role; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorder.Types.EntityClass EntClass { + get { return entClass_; } + set { + entClass_ = value; + } + } + + /// Field number for the "h_p" field. + public const int HPFieldNumber = 4; + private int hP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HP { + get { return hP_; } + set { + hP_ = value; + } + } + + /// Field number for the "max_h_p" field. + public const int MaxHPFieldNumber = 5; + private int maxHP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxHP { + get { return maxHP_; } + set { + maxHP_ = value; + } + } + + /// Field number for the "er_amend" field. + public const int ErAmendFieldNumber = 6; + private float erAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ErAmend { + get { return erAmend_; } + set { + erAmend_ = value; + } + } + + /// Field number for the "def_amend" field. + public const int DefAmendFieldNumber = 7; + private float defAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DefAmend { + get { return defAmend_; } + set { + defAmend_ = value; + } + } + + /// Field number for the "rcd_slot_dmg_ratio" field. + public const int RcdSlotDmgRatioFieldNumber = 8; + private float rcdSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RcdSlotDmgRatio { + get { return rcdSlotDmgRatio_; } + set { + rcdSlotDmgRatio_ = value; + } + } + + /// Field number for the "e_e_r_c_d" field. + public const int EERCDFieldNumber = 9; + private float eERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float EERCD { + get { return eERCD_; } + set { + eERCD_ = value; + } + } + + /// Field number for the "gen_dmg_rcd_ratio" field. + public const int GenDmgRcdRatioFieldNumber = 10; + private float genDmgRcdRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float GenDmgRcdRatio { + get { return genDmgRcdRatio_; } + set { + genDmgRcdRatio_ = value; + } + } + + /// Field number for the "dmg_plus_rcd" field. + public const int DmgPlusRcdFieldNumber = 11; + private float dmgPlusRcd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DmgPlusRcd { + get { return dmgPlusRcd_; } + set { + dmgPlusRcd_ = value; + } + } + + /// Field number for the "src_def" field. + public const int SrcDefFieldNumber = 12; + private float srcDef_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float SrcDef { + get { return srcDef_; } + set { + srcDef_ = value; + } + } + + /// Field number for the "crit_resistance" field. + public const int CritResistanceFieldNumber = 13; + private float critResistance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CritResistance { + get { return critResistance_; } + set { + critResistance_ = value; + } + } + + /// Field number for the "w_e_r" field. + public const int WERFieldNumber = 14; + private int wER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WER { + get { return wER_; } + set { + wER_ = value; + } + } + + /// Field number for the "f_e_r" field. + public const int FERFieldNumber = 15; + private int fER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FER { + get { return fER_; } + set { + fER_ = value; + } + } + + /// Field number for the "s_e_r" field. + public const int SERFieldNumber = 16; + private int sER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SER { + get { return sER_; } + set { + sER_ = value; + } + } + + /// Field number for the "a_e_r" field. + public const int AERFieldNumber = 17; + private int aER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AER { + get { return aER_; } + set { + aER_ = value; + } + } + + /// Field number for the "l_e_r" field. + public const int LERFieldNumber = 18; + private int lER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LER { + get { return lER_; } + set { + lER_ = value; + } + } + + /// Field number for the "d_e_r" field. + public const int DERFieldNumber = 19; + private int dER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DER { + get { return dER_; } + set { + dER_ = value; + } + } + + /// Field number for the "suppress" field. + public const int SuppressFieldNumber = 20; + private float suppress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Suppress { + get { return suppress_; } + set { + suppress_ = value; + } + } + + /// Field number for the "buff_i_ds" field. + public const int BuffIDsFieldNumber = 21; + private static readonly pb::FieldCodec _repeated_buffIDs_codec + = pb::FieldCodec.ForInt32(170); + private readonly pbc::RepeatedField buffIDs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffIDs { + get { return buffIDs_; } + } + + /// Field number for the "effect_i_ds" field. + public const int EffectIDsFieldNumber = 23; + private static readonly pb::FieldCodec _repeated_effectIDs_codec + = pb::FieldCodec.ForInt32(186); + private readonly pbc::RepeatedField effectIDs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectIDs { + get { return effectIDs_; } + } + + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 24; + private static readonly pb::FieldCodec _repeated_attributes_codec + = pb::FieldCodec.ForMessage(194, global::Nova.Client.Recorder.Types.Attribute.Parser); + private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Attributes { + get { return attributes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Defender); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Defender other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ProtoId != other.ProtoId) return false; + if (EntClass != other.EntClass) return false; + if (HP != other.HP) return false; + if (MaxHP != other.MaxHP) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ErAmend, other.ErAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefAmend, other.DefAmend)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RcdSlotDmgRatio, other.RcdSlotDmgRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EERCD, other.EERCD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(GenDmgRcdRatio, other.GenDmgRcdRatio)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DmgPlusRcd, other.DmgPlusRcd)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SrcDef, other.SrcDef)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CritResistance, other.CritResistance)) return false; + if (WER != other.WER) return false; + if (FER != other.FER) return false; + if (SER != other.SER) return false; + if (AER != other.AER) return false; + if (LER != other.LER) return false; + if (DER != other.DER) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Suppress, other.Suppress)) return false; + if(!buffIDs_.Equals(other.buffIDs_)) return false; + if(!effectIDs_.Equals(other.effectIDs_)) return false; + if(!attributes_.Equals(other.attributes_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ProtoId != 0) hash ^= ProtoId.GetHashCode(); + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) hash ^= EntClass.GetHashCode(); + if (HP != 0) hash ^= HP.GetHashCode(); + if (MaxHP != 0) hash ^= MaxHP.GetHashCode(); + if (ErAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ErAmend); + if (DefAmend != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefAmend); + if (RcdSlotDmgRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RcdSlotDmgRatio); + if (EERCD != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EERCD); + if (GenDmgRcdRatio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GenDmgRcdRatio); + if (DmgPlusRcd != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DmgPlusRcd); + if (SrcDef != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SrcDef); + if (CritResistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CritResistance); + if (WER != 0) hash ^= WER.GetHashCode(); + if (FER != 0) hash ^= FER.GetHashCode(); + if (SER != 0) hash ^= SER.GetHashCode(); + if (AER != 0) hash ^= AER.GetHashCode(); + if (LER != 0) hash ^= LER.GetHashCode(); + if (DER != 0) hash ^= DER.GetHashCode(); + if (Suppress != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Suppress); + hash ^= buffIDs_.GetHashCode(); + hash ^= effectIDs_.GetHashCode(); + hash ^= attributes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (ProtoId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ProtoId); + } + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + output.WriteRawTag(24); + output.WriteEnum((int) EntClass); + } + if (HP != 0) { + output.WriteRawTag(32); + output.WriteInt32(HP); + } + if (MaxHP != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxHP); + } + if (ErAmend != 0F) { + output.WriteRawTag(53); + output.WriteFloat(ErAmend); + } + if (DefAmend != 0F) { + output.WriteRawTag(61); + output.WriteFloat(DefAmend); + } + if (RcdSlotDmgRatio != 0F) { + output.WriteRawTag(69); + output.WriteFloat(RcdSlotDmgRatio); + } + if (EERCD != 0F) { + output.WriteRawTag(77); + output.WriteFloat(EERCD); + } + if (GenDmgRcdRatio != 0F) { + output.WriteRawTag(85); + output.WriteFloat(GenDmgRcdRatio); + } + if (DmgPlusRcd != 0F) { + output.WriteRawTag(93); + output.WriteFloat(DmgPlusRcd); + } + if (SrcDef != 0F) { + output.WriteRawTag(101); + output.WriteFloat(SrcDef); + } + if (CritResistance != 0F) { + output.WriteRawTag(109); + output.WriteFloat(CritResistance); + } + if (WER != 0) { + output.WriteRawTag(112); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(120); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(DER); + } + if (Suppress != 0F) { + output.WriteRawTag(165, 1); + output.WriteFloat(Suppress); + } + buffIDs_.WriteTo(output, _repeated_buffIDs_codec); + effectIDs_.WriteTo(output, _repeated_effectIDs_codec); + attributes_.WriteTo(output, _repeated_attributes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (ProtoId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ProtoId); + } + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + output.WriteRawTag(24); + output.WriteEnum((int) EntClass); + } + if (HP != 0) { + output.WriteRawTag(32); + output.WriteInt32(HP); + } + if (MaxHP != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxHP); + } + if (ErAmend != 0F) { + output.WriteRawTag(53); + output.WriteFloat(ErAmend); + } + if (DefAmend != 0F) { + output.WriteRawTag(61); + output.WriteFloat(DefAmend); + } + if (RcdSlotDmgRatio != 0F) { + output.WriteRawTag(69); + output.WriteFloat(RcdSlotDmgRatio); + } + if (EERCD != 0F) { + output.WriteRawTag(77); + output.WriteFloat(EERCD); + } + if (GenDmgRcdRatio != 0F) { + output.WriteRawTag(85); + output.WriteFloat(GenDmgRcdRatio); + } + if (DmgPlusRcd != 0F) { + output.WriteRawTag(93); + output.WriteFloat(DmgPlusRcd); + } + if (SrcDef != 0F) { + output.WriteRawTag(101); + output.WriteFloat(SrcDef); + } + if (CritResistance != 0F) { + output.WriteRawTag(109); + output.WriteFloat(CritResistance); + } + if (WER != 0) { + output.WriteRawTag(112); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(120); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(DER); + } + if (Suppress != 0F) { + output.WriteRawTag(165, 1); + output.WriteFloat(Suppress); + } + buffIDs_.WriteTo(ref output, _repeated_buffIDs_codec); + effectIDs_.WriteTo(ref output, _repeated_effectIDs_codec); + attributes_.WriteTo(ref output, _repeated_attributes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (ProtoId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtoId); + } + if (EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EntClass); + } + if (HP != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HP); + } + if (MaxHP != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxHP); + } + if (ErAmend != 0F) { + size += 1 + 4; + } + if (DefAmend != 0F) { + size += 1 + 4; + } + if (RcdSlotDmgRatio != 0F) { + size += 1 + 4; + } + if (EERCD != 0F) { + size += 1 + 4; + } + if (GenDmgRcdRatio != 0F) { + size += 1 + 4; + } + if (DmgPlusRcd != 0F) { + size += 1 + 4; + } + if (SrcDef != 0F) { + size += 1 + 4; + } + if (CritResistance != 0F) { + size += 1 + 4; + } + if (WER != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WER); + } + if (FER != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FER); + } + if (SER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SER); + } + if (AER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AER); + } + if (LER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LER); + } + if (DER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DER); + } + if (Suppress != 0F) { + size += 2 + 4; + } + size += buffIDs_.CalculateSize(_repeated_buffIDs_codec); + size += effectIDs_.CalculateSize(_repeated_effectIDs_codec); + size += attributes_.CalculateSize(_repeated_attributes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Defender other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ProtoId != 0) { + ProtoId = other.ProtoId; + } + if (other.EntClass != global::Nova.Client.Recorder.Types.EntityClass.Role) { + EntClass = other.EntClass; + } + if (other.HP != 0) { + HP = other.HP; + } + if (other.MaxHP != 0) { + MaxHP = other.MaxHP; + } + if (other.ErAmend != 0F) { + ErAmend = other.ErAmend; + } + if (other.DefAmend != 0F) { + DefAmend = other.DefAmend; + } + if (other.RcdSlotDmgRatio != 0F) { + RcdSlotDmgRatio = other.RcdSlotDmgRatio; + } + if (other.EERCD != 0F) { + EERCD = other.EERCD; + } + if (other.GenDmgRcdRatio != 0F) { + GenDmgRcdRatio = other.GenDmgRcdRatio; + } + if (other.DmgPlusRcd != 0F) { + DmgPlusRcd = other.DmgPlusRcd; + } + if (other.SrcDef != 0F) { + SrcDef = other.SrcDef; + } + if (other.CritResistance != 0F) { + CritResistance = other.CritResistance; + } + if (other.WER != 0) { + WER = other.WER; + } + if (other.FER != 0) { + FER = other.FER; + } + if (other.SER != 0) { + SER = other.SER; + } + if (other.AER != 0) { + AER = other.AER; + } + if (other.LER != 0) { + LER = other.LER; + } + if (other.DER != 0) { + DER = other.DER; + } + if (other.Suppress != 0F) { + Suppress = other.Suppress; + } + buffIDs_.Add(other.buffIDs_); + effectIDs_.Add(other.effectIDs_); + attributes_.Add(other.attributes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + ProtoId = input.ReadUInt32(); + break; + } + case 24: { + EntClass = (global::Nova.Client.Recorder.Types.EntityClass) input.ReadEnum(); + break; + } + case 32: { + HP = input.ReadInt32(); + break; + } + case 40: { + MaxHP = input.ReadInt32(); + break; + } + case 53: { + ErAmend = input.ReadFloat(); + break; + } + case 61: { + DefAmend = input.ReadFloat(); + break; + } + case 69: { + RcdSlotDmgRatio = input.ReadFloat(); + break; + } + case 77: { + EERCD = input.ReadFloat(); + break; + } + case 85: { + GenDmgRcdRatio = input.ReadFloat(); + break; + } + case 93: { + DmgPlusRcd = input.ReadFloat(); + break; + } + case 101: { + SrcDef = input.ReadFloat(); + break; + } + case 109: { + CritResistance = input.ReadFloat(); + break; + } + case 112: { + WER = input.ReadInt32(); + break; + } + case 120: { + FER = input.ReadInt32(); + break; + } + case 128: { + SER = input.ReadInt32(); + break; + } + case 136: { + AER = input.ReadInt32(); + break; + } + case 144: { + LER = input.ReadInt32(); + break; + } + case 152: { + DER = input.ReadInt32(); + break; + } + case 165: { + Suppress = input.ReadFloat(); + break; + } + case 170: + case 168: { + buffIDs_.AddEntriesFrom(input, _repeated_buffIDs_codec); + break; + } + case 186: + case 184: { + effectIDs_.AddEntriesFrom(input, _repeated_effectIDs_codec); + break; + } + case 194: { + attributes_.AddEntriesFrom(input, _repeated_attributes_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + ProtoId = input.ReadUInt32(); + break; + } + case 24: { + EntClass = (global::Nova.Client.Recorder.Types.EntityClass) input.ReadEnum(); + break; + } + case 32: { + HP = input.ReadInt32(); + break; + } + case 40: { + MaxHP = input.ReadInt32(); + break; + } + case 53: { + ErAmend = input.ReadFloat(); + break; + } + case 61: { + DefAmend = input.ReadFloat(); + break; + } + case 69: { + RcdSlotDmgRatio = input.ReadFloat(); + break; + } + case 77: { + EERCD = input.ReadFloat(); + break; + } + case 85: { + GenDmgRcdRatio = input.ReadFloat(); + break; + } + case 93: { + DmgPlusRcd = input.ReadFloat(); + break; + } + case 101: { + SrcDef = input.ReadFloat(); + break; + } + case 109: { + CritResistance = input.ReadFloat(); + break; + } + case 112: { + WER = input.ReadInt32(); + break; + } + case 120: { + FER = input.ReadInt32(); + break; + } + case 128: { + SER = input.ReadInt32(); + break; + } + case 136: { + AER = input.ReadInt32(); + break; + } + case 144: { + LER = input.ReadInt32(); + break; + } + case 152: { + DER = input.ReadInt32(); + break; + } + case 165: { + Suppress = input.ReadFloat(); + break; + } + case 170: + case 168: { + buffIDs_.AddEntriesFrom(ref input, _repeated_buffIDs_codec); + break; + } + case 186: + case 184: { + effectIDs_.AddEntriesFrom(ref input, _repeated_effectIDs_codec); + break; + } + case 194: { + attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Death : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Death()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorder.Descriptor.NestedTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Death() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Death(Death other) : this() { + frameId_ = other.frameId_; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Death Clone() { + return new Death(this); + } + + /// Field number for the "frame_id" field. + public const int FrameIdFieldNumber = 1; + private uint frameId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameId { + get { return frameId_; } + set { + frameId_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Death); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Death other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FrameId != other.FrameId) return false; + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FrameId != 0) hash ^= FrameId.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FrameId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FrameId); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FrameId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(FrameId); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FrameId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameId); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Death other) { + if (other == null) { + return; + } + if (other.FrameId != 0) { + FrameId = other.FrameId; + } + if (other.Id != 0) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FrameId = input.ReadUInt32(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FrameId = input.ReadUInt32(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Recorders.cs b/NTR.Common/protos/Recorders.cs new file mode 100644 index 0000000..7d6426a --- /dev/null +++ b/NTR.Common/protos/Recorders.cs @@ -0,0 +1,4279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Recorders.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Recorders.proto + public static partial class RecordersReflection { + + #region Descriptor + /// File descriptor for Recorders.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RecordersReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9SZWNvcmRlcnMucHJvdG8aDlJlY29yZGVyLnByb3RvIpsRCglSZWNvcmRl", + "cnMSJgoIbHZsX3R5cGUYASABKA4yFC5SZWNvcmRlcnMuTGV2ZWxUeXBlEgwK", + "BHVfaWQYAiABKAQSEAoIdG93ZXJfaWQYAyABKA0SIgoJcm9sZV9saXN0GAQg", + "AygLMg8uUmVjb3JkZXJzLlJvbGUSIgoJZGlzY19saXN0GAUgAygLMg8uUmVj", + "b3JkZXJzLkRpc2MSIAoNcmVjb3JkZXJfbGlzdBgGIAMoCzIJLlJlY29yZGVy", + "GqQOCgRSb2xlEgoKAmlkGAEgASgNEg0KBWxldmVsGAIgASgFEhMKC2JyZWFr", + "X2NvdW50GAMgASgFEgoKAmhwGAQgASgFEgsKA2F0axgFIAEoBRILCgNkZWYY", + "BiABKAUSDQoFbV9kZWYYByABKAUSEQoJY3JpdF9yYXRlGAggASgFEhcKD2Ny", + "aXRfcmVzaXN0YW5jZRgJIAEoBRISCgpjcml0X3Bvd2VyGAogASgFEhAKCGhp", + "dF9yYXRlGAsgASgFEgsKA2V2ZBgMIAEoBRISCgpkZWZfcGllcmNlGA0gASgF", + "EhIKCmRlZl9pZ25vcmUYDiABKAUSDQoFd19lX3AYDyABKAUSDQoFZl9lX3AY", + "ECABKAUSDQoFc19lX3AYESABKAUSDQoFYV9lX3AYEiABKAUSDQoFbF9lX3AY", + "EyABKAUSDQoFZF9lX3AYFCABKAUSDQoFd19lX2UYFSABKAUSDQoFZl9lX2UY", + "FiABKAUSDQoFc19lX2UYFyABKAUSDQoFYV9lX2UYGCABKAUSDQoFbF9lX2UY", + "GSABKAUSDQoFZF9lX2UYGiABKAUSDQoFd19lX3IYGyABKAUSDQoFZl9lX3IY", + "HCABKAUSDQoFc19lX3IYHSABKAUSDQoFYV9lX3IYHiABKAUSDQoFbF9lX3IY", + "HyABKAUSDQoFZF9lX3IYICABKAUSDQoFd19lX2kYISABKAUSDQoFZl9lX2kY", + "IiABKAUSDQoFc19lX2kYIyABKAUSDQoFYV9lX2kYJCABKAUSDQoFbF9lX2kY", + "JSABKAUSDQoFZF9lX2kYJiABKAUSFAoMc2hpZWxkX2JvbnVzGCcgASgFEh0K", + "FWluY29taW5nX3NoaWVsZF9ib251cxgoIAEoBRIPCgdza2luX2lkGCkgASgF", + "EhAKCHN1cHByZXNzGCogASgFEhgKEG5vcm1hbF9kbWdfcmF0aW8YKyABKAUS", + "FwoPc2tpbGxfZG1nX3JhdGlvGCwgASgFEhcKD3VsdHJhX2RtZ19yYXRpbxgt", + "IAEoBRIXCg9vdGhlcl9kbWdfcmF0aW8YLiABKAUSHAoUcmNkX25vcm1hbF9k", + "bWdfcmF0aW8YLyABKAUSGwoTcmNkX3NraWxsX2RtZ19yYXRpbxgwIAEoBRIb", + "ChNyY2RfdWx0cmFfZG1nX3JhdGlvGDEgASgFEhsKE3JjZF9vdGhlcl9kbWdf", + "cmF0aW8YMiABKAUSFgoObWFya19kbWdfcmF0aW8YMyABKAUSGAoQc3VtbW9u", + "X2RtZ19yYXRpbxg0IAEoBRIcChRyY2Rfc3VtbW9uX2RtZ19yYXRpbxg1IAEo", + "BRIcChRwcm9qZWN0aWxlX2RtZ19yYXRpbxg2IAEoBRIgChhyY2RfcHJvamVj", + "dGlsZV9kbWdfcmF0aW8YNyABKAUSEwoLZ19lX25fZF9tX2cYOCABKAUSFQoN", + "ZF9tX2dfcF9sX3Vfcxg5IAEoBRIXCg9mX2lfbl9hX2xfZF9tX2cYOiABKAUS", + "HwoXZl9pX25fYV9sX2RfbV9nX3BfbF91X3MYOyABKAUSEwoLd19lX2Vfcl9j", + "X2QYPCABKAUSEwoLZl9lX2Vfcl9jX2QYPSABKAUSEwoLc19lX2Vfcl9jX2QY", + "PiABKAUSEwoLYV9lX2Vfcl9jX2QYPyABKAUSEwoLbF9lX2Vfcl9jX2QYQCAB", + "KAUSEwoLZF9lX2Vfcl9jX2QYQSABKAUSGQoRZ19lX25fZF9tX2dfcl9jX2QY", + "QiABKAUSGwoTZF9tX2dfcF9sX3Vfc19yX2NfZBhDIAEoBRIZChFlbmVyZ3lf", + "Y29udl9yYXRpbxhEIAEoBRIZChFlbmVyZ3lfZWZmaWNpZW5jeRhFIAEoBRIY", + "ChBub3JtYWxfY3JpdF9yYXRlGEYgASgFEhcKD3NraWxsX2NyaXRfcmF0ZRhH", + "IAEoBRIXCg91bHRyYV9jcml0X3JhdGUYSCABKAUSFgoObWFya19jcml0X3Jh", + "dGUYSSABKAUSGAoQc3VtbW9uX2NyaXRfcmF0ZRhKIAEoBRIcChRwcm9qZWN0", + "aWxlX2NyaXRfcmF0ZRhLIAEoBRIXCg9vdGhlcl9jcml0X3JhdGUYTCABKAUS", + "GQoRbm9ybWFsX2NyaXRfcG93ZXIYTSABKAUSGAoQc2tpbGxfY3JpdF9wb3dl", + "chhOIAEoBRIYChB1bHRyYV9jcml0X3Bvd2VyGE8gASgFEhcKD21hcmtfY3Jp", + "dF9wb3dlchhQIAEoBRIZChFzdW1tb25fY3JpdF9wb3dlchhRIAEoBRIdChVw", + "cm9qZWN0aWxlX2NyaXRfcG93ZXIYUiABKAUSGAoQb3RoZXJfY3JpdF9wb3dl", + "chhTIAEoBRIPCgdhdHRyX2lkGFQgASgJEhgKEHNraWxsX2xldmVsX2xpc3QY", + "VSADKAUSGAoQdGFsZW50X2luZm9fbGlzdBhWIAMoCBpQCgREaXNjEgoKAmlk", + "GAEgASgNEg0KBWxldmVsGAIgASgNEi0KD2Rpc2Nfc2tpbGxfbGlzdBgDIAMo", + "CzIULlJlY29yZGVycy5EaXNjU2tpbGwaJgoJRGlzY1NraWxsEgoKAmlkGAEg", + "ASgNEg0KBWxldmVsGAIgASgNIjsKCUxldmVsVHlwZRIOCgpTVEFSX1RPV0VS", + "EAASEQoNVFJBVkVMRVJfRFVFTBABEgsKB1ZBTVBJUkUQAkIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RecorderReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorders), global::Nova.Client.Recorders.Parser, new[]{ "LvlType", "UId", "TowerId", "RoleList", "DiscList", "RecorderList" }, null, new[]{ typeof(global::Nova.Client.Recorders.Types.LevelType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorders.Types.Role), global::Nova.Client.Recorders.Types.Role.Parser, new[]{ "Id", "Level", "BreakCount", "Hp", "Atk", "Def", "MDef", "CritRate", "CritResistance", "CritPower", "HitRate", "Evd", "DefPierce", "DefIgnore", "WEP", "FEP", "SEP", "AEP", "LEP", "DEP", "WEE", "FEE", "SEE", "AEE", "LEE", "DEE", "WER", "FER", "SER", "AER", "LER", "DER", "WEI", "FEI", "SEI", "AEI", "LEI", "DEI", "ShieldBonus", "IncomingShieldBonus", "SkinId", "Suppress", "NormalDmgRatio", "SkillDmgRatio", "UltraDmgRatio", "OtherDmgRatio", "RcdNormalDmgRatio", "RcdSkillDmgRatio", "RcdUltraDmgRatio", "RcdOtherDmgRatio", "MarkDmgRatio", "SummonDmgRatio", "RcdSummonDmgRatio", "ProjectileDmgRatio", "RcdProjectileDmgRatio", "GENDMG", "DMGPLUS", "FINALDMG", "FINALDMGPLUS", "WEERCD", "FEERCD", "SEERCD", "AEERCD", "LEERCD", "DEERCD", "GENDMGRCD", "DMGPLUSRCD", "EnergyConvRatio", "EnergyEfficiency", "NormalCritRate", "SkillCritRate", "UltraCritRate", "MarkCritRate", "SummonCritRate", "ProjectileCritRate", "OtherCritRate", "NormalCritPower", "SkillCritPower", "UltraCritPower", "MarkCritPower", "SummonCritPower", "ProjectileCritPower", "OtherCritPower", "AttrId", "SkillLevelList", "TalentInfoList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorders.Types.Disc), global::Nova.Client.Recorders.Types.Disc.Parser, new[]{ "Id", "Level", "DiscSkillList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Recorders.Types.DiscSkill), global::Nova.Client.Recorders.Types.DiscSkill.Parser, new[]{ "Id", "Level" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Recorders : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Recorders()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RecordersReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Recorders() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Recorders(Recorders other) : this() { + lvlType_ = other.lvlType_; + uId_ = other.uId_; + towerId_ = other.towerId_; + roleList_ = other.roleList_.Clone(); + discList_ = other.discList_.Clone(); + recorderList_ = other.recorderList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Recorders Clone() { + return new Recorders(this); + } + + /// Field number for the "lvl_type" field. + public const int LvlTypeFieldNumber = 1; + private global::Nova.Client.Recorders.Types.LevelType lvlType_ = global::Nova.Client.Recorders.Types.LevelType.StarTower; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Nova.Client.Recorders.Types.LevelType LvlType { + get { return lvlType_; } + set { + lvlType_ = value; + } + } + + /// Field number for the "u_id" field. + public const int UIdFieldNumber = 2; + private ulong uId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong UId { + get { return uId_; } + set { + uId_ = value; + } + } + + /// Field number for the "tower_id" field. + public const int TowerIdFieldNumber = 3; + private uint towerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TowerId { + get { return towerId_; } + set { + towerId_ = value; + } + } + + /// Field number for the "role_list" field. + public const int RoleListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_roleList_codec + = pb::FieldCodec.ForMessage(34, global::Nova.Client.Recorders.Types.Role.Parser); + private readonly pbc::RepeatedField roleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RoleList { + get { return roleList_; } + } + + /// Field number for the "disc_list" field. + public const int DiscListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_discList_codec + = pb::FieldCodec.ForMessage(42, global::Nova.Client.Recorders.Types.Disc.Parser); + private readonly pbc::RepeatedField discList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DiscList { + get { return discList_; } + } + + /// Field number for the "recorder_list" field. + public const int RecorderListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_recorderList_codec + = pb::FieldCodec.ForMessage(50, global::Nova.Client.Recorder.Parser); + private readonly pbc::RepeatedField recorderList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RecorderList { + get { return recorderList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Recorders); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Recorders other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LvlType != other.LvlType) return false; + if (UId != other.UId) return false; + if (TowerId != other.TowerId) return false; + if(!roleList_.Equals(other.roleList_)) return false; + if(!discList_.Equals(other.discList_)) return false; + if(!recorderList_.Equals(other.recorderList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (LvlType != global::Nova.Client.Recorders.Types.LevelType.StarTower) hash ^= LvlType.GetHashCode(); + if (UId != 0UL) hash ^= UId.GetHashCode(); + if (TowerId != 0) hash ^= TowerId.GetHashCode(); + hash ^= roleList_.GetHashCode(); + hash ^= discList_.GetHashCode(); + hash ^= recorderList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LvlType != global::Nova.Client.Recorders.Types.LevelType.StarTower) { + output.WriteRawTag(8); + output.WriteEnum((int) LvlType); + } + if (UId != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(UId); + } + if (TowerId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(TowerId); + } + roleList_.WriteTo(output, _repeated_roleList_codec); + discList_.WriteTo(output, _repeated_discList_codec); + recorderList_.WriteTo(output, _repeated_recorderList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (LvlType != global::Nova.Client.Recorders.Types.LevelType.StarTower) { + output.WriteRawTag(8); + output.WriteEnum((int) LvlType); + } + if (UId != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(UId); + } + if (TowerId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(TowerId); + } + roleList_.WriteTo(ref output, _repeated_roleList_codec); + discList_.WriteTo(ref output, _repeated_discList_codec); + recorderList_.WriteTo(ref output, _repeated_recorderList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (LvlType != global::Nova.Client.Recorders.Types.LevelType.StarTower) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LvlType); + } + if (UId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UId); + } + if (TowerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TowerId); + } + size += roleList_.CalculateSize(_repeated_roleList_codec); + size += discList_.CalculateSize(_repeated_discList_codec); + size += recorderList_.CalculateSize(_repeated_recorderList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Recorders other) { + if (other == null) { + return; + } + if (other.LvlType != global::Nova.Client.Recorders.Types.LevelType.StarTower) { + LvlType = other.LvlType; + } + if (other.UId != 0UL) { + UId = other.UId; + } + if (other.TowerId != 0) { + TowerId = other.TowerId; + } + roleList_.Add(other.roleList_); + discList_.Add(other.discList_); + recorderList_.Add(other.recorderList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LvlType = (global::Nova.Client.Recorders.Types.LevelType) input.ReadEnum(); + break; + } + case 16: { + UId = input.ReadUInt64(); + break; + } + case 24: { + TowerId = input.ReadUInt32(); + break; + } + case 34: { + roleList_.AddEntriesFrom(input, _repeated_roleList_codec); + break; + } + case 42: { + discList_.AddEntriesFrom(input, _repeated_discList_codec); + break; + } + case 50: { + recorderList_.AddEntriesFrom(input, _repeated_recorderList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LvlType = (global::Nova.Client.Recorders.Types.LevelType) input.ReadEnum(); + break; + } + case 16: { + UId = input.ReadUInt64(); + break; + } + case 24: { + TowerId = input.ReadUInt32(); + break; + } + case 34: { + roleList_.AddEntriesFrom(ref input, _repeated_roleList_codec); + break; + } + case 42: { + discList_.AddEntriesFrom(ref input, _repeated_discList_codec); + break; + } + case 50: { + recorderList_.AddEntriesFrom(ref input, _repeated_recorderList_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Recorders message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum LevelType { + [pbr::OriginalName("STAR_TOWER")] StarTower = 0, + [pbr::OriginalName("TRAVELER_DUEL")] TravelerDuel = 1, + [pbr::OriginalName("VAMPIRE")] Vampire = 2, + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Role : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Role()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorders.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role(Role other) : this() { + id_ = other.id_; + level_ = other.level_; + breakCount_ = other.breakCount_; + hp_ = other.hp_; + atk_ = other.atk_; + def_ = other.def_; + mDef_ = other.mDef_; + critRate_ = other.critRate_; + critResistance_ = other.critResistance_; + critPower_ = other.critPower_; + hitRate_ = other.hitRate_; + evd_ = other.evd_; + defPierce_ = other.defPierce_; + defIgnore_ = other.defIgnore_; + wEP_ = other.wEP_; + fEP_ = other.fEP_; + sEP_ = other.sEP_; + aEP_ = other.aEP_; + lEP_ = other.lEP_; + dEP_ = other.dEP_; + wEE_ = other.wEE_; + fEE_ = other.fEE_; + sEE_ = other.sEE_; + aEE_ = other.aEE_; + lEE_ = other.lEE_; + dEE_ = other.dEE_; + wER_ = other.wER_; + fER_ = other.fER_; + sER_ = other.sER_; + aER_ = other.aER_; + lER_ = other.lER_; + dER_ = other.dER_; + wEI_ = other.wEI_; + fEI_ = other.fEI_; + sEI_ = other.sEI_; + aEI_ = other.aEI_; + lEI_ = other.lEI_; + dEI_ = other.dEI_; + shieldBonus_ = other.shieldBonus_; + incomingShieldBonus_ = other.incomingShieldBonus_; + skinId_ = other.skinId_; + suppress_ = other.suppress_; + normalDmgRatio_ = other.normalDmgRatio_; + skillDmgRatio_ = other.skillDmgRatio_; + ultraDmgRatio_ = other.ultraDmgRatio_; + otherDmgRatio_ = other.otherDmgRatio_; + rcdNormalDmgRatio_ = other.rcdNormalDmgRatio_; + rcdSkillDmgRatio_ = other.rcdSkillDmgRatio_; + rcdUltraDmgRatio_ = other.rcdUltraDmgRatio_; + rcdOtherDmgRatio_ = other.rcdOtherDmgRatio_; + markDmgRatio_ = other.markDmgRatio_; + summonDmgRatio_ = other.summonDmgRatio_; + rcdSummonDmgRatio_ = other.rcdSummonDmgRatio_; + projectileDmgRatio_ = other.projectileDmgRatio_; + rcdProjectileDmgRatio_ = other.rcdProjectileDmgRatio_; + gENDMG_ = other.gENDMG_; + dMGPLUS_ = other.dMGPLUS_; + fINALDMG_ = other.fINALDMG_; + fINALDMGPLUS_ = other.fINALDMGPLUS_; + wEERCD_ = other.wEERCD_; + fEERCD_ = other.fEERCD_; + sEERCD_ = other.sEERCD_; + aEERCD_ = other.aEERCD_; + lEERCD_ = other.lEERCD_; + dEERCD_ = other.dEERCD_; + gENDMGRCD_ = other.gENDMGRCD_; + dMGPLUSRCD_ = other.dMGPLUSRCD_; + energyConvRatio_ = other.energyConvRatio_; + energyEfficiency_ = other.energyEfficiency_; + normalCritRate_ = other.normalCritRate_; + skillCritRate_ = other.skillCritRate_; + ultraCritRate_ = other.ultraCritRate_; + markCritRate_ = other.markCritRate_; + summonCritRate_ = other.summonCritRate_; + projectileCritRate_ = other.projectileCritRate_; + otherCritRate_ = other.otherCritRate_; + normalCritPower_ = other.normalCritPower_; + skillCritPower_ = other.skillCritPower_; + ultraCritPower_ = other.ultraCritPower_; + markCritPower_ = other.markCritPower_; + summonCritPower_ = other.summonCritPower_; + projectileCritPower_ = other.projectileCritPower_; + otherCritPower_ = other.otherCritPower_; + attrId_ = other.attrId_; + skillLevelList_ = other.skillLevelList_.Clone(); + talentInfoList_ = other.talentInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role Clone() { + return new Role(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 2; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "break_count" field. + public const int BreakCountFieldNumber = 3; + private int breakCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BreakCount { + get { return breakCount_; } + set { + breakCount_ = value; + } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 4; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + /// Field number for the "atk" field. + public const int AtkFieldNumber = 5; + private int atk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Atk { + get { return atk_; } + set { + atk_ = value; + } + } + + /// Field number for the "def" field. + public const int DefFieldNumber = 6; + private int def_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Def { + get { return def_; } + set { + def_ = value; + } + } + + /// Field number for the "m_def" field. + public const int MDefFieldNumber = 7; + private int mDef_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MDef { + get { return mDef_; } + set { + mDef_ = value; + } + } + + /// Field number for the "crit_rate" field. + public const int CritRateFieldNumber = 8; + private int critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// Field number for the "crit_resistance" field. + public const int CritResistanceFieldNumber = 9; + private int critResistance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritResistance { + get { return critResistance_; } + set { + critResistance_ = value; + } + } + + /// Field number for the "crit_power" field. + public const int CritPowerFieldNumber = 10; + private int critPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritPower { + get { return critPower_; } + set { + critPower_ = value; + } + } + + /// Field number for the "hit_rate" field. + public const int HitRateFieldNumber = 11; + private int hitRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HitRate { + get { return hitRate_; } + set { + hitRate_ = value; + } + } + + /// Field number for the "evd" field. + public const int EvdFieldNumber = 12; + private int evd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Evd { + get { return evd_; } + set { + evd_ = value; + } + } + + /// Field number for the "def_pierce" field. + public const int DefPierceFieldNumber = 13; + private int defPierce_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefPierce { + get { return defPierce_; } + set { + defPierce_ = value; + } + } + + /// Field number for the "def_ignore" field. + public const int DefIgnoreFieldNumber = 14; + private int defIgnore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DefIgnore { + get { return defIgnore_; } + set { + defIgnore_ = value; + } + } + + /// Field number for the "w_e_p" field. + public const int WEPFieldNumber = 15; + private int wEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEP { + get { return wEP_; } + set { + wEP_ = value; + } + } + + /// Field number for the "f_e_p" field. + public const int FEPFieldNumber = 16; + private int fEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEP { + get { return fEP_; } + set { + fEP_ = value; + } + } + + /// Field number for the "s_e_p" field. + public const int SEPFieldNumber = 17; + private int sEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEP { + get { return sEP_; } + set { + sEP_ = value; + } + } + + /// Field number for the "a_e_p" field. + public const int AEPFieldNumber = 18; + private int aEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEP { + get { return aEP_; } + set { + aEP_ = value; + } + } + + /// Field number for the "l_e_p" field. + public const int LEPFieldNumber = 19; + private int lEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEP { + get { return lEP_; } + set { + lEP_ = value; + } + } + + /// Field number for the "d_e_p" field. + public const int DEPFieldNumber = 20; + private int dEP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEP { + get { return dEP_; } + set { + dEP_ = value; + } + } + + /// Field number for the "w_e_e" field. + public const int WEEFieldNumber = 21; + private int wEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEE { + get { return wEE_; } + set { + wEE_ = value; + } + } + + /// Field number for the "f_e_e" field. + public const int FEEFieldNumber = 22; + private int fEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEE { + get { return fEE_; } + set { + fEE_ = value; + } + } + + /// Field number for the "s_e_e" field. + public const int SEEFieldNumber = 23; + private int sEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEE { + get { return sEE_; } + set { + sEE_ = value; + } + } + + /// Field number for the "a_e_e" field. + public const int AEEFieldNumber = 24; + private int aEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEE { + get { return aEE_; } + set { + aEE_ = value; + } + } + + /// Field number for the "l_e_e" field. + public const int LEEFieldNumber = 25; + private int lEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEE { + get { return lEE_; } + set { + lEE_ = value; + } + } + + /// Field number for the "d_e_e" field. + public const int DEEFieldNumber = 26; + private int dEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEE { + get { return dEE_; } + set { + dEE_ = value; + } + } + + /// Field number for the "w_e_r" field. + public const int WERFieldNumber = 27; + private int wER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WER { + get { return wER_; } + set { + wER_ = value; + } + } + + /// Field number for the "f_e_r" field. + public const int FERFieldNumber = 28; + private int fER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FER { + get { return fER_; } + set { + fER_ = value; + } + } + + /// Field number for the "s_e_r" field. + public const int SERFieldNumber = 29; + private int sER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SER { + get { return sER_; } + set { + sER_ = value; + } + } + + /// Field number for the "a_e_r" field. + public const int AERFieldNumber = 30; + private int aER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AER { + get { return aER_; } + set { + aER_ = value; + } + } + + /// Field number for the "l_e_r" field. + public const int LERFieldNumber = 31; + private int lER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LER { + get { return lER_; } + set { + lER_ = value; + } + } + + /// Field number for the "d_e_r" field. + public const int DERFieldNumber = 32; + private int dER_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DER { + get { return dER_; } + set { + dER_ = value; + } + } + + /// Field number for the "w_e_i" field. + public const int WEIFieldNumber = 33; + private int wEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEI { + get { return wEI_; } + set { + wEI_ = value; + } + } + + /// Field number for the "f_e_i" field. + public const int FEIFieldNumber = 34; + private int fEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEI { + get { return fEI_; } + set { + fEI_ = value; + } + } + + /// Field number for the "s_e_i" field. + public const int SEIFieldNumber = 35; + private int sEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEI { + get { return sEI_; } + set { + sEI_ = value; + } + } + + /// Field number for the "a_e_i" field. + public const int AEIFieldNumber = 36; + private int aEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEI { + get { return aEI_; } + set { + aEI_ = value; + } + } + + /// Field number for the "l_e_i" field. + public const int LEIFieldNumber = 37; + private int lEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEI { + get { return lEI_; } + set { + lEI_ = value; + } + } + + /// Field number for the "d_e_i" field. + public const int DEIFieldNumber = 38; + private int dEI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEI { + get { return dEI_; } + set { + dEI_ = value; + } + } + + /// Field number for the "shield_bonus" field. + public const int ShieldBonusFieldNumber = 39; + private int shieldBonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShieldBonus { + get { return shieldBonus_; } + set { + shieldBonus_ = value; + } + } + + /// Field number for the "incoming_shield_bonus" field. + public const int IncomingShieldBonusFieldNumber = 40; + private int incomingShieldBonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IncomingShieldBonus { + get { return incomingShieldBonus_; } + set { + incomingShieldBonus_ = value; + } + } + + /// Field number for the "skin_id" field. + public const int SkinIdFieldNumber = 41; + private int skinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkinId { + get { return skinId_; } + set { + skinId_ = value; + } + } + + /// Field number for the "suppress" field. + public const int SuppressFieldNumber = 42; + private int suppress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Suppress { + get { return suppress_; } + set { + suppress_ = value; + } + } + + /// Field number for the "normal_dmg_ratio" field. + public const int NormalDmgRatioFieldNumber = 43; + private int normalDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalDmgRatio { + get { return normalDmgRatio_; } + set { + normalDmgRatio_ = value; + } + } + + /// Field number for the "skill_dmg_ratio" field. + public const int SkillDmgRatioFieldNumber = 44; + private int skillDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillDmgRatio { + get { return skillDmgRatio_; } + set { + skillDmgRatio_ = value; + } + } + + /// Field number for the "ultra_dmg_ratio" field. + public const int UltraDmgRatioFieldNumber = 45; + private int ultraDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraDmgRatio { + get { return ultraDmgRatio_; } + set { + ultraDmgRatio_ = value; + } + } + + /// Field number for the "other_dmg_ratio" field. + public const int OtherDmgRatioFieldNumber = 46; + private int otherDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherDmgRatio { + get { return otherDmgRatio_; } + set { + otherDmgRatio_ = value; + } + } + + /// Field number for the "rcd_normal_dmg_ratio" field. + public const int RcdNormalDmgRatioFieldNumber = 47; + private int rcdNormalDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RcdNormalDmgRatio { + get { return rcdNormalDmgRatio_; } + set { + rcdNormalDmgRatio_ = value; + } + } + + /// Field number for the "rcd_skill_dmg_ratio" field. + public const int RcdSkillDmgRatioFieldNumber = 48; + private int rcdSkillDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RcdSkillDmgRatio { + get { return rcdSkillDmgRatio_; } + set { + rcdSkillDmgRatio_ = value; + } + } + + /// Field number for the "rcd_ultra_dmg_ratio" field. + public const int RcdUltraDmgRatioFieldNumber = 49; + private int rcdUltraDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RcdUltraDmgRatio { + get { return rcdUltraDmgRatio_; } + set { + rcdUltraDmgRatio_ = value; + } + } + + /// Field number for the "rcd_other_dmg_ratio" field. + public const int RcdOtherDmgRatioFieldNumber = 50; + private int rcdOtherDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RcdOtherDmgRatio { + get { return rcdOtherDmgRatio_; } + set { + rcdOtherDmgRatio_ = value; + } + } + + /// Field number for the "mark_dmg_ratio" field. + public const int MarkDmgRatioFieldNumber = 51; + private int markDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkDmgRatio { + get { return markDmgRatio_; } + set { + markDmgRatio_ = value; + } + } + + /// Field number for the "summon_dmg_ratio" field. + public const int SummonDmgRatioFieldNumber = 52; + private int summonDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonDmgRatio { + get { return summonDmgRatio_; } + set { + summonDmgRatio_ = value; + } + } + + /// Field number for the "rcd_summon_dmg_ratio" field. + public const int RcdSummonDmgRatioFieldNumber = 53; + private int rcdSummonDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RcdSummonDmgRatio { + get { return rcdSummonDmgRatio_; } + set { + rcdSummonDmgRatio_ = value; + } + } + + /// Field number for the "projectile_dmg_ratio" field. + public const int ProjectileDmgRatioFieldNumber = 54; + private int projectileDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileDmgRatio { + get { return projectileDmgRatio_; } + set { + projectileDmgRatio_ = value; + } + } + + /// Field number for the "rcd_projectile_dmg_ratio" field. + public const int RcdProjectileDmgRatioFieldNumber = 55; + private int rcdProjectileDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RcdProjectileDmgRatio { + get { return rcdProjectileDmgRatio_; } + set { + rcdProjectileDmgRatio_ = value; + } + } + + /// Field number for the "g_e_n_d_m_g" field. + public const int GENDMGFieldNumber = 56; + private int gENDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GENDMG { + get { return gENDMG_; } + set { + gENDMG_ = value; + } + } + + /// Field number for the "d_m_g_p_l_u_s" field. + public const int DMGPLUSFieldNumber = 57; + private int dMGPLUS_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DMGPLUS { + get { return dMGPLUS_; } + set { + dMGPLUS_ = value; + } + } + + /// Field number for the "f_i_n_a_l_d_m_g" field. + public const int FINALDMGFieldNumber = 58; + private int fINALDMG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FINALDMG { + get { return fINALDMG_; } + set { + fINALDMG_ = value; + } + } + + /// Field number for the "f_i_n_a_l_d_m_g_p_l_u_s" field. + public const int FINALDMGPLUSFieldNumber = 59; + private int fINALDMGPLUS_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FINALDMGPLUS { + get { return fINALDMGPLUS_; } + set { + fINALDMGPLUS_ = value; + } + } + + /// Field number for the "w_e_e_r_c_d" field. + public const int WEERCDFieldNumber = 60; + private int wEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WEERCD { + get { return wEERCD_; } + set { + wEERCD_ = value; + } + } + + /// Field number for the "f_e_e_r_c_d" field. + public const int FEERCDFieldNumber = 61; + private int fEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FEERCD { + get { return fEERCD_; } + set { + fEERCD_ = value; + } + } + + /// Field number for the "s_e_e_r_c_d" field. + public const int SEERCDFieldNumber = 62; + private int sEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SEERCD { + get { return sEERCD_; } + set { + sEERCD_ = value; + } + } + + /// Field number for the "a_e_e_r_c_d" field. + public const int AEERCDFieldNumber = 63; + private int aEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AEERCD { + get { return aEERCD_; } + set { + aEERCD_ = value; + } + } + + /// Field number for the "l_e_e_r_c_d" field. + public const int LEERCDFieldNumber = 64; + private int lEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LEERCD { + get { return lEERCD_; } + set { + lEERCD_ = value; + } + } + + /// Field number for the "d_e_e_r_c_d" field. + public const int DEERCDFieldNumber = 65; + private int dEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DEERCD { + get { return dEERCD_; } + set { + dEERCD_ = value; + } + } + + /// Field number for the "g_e_n_d_m_g_r_c_d" field. + public const int GENDMGRCDFieldNumber = 66; + private int gENDMGRCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GENDMGRCD { + get { return gENDMGRCD_; } + set { + gENDMGRCD_ = value; + } + } + + /// Field number for the "d_m_g_p_l_u_s_r_c_d" field. + public const int DMGPLUSRCDFieldNumber = 67; + private int dMGPLUSRCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DMGPLUSRCD { + get { return dMGPLUSRCD_; } + set { + dMGPLUSRCD_ = value; + } + } + + /// Field number for the "energy_conv_ratio" field. + public const int EnergyConvRatioFieldNumber = 68; + private int energyConvRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyConvRatio { + get { return energyConvRatio_; } + set { + energyConvRatio_ = value; + } + } + + /// Field number for the "energy_efficiency" field. + public const int EnergyEfficiencyFieldNumber = 69; + private int energyEfficiency_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyEfficiency { + get { return energyEfficiency_; } + set { + energyEfficiency_ = value; + } + } + + /// Field number for the "normal_crit_rate" field. + public const int NormalCritRateFieldNumber = 70; + private int normalCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalCritRate { + get { return normalCritRate_; } + set { + normalCritRate_ = value; + } + } + + /// Field number for the "skill_crit_rate" field. + public const int SkillCritRateFieldNumber = 71; + private int skillCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCritRate { + get { return skillCritRate_; } + set { + skillCritRate_ = value; + } + } + + /// Field number for the "ultra_crit_rate" field. + public const int UltraCritRateFieldNumber = 72; + private int ultraCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraCritRate { + get { return ultraCritRate_; } + set { + ultraCritRate_ = value; + } + } + + /// Field number for the "mark_crit_rate" field. + public const int MarkCritRateFieldNumber = 73; + private int markCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkCritRate { + get { return markCritRate_; } + set { + markCritRate_ = value; + } + } + + /// Field number for the "summon_crit_rate" field. + public const int SummonCritRateFieldNumber = 74; + private int summonCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonCritRate { + get { return summonCritRate_; } + set { + summonCritRate_ = value; + } + } + + /// Field number for the "projectile_crit_rate" field. + public const int ProjectileCritRateFieldNumber = 75; + private int projectileCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileCritRate { + get { return projectileCritRate_; } + set { + projectileCritRate_ = value; + } + } + + /// Field number for the "other_crit_rate" field. + public const int OtherCritRateFieldNumber = 76; + private int otherCritRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherCritRate { + get { return otherCritRate_; } + set { + otherCritRate_ = value; + } + } + + /// Field number for the "normal_crit_power" field. + public const int NormalCritPowerFieldNumber = 77; + private int normalCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalCritPower { + get { return normalCritPower_; } + set { + normalCritPower_ = value; + } + } + + /// Field number for the "skill_crit_power" field. + public const int SkillCritPowerFieldNumber = 78; + private int skillCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCritPower { + get { return skillCritPower_; } + set { + skillCritPower_ = value; + } + } + + /// Field number for the "ultra_crit_power" field. + public const int UltraCritPowerFieldNumber = 79; + private int ultraCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraCritPower { + get { return ultraCritPower_; } + set { + ultraCritPower_ = value; + } + } + + /// Field number for the "mark_crit_power" field. + public const int MarkCritPowerFieldNumber = 80; + private int markCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MarkCritPower { + get { return markCritPower_; } + set { + markCritPower_ = value; + } + } + + /// Field number for the "summon_crit_power" field. + public const int SummonCritPowerFieldNumber = 81; + private int summonCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SummonCritPower { + get { return summonCritPower_; } + set { + summonCritPower_ = value; + } + } + + /// Field number for the "projectile_crit_power" field. + public const int ProjectileCritPowerFieldNumber = 82; + private int projectileCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProjectileCritPower { + get { return projectileCritPower_; } + set { + projectileCritPower_ = value; + } + } + + /// Field number for the "other_crit_power" field. + public const int OtherCritPowerFieldNumber = 83; + private int otherCritPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OtherCritPower { + get { return otherCritPower_; } + set { + otherCritPower_ = value; + } + } + + /// Field number for the "attr_id" field. + public const int AttrIdFieldNumber = 84; + private string attrId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AttrId { + get { return attrId_; } + set { + attrId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "skill_level_list" field. + public const int SkillLevelListFieldNumber = 85; + private static readonly pb::FieldCodec _repeated_skillLevelList_codec + = pb::FieldCodec.ForInt32(682); + private readonly pbc::RepeatedField skillLevelList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkillLevelList { + get { return skillLevelList_; } + } + + /// Field number for the "talent_info_list" field. + public const int TalentInfoListFieldNumber = 86; + private static readonly pb::FieldCodec _repeated_talentInfoList_codec + = pb::FieldCodec.ForBool(690); + private readonly pbc::RepeatedField talentInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TalentInfoList { + get { return talentInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Role); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Role other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Level != other.Level) return false; + if (BreakCount != other.BreakCount) return false; + if (Hp != other.Hp) return false; + if (Atk != other.Atk) return false; + if (Def != other.Def) return false; + if (MDef != other.MDef) return false; + if (CritRate != other.CritRate) return false; + if (CritResistance != other.CritResistance) return false; + if (CritPower != other.CritPower) return false; + if (HitRate != other.HitRate) return false; + if (Evd != other.Evd) return false; + if (DefPierce != other.DefPierce) return false; + if (DefIgnore != other.DefIgnore) return false; + if (WEP != other.WEP) return false; + if (FEP != other.FEP) return false; + if (SEP != other.SEP) return false; + if (AEP != other.AEP) return false; + if (LEP != other.LEP) return false; + if (DEP != other.DEP) return false; + if (WEE != other.WEE) return false; + if (FEE != other.FEE) return false; + if (SEE != other.SEE) return false; + if (AEE != other.AEE) return false; + if (LEE != other.LEE) return false; + if (DEE != other.DEE) return false; + if (WER != other.WER) return false; + if (FER != other.FER) return false; + if (SER != other.SER) return false; + if (AER != other.AER) return false; + if (LER != other.LER) return false; + if (DER != other.DER) return false; + if (WEI != other.WEI) return false; + if (FEI != other.FEI) return false; + if (SEI != other.SEI) return false; + if (AEI != other.AEI) return false; + if (LEI != other.LEI) return false; + if (DEI != other.DEI) return false; + if (ShieldBonus != other.ShieldBonus) return false; + if (IncomingShieldBonus != other.IncomingShieldBonus) return false; + if (SkinId != other.SkinId) return false; + if (Suppress != other.Suppress) return false; + if (NormalDmgRatio != other.NormalDmgRatio) return false; + if (SkillDmgRatio != other.SkillDmgRatio) return false; + if (UltraDmgRatio != other.UltraDmgRatio) return false; + if (OtherDmgRatio != other.OtherDmgRatio) return false; + if (RcdNormalDmgRatio != other.RcdNormalDmgRatio) return false; + if (RcdSkillDmgRatio != other.RcdSkillDmgRatio) return false; + if (RcdUltraDmgRatio != other.RcdUltraDmgRatio) return false; + if (RcdOtherDmgRatio != other.RcdOtherDmgRatio) return false; + if (MarkDmgRatio != other.MarkDmgRatio) return false; + if (SummonDmgRatio != other.SummonDmgRatio) return false; + if (RcdSummonDmgRatio != other.RcdSummonDmgRatio) return false; + if (ProjectileDmgRatio != other.ProjectileDmgRatio) return false; + if (RcdProjectileDmgRatio != other.RcdProjectileDmgRatio) return false; + if (GENDMG != other.GENDMG) return false; + if (DMGPLUS != other.DMGPLUS) return false; + if (FINALDMG != other.FINALDMG) return false; + if (FINALDMGPLUS != other.FINALDMGPLUS) return false; + if (WEERCD != other.WEERCD) return false; + if (FEERCD != other.FEERCD) return false; + if (SEERCD != other.SEERCD) return false; + if (AEERCD != other.AEERCD) return false; + if (LEERCD != other.LEERCD) return false; + if (DEERCD != other.DEERCD) return false; + if (GENDMGRCD != other.GENDMGRCD) return false; + if (DMGPLUSRCD != other.DMGPLUSRCD) return false; + if (EnergyConvRatio != other.EnergyConvRatio) return false; + if (EnergyEfficiency != other.EnergyEfficiency) return false; + if (NormalCritRate != other.NormalCritRate) return false; + if (SkillCritRate != other.SkillCritRate) return false; + if (UltraCritRate != other.UltraCritRate) return false; + if (MarkCritRate != other.MarkCritRate) return false; + if (SummonCritRate != other.SummonCritRate) return false; + if (ProjectileCritRate != other.ProjectileCritRate) return false; + if (OtherCritRate != other.OtherCritRate) return false; + if (NormalCritPower != other.NormalCritPower) return false; + if (SkillCritPower != other.SkillCritPower) return false; + if (UltraCritPower != other.UltraCritPower) return false; + if (MarkCritPower != other.MarkCritPower) return false; + if (SummonCritPower != other.SummonCritPower) return false; + if (ProjectileCritPower != other.ProjectileCritPower) return false; + if (OtherCritPower != other.OtherCritPower) return false; + if (AttrId != other.AttrId) return false; + if(!skillLevelList_.Equals(other.skillLevelList_)) return false; + if(!talentInfoList_.Equals(other.talentInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (BreakCount != 0) hash ^= BreakCount.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (Atk != 0) hash ^= Atk.GetHashCode(); + if (Def != 0) hash ^= Def.GetHashCode(); + if (MDef != 0) hash ^= MDef.GetHashCode(); + if (CritRate != 0) hash ^= CritRate.GetHashCode(); + if (CritResistance != 0) hash ^= CritResistance.GetHashCode(); + if (CritPower != 0) hash ^= CritPower.GetHashCode(); + if (HitRate != 0) hash ^= HitRate.GetHashCode(); + if (Evd != 0) hash ^= Evd.GetHashCode(); + if (DefPierce != 0) hash ^= DefPierce.GetHashCode(); + if (DefIgnore != 0) hash ^= DefIgnore.GetHashCode(); + if (WEP != 0) hash ^= WEP.GetHashCode(); + if (FEP != 0) hash ^= FEP.GetHashCode(); + if (SEP != 0) hash ^= SEP.GetHashCode(); + if (AEP != 0) hash ^= AEP.GetHashCode(); + if (LEP != 0) hash ^= LEP.GetHashCode(); + if (DEP != 0) hash ^= DEP.GetHashCode(); + if (WEE != 0) hash ^= WEE.GetHashCode(); + if (FEE != 0) hash ^= FEE.GetHashCode(); + if (SEE != 0) hash ^= SEE.GetHashCode(); + if (AEE != 0) hash ^= AEE.GetHashCode(); + if (LEE != 0) hash ^= LEE.GetHashCode(); + if (DEE != 0) hash ^= DEE.GetHashCode(); + if (WER != 0) hash ^= WER.GetHashCode(); + if (FER != 0) hash ^= FER.GetHashCode(); + if (SER != 0) hash ^= SER.GetHashCode(); + if (AER != 0) hash ^= AER.GetHashCode(); + if (LER != 0) hash ^= LER.GetHashCode(); + if (DER != 0) hash ^= DER.GetHashCode(); + if (WEI != 0) hash ^= WEI.GetHashCode(); + if (FEI != 0) hash ^= FEI.GetHashCode(); + if (SEI != 0) hash ^= SEI.GetHashCode(); + if (AEI != 0) hash ^= AEI.GetHashCode(); + if (LEI != 0) hash ^= LEI.GetHashCode(); + if (DEI != 0) hash ^= DEI.GetHashCode(); + if (ShieldBonus != 0) hash ^= ShieldBonus.GetHashCode(); + if (IncomingShieldBonus != 0) hash ^= IncomingShieldBonus.GetHashCode(); + if (SkinId != 0) hash ^= SkinId.GetHashCode(); + if (Suppress != 0) hash ^= Suppress.GetHashCode(); + if (NormalDmgRatio != 0) hash ^= NormalDmgRatio.GetHashCode(); + if (SkillDmgRatio != 0) hash ^= SkillDmgRatio.GetHashCode(); + if (UltraDmgRatio != 0) hash ^= UltraDmgRatio.GetHashCode(); + if (OtherDmgRatio != 0) hash ^= OtherDmgRatio.GetHashCode(); + if (RcdNormalDmgRatio != 0) hash ^= RcdNormalDmgRatio.GetHashCode(); + if (RcdSkillDmgRatio != 0) hash ^= RcdSkillDmgRatio.GetHashCode(); + if (RcdUltraDmgRatio != 0) hash ^= RcdUltraDmgRatio.GetHashCode(); + if (RcdOtherDmgRatio != 0) hash ^= RcdOtherDmgRatio.GetHashCode(); + if (MarkDmgRatio != 0) hash ^= MarkDmgRatio.GetHashCode(); + if (SummonDmgRatio != 0) hash ^= SummonDmgRatio.GetHashCode(); + if (RcdSummonDmgRatio != 0) hash ^= RcdSummonDmgRatio.GetHashCode(); + if (ProjectileDmgRatio != 0) hash ^= ProjectileDmgRatio.GetHashCode(); + if (RcdProjectileDmgRatio != 0) hash ^= RcdProjectileDmgRatio.GetHashCode(); + if (GENDMG != 0) hash ^= GENDMG.GetHashCode(); + if (DMGPLUS != 0) hash ^= DMGPLUS.GetHashCode(); + if (FINALDMG != 0) hash ^= FINALDMG.GetHashCode(); + if (FINALDMGPLUS != 0) hash ^= FINALDMGPLUS.GetHashCode(); + if (WEERCD != 0) hash ^= WEERCD.GetHashCode(); + if (FEERCD != 0) hash ^= FEERCD.GetHashCode(); + if (SEERCD != 0) hash ^= SEERCD.GetHashCode(); + if (AEERCD != 0) hash ^= AEERCD.GetHashCode(); + if (LEERCD != 0) hash ^= LEERCD.GetHashCode(); + if (DEERCD != 0) hash ^= DEERCD.GetHashCode(); + if (GENDMGRCD != 0) hash ^= GENDMGRCD.GetHashCode(); + if (DMGPLUSRCD != 0) hash ^= DMGPLUSRCD.GetHashCode(); + if (EnergyConvRatio != 0) hash ^= EnergyConvRatio.GetHashCode(); + if (EnergyEfficiency != 0) hash ^= EnergyEfficiency.GetHashCode(); + if (NormalCritRate != 0) hash ^= NormalCritRate.GetHashCode(); + if (SkillCritRate != 0) hash ^= SkillCritRate.GetHashCode(); + if (UltraCritRate != 0) hash ^= UltraCritRate.GetHashCode(); + if (MarkCritRate != 0) hash ^= MarkCritRate.GetHashCode(); + if (SummonCritRate != 0) hash ^= SummonCritRate.GetHashCode(); + if (ProjectileCritRate != 0) hash ^= ProjectileCritRate.GetHashCode(); + if (OtherCritRate != 0) hash ^= OtherCritRate.GetHashCode(); + if (NormalCritPower != 0) hash ^= NormalCritPower.GetHashCode(); + if (SkillCritPower != 0) hash ^= SkillCritPower.GetHashCode(); + if (UltraCritPower != 0) hash ^= UltraCritPower.GetHashCode(); + if (MarkCritPower != 0) hash ^= MarkCritPower.GetHashCode(); + if (SummonCritPower != 0) hash ^= SummonCritPower.GetHashCode(); + if (ProjectileCritPower != 0) hash ^= ProjectileCritPower.GetHashCode(); + if (OtherCritPower != 0) hash ^= OtherCritPower.GetHashCode(); + if (AttrId.Length != 0) hash ^= AttrId.GetHashCode(); + hash ^= skillLevelList_.GetHashCode(); + hash ^= talentInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (BreakCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(BreakCount); + } + if (Hp != 0) { + output.WriteRawTag(32); + output.WriteInt32(Hp); + } + if (Atk != 0) { + output.WriteRawTag(40); + output.WriteInt32(Atk); + } + if (Def != 0) { + output.WriteRawTag(48); + output.WriteInt32(Def); + } + if (MDef != 0) { + output.WriteRawTag(56); + output.WriteInt32(MDef); + } + if (CritRate != 0) { + output.WriteRawTag(64); + output.WriteInt32(CritRate); + } + if (CritResistance != 0) { + output.WriteRawTag(72); + output.WriteInt32(CritResistance); + } + if (CritPower != 0) { + output.WriteRawTag(80); + output.WriteInt32(CritPower); + } + if (HitRate != 0) { + output.WriteRawTag(88); + output.WriteInt32(HitRate); + } + if (Evd != 0) { + output.WriteRawTag(96); + output.WriteInt32(Evd); + } + if (DefPierce != 0) { + output.WriteRawTag(104); + output.WriteInt32(DefPierce); + } + if (DefIgnore != 0) { + output.WriteRawTag(112); + output.WriteInt32(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(120); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DEP); + } + if (WEE != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(DER); + } + if (WEI != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(WEI); + } + if (FEI != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(FEI); + } + if (SEI != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(SEI); + } + if (AEI != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(AEI); + } + if (LEI != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(LEI); + } + if (DEI != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(DEI); + } + if (ShieldBonus != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(ShieldBonus); + } + if (IncomingShieldBonus != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(IncomingShieldBonus); + } + if (SkinId != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(SkinId); + } + if (Suppress != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(Suppress); + } + if (NormalDmgRatio != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(NormalDmgRatio); + } + if (SkillDmgRatio != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(SkillDmgRatio); + } + if (UltraDmgRatio != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(UltraDmgRatio); + } + if (OtherDmgRatio != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(OtherDmgRatio); + } + if (RcdNormalDmgRatio != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(RcdNormalDmgRatio); + } + if (RcdSkillDmgRatio != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(RcdSkillDmgRatio); + } + if (RcdUltraDmgRatio != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(RcdUltraDmgRatio); + } + if (RcdOtherDmgRatio != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(RcdOtherDmgRatio); + } + if (MarkDmgRatio != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(MarkDmgRatio); + } + if (SummonDmgRatio != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(SummonDmgRatio); + } + if (RcdSummonDmgRatio != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(RcdSummonDmgRatio); + } + if (ProjectileDmgRatio != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(ProjectileDmgRatio); + } + if (RcdProjectileDmgRatio != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(RcdProjectileDmgRatio); + } + if (GENDMG != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(GENDMG); + } + if (DMGPLUS != 0) { + output.WriteRawTag(200, 3); + output.WriteInt32(DMGPLUS); + } + if (FINALDMG != 0) { + output.WriteRawTag(208, 3); + output.WriteInt32(FINALDMG); + } + if (FINALDMGPLUS != 0) { + output.WriteRawTag(216, 3); + output.WriteInt32(FINALDMGPLUS); + } + if (WEERCD != 0) { + output.WriteRawTag(224, 3); + output.WriteInt32(WEERCD); + } + if (FEERCD != 0) { + output.WriteRawTag(232, 3); + output.WriteInt32(FEERCD); + } + if (SEERCD != 0) { + output.WriteRawTag(240, 3); + output.WriteInt32(SEERCD); + } + if (AEERCD != 0) { + output.WriteRawTag(248, 3); + output.WriteInt32(AEERCD); + } + if (LEERCD != 0) { + output.WriteRawTag(128, 4); + output.WriteInt32(LEERCD); + } + if (DEERCD != 0) { + output.WriteRawTag(136, 4); + output.WriteInt32(DEERCD); + } + if (GENDMGRCD != 0) { + output.WriteRawTag(144, 4); + output.WriteInt32(GENDMGRCD); + } + if (DMGPLUSRCD != 0) { + output.WriteRawTag(152, 4); + output.WriteInt32(DMGPLUSRCD); + } + if (EnergyConvRatio != 0) { + output.WriteRawTag(160, 4); + output.WriteInt32(EnergyConvRatio); + } + if (EnergyEfficiency != 0) { + output.WriteRawTag(168, 4); + output.WriteInt32(EnergyEfficiency); + } + if (NormalCritRate != 0) { + output.WriteRawTag(176, 4); + output.WriteInt32(NormalCritRate); + } + if (SkillCritRate != 0) { + output.WriteRawTag(184, 4); + output.WriteInt32(SkillCritRate); + } + if (UltraCritRate != 0) { + output.WriteRawTag(192, 4); + output.WriteInt32(UltraCritRate); + } + if (MarkCritRate != 0) { + output.WriteRawTag(200, 4); + output.WriteInt32(MarkCritRate); + } + if (SummonCritRate != 0) { + output.WriteRawTag(208, 4); + output.WriteInt32(SummonCritRate); + } + if (ProjectileCritRate != 0) { + output.WriteRawTag(216, 4); + output.WriteInt32(ProjectileCritRate); + } + if (OtherCritRate != 0) { + output.WriteRawTag(224, 4); + output.WriteInt32(OtherCritRate); + } + if (NormalCritPower != 0) { + output.WriteRawTag(232, 4); + output.WriteInt32(NormalCritPower); + } + if (SkillCritPower != 0) { + output.WriteRawTag(240, 4); + output.WriteInt32(SkillCritPower); + } + if (UltraCritPower != 0) { + output.WriteRawTag(248, 4); + output.WriteInt32(UltraCritPower); + } + if (MarkCritPower != 0) { + output.WriteRawTag(128, 5); + output.WriteInt32(MarkCritPower); + } + if (SummonCritPower != 0) { + output.WriteRawTag(136, 5); + output.WriteInt32(SummonCritPower); + } + if (ProjectileCritPower != 0) { + output.WriteRawTag(144, 5); + output.WriteInt32(ProjectileCritPower); + } + if (OtherCritPower != 0) { + output.WriteRawTag(152, 5); + output.WriteInt32(OtherCritPower); + } + if (AttrId.Length != 0) { + output.WriteRawTag(162, 5); + output.WriteString(AttrId); + } + skillLevelList_.WriteTo(output, _repeated_skillLevelList_codec); + talentInfoList_.WriteTo(output, _repeated_talentInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (BreakCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(BreakCount); + } + if (Hp != 0) { + output.WriteRawTag(32); + output.WriteInt32(Hp); + } + if (Atk != 0) { + output.WriteRawTag(40); + output.WriteInt32(Atk); + } + if (Def != 0) { + output.WriteRawTag(48); + output.WriteInt32(Def); + } + if (MDef != 0) { + output.WriteRawTag(56); + output.WriteInt32(MDef); + } + if (CritRate != 0) { + output.WriteRawTag(64); + output.WriteInt32(CritRate); + } + if (CritResistance != 0) { + output.WriteRawTag(72); + output.WriteInt32(CritResistance); + } + if (CritPower != 0) { + output.WriteRawTag(80); + output.WriteInt32(CritPower); + } + if (HitRate != 0) { + output.WriteRawTag(88); + output.WriteInt32(HitRate); + } + if (Evd != 0) { + output.WriteRawTag(96); + output.WriteInt32(Evd); + } + if (DefPierce != 0) { + output.WriteRawTag(104); + output.WriteInt32(DefPierce); + } + if (DefIgnore != 0) { + output.WriteRawTag(112); + output.WriteInt32(DefIgnore); + } + if (WEP != 0) { + output.WriteRawTag(120); + output.WriteInt32(WEP); + } + if (FEP != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(FEP); + } + if (SEP != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(SEP); + } + if (AEP != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(AEP); + } + if (LEP != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(LEP); + } + if (DEP != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DEP); + } + if (WEE != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(WEE); + } + if (FEE != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(FEE); + } + if (SEE != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(SEE); + } + if (AEE != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(AEE); + } + if (LEE != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(LEE); + } + if (DEE != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(DEE); + } + if (WER != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(WER); + } + if (FER != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(FER); + } + if (SER != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(SER); + } + if (AER != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(AER); + } + if (LER != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(LER); + } + if (DER != 0) { + output.WriteRawTag(128, 2); + output.WriteInt32(DER); + } + if (WEI != 0) { + output.WriteRawTag(136, 2); + output.WriteInt32(WEI); + } + if (FEI != 0) { + output.WriteRawTag(144, 2); + output.WriteInt32(FEI); + } + if (SEI != 0) { + output.WriteRawTag(152, 2); + output.WriteInt32(SEI); + } + if (AEI != 0) { + output.WriteRawTag(160, 2); + output.WriteInt32(AEI); + } + if (LEI != 0) { + output.WriteRawTag(168, 2); + output.WriteInt32(LEI); + } + if (DEI != 0) { + output.WriteRawTag(176, 2); + output.WriteInt32(DEI); + } + if (ShieldBonus != 0) { + output.WriteRawTag(184, 2); + output.WriteInt32(ShieldBonus); + } + if (IncomingShieldBonus != 0) { + output.WriteRawTag(192, 2); + output.WriteInt32(IncomingShieldBonus); + } + if (SkinId != 0) { + output.WriteRawTag(200, 2); + output.WriteInt32(SkinId); + } + if (Suppress != 0) { + output.WriteRawTag(208, 2); + output.WriteInt32(Suppress); + } + if (NormalDmgRatio != 0) { + output.WriteRawTag(216, 2); + output.WriteInt32(NormalDmgRatio); + } + if (SkillDmgRatio != 0) { + output.WriteRawTag(224, 2); + output.WriteInt32(SkillDmgRatio); + } + if (UltraDmgRatio != 0) { + output.WriteRawTag(232, 2); + output.WriteInt32(UltraDmgRatio); + } + if (OtherDmgRatio != 0) { + output.WriteRawTag(240, 2); + output.WriteInt32(OtherDmgRatio); + } + if (RcdNormalDmgRatio != 0) { + output.WriteRawTag(248, 2); + output.WriteInt32(RcdNormalDmgRatio); + } + if (RcdSkillDmgRatio != 0) { + output.WriteRawTag(128, 3); + output.WriteInt32(RcdSkillDmgRatio); + } + if (RcdUltraDmgRatio != 0) { + output.WriteRawTag(136, 3); + output.WriteInt32(RcdUltraDmgRatio); + } + if (RcdOtherDmgRatio != 0) { + output.WriteRawTag(144, 3); + output.WriteInt32(RcdOtherDmgRatio); + } + if (MarkDmgRatio != 0) { + output.WriteRawTag(152, 3); + output.WriteInt32(MarkDmgRatio); + } + if (SummonDmgRatio != 0) { + output.WriteRawTag(160, 3); + output.WriteInt32(SummonDmgRatio); + } + if (RcdSummonDmgRatio != 0) { + output.WriteRawTag(168, 3); + output.WriteInt32(RcdSummonDmgRatio); + } + if (ProjectileDmgRatio != 0) { + output.WriteRawTag(176, 3); + output.WriteInt32(ProjectileDmgRatio); + } + if (RcdProjectileDmgRatio != 0) { + output.WriteRawTag(184, 3); + output.WriteInt32(RcdProjectileDmgRatio); + } + if (GENDMG != 0) { + output.WriteRawTag(192, 3); + output.WriteInt32(GENDMG); + } + if (DMGPLUS != 0) { + output.WriteRawTag(200, 3); + output.WriteInt32(DMGPLUS); + } + if (FINALDMG != 0) { + output.WriteRawTag(208, 3); + output.WriteInt32(FINALDMG); + } + if (FINALDMGPLUS != 0) { + output.WriteRawTag(216, 3); + output.WriteInt32(FINALDMGPLUS); + } + if (WEERCD != 0) { + output.WriteRawTag(224, 3); + output.WriteInt32(WEERCD); + } + if (FEERCD != 0) { + output.WriteRawTag(232, 3); + output.WriteInt32(FEERCD); + } + if (SEERCD != 0) { + output.WriteRawTag(240, 3); + output.WriteInt32(SEERCD); + } + if (AEERCD != 0) { + output.WriteRawTag(248, 3); + output.WriteInt32(AEERCD); + } + if (LEERCD != 0) { + output.WriteRawTag(128, 4); + output.WriteInt32(LEERCD); + } + if (DEERCD != 0) { + output.WriteRawTag(136, 4); + output.WriteInt32(DEERCD); + } + if (GENDMGRCD != 0) { + output.WriteRawTag(144, 4); + output.WriteInt32(GENDMGRCD); + } + if (DMGPLUSRCD != 0) { + output.WriteRawTag(152, 4); + output.WriteInt32(DMGPLUSRCD); + } + if (EnergyConvRatio != 0) { + output.WriteRawTag(160, 4); + output.WriteInt32(EnergyConvRatio); + } + if (EnergyEfficiency != 0) { + output.WriteRawTag(168, 4); + output.WriteInt32(EnergyEfficiency); + } + if (NormalCritRate != 0) { + output.WriteRawTag(176, 4); + output.WriteInt32(NormalCritRate); + } + if (SkillCritRate != 0) { + output.WriteRawTag(184, 4); + output.WriteInt32(SkillCritRate); + } + if (UltraCritRate != 0) { + output.WriteRawTag(192, 4); + output.WriteInt32(UltraCritRate); + } + if (MarkCritRate != 0) { + output.WriteRawTag(200, 4); + output.WriteInt32(MarkCritRate); + } + if (SummonCritRate != 0) { + output.WriteRawTag(208, 4); + output.WriteInt32(SummonCritRate); + } + if (ProjectileCritRate != 0) { + output.WriteRawTag(216, 4); + output.WriteInt32(ProjectileCritRate); + } + if (OtherCritRate != 0) { + output.WriteRawTag(224, 4); + output.WriteInt32(OtherCritRate); + } + if (NormalCritPower != 0) { + output.WriteRawTag(232, 4); + output.WriteInt32(NormalCritPower); + } + if (SkillCritPower != 0) { + output.WriteRawTag(240, 4); + output.WriteInt32(SkillCritPower); + } + if (UltraCritPower != 0) { + output.WriteRawTag(248, 4); + output.WriteInt32(UltraCritPower); + } + if (MarkCritPower != 0) { + output.WriteRawTag(128, 5); + output.WriteInt32(MarkCritPower); + } + if (SummonCritPower != 0) { + output.WriteRawTag(136, 5); + output.WriteInt32(SummonCritPower); + } + if (ProjectileCritPower != 0) { + output.WriteRawTag(144, 5); + output.WriteInt32(ProjectileCritPower); + } + if (OtherCritPower != 0) { + output.WriteRawTag(152, 5); + output.WriteInt32(OtherCritPower); + } + if (AttrId.Length != 0) { + output.WriteRawTag(162, 5); + output.WriteString(AttrId); + } + skillLevelList_.WriteTo(ref output, _repeated_skillLevelList_codec); + talentInfoList_.WriteTo(ref output, _repeated_talentInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (BreakCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BreakCount); + } + if (Hp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (Atk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Atk); + } + if (Def != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Def); + } + if (MDef != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MDef); + } + if (CritRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CritRate); + } + if (CritResistance != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CritResistance); + } + if (CritPower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CritPower); + } + if (HitRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HitRate); + } + if (Evd != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Evd); + } + if (DefPierce != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefPierce); + } + if (DefIgnore != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefIgnore); + } + if (WEP != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WEP); + } + if (FEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEP); + } + if (SEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEP); + } + if (AEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEP); + } + if (LEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEP); + } + if (DEP != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEP); + } + if (WEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEE); + } + if (FEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEE); + } + if (SEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEE); + } + if (AEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEE); + } + if (LEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEE); + } + if (DEE != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEE); + } + if (WER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WER); + } + if (FER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FER); + } + if (SER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SER); + } + if (AER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AER); + } + if (LER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LER); + } + if (DER != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DER); + } + if (WEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEI); + } + if (FEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEI); + } + if (SEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEI); + } + if (AEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEI); + } + if (LEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEI); + } + if (DEI != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEI); + } + if (ShieldBonus != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ShieldBonus); + } + if (IncomingShieldBonus != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(IncomingShieldBonus); + } + if (SkinId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkinId); + } + if (Suppress != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Suppress); + } + if (NormalDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalDmgRatio); + } + if (SkillDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillDmgRatio); + } + if (UltraDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UltraDmgRatio); + } + if (OtherDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OtherDmgRatio); + } + if (RcdNormalDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RcdNormalDmgRatio); + } + if (RcdSkillDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RcdSkillDmgRatio); + } + if (RcdUltraDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RcdUltraDmgRatio); + } + if (RcdOtherDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RcdOtherDmgRatio); + } + if (MarkDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MarkDmgRatio); + } + if (SummonDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SummonDmgRatio); + } + if (RcdSummonDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RcdSummonDmgRatio); + } + if (ProjectileDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ProjectileDmgRatio); + } + if (RcdProjectileDmgRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RcdProjectileDmgRatio); + } + if (GENDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(GENDMG); + } + if (DMGPLUS != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DMGPLUS); + } + if (FINALDMG != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FINALDMG); + } + if (FINALDMGPLUS != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FINALDMGPLUS); + } + if (WEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(WEERCD); + } + if (FEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FEERCD); + } + if (SEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SEERCD); + } + if (AEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(AEERCD); + } + if (LEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LEERCD); + } + if (DEERCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DEERCD); + } + if (GENDMGRCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(GENDMGRCD); + } + if (DMGPLUSRCD != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DMGPLUSRCD); + } + if (EnergyConvRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EnergyConvRatio); + } + if (EnergyEfficiency != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EnergyEfficiency); + } + if (NormalCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalCritRate); + } + if (SkillCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillCritRate); + } + if (UltraCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UltraCritRate); + } + if (MarkCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MarkCritRate); + } + if (SummonCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SummonCritRate); + } + if (ProjectileCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ProjectileCritRate); + } + if (OtherCritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OtherCritRate); + } + if (NormalCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalCritPower); + } + if (SkillCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkillCritPower); + } + if (UltraCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UltraCritPower); + } + if (MarkCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MarkCritPower); + } + if (SummonCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SummonCritPower); + } + if (ProjectileCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ProjectileCritPower); + } + if (OtherCritPower != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(OtherCritPower); + } + if (AttrId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AttrId); + } + size += skillLevelList_.CalculateSize(_repeated_skillLevelList_codec); + size += talentInfoList_.CalculateSize(_repeated_talentInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Role other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.BreakCount != 0) { + BreakCount = other.BreakCount; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + if (other.Atk != 0) { + Atk = other.Atk; + } + if (other.Def != 0) { + Def = other.Def; + } + if (other.MDef != 0) { + MDef = other.MDef; + } + if (other.CritRate != 0) { + CritRate = other.CritRate; + } + if (other.CritResistance != 0) { + CritResistance = other.CritResistance; + } + if (other.CritPower != 0) { + CritPower = other.CritPower; + } + if (other.HitRate != 0) { + HitRate = other.HitRate; + } + if (other.Evd != 0) { + Evd = other.Evd; + } + if (other.DefPierce != 0) { + DefPierce = other.DefPierce; + } + if (other.DefIgnore != 0) { + DefIgnore = other.DefIgnore; + } + if (other.WEP != 0) { + WEP = other.WEP; + } + if (other.FEP != 0) { + FEP = other.FEP; + } + if (other.SEP != 0) { + SEP = other.SEP; + } + if (other.AEP != 0) { + AEP = other.AEP; + } + if (other.LEP != 0) { + LEP = other.LEP; + } + if (other.DEP != 0) { + DEP = other.DEP; + } + if (other.WEE != 0) { + WEE = other.WEE; + } + if (other.FEE != 0) { + FEE = other.FEE; + } + if (other.SEE != 0) { + SEE = other.SEE; + } + if (other.AEE != 0) { + AEE = other.AEE; + } + if (other.LEE != 0) { + LEE = other.LEE; + } + if (other.DEE != 0) { + DEE = other.DEE; + } + if (other.WER != 0) { + WER = other.WER; + } + if (other.FER != 0) { + FER = other.FER; + } + if (other.SER != 0) { + SER = other.SER; + } + if (other.AER != 0) { + AER = other.AER; + } + if (other.LER != 0) { + LER = other.LER; + } + if (other.DER != 0) { + DER = other.DER; + } + if (other.WEI != 0) { + WEI = other.WEI; + } + if (other.FEI != 0) { + FEI = other.FEI; + } + if (other.SEI != 0) { + SEI = other.SEI; + } + if (other.AEI != 0) { + AEI = other.AEI; + } + if (other.LEI != 0) { + LEI = other.LEI; + } + if (other.DEI != 0) { + DEI = other.DEI; + } + if (other.ShieldBonus != 0) { + ShieldBonus = other.ShieldBonus; + } + if (other.IncomingShieldBonus != 0) { + IncomingShieldBonus = other.IncomingShieldBonus; + } + if (other.SkinId != 0) { + SkinId = other.SkinId; + } + if (other.Suppress != 0) { + Suppress = other.Suppress; + } + if (other.NormalDmgRatio != 0) { + NormalDmgRatio = other.NormalDmgRatio; + } + if (other.SkillDmgRatio != 0) { + SkillDmgRatio = other.SkillDmgRatio; + } + if (other.UltraDmgRatio != 0) { + UltraDmgRatio = other.UltraDmgRatio; + } + if (other.OtherDmgRatio != 0) { + OtherDmgRatio = other.OtherDmgRatio; + } + if (other.RcdNormalDmgRatio != 0) { + RcdNormalDmgRatio = other.RcdNormalDmgRatio; + } + if (other.RcdSkillDmgRatio != 0) { + RcdSkillDmgRatio = other.RcdSkillDmgRatio; + } + if (other.RcdUltraDmgRatio != 0) { + RcdUltraDmgRatio = other.RcdUltraDmgRatio; + } + if (other.RcdOtherDmgRatio != 0) { + RcdOtherDmgRatio = other.RcdOtherDmgRatio; + } + if (other.MarkDmgRatio != 0) { + MarkDmgRatio = other.MarkDmgRatio; + } + if (other.SummonDmgRatio != 0) { + SummonDmgRatio = other.SummonDmgRatio; + } + if (other.RcdSummonDmgRatio != 0) { + RcdSummonDmgRatio = other.RcdSummonDmgRatio; + } + if (other.ProjectileDmgRatio != 0) { + ProjectileDmgRatio = other.ProjectileDmgRatio; + } + if (other.RcdProjectileDmgRatio != 0) { + RcdProjectileDmgRatio = other.RcdProjectileDmgRatio; + } + if (other.GENDMG != 0) { + GENDMG = other.GENDMG; + } + if (other.DMGPLUS != 0) { + DMGPLUS = other.DMGPLUS; + } + if (other.FINALDMG != 0) { + FINALDMG = other.FINALDMG; + } + if (other.FINALDMGPLUS != 0) { + FINALDMGPLUS = other.FINALDMGPLUS; + } + if (other.WEERCD != 0) { + WEERCD = other.WEERCD; + } + if (other.FEERCD != 0) { + FEERCD = other.FEERCD; + } + if (other.SEERCD != 0) { + SEERCD = other.SEERCD; + } + if (other.AEERCD != 0) { + AEERCD = other.AEERCD; + } + if (other.LEERCD != 0) { + LEERCD = other.LEERCD; + } + if (other.DEERCD != 0) { + DEERCD = other.DEERCD; + } + if (other.GENDMGRCD != 0) { + GENDMGRCD = other.GENDMGRCD; + } + if (other.DMGPLUSRCD != 0) { + DMGPLUSRCD = other.DMGPLUSRCD; + } + if (other.EnergyConvRatio != 0) { + EnergyConvRatio = other.EnergyConvRatio; + } + if (other.EnergyEfficiency != 0) { + EnergyEfficiency = other.EnergyEfficiency; + } + if (other.NormalCritRate != 0) { + NormalCritRate = other.NormalCritRate; + } + if (other.SkillCritRate != 0) { + SkillCritRate = other.SkillCritRate; + } + if (other.UltraCritRate != 0) { + UltraCritRate = other.UltraCritRate; + } + if (other.MarkCritRate != 0) { + MarkCritRate = other.MarkCritRate; + } + if (other.SummonCritRate != 0) { + SummonCritRate = other.SummonCritRate; + } + if (other.ProjectileCritRate != 0) { + ProjectileCritRate = other.ProjectileCritRate; + } + if (other.OtherCritRate != 0) { + OtherCritRate = other.OtherCritRate; + } + if (other.NormalCritPower != 0) { + NormalCritPower = other.NormalCritPower; + } + if (other.SkillCritPower != 0) { + SkillCritPower = other.SkillCritPower; + } + if (other.UltraCritPower != 0) { + UltraCritPower = other.UltraCritPower; + } + if (other.MarkCritPower != 0) { + MarkCritPower = other.MarkCritPower; + } + if (other.SummonCritPower != 0) { + SummonCritPower = other.SummonCritPower; + } + if (other.ProjectileCritPower != 0) { + ProjectileCritPower = other.ProjectileCritPower; + } + if (other.OtherCritPower != 0) { + OtherCritPower = other.OtherCritPower; + } + if (other.AttrId.Length != 0) { + AttrId = other.AttrId; + } + skillLevelList_.Add(other.skillLevelList_); + talentInfoList_.Add(other.talentInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 24: { + BreakCount = input.ReadInt32(); + break; + } + case 32: { + Hp = input.ReadInt32(); + break; + } + case 40: { + Atk = input.ReadInt32(); + break; + } + case 48: { + Def = input.ReadInt32(); + break; + } + case 56: { + MDef = input.ReadInt32(); + break; + } + case 64: { + CritRate = input.ReadInt32(); + break; + } + case 72: { + CritResistance = input.ReadInt32(); + break; + } + case 80: { + CritPower = input.ReadInt32(); + break; + } + case 88: { + HitRate = input.ReadInt32(); + break; + } + case 96: { + Evd = input.ReadInt32(); + break; + } + case 104: { + DefPierce = input.ReadInt32(); + break; + } + case 112: { + DefIgnore = input.ReadInt32(); + break; + } + case 120: { + WEP = input.ReadInt32(); + break; + } + case 128: { + FEP = input.ReadInt32(); + break; + } + case 136: { + SEP = input.ReadInt32(); + break; + } + case 144: { + AEP = input.ReadInt32(); + break; + } + case 152: { + LEP = input.ReadInt32(); + break; + } + case 160: { + DEP = input.ReadInt32(); + break; + } + case 168: { + WEE = input.ReadInt32(); + break; + } + case 176: { + FEE = input.ReadInt32(); + break; + } + case 184: { + SEE = input.ReadInt32(); + break; + } + case 192: { + AEE = input.ReadInt32(); + break; + } + case 200: { + LEE = input.ReadInt32(); + break; + } + case 208: { + DEE = input.ReadInt32(); + break; + } + case 216: { + WER = input.ReadInt32(); + break; + } + case 224: { + FER = input.ReadInt32(); + break; + } + case 232: { + SER = input.ReadInt32(); + break; + } + case 240: { + AER = input.ReadInt32(); + break; + } + case 248: { + LER = input.ReadInt32(); + break; + } + case 256: { + DER = input.ReadInt32(); + break; + } + case 264: { + WEI = input.ReadInt32(); + break; + } + case 272: { + FEI = input.ReadInt32(); + break; + } + case 280: { + SEI = input.ReadInt32(); + break; + } + case 288: { + AEI = input.ReadInt32(); + break; + } + case 296: { + LEI = input.ReadInt32(); + break; + } + case 304: { + DEI = input.ReadInt32(); + break; + } + case 312: { + ShieldBonus = input.ReadInt32(); + break; + } + case 320: { + IncomingShieldBonus = input.ReadInt32(); + break; + } + case 328: { + SkinId = input.ReadInt32(); + break; + } + case 336: { + Suppress = input.ReadInt32(); + break; + } + case 344: { + NormalDmgRatio = input.ReadInt32(); + break; + } + case 352: { + SkillDmgRatio = input.ReadInt32(); + break; + } + case 360: { + UltraDmgRatio = input.ReadInt32(); + break; + } + case 368: { + OtherDmgRatio = input.ReadInt32(); + break; + } + case 376: { + RcdNormalDmgRatio = input.ReadInt32(); + break; + } + case 384: { + RcdSkillDmgRatio = input.ReadInt32(); + break; + } + case 392: { + RcdUltraDmgRatio = input.ReadInt32(); + break; + } + case 400: { + RcdOtherDmgRatio = input.ReadInt32(); + break; + } + case 408: { + MarkDmgRatio = input.ReadInt32(); + break; + } + case 416: { + SummonDmgRatio = input.ReadInt32(); + break; + } + case 424: { + RcdSummonDmgRatio = input.ReadInt32(); + break; + } + case 432: { + ProjectileDmgRatio = input.ReadInt32(); + break; + } + case 440: { + RcdProjectileDmgRatio = input.ReadInt32(); + break; + } + case 448: { + GENDMG = input.ReadInt32(); + break; + } + case 456: { + DMGPLUS = input.ReadInt32(); + break; + } + case 464: { + FINALDMG = input.ReadInt32(); + break; + } + case 472: { + FINALDMGPLUS = input.ReadInt32(); + break; + } + case 480: { + WEERCD = input.ReadInt32(); + break; + } + case 488: { + FEERCD = input.ReadInt32(); + break; + } + case 496: { + SEERCD = input.ReadInt32(); + break; + } + case 504: { + AEERCD = input.ReadInt32(); + break; + } + case 512: { + LEERCD = input.ReadInt32(); + break; + } + case 520: { + DEERCD = input.ReadInt32(); + break; + } + case 528: { + GENDMGRCD = input.ReadInt32(); + break; + } + case 536: { + DMGPLUSRCD = input.ReadInt32(); + break; + } + case 544: { + EnergyConvRatio = input.ReadInt32(); + break; + } + case 552: { + EnergyEfficiency = input.ReadInt32(); + break; + } + case 560: { + NormalCritRate = input.ReadInt32(); + break; + } + case 568: { + SkillCritRate = input.ReadInt32(); + break; + } + case 576: { + UltraCritRate = input.ReadInt32(); + break; + } + case 584: { + MarkCritRate = input.ReadInt32(); + break; + } + case 592: { + SummonCritRate = input.ReadInt32(); + break; + } + case 600: { + ProjectileCritRate = input.ReadInt32(); + break; + } + case 608: { + OtherCritRate = input.ReadInt32(); + break; + } + case 616: { + NormalCritPower = input.ReadInt32(); + break; + } + case 624: { + SkillCritPower = input.ReadInt32(); + break; + } + case 632: { + UltraCritPower = input.ReadInt32(); + break; + } + case 640: { + MarkCritPower = input.ReadInt32(); + break; + } + case 648: { + SummonCritPower = input.ReadInt32(); + break; + } + case 656: { + ProjectileCritPower = input.ReadInt32(); + break; + } + case 664: { + OtherCritPower = input.ReadInt32(); + break; + } + case 674: { + AttrId = input.ReadString(); + break; + } + case 682: + case 680: { + skillLevelList_.AddEntriesFrom(input, _repeated_skillLevelList_codec); + break; + } + case 690: + case 688: { + talentInfoList_.AddEntriesFrom(input, _repeated_talentInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 24: { + BreakCount = input.ReadInt32(); + break; + } + case 32: { + Hp = input.ReadInt32(); + break; + } + case 40: { + Atk = input.ReadInt32(); + break; + } + case 48: { + Def = input.ReadInt32(); + break; + } + case 56: { + MDef = input.ReadInt32(); + break; + } + case 64: { + CritRate = input.ReadInt32(); + break; + } + case 72: { + CritResistance = input.ReadInt32(); + break; + } + case 80: { + CritPower = input.ReadInt32(); + break; + } + case 88: { + HitRate = input.ReadInt32(); + break; + } + case 96: { + Evd = input.ReadInt32(); + break; + } + case 104: { + DefPierce = input.ReadInt32(); + break; + } + case 112: { + DefIgnore = input.ReadInt32(); + break; + } + case 120: { + WEP = input.ReadInt32(); + break; + } + case 128: { + FEP = input.ReadInt32(); + break; + } + case 136: { + SEP = input.ReadInt32(); + break; + } + case 144: { + AEP = input.ReadInt32(); + break; + } + case 152: { + LEP = input.ReadInt32(); + break; + } + case 160: { + DEP = input.ReadInt32(); + break; + } + case 168: { + WEE = input.ReadInt32(); + break; + } + case 176: { + FEE = input.ReadInt32(); + break; + } + case 184: { + SEE = input.ReadInt32(); + break; + } + case 192: { + AEE = input.ReadInt32(); + break; + } + case 200: { + LEE = input.ReadInt32(); + break; + } + case 208: { + DEE = input.ReadInt32(); + break; + } + case 216: { + WER = input.ReadInt32(); + break; + } + case 224: { + FER = input.ReadInt32(); + break; + } + case 232: { + SER = input.ReadInt32(); + break; + } + case 240: { + AER = input.ReadInt32(); + break; + } + case 248: { + LER = input.ReadInt32(); + break; + } + case 256: { + DER = input.ReadInt32(); + break; + } + case 264: { + WEI = input.ReadInt32(); + break; + } + case 272: { + FEI = input.ReadInt32(); + break; + } + case 280: { + SEI = input.ReadInt32(); + break; + } + case 288: { + AEI = input.ReadInt32(); + break; + } + case 296: { + LEI = input.ReadInt32(); + break; + } + case 304: { + DEI = input.ReadInt32(); + break; + } + case 312: { + ShieldBonus = input.ReadInt32(); + break; + } + case 320: { + IncomingShieldBonus = input.ReadInt32(); + break; + } + case 328: { + SkinId = input.ReadInt32(); + break; + } + case 336: { + Suppress = input.ReadInt32(); + break; + } + case 344: { + NormalDmgRatio = input.ReadInt32(); + break; + } + case 352: { + SkillDmgRatio = input.ReadInt32(); + break; + } + case 360: { + UltraDmgRatio = input.ReadInt32(); + break; + } + case 368: { + OtherDmgRatio = input.ReadInt32(); + break; + } + case 376: { + RcdNormalDmgRatio = input.ReadInt32(); + break; + } + case 384: { + RcdSkillDmgRatio = input.ReadInt32(); + break; + } + case 392: { + RcdUltraDmgRatio = input.ReadInt32(); + break; + } + case 400: { + RcdOtherDmgRatio = input.ReadInt32(); + break; + } + case 408: { + MarkDmgRatio = input.ReadInt32(); + break; + } + case 416: { + SummonDmgRatio = input.ReadInt32(); + break; + } + case 424: { + RcdSummonDmgRatio = input.ReadInt32(); + break; + } + case 432: { + ProjectileDmgRatio = input.ReadInt32(); + break; + } + case 440: { + RcdProjectileDmgRatio = input.ReadInt32(); + break; + } + case 448: { + GENDMG = input.ReadInt32(); + break; + } + case 456: { + DMGPLUS = input.ReadInt32(); + break; + } + case 464: { + FINALDMG = input.ReadInt32(); + break; + } + case 472: { + FINALDMGPLUS = input.ReadInt32(); + break; + } + case 480: { + WEERCD = input.ReadInt32(); + break; + } + case 488: { + FEERCD = input.ReadInt32(); + break; + } + case 496: { + SEERCD = input.ReadInt32(); + break; + } + case 504: { + AEERCD = input.ReadInt32(); + break; + } + case 512: { + LEERCD = input.ReadInt32(); + break; + } + case 520: { + DEERCD = input.ReadInt32(); + break; + } + case 528: { + GENDMGRCD = input.ReadInt32(); + break; + } + case 536: { + DMGPLUSRCD = input.ReadInt32(); + break; + } + case 544: { + EnergyConvRatio = input.ReadInt32(); + break; + } + case 552: { + EnergyEfficiency = input.ReadInt32(); + break; + } + case 560: { + NormalCritRate = input.ReadInt32(); + break; + } + case 568: { + SkillCritRate = input.ReadInt32(); + break; + } + case 576: { + UltraCritRate = input.ReadInt32(); + break; + } + case 584: { + MarkCritRate = input.ReadInt32(); + break; + } + case 592: { + SummonCritRate = input.ReadInt32(); + break; + } + case 600: { + ProjectileCritRate = input.ReadInt32(); + break; + } + case 608: { + OtherCritRate = input.ReadInt32(); + break; + } + case 616: { + NormalCritPower = input.ReadInt32(); + break; + } + case 624: { + SkillCritPower = input.ReadInt32(); + break; + } + case 632: { + UltraCritPower = input.ReadInt32(); + break; + } + case 640: { + MarkCritPower = input.ReadInt32(); + break; + } + case 648: { + SummonCritPower = input.ReadInt32(); + break; + } + case 656: { + ProjectileCritPower = input.ReadInt32(); + break; + } + case 664: { + OtherCritPower = input.ReadInt32(); + break; + } + case 674: { + AttrId = input.ReadString(); + break; + } + case 682: + case 680: { + skillLevelList_.AddEntriesFrom(ref input, _repeated_skillLevelList_codec); + break; + } + case 690: + case 688: { + talentInfoList_.AddEntriesFrom(ref input, _repeated_talentInfoList_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Disc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Disc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorders.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disc(Disc other) : this() { + id_ = other.id_; + level_ = other.level_; + discSkillList_ = other.discSkillList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Disc Clone() { + return new Disc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 2; + private uint level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "disc_skill_list" field. + public const int DiscSkillListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_discSkillList_codec + = pb::FieldCodec.ForMessage(26, global::Nova.Client.Recorders.Types.DiscSkill.Parser); + private readonly pbc::RepeatedField discSkillList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DiscSkillList { + get { return discSkillList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Disc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Disc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Level != other.Level) return false; + if(!discSkillList_.Equals(other.discSkillList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + hash ^= discSkillList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + discSkillList_.WriteTo(output, _repeated_discSkillList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + discSkillList_.WriteTo(ref output, _repeated_discSkillList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + size += discSkillList_.CalculateSize(_repeated_discSkillList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Disc other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + discSkillList_.Add(other.discSkillList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 26: { + discSkillList_.AddEntriesFrom(input, _repeated_discSkillList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 26: { + discSkillList_.AddEntriesFrom(ref input, _repeated_discSkillList_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.Recorders.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscSkill(DiscSkill other) : this() { + id_ = other.id_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscSkill Clone() { + return new DiscSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 2; + private uint level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Level { + get { return level_; } + set { + level_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscSkill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/RegionBoss.cs b/NTR.Common/protos/RegionBoss.cs new file mode 100644 index 0000000..4c80486 --- /dev/null +++ b/NTR.Common/protos/RegionBoss.cs @@ -0,0 +1,700 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionBoss.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from RegionBoss.proto + public static partial class RegionBossReflection { + + #region Descriptor + /// File descriptor for RegionBoss.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RegionBossReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBSZWdpb25Cb3NzLnByb3RvIogCCgpSZWdpb25Cb3NzEgoKAmlkGAEgASgF", + "EhIKCm1vbnN0ZXJfaWQYAiABKAUSEwoLcmVnaW9uX3R5cGUYAyABKAUSDAoE", + "bmFtZRgEIAEoCRIMCgRpY29uGAUgASgJEhgKEHVubG9ja19jb25kaXRpb24Y", + "BiABKAkSFgoObmVlZF9yb2d1ZWxpa2UYByABKAUSDAoEc29ydBgIIAEoBRIQ", + "CghvcGVuX2RheRgJIAMoBRIVCg1vcGVuX2RheV9kZXNjGAogASgJEg0KBWVf", + "ZV90GAsgAygFEg8KB2VwaXNvZGUYDCABKAkSDQoFaW1hZ2UYDSABKAkSEQoJ", + "ZHJvcF9pdGVtGA4gAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.RegionBoss), global::Nova.Client.RegionBoss.Parser, new[]{ "Id", "MonsterId", "RegionType", "Name", "Icon", "UnlockCondition", "NeedRoguelike", "Sort", "OpenDay", "OpenDayDesc", "EET", "Episode", "Image", "DropItem" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegionBoss : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionBoss()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RegionBossReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBoss() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBoss(RegionBoss other) : this() { + id_ = other.id_; + monsterId_ = other.monsterId_; + regionType_ = other.regionType_; + name_ = other.name_; + icon_ = other.icon_; + unlockCondition_ = other.unlockCondition_; + needRoguelike_ = other.needRoguelike_; + sort_ = other.sort_; + openDay_ = other.openDay_.Clone(); + openDayDesc_ = other.openDayDesc_; + eET_ = other.eET_.Clone(); + episode_ = other.episode_; + image_ = other.image_; + dropItem_ = other.dropItem_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBoss Clone() { + return new RegionBoss(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 2; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "region_type" field. + public const int RegionTypeFieldNumber = 3; + private int regionType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RegionType { + get { return regionType_; } + set { + regionType_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 5; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlock_condition" field. + public const int UnlockConditionFieldNumber = 6; + private string unlockCondition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockCondition { + get { return unlockCondition_; } + set { + unlockCondition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "need_roguelike" field. + public const int NeedRoguelikeFieldNumber = 7; + private int needRoguelike_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedRoguelike { + get { return needRoguelike_; } + set { + needRoguelike_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 8; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "open_day" field. + public const int OpenDayFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_openDay_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField openDay_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OpenDay { + get { return openDay_; } + } + + /// Field number for the "open_day_desc" field. + public const int OpenDayDescFieldNumber = 10; + private string openDayDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenDayDesc { + get { return openDayDesc_; } + set { + openDayDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_eET_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField eET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EET { + get { return eET_; } + } + + /// Field number for the "episode" field. + public const int EpisodeFieldNumber = 12; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 13; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "drop_item" field. + public const int DropItemFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_dropItem_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField dropItem_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DropItem { + get { return dropItem_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegionBoss); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionBoss other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MonsterId != other.MonsterId) return false; + if (RegionType != other.RegionType) return false; + if (Name != other.Name) return false; + if (Icon != other.Icon) return false; + if (UnlockCondition != other.UnlockCondition) return false; + if (NeedRoguelike != other.NeedRoguelike) return false; + if (Sort != other.Sort) return false; + if(!openDay_.Equals(other.openDay_)) return false; + if (OpenDayDesc != other.OpenDayDesc) return false; + if(!eET_.Equals(other.eET_)) return false; + if (Episode != other.Episode) return false; + if (Image != other.Image) return false; + if(!dropItem_.Equals(other.dropItem_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (RegionType != 0) hash ^= RegionType.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (UnlockCondition.Length != 0) hash ^= UnlockCondition.GetHashCode(); + if (NeedRoguelike != 0) hash ^= NeedRoguelike.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + hash ^= openDay_.GetHashCode(); + if (OpenDayDesc.Length != 0) hash ^= OpenDayDesc.GetHashCode(); + hash ^= eET_.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + hash ^= dropItem_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MonsterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterId); + } + if (RegionType != 0) { + output.WriteRawTag(24); + output.WriteInt32(RegionType); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon); + } + if (UnlockCondition.Length != 0) { + output.WriteRawTag(50); + output.WriteString(UnlockCondition); + } + if (NeedRoguelike != 0) { + output.WriteRawTag(56); + output.WriteInt32(NeedRoguelike); + } + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + openDay_.WriteTo(output, _repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + output.WriteRawTag(82); + output.WriteString(OpenDayDesc); + } + eET_.WriteTo(output, _repeated_eET_codec); + if (Episode.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Image); + } + dropItem_.WriteTo(output, _repeated_dropItem_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MonsterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterId); + } + if (RegionType != 0) { + output.WriteRawTag(24); + output.WriteInt32(RegionType); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Icon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon); + } + if (UnlockCondition.Length != 0) { + output.WriteRawTag(50); + output.WriteString(UnlockCondition); + } + if (NeedRoguelike != 0) { + output.WriteRawTag(56); + output.WriteInt32(NeedRoguelike); + } + if (Sort != 0) { + output.WriteRawTag(64); + output.WriteInt32(Sort); + } + openDay_.WriteTo(ref output, _repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + output.WriteRawTag(82); + output.WriteString(OpenDayDesc); + } + eET_.WriteTo(ref output, _repeated_eET_codec); + if (Episode.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Image); + } + dropItem_.WriteTo(ref output, _repeated_dropItem_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (RegionType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RegionType); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (UnlockCondition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UnlockCondition); + } + if (NeedRoguelike != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedRoguelike); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + size += openDay_.CalculateSize(_repeated_openDay_codec); + if (OpenDayDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenDayDesc); + } + size += eET_.CalculateSize(_repeated_eET_codec); + if (Episode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Image.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Image); + } + size += dropItem_.CalculateSize(_repeated_dropItem_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionBoss other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.RegionType != 0) { + RegionType = other.RegionType; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.UnlockCondition.Length != 0) { + UnlockCondition = other.UnlockCondition; + } + if (other.NeedRoguelike != 0) { + NeedRoguelike = other.NeedRoguelike; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + openDay_.Add(other.openDay_); + if (other.OpenDayDesc.Length != 0) { + OpenDayDesc = other.OpenDayDesc; + } + eET_.Add(other.eET_); + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + dropItem_.Add(other.dropItem_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MonsterId = input.ReadInt32(); + break; + } + case 24: { + RegionType = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Icon = input.ReadString(); + break; + } + case 50: { + UnlockCondition = input.ReadString(); + break; + } + case 56: { + NeedRoguelike = input.ReadInt32(); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + case 74: + case 72: { + openDay_.AddEntriesFrom(input, _repeated_openDay_codec); + break; + } + case 82: { + OpenDayDesc = input.ReadString(); + break; + } + case 90: + case 88: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + case 98: { + Episode = input.ReadString(); + break; + } + case 106: { + Image = input.ReadString(); + break; + } + case 114: + case 112: { + dropItem_.AddEntriesFrom(input, _repeated_dropItem_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MonsterId = input.ReadInt32(); + break; + } + case 24: { + RegionType = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Icon = input.ReadString(); + break; + } + case 50: { + UnlockCondition = input.ReadString(); + break; + } + case 56: { + NeedRoguelike = input.ReadInt32(); + break; + } + case 64: { + Sort = input.ReadInt32(); + break; + } + case 74: + case 72: { + openDay_.AddEntriesFrom(ref input, _repeated_openDay_codec); + break; + } + case 82: { + OpenDayDesc = input.ReadString(); + break; + } + case 90: + case 88: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + case 98: { + Episode = input.ReadString(); + break; + } + case 106: { + Image = input.ReadString(); + break; + } + case 114: + case 112: { + dropItem_.AddEntriesFrom(ref input, _repeated_dropItem_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/RegionBossAffix.cs b/NTR.Common/protos/RegionBossAffix.cs new file mode 100644 index 0000000..e6e700c --- /dev/null +++ b/NTR.Common/protos/RegionBossAffix.cs @@ -0,0 +1,560 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionBossAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from RegionBossAffix.proto + public static partial class RegionBossAffixReflection { + + #region Descriptor + /// File descriptor for RegionBossAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RegionBossAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSZWdpb25Cb3NzQWZmaXgucHJvdG8isAEKD1JlZ2lvbkJvc3NBZmZpeBIK", + "CgJpZBgBIAEoBRIQCghncm91cF9pZBgCIAEoBRINCgVsZXZlbBgDIAEoBRIM", + "CgRuYW1lGAQgASgJEgwKBGRlc2MYBSABKAkSDAoEaWNvbhgGIAEoCRIPCgdl", + "bGVtZW50GAcgASgFEhAKCGFkZF9jYW1wGAggAygFEhEKCWFkZF9jbGFzcxgJ", + "IAMoBRIQCghza2lsbF9pZBgKIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.RegionBossAffix), global::Nova.Client.RegionBossAffix.Parser, new[]{ "Id", "GroupId", "Level", "Name", "Desc", "Icon", "Element", "AddCamp", "AddClass", "SkillId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegionBossAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionBossAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RegionBossAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossAffix(RegionBossAffix other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + level_ = other.level_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + element_ = other.element_; + addCamp_ = other.addCamp_.Clone(); + addClass_ = other.addClass_.Clone(); + skillId_ = other.skillId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossAffix Clone() { + return new RegionBossAffix(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 6; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "element" field. + public const int ElementFieldNumber = 7; + private int element_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Element { + get { return element_; } + set { + element_ = value; + } + } + + /// Field number for the "add_camp" field. + public const int AddCampFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_addCamp_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField addCamp_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AddCamp { + get { return addCamp_; } + } + + /// Field number for the "add_class" field. + public const int AddClassFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_addClass_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField addClass_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AddClass { + get { return addClass_; } + } + + /// Field number for the "skill_id" field. + public const int SkillIdFieldNumber = 10; + private int skillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillId { + get { return skillId_; } + set { + skillId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegionBossAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionBossAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Level != other.Level) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (Element != other.Element) return false; + if(!addCamp_.Equals(other.addCamp_)) return false; + if(!addClass_.Equals(other.addClass_)) return false; + if (SkillId != other.SkillId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Element != 0) hash ^= Element.GetHashCode(); + hash ^= addCamp_.GetHashCode(); + hash ^= addClass_.GetHashCode(); + if (SkillId != 0) hash ^= SkillId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Icon); + } + if (Element != 0) { + output.WriteRawTag(56); + output.WriteInt32(Element); + } + addCamp_.WriteTo(output, _repeated_addCamp_codec); + addClass_.WriteTo(output, _repeated_addClass_codec); + if (SkillId != 0) { + output.WriteRawTag(80); + output.WriteInt32(SkillId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Icon); + } + if (Element != 0) { + output.WriteRawTag(56); + output.WriteInt32(Element); + } + addCamp_.WriteTo(ref output, _repeated_addCamp_codec); + addClass_.WriteTo(ref output, _repeated_addClass_codec); + if (SkillId != 0) { + output.WriteRawTag(80); + output.WriteInt32(SkillId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Element != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Element); + } + size += addCamp_.CalculateSize(_repeated_addCamp_codec); + size += addClass_.CalculateSize(_repeated_addClass_codec); + if (SkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionBossAffix other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Element != 0) { + Element = other.Element; + } + addCamp_.Add(other.addCamp_); + addClass_.Add(other.addClass_); + if (other.SkillId != 0) { + SkillId = other.SkillId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Icon = input.ReadString(); + break; + } + case 56: { + Element = input.ReadInt32(); + break; + } + case 66: + case 64: { + addCamp_.AddEntriesFrom(input, _repeated_addCamp_codec); + break; + } + case 74: + case 72: { + addClass_.AddEntriesFrom(input, _repeated_addClass_codec); + break; + } + case 80: { + SkillId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Icon = input.ReadString(); + break; + } + case 56: { + Element = input.ReadInt32(); + break; + } + case 66: + case 64: { + addCamp_.AddEntriesFrom(ref input, _repeated_addCamp_codec); + break; + } + case 74: + case 72: { + addClass_.AddEntriesFrom(ref input, _repeated_addClass_codec); + break; + } + case 80: { + SkillId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/RegionBossFloor.cs b/NTR.Common/protos/RegionBossFloor.cs new file mode 100644 index 0000000..1e538a2 --- /dev/null +++ b/NTR.Common/protos/RegionBossFloor.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionBossFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from RegionBossFloor.proto + public static partial class RegionBossFloorReflection { + + #region Descriptor + /// File descriptor for RegionBossFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RegionBossFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSZWdpb25Cb3NzRmxvb3IucHJvdG8iswEKD1JlZ2lvbkJvc3NGbG9vchIK", + "CgJpZBgBIAEoBRISCgpzY2VuZV9uYW1lGAIgASgJEhoKEmNvbmZpZ19wcmVm", + "YWJfbmFtZRgDIAEoCRINCgV0aGVtZRgEIAEoBRINCgViX2dfbRgFIAEoCRIb", + "ChNsZWF2ZV90cmlnZ2VyX2V2ZW50GAYgASgJEhIKCm1vbnN0ZXJfbHYYByAB", + "KAUSFQoNZHVuZ2Vvbl9kZWxheRgIIAEoBUIOqgILTm92YS5DbGllbnRiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.RegionBossFloor), global::Nova.Client.RegionBossFloor.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent", "MonsterLv", "DungeonDelay" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegionBossFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionBossFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RegionBossFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossFloor(RegionBossFloor other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + monsterLv_ = other.monsterLv_; + dungeonDelay_ = other.dungeonDelay_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossFloor Clone() { + return new RegionBossFloor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "scene_name" field. + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "config_prefab_name" field. + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "b_g_m" field. + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "leave_trigger_event" field. + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "monster_lv" field. + public const int MonsterLvFieldNumber = 7; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + /// Field number for the "dungeon_delay" field. + public const int DungeonDelayFieldNumber = 8; + private int dungeonDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DungeonDelay { + get { return dungeonDelay_; } + set { + dungeonDelay_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegionBossFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionBossFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + if (MonsterLv != other.MonsterLv) return false; + if (DungeonDelay != other.DungeonDelay) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (DungeonDelay != 0) hash ^= DungeonDelay.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (DungeonDelay != 0) { + output.WriteRawTag(64); + output.WriteInt32(DungeonDelay); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (DungeonDelay != 0) { + output.WriteRawTag(64); + output.WriteInt32(DungeonDelay); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (DungeonDelay != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DungeonDelay); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionBossFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + if (other.DungeonDelay != 0) { + DungeonDelay = other.DungeonDelay; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + case 64: { + DungeonDelay = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + case 64: { + DungeonDelay = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/RegionBossLevel.cs b/NTR.Common/protos/RegionBossLevel.cs new file mode 100644 index 0000000..50c432c --- /dev/null +++ b/NTR.Common/protos/RegionBossLevel.cs @@ -0,0 +1,1358 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionBossLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from RegionBossLevel.proto + public static partial class RegionBossLevelReflection { + + #region Descriptor + /// File descriptor for RegionBossLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RegionBossLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSZWdpb25Cb3NzTGV2ZWwucHJvdG8i6wUKD1JlZ2lvbkJvc3NMZXZlbBIK", + "CgJpZBgBIAEoBRIWCg5yZWdpb25fYm9zc19pZBgCIAEoBRISCgpkaWZmaWN1", + "bHR5GAMgASgFEhMKC3JlZ2lvbl90eXBlGAQgASgFEgwKBG5hbWUYBSABKAkS", + "DAoEZGVzYxgGIAEoCRIMCgRpY29uGAcgASgJEhcKD3N1Z2dlc3RlZF9wb3dl", + "chgIIAEoBRIUCgxwcmVfbGV2ZWxfaWQYCSABKAUSFgoOYm9zc19zaG93X3Rp", + "bWUYCiABKAUSFgoOcHJlX2xldmVsX3N0YXIYCyABKAUSGAoQbmVlZF93b3Js", + "ZF9jbGFzcxgMIAEoBRIWCg5uZWVkX3JvZ3VlbGlrZRgNIAEoBRIQCghmbG9v", + "cl9pZBgOIAEoBRIaChJvbmVfc3Rhcl9jb25kaXRpb24YDyABKAkSGgoSdHdv", + "X3N0YXJfY29uZGl0aW9uGBAgASgJEhwKFHRocmVlX3N0YXJfY29uZGl0aW9u", + "GBEgASgJEg8KB2Ryb3BfaWQYEiABKAUSFgoOZW5lcmd5X2NvbnN1bWUYEyAB", + "KAUSGgoSYmFzZV9hd2FyZF9wcmV2aWV3GBQgASgJEhcKD2VudHJ5X2dyb3Vw", + "X2lkMRgVIAEoBRIaChJlbnRyeV9ncm91cF9sZXZlbDEYFiABKAUSFwoPZW50", + "cnlfZ3JvdXBfaWQyGBcgASgFEhoKEmVudHJ5X2dyb3VwX2xldmVsMhgYIAEo", + "BRIXCg9lbnRyeV9ncm91cF9pZDMYGSABKAUSGgoSZW50cnlfZ3JvdXBfbGV2", + "ZWwzGBogASgFEhcKD2VudHJ5X2dyb3VwX2lkNBgbIAEoBRIaChJlbnRyeV9n", + "cm91cF9sZXZlbDQYHCABKAUSFwoPZW50cnlfZ3JvdXBfaWQ1GB0gASgFEhoK", + "EmVudHJ5X2dyb3VwX2xldmVsNRgeIAEoBRIaChJleHRyYV9kcm9wX3ByZXZp", + "ZXcYHyADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.RegionBossLevel), global::Nova.Client.RegionBossLevel.Parser, new[]{ "Id", "RegionBossId", "Difficulty", "RegionType", "Name", "Desc", "Icon", "SuggestedPower", "PreLevelId", "BossShowTime", "PreLevelStar", "NeedWorldClass", "NeedRoguelike", "FloorId", "OneStarCondition", "TwoStarCondition", "ThreeStarCondition", "DropId", "EnergyConsume", "BaseAwardPreview", "EntryGroupId1", "EntryGroupLevel1", "EntryGroupId2", "EntryGroupLevel2", "EntryGroupId3", "EntryGroupLevel3", "EntryGroupId4", "EntryGroupLevel4", "EntryGroupId5", "EntryGroupLevel5", "ExtraDropPreview" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegionBossLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionBossLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.RegionBossLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossLevel(RegionBossLevel other) : this() { + id_ = other.id_; + regionBossId_ = other.regionBossId_; + difficulty_ = other.difficulty_; + regionType_ = other.regionType_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + suggestedPower_ = other.suggestedPower_; + preLevelId_ = other.preLevelId_; + bossShowTime_ = other.bossShowTime_; + preLevelStar_ = other.preLevelStar_; + needWorldClass_ = other.needWorldClass_; + needRoguelike_ = other.needRoguelike_; + floorId_ = other.floorId_; + oneStarCondition_ = other.oneStarCondition_; + twoStarCondition_ = other.twoStarCondition_; + threeStarCondition_ = other.threeStarCondition_; + dropId_ = other.dropId_; + energyConsume_ = other.energyConsume_; + baseAwardPreview_ = other.baseAwardPreview_; + entryGroupId1_ = other.entryGroupId1_; + entryGroupLevel1_ = other.entryGroupLevel1_; + entryGroupId2_ = other.entryGroupId2_; + entryGroupLevel2_ = other.entryGroupLevel2_; + entryGroupId3_ = other.entryGroupId3_; + entryGroupLevel3_ = other.entryGroupLevel3_; + entryGroupId4_ = other.entryGroupId4_; + entryGroupLevel4_ = other.entryGroupLevel4_; + entryGroupId5_ = other.entryGroupId5_; + entryGroupLevel5_ = other.entryGroupLevel5_; + extraDropPreview_ = other.extraDropPreview_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionBossLevel Clone() { + return new RegionBossLevel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "region_boss_id" field. + public const int RegionBossIdFieldNumber = 2; + private int regionBossId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RegionBossId { + get { return regionBossId_; } + set { + regionBossId_ = value; + } + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "region_type" field. + public const int RegionTypeFieldNumber = 4; + private int regionType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RegionType { + get { return regionType_; } + set { + regionType_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 5; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 6; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "suggested_power" field. + public const int SuggestedPowerFieldNumber = 8; + private int suggestedPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuggestedPower { + get { return suggestedPower_; } + set { + suggestedPower_ = value; + } + } + + /// Field number for the "pre_level_id" field. + public const int PreLevelIdFieldNumber = 9; + private int preLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelId { + get { return preLevelId_; } + set { + preLevelId_ = value; + } + } + + /// Field number for the "boss_show_time" field. + public const int BossShowTimeFieldNumber = 10; + private int bossShowTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BossShowTime { + get { return bossShowTime_; } + set { + bossShowTime_ = value; + } + } + + /// Field number for the "pre_level_star" field. + public const int PreLevelStarFieldNumber = 11; + private int preLevelStar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelStar { + get { return preLevelStar_; } + set { + preLevelStar_ = value; + } + } + + /// Field number for the "need_world_class" field. + public const int NeedWorldClassFieldNumber = 12; + private int needWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedWorldClass { + get { return needWorldClass_; } + set { + needWorldClass_ = value; + } + } + + /// Field number for the "need_roguelike" field. + public const int NeedRoguelikeFieldNumber = 13; + private int needRoguelike_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedRoguelike { + get { return needRoguelike_; } + set { + needRoguelike_ = value; + } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 14; + private int floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// Field number for the "one_star_condition" field. + public const int OneStarConditionFieldNumber = 15; + private string oneStarCondition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OneStarCondition { + get { return oneStarCondition_; } + set { + oneStarCondition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "two_star_condition" field. + public const int TwoStarConditionFieldNumber = 16; + private string twoStarCondition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TwoStarCondition { + get { return twoStarCondition_; } + set { + twoStarCondition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "three_star_condition" field. + public const int ThreeStarConditionFieldNumber = 17; + private string threeStarCondition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ThreeStarCondition { + get { return threeStarCondition_; } + set { + threeStarCondition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 18; + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { return dropId_; } + set { + dropId_ = value; + } + } + + /// Field number for the "energy_consume" field. + public const int EnergyConsumeFieldNumber = 19; + private int energyConsume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyConsume { + get { return energyConsume_; } + set { + energyConsume_ = value; + } + } + + /// Field number for the "base_award_preview" field. + public const int BaseAwardPreviewFieldNumber = 20; + private string baseAwardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseAwardPreview { + get { return baseAwardPreview_; } + set { + baseAwardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "entry_group_id1" field. + public const int EntryGroupId1FieldNumber = 21; + private int entryGroupId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupId1 { + get { return entryGroupId1_; } + set { + entryGroupId1_ = value; + } + } + + /// Field number for the "entry_group_level1" field. + public const int EntryGroupLevel1FieldNumber = 22; + private int entryGroupLevel1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupLevel1 { + get { return entryGroupLevel1_; } + set { + entryGroupLevel1_ = value; + } + } + + /// Field number for the "entry_group_id2" field. + public const int EntryGroupId2FieldNumber = 23; + private int entryGroupId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupId2 { + get { return entryGroupId2_; } + set { + entryGroupId2_ = value; + } + } + + /// Field number for the "entry_group_level2" field. + public const int EntryGroupLevel2FieldNumber = 24; + private int entryGroupLevel2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupLevel2 { + get { return entryGroupLevel2_; } + set { + entryGroupLevel2_ = value; + } + } + + /// Field number for the "entry_group_id3" field. + public const int EntryGroupId3FieldNumber = 25; + private int entryGroupId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupId3 { + get { return entryGroupId3_; } + set { + entryGroupId3_ = value; + } + } + + /// Field number for the "entry_group_level3" field. + public const int EntryGroupLevel3FieldNumber = 26; + private int entryGroupLevel3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupLevel3 { + get { return entryGroupLevel3_; } + set { + entryGroupLevel3_ = value; + } + } + + /// Field number for the "entry_group_id4" field. + public const int EntryGroupId4FieldNumber = 27; + private int entryGroupId4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupId4 { + get { return entryGroupId4_; } + set { + entryGroupId4_ = value; + } + } + + /// Field number for the "entry_group_level4" field. + public const int EntryGroupLevel4FieldNumber = 28; + private int entryGroupLevel4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupLevel4 { + get { return entryGroupLevel4_; } + set { + entryGroupLevel4_ = value; + } + } + + /// Field number for the "entry_group_id5" field. + public const int EntryGroupId5FieldNumber = 29; + private int entryGroupId5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupId5 { + get { return entryGroupId5_; } + set { + entryGroupId5_ = value; + } + } + + /// Field number for the "entry_group_level5" field. + public const int EntryGroupLevel5FieldNumber = 30; + private int entryGroupLevel5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryGroupLevel5 { + get { return entryGroupLevel5_; } + set { + entryGroupLevel5_ = value; + } + } + + /// Field number for the "extra_drop_preview" field. + public const int ExtraDropPreviewFieldNumber = 31; + private static readonly pb::FieldCodec _repeated_extraDropPreview_codec + = pb::FieldCodec.ForInt32(250); + private readonly pbc::RepeatedField extraDropPreview_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExtraDropPreview { + get { return extraDropPreview_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegionBossLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionBossLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (RegionBossId != other.RegionBossId) return false; + if (Difficulty != other.Difficulty) return false; + if (RegionType != other.RegionType) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (SuggestedPower != other.SuggestedPower) return false; + if (PreLevelId != other.PreLevelId) return false; + if (BossShowTime != other.BossShowTime) return false; + if (PreLevelStar != other.PreLevelStar) return false; + if (NeedWorldClass != other.NeedWorldClass) return false; + if (NeedRoguelike != other.NeedRoguelike) return false; + if (FloorId != other.FloorId) return false; + if (OneStarCondition != other.OneStarCondition) return false; + if (TwoStarCondition != other.TwoStarCondition) return false; + if (ThreeStarCondition != other.ThreeStarCondition) return false; + if (DropId != other.DropId) return false; + if (EnergyConsume != other.EnergyConsume) return false; + if (BaseAwardPreview != other.BaseAwardPreview) return false; + if (EntryGroupId1 != other.EntryGroupId1) return false; + if (EntryGroupLevel1 != other.EntryGroupLevel1) return false; + if (EntryGroupId2 != other.EntryGroupId2) return false; + if (EntryGroupLevel2 != other.EntryGroupLevel2) return false; + if (EntryGroupId3 != other.EntryGroupId3) return false; + if (EntryGroupLevel3 != other.EntryGroupLevel3) return false; + if (EntryGroupId4 != other.EntryGroupId4) return false; + if (EntryGroupLevel4 != other.EntryGroupLevel4) return false; + if (EntryGroupId5 != other.EntryGroupId5) return false; + if (EntryGroupLevel5 != other.EntryGroupLevel5) return false; + if(!extraDropPreview_.Equals(other.extraDropPreview_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (RegionBossId != 0) hash ^= RegionBossId.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (RegionType != 0) hash ^= RegionType.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (SuggestedPower != 0) hash ^= SuggestedPower.GetHashCode(); + if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode(); + if (BossShowTime != 0) hash ^= BossShowTime.GetHashCode(); + if (PreLevelStar != 0) hash ^= PreLevelStar.GetHashCode(); + if (NeedWorldClass != 0) hash ^= NeedWorldClass.GetHashCode(); + if (NeedRoguelike != 0) hash ^= NeedRoguelike.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (OneStarCondition.Length != 0) hash ^= OneStarCondition.GetHashCode(); + if (TwoStarCondition.Length != 0) hash ^= TwoStarCondition.GetHashCode(); + if (ThreeStarCondition.Length != 0) hash ^= ThreeStarCondition.GetHashCode(); + if (DropId != 0) hash ^= DropId.GetHashCode(); + if (EnergyConsume != 0) hash ^= EnergyConsume.GetHashCode(); + if (BaseAwardPreview.Length != 0) hash ^= BaseAwardPreview.GetHashCode(); + if (EntryGroupId1 != 0) hash ^= EntryGroupId1.GetHashCode(); + if (EntryGroupLevel1 != 0) hash ^= EntryGroupLevel1.GetHashCode(); + if (EntryGroupId2 != 0) hash ^= EntryGroupId2.GetHashCode(); + if (EntryGroupLevel2 != 0) hash ^= EntryGroupLevel2.GetHashCode(); + if (EntryGroupId3 != 0) hash ^= EntryGroupId3.GetHashCode(); + if (EntryGroupLevel3 != 0) hash ^= EntryGroupLevel3.GetHashCode(); + if (EntryGroupId4 != 0) hash ^= EntryGroupId4.GetHashCode(); + if (EntryGroupLevel4 != 0) hash ^= EntryGroupLevel4.GetHashCode(); + if (EntryGroupId5 != 0) hash ^= EntryGroupId5.GetHashCode(); + if (EntryGroupLevel5 != 0) hash ^= EntryGroupLevel5.GetHashCode(); + hash ^= extraDropPreview_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RegionBossId != 0) { + output.WriteRawTag(16); + output.WriteInt32(RegionBossId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (RegionType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RegionType); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (SuggestedPower != 0) { + output.WriteRawTag(64); + output.WriteInt32(SuggestedPower); + } + if (PreLevelId != 0) { + output.WriteRawTag(72); + output.WriteInt32(PreLevelId); + } + if (BossShowTime != 0) { + output.WriteRawTag(80); + output.WriteInt32(BossShowTime); + } + if (PreLevelStar != 0) { + output.WriteRawTag(88); + output.WriteInt32(PreLevelStar); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(96); + output.WriteInt32(NeedWorldClass); + } + if (NeedRoguelike != 0) { + output.WriteRawTag(104); + output.WriteInt32(NeedRoguelike); + } + if (FloorId != 0) { + output.WriteRawTag(112); + output.WriteInt32(FloorId); + } + if (OneStarCondition.Length != 0) { + output.WriteRawTag(122); + output.WriteString(OneStarCondition); + } + if (TwoStarCondition.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(TwoStarCondition); + } + if (ThreeStarCondition.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ThreeStarCondition); + } + if (DropId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(DropId); + } + if (EnergyConsume != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(EnergyConsume); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(BaseAwardPreview); + } + if (EntryGroupId1 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(EntryGroupId1); + } + if (EntryGroupLevel1 != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(EntryGroupLevel1); + } + if (EntryGroupId2 != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(EntryGroupId2); + } + if (EntryGroupLevel2 != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(EntryGroupLevel2); + } + if (EntryGroupId3 != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(EntryGroupId3); + } + if (EntryGroupLevel3 != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(EntryGroupLevel3); + } + if (EntryGroupId4 != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(EntryGroupId4); + } + if (EntryGroupLevel4 != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(EntryGroupLevel4); + } + if (EntryGroupId5 != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(EntryGroupId5); + } + if (EntryGroupLevel5 != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(EntryGroupLevel5); + } + extraDropPreview_.WriteTo(output, _repeated_extraDropPreview_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RegionBossId != 0) { + output.WriteRawTag(16); + output.WriteInt32(RegionBossId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (RegionType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RegionType); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (SuggestedPower != 0) { + output.WriteRawTag(64); + output.WriteInt32(SuggestedPower); + } + if (PreLevelId != 0) { + output.WriteRawTag(72); + output.WriteInt32(PreLevelId); + } + if (BossShowTime != 0) { + output.WriteRawTag(80); + output.WriteInt32(BossShowTime); + } + if (PreLevelStar != 0) { + output.WriteRawTag(88); + output.WriteInt32(PreLevelStar); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(96); + output.WriteInt32(NeedWorldClass); + } + if (NeedRoguelike != 0) { + output.WriteRawTag(104); + output.WriteInt32(NeedRoguelike); + } + if (FloorId != 0) { + output.WriteRawTag(112); + output.WriteInt32(FloorId); + } + if (OneStarCondition.Length != 0) { + output.WriteRawTag(122); + output.WriteString(OneStarCondition); + } + if (TwoStarCondition.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(TwoStarCondition); + } + if (ThreeStarCondition.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ThreeStarCondition); + } + if (DropId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(DropId); + } + if (EnergyConsume != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(EnergyConsume); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(BaseAwardPreview); + } + if (EntryGroupId1 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(EntryGroupId1); + } + if (EntryGroupLevel1 != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(EntryGroupLevel1); + } + if (EntryGroupId2 != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(EntryGroupId2); + } + if (EntryGroupLevel2 != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(EntryGroupLevel2); + } + if (EntryGroupId3 != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(EntryGroupId3); + } + if (EntryGroupLevel3 != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(EntryGroupLevel3); + } + if (EntryGroupId4 != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(EntryGroupId4); + } + if (EntryGroupLevel4 != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(EntryGroupLevel4); + } + if (EntryGroupId5 != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(EntryGroupId5); + } + if (EntryGroupLevel5 != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(EntryGroupLevel5); + } + extraDropPreview_.WriteTo(ref output, _repeated_extraDropPreview_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (RegionBossId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RegionBossId); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (RegionType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RegionType); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (SuggestedPower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SuggestedPower); + } + if (PreLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId); + } + if (BossShowTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossShowTime); + } + if (PreLevelStar != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelStar); + } + if (NeedWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedWorldClass); + } + if (NeedRoguelike != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedRoguelike); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId); + } + if (OneStarCondition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OneStarCondition); + } + if (TwoStarCondition.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TwoStarCondition); + } + if (ThreeStarCondition.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ThreeStarCondition); + } + if (DropId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (EnergyConsume != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EnergyConsume); + } + if (BaseAwardPreview.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAwardPreview); + } + if (EntryGroupId1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupId1); + } + if (EntryGroupLevel1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupLevel1); + } + if (EntryGroupId2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupId2); + } + if (EntryGroupLevel2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupLevel2); + } + if (EntryGroupId3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupId3); + } + if (EntryGroupLevel3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupLevel3); + } + if (EntryGroupId4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupId4); + } + if (EntryGroupLevel4 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupLevel4); + } + if (EntryGroupId5 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupId5); + } + if (EntryGroupLevel5 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EntryGroupLevel5); + } + size += extraDropPreview_.CalculateSize(_repeated_extraDropPreview_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionBossLevel other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.RegionBossId != 0) { + RegionBossId = other.RegionBossId; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.RegionType != 0) { + RegionType = other.RegionType; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.SuggestedPower != 0) { + SuggestedPower = other.SuggestedPower; + } + if (other.PreLevelId != 0) { + PreLevelId = other.PreLevelId; + } + if (other.BossShowTime != 0) { + BossShowTime = other.BossShowTime; + } + if (other.PreLevelStar != 0) { + PreLevelStar = other.PreLevelStar; + } + if (other.NeedWorldClass != 0) { + NeedWorldClass = other.NeedWorldClass; + } + if (other.NeedRoguelike != 0) { + NeedRoguelike = other.NeedRoguelike; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.OneStarCondition.Length != 0) { + OneStarCondition = other.OneStarCondition; + } + if (other.TwoStarCondition.Length != 0) { + TwoStarCondition = other.TwoStarCondition; + } + if (other.ThreeStarCondition.Length != 0) { + ThreeStarCondition = other.ThreeStarCondition; + } + if (other.DropId != 0) { + DropId = other.DropId; + } + if (other.EnergyConsume != 0) { + EnergyConsume = other.EnergyConsume; + } + if (other.BaseAwardPreview.Length != 0) { + BaseAwardPreview = other.BaseAwardPreview; + } + if (other.EntryGroupId1 != 0) { + EntryGroupId1 = other.EntryGroupId1; + } + if (other.EntryGroupLevel1 != 0) { + EntryGroupLevel1 = other.EntryGroupLevel1; + } + if (other.EntryGroupId2 != 0) { + EntryGroupId2 = other.EntryGroupId2; + } + if (other.EntryGroupLevel2 != 0) { + EntryGroupLevel2 = other.EntryGroupLevel2; + } + if (other.EntryGroupId3 != 0) { + EntryGroupId3 = other.EntryGroupId3; + } + if (other.EntryGroupLevel3 != 0) { + EntryGroupLevel3 = other.EntryGroupLevel3; + } + if (other.EntryGroupId4 != 0) { + EntryGroupId4 = other.EntryGroupId4; + } + if (other.EntryGroupLevel4 != 0) { + EntryGroupLevel4 = other.EntryGroupLevel4; + } + if (other.EntryGroupId5 != 0) { + EntryGroupId5 = other.EntryGroupId5; + } + if (other.EntryGroupLevel5 != 0) { + EntryGroupLevel5 = other.EntryGroupLevel5; + } + extraDropPreview_.Add(other.extraDropPreview_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RegionBossId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + RegionType = input.ReadInt32(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 50: { + Desc = input.ReadString(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 64: { + SuggestedPower = input.ReadInt32(); + break; + } + case 72: { + PreLevelId = input.ReadInt32(); + break; + } + case 80: { + BossShowTime = input.ReadInt32(); + break; + } + case 88: { + PreLevelStar = input.ReadInt32(); + break; + } + case 96: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 104: { + NeedRoguelike = input.ReadInt32(); + break; + } + case 112: { + FloorId = input.ReadInt32(); + break; + } + case 122: { + OneStarCondition = input.ReadString(); + break; + } + case 130: { + TwoStarCondition = input.ReadString(); + break; + } + case 138: { + ThreeStarCondition = input.ReadString(); + break; + } + case 144: { + DropId = input.ReadInt32(); + break; + } + case 152: { + EnergyConsume = input.ReadInt32(); + break; + } + case 162: { + BaseAwardPreview = input.ReadString(); + break; + } + case 168: { + EntryGroupId1 = input.ReadInt32(); + break; + } + case 176: { + EntryGroupLevel1 = input.ReadInt32(); + break; + } + case 184: { + EntryGroupId2 = input.ReadInt32(); + break; + } + case 192: { + EntryGroupLevel2 = input.ReadInt32(); + break; + } + case 200: { + EntryGroupId3 = input.ReadInt32(); + break; + } + case 208: { + EntryGroupLevel3 = input.ReadInt32(); + break; + } + case 216: { + EntryGroupId4 = input.ReadInt32(); + break; + } + case 224: { + EntryGroupLevel4 = input.ReadInt32(); + break; + } + case 232: { + EntryGroupId5 = input.ReadInt32(); + break; + } + case 240: { + EntryGroupLevel5 = input.ReadInt32(); + break; + } + case 250: + case 248: { + extraDropPreview_.AddEntriesFrom(input, _repeated_extraDropPreview_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RegionBossId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + RegionType = input.ReadInt32(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 50: { + Desc = input.ReadString(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 64: { + SuggestedPower = input.ReadInt32(); + break; + } + case 72: { + PreLevelId = input.ReadInt32(); + break; + } + case 80: { + BossShowTime = input.ReadInt32(); + break; + } + case 88: { + PreLevelStar = input.ReadInt32(); + break; + } + case 96: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 104: { + NeedRoguelike = input.ReadInt32(); + break; + } + case 112: { + FloorId = input.ReadInt32(); + break; + } + case 122: { + OneStarCondition = input.ReadString(); + break; + } + case 130: { + TwoStarCondition = input.ReadString(); + break; + } + case 138: { + ThreeStarCondition = input.ReadString(); + break; + } + case 144: { + DropId = input.ReadInt32(); + break; + } + case 152: { + EnergyConsume = input.ReadInt32(); + break; + } + case 162: { + BaseAwardPreview = input.ReadString(); + break; + } + case 168: { + EntryGroupId1 = input.ReadInt32(); + break; + } + case 176: { + EntryGroupLevel1 = input.ReadInt32(); + break; + } + case 184: { + EntryGroupId2 = input.ReadInt32(); + break; + } + case 192: { + EntryGroupLevel2 = input.ReadInt32(); + break; + } + case 200: { + EntryGroupId3 = input.ReadInt32(); + break; + } + case 208: { + EntryGroupLevel3 = input.ReadInt32(); + break; + } + case 216: { + EntryGroupId4 = input.ReadInt32(); + break; + } + case 224: { + EntryGroupLevel4 = input.ReadInt32(); + break; + } + case 232: { + EntryGroupId5 = input.ReadInt32(); + break; + } + case 240: { + EntryGroupLevel5 = input.ReadInt32(); + break; + } + case 250: + case 248: { + extraDropPreview_.AddEntriesFrom(ref input, _repeated_extraDropPreview_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ResidentGoods.cs b/NTR.Common/protos/ResidentGoods.cs new file mode 100644 index 0000000..561d431 --- /dev/null +++ b/NTR.Common/protos/ResidentGoods.cs @@ -0,0 +1,954 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ResidentGoods.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ResidentGoods.proto + public static partial class ResidentGoodsReflection { + + #region Descriptor + /// File descriptor for ResidentGoods.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ResidentGoodsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNSZXNpZGVudEdvb2RzLnByb3RvIsMDCg1SZXNpZGVudEdvb2RzEgoKAmlk", + "GAEgASgFEgwKBG5hbWUYAiABKAkSDAoEZGVzYxgDIAEoCRIPCgdzaG9wX2lk", + "GAQgASgFEhMKC3NhbGVfbnVtYmVyGAUgASgFEg8KB2l0ZW1faWQYBiABKAUS", + "FQoNaXRlbV9xdWFudGl0eRgHIAEoBRIVCg1tYXhpbXVtX2xpbWl0GAggASgF", + "EhgKEGN1cnJlbmN5X2l0ZW1faWQYCSABKAUSDQoFcHJpY2UYCiABKAUSFgoO", + "b3JpZ2luYWxfcHJpY2UYCyABKAUSEAoIZGlzY291bnQYDCABKAUSGAoQYXBw", + "ZWFyX2NvbmRfdHlwZRgNIAEoBRIaChJhcHBlYXJfY29uZF9wYXJhbXMYDiAB", + "KAkSGgoScHVyY2hhc2VfY29uZF90eXBlGA8gASgFEhwKFHB1cmNoYXNlX2Nv", + "bmRfcGFyYW1zGBAgASgJEhUKDXVwX3NoZWxmX3RpbWUYESABKAkSFwoPZG93", + "bl9zaGVsZl90aW1lGBIgASgJEhwKFHVubG9ja19wdXJjaGFzZV90aW1lGBMg", + "ASgJEhQKDGRpc3BsYXlfbW9kZRgUIAEoBUIOqgILTm92YS5DbGllbnRiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ResidentGoods), global::Nova.Client.ResidentGoods.Parser, new[]{ "Id", "Name", "Desc", "ShopId", "SaleNumber", "ItemId", "ItemQuantity", "MaximumLimit", "CurrencyItemId", "Price", "OriginalPrice", "Discount", "AppearCondType", "AppearCondParams", "PurchaseCondType", "PurchaseCondParams", "UpShelfTime", "DownShelfTime", "UnlockPurchaseTime", "DisplayMode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ResidentGoods : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResidentGoods()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ResidentGoodsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResidentGoods() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResidentGoods(ResidentGoods other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + shopId_ = other.shopId_; + saleNumber_ = other.saleNumber_; + itemId_ = other.itemId_; + itemQuantity_ = other.itemQuantity_; + maximumLimit_ = other.maximumLimit_; + currencyItemId_ = other.currencyItemId_; + price_ = other.price_; + originalPrice_ = other.originalPrice_; + discount_ = other.discount_; + appearCondType_ = other.appearCondType_; + appearCondParams_ = other.appearCondParams_; + purchaseCondType_ = other.purchaseCondType_; + purchaseCondParams_ = other.purchaseCondParams_; + upShelfTime_ = other.upShelfTime_; + downShelfTime_ = other.downShelfTime_; + unlockPurchaseTime_ = other.unlockPurchaseTime_; + displayMode_ = other.displayMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResidentGoods Clone() { + return new ResidentGoods(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "shop_id" field. + public const int ShopIdFieldNumber = 4; + private int shopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShopId { + get { return shopId_; } + set { + shopId_ = value; + } + } + + /// Field number for the "sale_number" field. + public const int SaleNumberFieldNumber = 5; + private int saleNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SaleNumber { + get { return saleNumber_; } + set { + saleNumber_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 6; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_quantity" field. + public const int ItemQuantityFieldNumber = 7; + private int itemQuantity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQuantity { + get { return itemQuantity_; } + set { + itemQuantity_ = value; + } + } + + /// Field number for the "maximum_limit" field. + public const int MaximumLimitFieldNumber = 8; + private int maximumLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaximumLimit { + get { return maximumLimit_; } + set { + maximumLimit_ = value; + } + } + + /// Field number for the "currency_item_id" field. + public const int CurrencyItemIdFieldNumber = 9; + private int currencyItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyItemId { + get { return currencyItemId_; } + set { + currencyItemId_ = value; + } + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 10; + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { return price_; } + set { + price_ = value; + } + } + + /// Field number for the "original_price" field. + public const int OriginalPriceFieldNumber = 11; + private int originalPrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OriginalPrice { + get { return originalPrice_; } + set { + originalPrice_ = value; + } + } + + /// Field number for the "discount" field. + public const int DiscountFieldNumber = 12; + private int discount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Discount { + get { return discount_; } + set { + discount_ = value; + } + } + + /// Field number for the "appear_cond_type" field. + public const int AppearCondTypeFieldNumber = 13; + private int appearCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AppearCondType { + get { return appearCondType_; } + set { + appearCondType_ = value; + } + } + + /// Field number for the "appear_cond_params" field. + public const int AppearCondParamsFieldNumber = 14; + private string appearCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppearCondParams { + get { return appearCondParams_; } + set { + appearCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "purchase_cond_type" field. + public const int PurchaseCondTypeFieldNumber = 15; + private int purchaseCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PurchaseCondType { + get { return purchaseCondType_; } + set { + purchaseCondType_ = value; + } + } + + /// Field number for the "purchase_cond_params" field. + public const int PurchaseCondParamsFieldNumber = 16; + private string purchaseCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PurchaseCondParams { + get { return purchaseCondParams_; } + set { + purchaseCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "up_shelf_time" field. + public const int UpShelfTimeFieldNumber = 17; + private string upShelfTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UpShelfTime { + get { return upShelfTime_; } + set { + upShelfTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "down_shelf_time" field. + public const int DownShelfTimeFieldNumber = 18; + private string downShelfTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DownShelfTime { + get { return downShelfTime_; } + set { + downShelfTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlock_purchase_time" field. + public const int UnlockPurchaseTimeFieldNumber = 19; + private string unlockPurchaseTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockPurchaseTime { + get { return unlockPurchaseTime_; } + set { + unlockPurchaseTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_mode" field. + public const int DisplayModeFieldNumber = 20; + private int displayMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DisplayMode { + get { return displayMode_; } + set { + displayMode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResidentGoods); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResidentGoods other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ShopId != other.ShopId) return false; + if (SaleNumber != other.SaleNumber) return false; + if (ItemId != other.ItemId) return false; + if (ItemQuantity != other.ItemQuantity) return false; + if (MaximumLimit != other.MaximumLimit) return false; + if (CurrencyItemId != other.CurrencyItemId) return false; + if (Price != other.Price) return false; + if (OriginalPrice != other.OriginalPrice) return false; + if (Discount != other.Discount) return false; + if (AppearCondType != other.AppearCondType) return false; + if (AppearCondParams != other.AppearCondParams) return false; + if (PurchaseCondType != other.PurchaseCondType) return false; + if (PurchaseCondParams != other.PurchaseCondParams) return false; + if (UpShelfTime != other.UpShelfTime) return false; + if (DownShelfTime != other.DownShelfTime) return false; + if (UnlockPurchaseTime != other.UnlockPurchaseTime) return false; + if (DisplayMode != other.DisplayMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (ShopId != 0) hash ^= ShopId.GetHashCode(); + if (SaleNumber != 0) hash ^= SaleNumber.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemQuantity != 0) hash ^= ItemQuantity.GetHashCode(); + if (MaximumLimit != 0) hash ^= MaximumLimit.GetHashCode(); + if (CurrencyItemId != 0) hash ^= CurrencyItemId.GetHashCode(); + if (Price != 0) hash ^= Price.GetHashCode(); + if (OriginalPrice != 0) hash ^= OriginalPrice.GetHashCode(); + if (Discount != 0) hash ^= Discount.GetHashCode(); + if (AppearCondType != 0) hash ^= AppearCondType.GetHashCode(); + if (AppearCondParams.Length != 0) hash ^= AppearCondParams.GetHashCode(); + if (PurchaseCondType != 0) hash ^= PurchaseCondType.GetHashCode(); + if (PurchaseCondParams.Length != 0) hash ^= PurchaseCondParams.GetHashCode(); + if (UpShelfTime.Length != 0) hash ^= UpShelfTime.GetHashCode(); + if (DownShelfTime.Length != 0) hash ^= DownShelfTime.GetHashCode(); + if (UnlockPurchaseTime.Length != 0) hash ^= UnlockPurchaseTime.GetHashCode(); + if (DisplayMode != 0) hash ^= DisplayMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (ShopId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ShopId); + } + if (SaleNumber != 0) { + output.WriteRawTag(40); + output.WriteInt32(SaleNumber); + } + if (ItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ItemId); + } + if (ItemQuantity != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemQuantity); + } + if (MaximumLimit != 0) { + output.WriteRawTag(64); + output.WriteInt32(MaximumLimit); + } + if (CurrencyItemId != 0) { + output.WriteRawTag(72); + output.WriteInt32(CurrencyItemId); + } + if (Price != 0) { + output.WriteRawTag(80); + output.WriteInt32(Price); + } + if (OriginalPrice != 0) { + output.WriteRawTag(88); + output.WriteInt32(OriginalPrice); + } + if (Discount != 0) { + output.WriteRawTag(96); + output.WriteInt32(Discount); + } + if (AppearCondType != 0) { + output.WriteRawTag(104); + output.WriteInt32(AppearCondType); + } + if (AppearCondParams.Length != 0) { + output.WriteRawTag(114); + output.WriteString(AppearCondParams); + } + if (PurchaseCondType != 0) { + output.WriteRawTag(120); + output.WriteInt32(PurchaseCondType); + } + if (PurchaseCondParams.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(PurchaseCondParams); + } + if (UpShelfTime.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(UpShelfTime); + } + if (DownShelfTime.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(DownShelfTime); + } + if (UnlockPurchaseTime.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(UnlockPurchaseTime); + } + if (DisplayMode != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DisplayMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (ShopId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ShopId); + } + if (SaleNumber != 0) { + output.WriteRawTag(40); + output.WriteInt32(SaleNumber); + } + if (ItemId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ItemId); + } + if (ItemQuantity != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemQuantity); + } + if (MaximumLimit != 0) { + output.WriteRawTag(64); + output.WriteInt32(MaximumLimit); + } + if (CurrencyItemId != 0) { + output.WriteRawTag(72); + output.WriteInt32(CurrencyItemId); + } + if (Price != 0) { + output.WriteRawTag(80); + output.WriteInt32(Price); + } + if (OriginalPrice != 0) { + output.WriteRawTag(88); + output.WriteInt32(OriginalPrice); + } + if (Discount != 0) { + output.WriteRawTag(96); + output.WriteInt32(Discount); + } + if (AppearCondType != 0) { + output.WriteRawTag(104); + output.WriteInt32(AppearCondType); + } + if (AppearCondParams.Length != 0) { + output.WriteRawTag(114); + output.WriteString(AppearCondParams); + } + if (PurchaseCondType != 0) { + output.WriteRawTag(120); + output.WriteInt32(PurchaseCondType); + } + if (PurchaseCondParams.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(PurchaseCondParams); + } + if (UpShelfTime.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(UpShelfTime); + } + if (DownShelfTime.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(DownShelfTime); + } + if (UnlockPurchaseTime.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(UnlockPurchaseTime); + } + if (DisplayMode != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(DisplayMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (ShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShopId); + } + if (SaleNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SaleNumber); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemQuantity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQuantity); + } + if (MaximumLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximumLimit); + } + if (CurrencyItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemId); + } + if (Price != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (OriginalPrice != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OriginalPrice); + } + if (Discount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Discount); + } + if (AppearCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AppearCondType); + } + if (AppearCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppearCondParams); + } + if (PurchaseCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PurchaseCondType); + } + if (PurchaseCondParams.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PurchaseCondParams); + } + if (UpShelfTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UpShelfTime); + } + if (DownShelfTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DownShelfTime); + } + if (UnlockPurchaseTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UnlockPurchaseTime); + } + if (DisplayMode != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DisplayMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResidentGoods other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.ShopId != 0) { + ShopId = other.ShopId; + } + if (other.SaleNumber != 0) { + SaleNumber = other.SaleNumber; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemQuantity != 0) { + ItemQuantity = other.ItemQuantity; + } + if (other.MaximumLimit != 0) { + MaximumLimit = other.MaximumLimit; + } + if (other.CurrencyItemId != 0) { + CurrencyItemId = other.CurrencyItemId; + } + if (other.Price != 0) { + Price = other.Price; + } + if (other.OriginalPrice != 0) { + OriginalPrice = other.OriginalPrice; + } + if (other.Discount != 0) { + Discount = other.Discount; + } + if (other.AppearCondType != 0) { + AppearCondType = other.AppearCondType; + } + if (other.AppearCondParams.Length != 0) { + AppearCondParams = other.AppearCondParams; + } + if (other.PurchaseCondType != 0) { + PurchaseCondType = other.PurchaseCondType; + } + if (other.PurchaseCondParams.Length != 0) { + PurchaseCondParams = other.PurchaseCondParams; + } + if (other.UpShelfTime.Length != 0) { + UpShelfTime = other.UpShelfTime; + } + if (other.DownShelfTime.Length != 0) { + DownShelfTime = other.DownShelfTime; + } + if (other.UnlockPurchaseTime.Length != 0) { + UnlockPurchaseTime = other.UnlockPurchaseTime; + } + if (other.DisplayMode != 0) { + DisplayMode = other.DisplayMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + ShopId = input.ReadInt32(); + break; + } + case 40: { + SaleNumber = input.ReadInt32(); + break; + } + case 48: { + ItemId = input.ReadInt32(); + break; + } + case 56: { + ItemQuantity = input.ReadInt32(); + break; + } + case 64: { + MaximumLimit = input.ReadInt32(); + break; + } + case 72: { + CurrencyItemId = input.ReadInt32(); + break; + } + case 80: { + Price = input.ReadInt32(); + break; + } + case 88: { + OriginalPrice = input.ReadInt32(); + break; + } + case 96: { + Discount = input.ReadInt32(); + break; + } + case 104: { + AppearCondType = input.ReadInt32(); + break; + } + case 114: { + AppearCondParams = input.ReadString(); + break; + } + case 120: { + PurchaseCondType = input.ReadInt32(); + break; + } + case 130: { + PurchaseCondParams = input.ReadString(); + break; + } + case 138: { + UpShelfTime = input.ReadString(); + break; + } + case 146: { + DownShelfTime = input.ReadString(); + break; + } + case 154: { + UnlockPurchaseTime = input.ReadString(); + break; + } + case 160: { + DisplayMode = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + ShopId = input.ReadInt32(); + break; + } + case 40: { + SaleNumber = input.ReadInt32(); + break; + } + case 48: { + ItemId = input.ReadInt32(); + break; + } + case 56: { + ItemQuantity = input.ReadInt32(); + break; + } + case 64: { + MaximumLimit = input.ReadInt32(); + break; + } + case 72: { + CurrencyItemId = input.ReadInt32(); + break; + } + case 80: { + Price = input.ReadInt32(); + break; + } + case 88: { + OriginalPrice = input.ReadInt32(); + break; + } + case 96: { + Discount = input.ReadInt32(); + break; + } + case 104: { + AppearCondType = input.ReadInt32(); + break; + } + case 114: { + AppearCondParams = input.ReadString(); + break; + } + case 120: { + PurchaseCondType = input.ReadInt32(); + break; + } + case 130: { + PurchaseCondParams = input.ReadString(); + break; + } + case 138: { + UpShelfTime = input.ReadString(); + break; + } + case 146: { + DownShelfTime = input.ReadString(); + break; + } + case 154: { + UnlockPurchaseTime = input.ReadString(); + break; + } + case 160: { + DisplayMode = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ResidentShop.cs b/NTR.Common/protos/ResidentShop.cs new file mode 100644 index 0000000..619e95b --- /dev/null +++ b/NTR.Common/protos/ResidentShop.cs @@ -0,0 +1,616 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ResidentShop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ResidentShop.proto + public static partial class ResidentShopReflection { + + #region Descriptor + /// File descriptor for ResidentShop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ResidentShopReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJSZXNpZGVudFNob3AucHJvdG8i7QEKDFJlc2lkZW50U2hvcBIKCgJpZBgB", + "IAEoBRIRCglzaG9wX2NvaW4YAiABKAUSDAoEdHlwZRgDIAEoBRIMCgRuYW1l", + "GAQgASgJEhAKCHNlcXVlbmNlGAUgASgFEhkKEXJlZnJlc2hfdGltZV90eXBl", + "GAYgASgFEhgKEHJlZnJlc2hfaW50ZXJ2YWwYByABKAUSGAoQdW5sb2NrX2Nv", + "bmRfdHlwZRgIIAEoBRIaChJ1bmxvY2tfY29uZF9wYXJhbXMYCSABKAkSEQoJ", + "b3Blbl90aW1lGAogASgJEhIKCmNsb3NlX3RpbWUYCyABKAlCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ResidentShop), global::Nova.Client.ResidentShop.Parser, new[]{ "Id", "ShopCoin", "Type", "Name", "Sequence", "RefreshTimeType", "RefreshInterval", "UnlockCondType", "UnlockCondParams", "OpenTime", "CloseTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ResidentShop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResidentShop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ResidentShopReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResidentShop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResidentShop(ResidentShop other) : this() { + id_ = other.id_; + shopCoin_ = other.shopCoin_; + type_ = other.type_; + name_ = other.name_; + sequence_ = other.sequence_; + refreshTimeType_ = other.refreshTimeType_; + refreshInterval_ = other.refreshInterval_; + unlockCondType_ = other.unlockCondType_; + unlockCondParams_ = other.unlockCondParams_; + openTime_ = other.openTime_; + closeTime_ = other.closeTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResidentShop Clone() { + return new ResidentShop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "shop_coin" field. + public const int ShopCoinFieldNumber = 2; + private int shopCoin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShopCoin { + get { return shopCoin_; } + set { + shopCoin_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sequence" field. + public const int SequenceFieldNumber = 5; + private int sequence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sequence { + get { return sequence_; } + set { + sequence_ = value; + } + } + + /// Field number for the "refresh_time_type" field. + public const int RefreshTimeTypeFieldNumber = 6; + private int refreshTimeType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshTimeType { + get { return refreshTimeType_; } + set { + refreshTimeType_ = value; + } + } + + /// Field number for the "refresh_interval" field. + public const int RefreshIntervalFieldNumber = 7; + private int refreshInterval_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefreshInterval { + get { return refreshInterval_; } + set { + refreshInterval_ = value; + } + } + + /// Field number for the "unlock_cond_type" field. + public const int UnlockCondTypeFieldNumber = 8; + private int unlockCondType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockCondType { + get { return unlockCondType_; } + set { + unlockCondType_ = value; + } + } + + /// Field number for the "unlock_cond_params" field. + public const int UnlockCondParamsFieldNumber = 9; + private string unlockCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockCondParams { + get { return unlockCondParams_; } + set { + unlockCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "open_time" field. + public const int OpenTimeFieldNumber = 10; + private string openTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenTime { + get { return openTime_; } + set { + openTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "close_time" field. + public const int CloseTimeFieldNumber = 11; + private string closeTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloseTime { + get { return closeTime_; } + set { + closeTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResidentShop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResidentShop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ShopCoin != other.ShopCoin) return false; + if (Type != other.Type) return false; + if (Name != other.Name) return false; + if (Sequence != other.Sequence) return false; + if (RefreshTimeType != other.RefreshTimeType) return false; + if (RefreshInterval != other.RefreshInterval) return false; + if (UnlockCondType != other.UnlockCondType) return false; + if (UnlockCondParams != other.UnlockCondParams) return false; + if (OpenTime != other.OpenTime) return false; + if (CloseTime != other.CloseTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ShopCoin != 0) hash ^= ShopCoin.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Sequence != 0) hash ^= Sequence.GetHashCode(); + if (RefreshTimeType != 0) hash ^= RefreshTimeType.GetHashCode(); + if (RefreshInterval != 0) hash ^= RefreshInterval.GetHashCode(); + if (UnlockCondType != 0) hash ^= UnlockCondType.GetHashCode(); + if (UnlockCondParams.Length != 0) hash ^= UnlockCondParams.GetHashCode(); + if (OpenTime.Length != 0) hash ^= OpenTime.GetHashCode(); + if (CloseTime.Length != 0) hash ^= CloseTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShopCoin != 0) { + output.WriteRawTag(16); + output.WriteInt32(ShopCoin); + } + if (Type != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Sequence != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sequence); + } + if (RefreshTimeType != 0) { + output.WriteRawTag(48); + output.WriteInt32(RefreshTimeType); + } + if (RefreshInterval != 0) { + output.WriteRawTag(56); + output.WriteInt32(RefreshInterval); + } + if (UnlockCondType != 0) { + output.WriteRawTag(64); + output.WriteInt32(UnlockCondType); + } + if (UnlockCondParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(UnlockCondParams); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(82); + output.WriteString(OpenTime); + } + if (CloseTime.Length != 0) { + output.WriteRawTag(90); + output.WriteString(CloseTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShopCoin != 0) { + output.WriteRawTag(16); + output.WriteInt32(ShopCoin); + } + if (Type != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Sequence != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sequence); + } + if (RefreshTimeType != 0) { + output.WriteRawTag(48); + output.WriteInt32(RefreshTimeType); + } + if (RefreshInterval != 0) { + output.WriteRawTag(56); + output.WriteInt32(RefreshInterval); + } + if (UnlockCondType != 0) { + output.WriteRawTag(64); + output.WriteInt32(UnlockCondType); + } + if (UnlockCondParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(UnlockCondParams); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(82); + output.WriteString(OpenTime); + } + if (CloseTime.Length != 0) { + output.WriteRawTag(90); + output.WriteString(CloseTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ShopCoin != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShopCoin); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Sequence != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sequence); + } + if (RefreshTimeType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshTimeType); + } + if (RefreshInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshInterval); + } + if (UnlockCondType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockCondType); + } + if (UnlockCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UnlockCondParams); + } + if (OpenTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenTime); + } + if (CloseTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloseTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResidentShop other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ShopCoin != 0) { + ShopCoin = other.ShopCoin; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Sequence != 0) { + Sequence = other.Sequence; + } + if (other.RefreshTimeType != 0) { + RefreshTimeType = other.RefreshTimeType; + } + if (other.RefreshInterval != 0) { + RefreshInterval = other.RefreshInterval; + } + if (other.UnlockCondType != 0) { + UnlockCondType = other.UnlockCondType; + } + if (other.UnlockCondParams.Length != 0) { + UnlockCondParams = other.UnlockCondParams; + } + if (other.OpenTime.Length != 0) { + OpenTime = other.OpenTime; + } + if (other.CloseTime.Length != 0) { + CloseTime = other.CloseTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShopCoin = input.ReadInt32(); + break; + } + case 24: { + Type = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Sequence = input.ReadInt32(); + break; + } + case 48: { + RefreshTimeType = input.ReadInt32(); + break; + } + case 56: { + RefreshInterval = input.ReadInt32(); + break; + } + case 64: { + UnlockCondType = input.ReadInt32(); + break; + } + case 74: { + UnlockCondParams = input.ReadString(); + break; + } + case 82: { + OpenTime = input.ReadString(); + break; + } + case 90: { + CloseTime = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShopCoin = input.ReadInt32(); + break; + } + case 24: { + Type = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + Sequence = input.ReadInt32(); + break; + } + case 48: { + RefreshTimeType = input.ReadInt32(); + break; + } + case 56: { + RefreshInterval = input.ReadInt32(); + break; + } + case 64: { + UnlockCondType = input.ReadInt32(); + break; + } + case 74: { + UnlockCondParams = input.ReadString(); + break; + } + case 82: { + OpenTime = input.ReadString(); + break; + } + case 90: { + CloseTime = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ScriptParameter.cs b/NTR.Common/protos/ScriptParameter.cs new file mode 100644 index 0000000..fb3dc35 --- /dev/null +++ b/NTR.Common/protos/ScriptParameter.cs @@ -0,0 +1,354 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ScriptParameter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ScriptParameter.proto + public static partial class ScriptParameterReflection { + + #region Descriptor + /// File descriptor for ScriptParameter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ScriptParameterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTY3JpcHRQYXJhbWV0ZXIucHJvdG8iYwoPU2NyaXB0UGFyYW1ldGVyEgoK", + "AmlkGAEgASgFEhcKD2xldmVsX3R5cGVfZGF0YRgCIAEoBRISCgpsZXZlbF9k", + "YXRhGAMgASgFEhcKD21haW5fb3Jfc3VwcG9ydBgEIAEoBUIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ScriptParameter), global::Nova.Client.ScriptParameter.Parser, new[]{ "Id", "LevelTypeData", "LevelData", "MainOrSupport" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ScriptParameter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScriptParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ScriptParameterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptParameter(ScriptParameter other) : this() { + id_ = other.id_; + levelTypeData_ = other.levelTypeData_; + levelData_ = other.levelData_; + mainOrSupport_ = other.mainOrSupport_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptParameter Clone() { + return new ScriptParameter(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "level_type_data" field. + public const int LevelTypeDataFieldNumber = 2; + private int levelTypeData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTypeData { + get { return levelTypeData_; } + set { + levelTypeData_ = value; + } + } + + /// Field number for the "level_data" field. + public const int LevelDataFieldNumber = 3; + private int levelData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelData { + get { return levelData_; } + set { + levelData_ = value; + } + } + + /// Field number for the "main_or_support" field. + public const int MainOrSupportFieldNumber = 4; + private int mainOrSupport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainOrSupport { + get { return mainOrSupport_; } + set { + mainOrSupport_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScriptParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScriptParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (LevelTypeData != other.LevelTypeData) return false; + if (LevelData != other.LevelData) return false; + if (MainOrSupport != other.MainOrSupport) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (LevelTypeData != 0) hash ^= LevelTypeData.GetHashCode(); + if (LevelData != 0) hash ^= LevelData.GetHashCode(); + if (MainOrSupport != 0) hash ^= MainOrSupport.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelTypeData != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(32); + output.WriteInt32(MainOrSupport); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelTypeData != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(32); + output.WriteInt32(MainOrSupport); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (LevelTypeData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTypeData); + } + if (LevelData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelData); + } + if (MainOrSupport != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainOrSupport); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScriptParameter other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.LevelTypeData != 0) { + LevelTypeData = other.LevelTypeData; + } + if (other.LevelData != 0) { + LevelData = other.LevelData; + } + if (other.MainOrSupport != 0) { + MainOrSupport = other.MainOrSupport; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelTypeData = input.ReadInt32(); + break; + } + case 24: { + LevelData = input.ReadInt32(); + break; + } + case 32: { + MainOrSupport = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelTypeData = input.ReadInt32(); + break; + } + case 24: { + LevelData = input.ReadInt32(); + break; + } + case 32: { + MainOrSupport = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ScriptParameterValue.cs b/NTR.Common/protos/ScriptParameterValue.cs new file mode 100644 index 0000000..eeb8619 --- /dev/null +++ b/NTR.Common/protos/ScriptParameterValue.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ScriptParameterValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ScriptParameterValue.proto + public static partial class ScriptParameterValueReflection { + + #region Descriptor + /// File descriptor for ScriptParameterValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ScriptParameterValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTY3JpcHRQYXJhbWV0ZXJWYWx1ZS5wcm90byI3ChRTY3JpcHRQYXJhbWV0", + "ZXJWYWx1ZRIKCgJpZBgBIAEoBRITCgtjb21tb25fZGF0YRgCIAEoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ScriptParameterValue), global::Nova.Client.ScriptParameterValue.Parser, new[]{ "Id", "CommonData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ScriptParameterValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScriptParameterValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ScriptParameterValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptParameterValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptParameterValue(ScriptParameterValue other) : this() { + id_ = other.id_; + commonData_ = other.commonData_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptParameterValue Clone() { + return new ScriptParameterValue(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "common_data" field. + public const int CommonDataFieldNumber = 2; + private int commonData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CommonData { + get { return commonData_; } + set { + commonData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScriptParameterValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScriptParameterValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CommonData != other.CommonData) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CommonData != 0) hash ^= CommonData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CommonData != 0) { + output.WriteRawTag(16); + output.WriteInt32(CommonData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CommonData != 0) { + output.WriteRawTag(16); + output.WriteInt32(CommonData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CommonData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CommonData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScriptParameterValue other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CommonData != 0) { + CommonData = other.CommonData; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CommonData = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CommonData = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ServerAgent.cs b/NTR.Common/protos/ServerAgent.cs new file mode 100644 index 0000000..6202dea --- /dev/null +++ b/NTR.Common/protos/ServerAgent.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ServerAgent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Pb { + + /// Holder for reflection information generated from ServerAgent.proto + public static partial class ServerAgentReflection { + + #region Descriptor + /// File descriptor for ServerAgent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ServerAgentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFTZXJ2ZXJBZ2VudC5wcm90byJHCgtTZXJ2ZXJBZ2VudBIMCgRuYW1lGAEg", + "ASgJEgwKBGFkZHIYAiABKAkSDgoGc3RhdHVzGAMgASgFEgwKBHpvbmUYBCAB", + "KANCBaoCAlBiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.ServerAgent), global::Pb.ServerAgent.Parser, new[]{ "Name", "Addr", "Status", "Zone" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ServerAgent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerAgent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.ServerAgentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServerAgent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServerAgent(ServerAgent other) : this() { + name_ = other.name_; + addr_ = other.addr_; + status_ = other.status_; + zone_ = other.zone_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServerAgent Clone() { + return new ServerAgent(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "addr" field. + public const int AddrFieldNumber = 2; + private string addr_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Addr { + get { return addr_; } + set { + addr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 3; + private int status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "zone" field. + public const int ZoneFieldNumber = 4; + private long zone_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Zone { + get { return zone_; } + set { + zone_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServerAgent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServerAgent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Addr != other.Addr) return false; + if (Status != other.Status) return false; + if (Zone != other.Zone) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Addr.Length != 0) hash ^= Addr.GetHashCode(); + if (Status != 0) hash ^= Status.GetHashCode(); + if (Zone != 0L) hash ^= Zone.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Addr.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Addr); + } + if (Status != 0) { + output.WriteRawTag(24); + output.WriteInt32(Status); + } + if (Zone != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Zone); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Addr.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Addr); + } + if (Status != 0) { + output.WriteRawTag(24); + output.WriteInt32(Status); + } + if (Zone != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Zone); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Addr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Addr); + } + if (Status != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Status); + } + if (Zone != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Zone); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServerAgent other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Addr.Length != 0) { + Addr = other.Addr; + } + if (other.Status != 0) { + Status = other.Status; + } + if (other.Zone != 0L) { + Zone = other.Zone; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Addr = input.ReadString(); + break; + } + case 24: { + Status = input.ReadInt32(); + break; + } + case 32: { + Zone = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Addr = input.ReadString(); + break; + } + case 24: { + Status = input.ReadInt32(); + break; + } + case 32: { + Zone = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ServerListMeta.cs b/NTR.Common/protos/ServerListMeta.cs new file mode 100644 index 0000000..782a88d --- /dev/null +++ b/NTR.Common/protos/ServerListMeta.cs @@ -0,0 +1,418 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ServerListMeta.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Pb { + + /// Holder for reflection information generated from ServerListMeta.proto + public static partial class ServerListMetaReflection { + + #region Descriptor + /// File descriptor for ServerListMeta.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ServerListMetaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTZXJ2ZXJMaXN0TWV0YS5wcm90bxoRU2VydmVyQWdlbnQucHJvdG8ijgEK", + "DlNlcnZlckxpc3RNZXRhEg8KB3ZlcnNpb24YASABKAMSGwoFYWdlbnQYAiAD", + "KAsyDC5TZXJ2ZXJBZ2VudBIOCgZzdGF0dXMYAyABKAUSDwoHbWVzc2FnZRgE", + "IAEoCRIUCgxhbm5vdW5jZW1lbnQYBSABKAkSFwoPcmVwb3J0X2VuZHBvaW50", + "GAYgASgJQgWqAgJQYmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Pb.ServerAgentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.ServerListMeta), global::Pb.ServerListMeta.Parser, new[]{ "Version", "Agent", "Status", "Message", "Announcement", "ReportEndpoint" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ServerListMeta : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServerListMeta()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.ServerListMetaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServerListMeta() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServerListMeta(ServerListMeta other) : this() { + version_ = other.version_; + agent_ = other.agent_.Clone(); + status_ = other.status_; + message_ = other.message_; + announcement_ = other.announcement_; + reportEndpoint_ = other.reportEndpoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServerListMeta Clone() { + return new ServerListMeta(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private long version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "agent" field. + public const int AgentFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_agent_codec + = pb::FieldCodec.ForMessage(18, global::Pb.ServerAgent.Parser); + private readonly pbc::RepeatedField agent_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Agent { + get { return agent_; } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 3; + private int status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 4; + private string message_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "announcement" field. + public const int AnnouncementFieldNumber = 5; + private string announcement_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Announcement { + get { return announcement_; } + set { + announcement_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "report_endpoint" field. + public const int ReportEndpointFieldNumber = 6; + private string reportEndpoint_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReportEndpoint { + get { return reportEndpoint_; } + set { + reportEndpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServerListMeta); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServerListMeta other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if(!agent_.Equals(other.agent_)) return false; + if (Status != other.Status) return false; + if (Message != other.Message) return false; + if (Announcement != other.Announcement) return false; + if (ReportEndpoint != other.ReportEndpoint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Version != 0L) hash ^= Version.GetHashCode(); + hash ^= agent_.GetHashCode(); + if (Status != 0) hash ^= Status.GetHashCode(); + if (Message.Length != 0) hash ^= Message.GetHashCode(); + if (Announcement.Length != 0) hash ^= Announcement.GetHashCode(); + if (ReportEndpoint.Length != 0) hash ^= ReportEndpoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Version != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Version); + } + agent_.WriteTo(output, _repeated_agent_codec); + if (Status != 0) { + output.WriteRawTag(24); + output.WriteInt32(Status); + } + if (Message.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Message); + } + if (Announcement.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Announcement); + } + if (ReportEndpoint.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ReportEndpoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Version != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Version); + } + agent_.WriteTo(ref output, _repeated_agent_codec); + if (Status != 0) { + output.WriteRawTag(24); + output.WriteInt32(Status); + } + if (Message.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Message); + } + if (Announcement.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Announcement); + } + if (ReportEndpoint.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ReportEndpoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Version != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version); + } + size += agent_.CalculateSize(_repeated_agent_codec); + if (Status != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Status); + } + if (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (Announcement.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Announcement); + } + if (ReportEndpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReportEndpoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServerListMeta other) { + if (other == null) { + return; + } + if (other.Version != 0L) { + Version = other.Version; + } + agent_.Add(other.agent_); + if (other.Status != 0) { + Status = other.Status; + } + if (other.Message.Length != 0) { + Message = other.Message; + } + if (other.Announcement.Length != 0) { + Announcement = other.Announcement; + } + if (other.ReportEndpoint.Length != 0) { + ReportEndpoint = other.ReportEndpoint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Version = input.ReadInt64(); + break; + } + case 18: { + agent_.AddEntriesFrom(input, _repeated_agent_codec); + break; + } + case 24: { + Status = input.ReadInt32(); + break; + } + case 34: { + Message = input.ReadString(); + break; + } + case 42: { + Announcement = input.ReadString(); + break; + } + case 50: { + ReportEndpoint = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Version = input.ReadInt64(); + break; + } + case 18: { + agent_.AddEntriesFrom(ref input, _repeated_agent_codec); + break; + } + case 24: { + Status = input.ReadInt32(); + break; + } + case 34: { + Message = input.ReadString(); + break; + } + case 42: { + Announcement = input.ReadString(); + break; + } + case 50: { + ReportEndpoint = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Shield.cs b/NTR.Common/protos/Shield.cs new file mode 100644 index 0000000..955b742 --- /dev/null +++ b/NTR.Common/protos/Shield.cs @@ -0,0 +1,616 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Shield.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Shield.proto + public static partial class ShieldReflection { + + #region Descriptor + /// File descriptor for Shield.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ShieldReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxTaGllbGQucHJvdG8i7AEKBlNoaWVsZBIKCgJpZBgBIAEoBRIMCgRuYW1l", + "GAIgASgJEhcKD2xldmVsX3R5cGVfZGF0YRgDIAEoBRISCgpsZXZlbF9kYXRh", + "GAQgASgFEhcKD21haW5fb3Jfc3VwcG9ydBgFIAEoBRITCgtiaW5kX2VmZmVj", + "dBgGIAEoCRITCgtzaGllbGRfdGFnMRgHIAEoBRITCgtzaGllbGRfdGFnMhgI", + "IAEoBRITCgtzaGllbGRfdGFnMxgJIAEoBRIaChJ0aW1lX3N1cGVycG9zaXRp", + "b24YCiABKAUSEgoKbm90X3JlbW92ZRgLIAEoCEIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Shield), global::Nova.Client.Shield.Parser, new[]{ "Id", "Name", "LevelTypeData", "LevelData", "MainOrSupport", "BindEffect", "ShieldTag1", "ShieldTag2", "ShieldTag3", "TimeSuperposition", "NotRemove" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Shield : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Shield()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ShieldReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Shield() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Shield(Shield other) : this() { + id_ = other.id_; + name_ = other.name_; + levelTypeData_ = other.levelTypeData_; + levelData_ = other.levelData_; + mainOrSupport_ = other.mainOrSupport_; + bindEffect_ = other.bindEffect_; + shieldTag1_ = other.shieldTag1_; + shieldTag2_ = other.shieldTag2_; + shieldTag3_ = other.shieldTag3_; + timeSuperposition_ = other.timeSuperposition_; + notRemove_ = other.notRemove_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Shield Clone() { + return new Shield(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "level_type_data" field. + public const int LevelTypeDataFieldNumber = 3; + private int levelTypeData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelTypeData { + get { return levelTypeData_; } + set { + levelTypeData_ = value; + } + } + + /// Field number for the "level_data" field. + public const int LevelDataFieldNumber = 4; + private int levelData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelData { + get { return levelData_; } + set { + levelData_ = value; + } + } + + /// Field number for the "main_or_support" field. + public const int MainOrSupportFieldNumber = 5; + private int mainOrSupport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MainOrSupport { + get { return mainOrSupport_; } + set { + mainOrSupport_ = value; + } + } + + /// Field number for the "bind_effect" field. + public const int BindEffectFieldNumber = 6; + private string bindEffect_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BindEffect { + get { return bindEffect_; } + set { + bindEffect_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "shield_tag1" field. + public const int ShieldTag1FieldNumber = 7; + private int shieldTag1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShieldTag1 { + get { return shieldTag1_; } + set { + shieldTag1_ = value; + } + } + + /// Field number for the "shield_tag2" field. + public const int ShieldTag2FieldNumber = 8; + private int shieldTag2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShieldTag2 { + get { return shieldTag2_; } + set { + shieldTag2_ = value; + } + } + + /// Field number for the "shield_tag3" field. + public const int ShieldTag3FieldNumber = 9; + private int shieldTag3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShieldTag3 { + get { return shieldTag3_; } + set { + shieldTag3_ = value; + } + } + + /// Field number for the "time_superposition" field. + public const int TimeSuperpositionFieldNumber = 10; + private int timeSuperposition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeSuperposition { + get { return timeSuperposition_; } + set { + timeSuperposition_ = value; + } + } + + /// Field number for the "not_remove" field. + public const int NotRemoveFieldNumber = 11; + private bool notRemove_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NotRemove { + get { return notRemove_; } + set { + notRemove_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Shield); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Shield other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (LevelTypeData != other.LevelTypeData) return false; + if (LevelData != other.LevelData) return false; + if (MainOrSupport != other.MainOrSupport) return false; + if (BindEffect != other.BindEffect) return false; + if (ShieldTag1 != other.ShieldTag1) return false; + if (ShieldTag2 != other.ShieldTag2) return false; + if (ShieldTag3 != other.ShieldTag3) return false; + if (TimeSuperposition != other.TimeSuperposition) return false; + if (NotRemove != other.NotRemove) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (LevelTypeData != 0) hash ^= LevelTypeData.GetHashCode(); + if (LevelData != 0) hash ^= LevelData.GetHashCode(); + if (MainOrSupport != 0) hash ^= MainOrSupport.GetHashCode(); + if (BindEffect.Length != 0) hash ^= BindEffect.GetHashCode(); + if (ShieldTag1 != 0) hash ^= ShieldTag1.GetHashCode(); + if (ShieldTag2 != 0) hash ^= ShieldTag2.GetHashCode(); + if (ShieldTag3 != 0) hash ^= ShieldTag3.GetHashCode(); + if (TimeSuperposition != 0) hash ^= TimeSuperposition.GetHashCode(); + if (NotRemove != false) hash ^= NotRemove.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (LevelTypeData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainOrSupport); + } + if (BindEffect.Length != 0) { + output.WriteRawTag(50); + output.WriteString(BindEffect); + } + if (ShieldTag1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(ShieldTag1); + } + if (ShieldTag2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(ShieldTag2); + } + if (ShieldTag3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(ShieldTag3); + } + if (TimeSuperposition != 0) { + output.WriteRawTag(80); + output.WriteInt32(TimeSuperposition); + } + if (NotRemove != false) { + output.WriteRawTag(88); + output.WriteBool(NotRemove); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (LevelTypeData != 0) { + output.WriteRawTag(24); + output.WriteInt32(LevelTypeData); + } + if (LevelData != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelData); + } + if (MainOrSupport != 0) { + output.WriteRawTag(40); + output.WriteInt32(MainOrSupport); + } + if (BindEffect.Length != 0) { + output.WriteRawTag(50); + output.WriteString(BindEffect); + } + if (ShieldTag1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(ShieldTag1); + } + if (ShieldTag2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(ShieldTag2); + } + if (ShieldTag3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(ShieldTag3); + } + if (TimeSuperposition != 0) { + output.WriteRawTag(80); + output.WriteInt32(TimeSuperposition); + } + if (NotRemove != false) { + output.WriteRawTag(88); + output.WriteBool(NotRemove); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (LevelTypeData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelTypeData); + } + if (LevelData != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelData); + } + if (MainOrSupport != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MainOrSupport); + } + if (BindEffect.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BindEffect); + } + if (ShieldTag1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShieldTag1); + } + if (ShieldTag2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShieldTag2); + } + if (ShieldTag3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShieldTag3); + } + if (TimeSuperposition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeSuperposition); + } + if (NotRemove != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Shield other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.LevelTypeData != 0) { + LevelTypeData = other.LevelTypeData; + } + if (other.LevelData != 0) { + LevelData = other.LevelData; + } + if (other.MainOrSupport != 0) { + MainOrSupport = other.MainOrSupport; + } + if (other.BindEffect.Length != 0) { + BindEffect = other.BindEffect; + } + if (other.ShieldTag1 != 0) { + ShieldTag1 = other.ShieldTag1; + } + if (other.ShieldTag2 != 0) { + ShieldTag2 = other.ShieldTag2; + } + if (other.ShieldTag3 != 0) { + ShieldTag3 = other.ShieldTag3; + } + if (other.TimeSuperposition != 0) { + TimeSuperposition = other.TimeSuperposition; + } + if (other.NotRemove != false) { + NotRemove = other.NotRemove; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + LevelTypeData = input.ReadInt32(); + break; + } + case 32: { + LevelData = input.ReadInt32(); + break; + } + case 40: { + MainOrSupport = input.ReadInt32(); + break; + } + case 50: { + BindEffect = input.ReadString(); + break; + } + case 56: { + ShieldTag1 = input.ReadInt32(); + break; + } + case 64: { + ShieldTag2 = input.ReadInt32(); + break; + } + case 72: { + ShieldTag3 = input.ReadInt32(); + break; + } + case 80: { + TimeSuperposition = input.ReadInt32(); + break; + } + case 88: { + NotRemove = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + LevelTypeData = input.ReadInt32(); + break; + } + case 32: { + LevelData = input.ReadInt32(); + break; + } + case 40: { + MainOrSupport = input.ReadInt32(); + break; + } + case 50: { + BindEffect = input.ReadString(); + break; + } + case 56: { + ShieldTag1 = input.ReadInt32(); + break; + } + case 64: { + ShieldTag2 = input.ReadInt32(); + break; + } + case 72: { + ShieldTag3 = input.ReadInt32(); + break; + } + case 80: { + TimeSuperposition = input.ReadInt32(); + break; + } + case 88: { + NotRemove = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/ShieldValue.cs b/NTR.Common/protos/ShieldValue.cs new file mode 100644 index 0000000..7fbe46b --- /dev/null +++ b/NTR.Common/protos/ShieldValue.cs @@ -0,0 +1,579 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ShieldValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from ShieldValue.proto + public static partial class ShieldValueReflection { + + #region Descriptor + /// File descriptor for ShieldValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ShieldValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFTaGllbGRWYWx1ZS5wcm90byLpAQoLU2hpZWxkVmFsdWUSCgoCaWQYASAB", + "KAUSDAoEbmFtZRgCIAEoCRIXCg9hYnNvcnB0aW9uX2Jhc2UYAyABKAUSGAoQ", + "cmVmZXJlbmNlX3RhcmdldBgEIAEoBRIYChByZWZlcmVuY2VfYXR0cmliGAUg", + "ASgFEhcKD3JlZmVyZW5jZV9zY2FsZRgGIAEoBRIMCgR0aW1lGAcgASgFEhwK", + "FHNoaWVsZF9sYW1pbmF0ZWRfbnVtGAggASgFEhoKEnRpbWVfc3VwZXJwb3Np", + "dGlvbhgJIAEoBRISCgpub3RfcmVtb3ZlGAogASgIQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ShieldValue), global::Nova.Client.ShieldValue.Parser, new[]{ "Id", "Name", "AbsorptionBase", "ReferenceTarget", "ReferenceAttrib", "ReferenceScale", "Time", "ShieldLaminatedNum", "TimeSuperposition", "NotRemove" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ShieldValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShieldValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.ShieldValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShieldValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShieldValue(ShieldValue other) : this() { + id_ = other.id_; + name_ = other.name_; + absorptionBase_ = other.absorptionBase_; + referenceTarget_ = other.referenceTarget_; + referenceAttrib_ = other.referenceAttrib_; + referenceScale_ = other.referenceScale_; + time_ = other.time_; + shieldLaminatedNum_ = other.shieldLaminatedNum_; + timeSuperposition_ = other.timeSuperposition_; + notRemove_ = other.notRemove_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShieldValue Clone() { + return new ShieldValue(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "absorption_base" field. + public const int AbsorptionBaseFieldNumber = 3; + private int absorptionBase_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AbsorptionBase { + get { return absorptionBase_; } + set { + absorptionBase_ = value; + } + } + + /// Field number for the "reference_target" field. + public const int ReferenceTargetFieldNumber = 4; + private int referenceTarget_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReferenceTarget { + get { return referenceTarget_; } + set { + referenceTarget_ = value; + } + } + + /// Field number for the "reference_attrib" field. + public const int ReferenceAttribFieldNumber = 5; + private int referenceAttrib_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReferenceAttrib { + get { return referenceAttrib_; } + set { + referenceAttrib_ = value; + } + } + + /// Field number for the "reference_scale" field. + public const int ReferenceScaleFieldNumber = 6; + private int referenceScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReferenceScale { + get { return referenceScale_; } + set { + referenceScale_ = value; + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 7; + private int time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Time { + get { return time_; } + set { + time_ = value; + } + } + + /// Field number for the "shield_laminated_num" field. + public const int ShieldLaminatedNumFieldNumber = 8; + private int shieldLaminatedNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShieldLaminatedNum { + get { return shieldLaminatedNum_; } + set { + shieldLaminatedNum_ = value; + } + } + + /// Field number for the "time_superposition" field. + public const int TimeSuperpositionFieldNumber = 9; + private int timeSuperposition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeSuperposition { + get { return timeSuperposition_; } + set { + timeSuperposition_ = value; + } + } + + /// Field number for the "not_remove" field. + public const int NotRemoveFieldNumber = 10; + private bool notRemove_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NotRemove { + get { return notRemove_; } + set { + notRemove_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ShieldValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ShieldValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (AbsorptionBase != other.AbsorptionBase) return false; + if (ReferenceTarget != other.ReferenceTarget) return false; + if (ReferenceAttrib != other.ReferenceAttrib) return false; + if (ReferenceScale != other.ReferenceScale) return false; + if (Time != other.Time) return false; + if (ShieldLaminatedNum != other.ShieldLaminatedNum) return false; + if (TimeSuperposition != other.TimeSuperposition) return false; + if (NotRemove != other.NotRemove) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (AbsorptionBase != 0) hash ^= AbsorptionBase.GetHashCode(); + if (ReferenceTarget != 0) hash ^= ReferenceTarget.GetHashCode(); + if (ReferenceAttrib != 0) hash ^= ReferenceAttrib.GetHashCode(); + if (ReferenceScale != 0) hash ^= ReferenceScale.GetHashCode(); + if (Time != 0) hash ^= Time.GetHashCode(); + if (ShieldLaminatedNum != 0) hash ^= ShieldLaminatedNum.GetHashCode(); + if (TimeSuperposition != 0) hash ^= TimeSuperposition.GetHashCode(); + if (NotRemove != false) hash ^= NotRemove.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (AbsorptionBase != 0) { + output.WriteRawTag(24); + output.WriteInt32(AbsorptionBase); + } + if (ReferenceTarget != 0) { + output.WriteRawTag(32); + output.WriteInt32(ReferenceTarget); + } + if (ReferenceAttrib != 0) { + output.WriteRawTag(40); + output.WriteInt32(ReferenceAttrib); + } + if (ReferenceScale != 0) { + output.WriteRawTag(48); + output.WriteInt32(ReferenceScale); + } + if (Time != 0) { + output.WriteRawTag(56); + output.WriteInt32(Time); + } + if (ShieldLaminatedNum != 0) { + output.WriteRawTag(64); + output.WriteInt32(ShieldLaminatedNum); + } + if (TimeSuperposition != 0) { + output.WriteRawTag(72); + output.WriteInt32(TimeSuperposition); + } + if (NotRemove != false) { + output.WriteRawTag(80); + output.WriteBool(NotRemove); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (AbsorptionBase != 0) { + output.WriteRawTag(24); + output.WriteInt32(AbsorptionBase); + } + if (ReferenceTarget != 0) { + output.WriteRawTag(32); + output.WriteInt32(ReferenceTarget); + } + if (ReferenceAttrib != 0) { + output.WriteRawTag(40); + output.WriteInt32(ReferenceAttrib); + } + if (ReferenceScale != 0) { + output.WriteRawTag(48); + output.WriteInt32(ReferenceScale); + } + if (Time != 0) { + output.WriteRawTag(56); + output.WriteInt32(Time); + } + if (ShieldLaminatedNum != 0) { + output.WriteRawTag(64); + output.WriteInt32(ShieldLaminatedNum); + } + if (TimeSuperposition != 0) { + output.WriteRawTag(72); + output.WriteInt32(TimeSuperposition); + } + if (NotRemove != false) { + output.WriteRawTag(80); + output.WriteBool(NotRemove); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (AbsorptionBase != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AbsorptionBase); + } + if (ReferenceTarget != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReferenceTarget); + } + if (ReferenceAttrib != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReferenceAttrib); + } + if (ReferenceScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReferenceScale); + } + if (Time != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Time); + } + if (ShieldLaminatedNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShieldLaminatedNum); + } + if (TimeSuperposition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeSuperposition); + } + if (NotRemove != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ShieldValue other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.AbsorptionBase != 0) { + AbsorptionBase = other.AbsorptionBase; + } + if (other.ReferenceTarget != 0) { + ReferenceTarget = other.ReferenceTarget; + } + if (other.ReferenceAttrib != 0) { + ReferenceAttrib = other.ReferenceAttrib; + } + if (other.ReferenceScale != 0) { + ReferenceScale = other.ReferenceScale; + } + if (other.Time != 0) { + Time = other.Time; + } + if (other.ShieldLaminatedNum != 0) { + ShieldLaminatedNum = other.ShieldLaminatedNum; + } + if (other.TimeSuperposition != 0) { + TimeSuperposition = other.TimeSuperposition; + } + if (other.NotRemove != false) { + NotRemove = other.NotRemove; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + AbsorptionBase = input.ReadInt32(); + break; + } + case 32: { + ReferenceTarget = input.ReadInt32(); + break; + } + case 40: { + ReferenceAttrib = input.ReadInt32(); + break; + } + case 48: { + ReferenceScale = input.ReadInt32(); + break; + } + case 56: { + Time = input.ReadInt32(); + break; + } + case 64: { + ShieldLaminatedNum = input.ReadInt32(); + break; + } + case 72: { + TimeSuperposition = input.ReadInt32(); + break; + } + case 80: { + NotRemove = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + AbsorptionBase = input.ReadInt32(); + break; + } + case 32: { + ReferenceTarget = input.ReadInt32(); + break; + } + case 40: { + ReferenceAttrib = input.ReadInt32(); + break; + } + case 48: { + ReferenceScale = input.ReadInt32(); + break; + } + case 56: { + Time = input.ReadInt32(); + break; + } + case 64: { + ShieldLaminatedNum = input.ReadInt32(); + break; + } + case 72: { + TimeSuperposition = input.ReadInt32(); + break; + } + case 80: { + NotRemove = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/SignIn.cs b/NTR.Common/protos/SignIn.cs new file mode 100644 index 0000000..1380926 --- /dev/null +++ b/NTR.Common/protos/SignIn.cs @@ -0,0 +1,390 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SignIn.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from SignIn.proto + public static partial class SignInReflection { + + #region Descriptor + /// File descriptor for SignIn.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SignInReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxTaWduSW4ucHJvdG8iVAoGU2lnbkluEgsKA2lfZBgBIAEoBRINCgVncm91", + "cBgCIAEoBRILCgNkYXkYAyABKAUSDwoHaXRlbV9pZBgEIAEoBRIQCghpdGVt", + "X3F0eRgFIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.SignIn), global::Nova.Client.SignIn.Parser, new[]{ "ID", "Group", "Day", "ItemId", "ItemQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SignIn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignIn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.SignInReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SignIn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SignIn(SignIn other) : this() { + iD_ = other.iD_; + group_ = other.group_; + day_ = other.day_; + itemId_ = other.itemId_; + itemQty_ = other.itemQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SignIn Clone() { + return new SignIn(this); + } + + /// Field number for the "i_d" field. + public const int IDFieldNumber = 1; + private int iD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ID { + get { return iD_; } + set { + iD_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 2; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "day" field. + public const int DayFieldNumber = 3; + private int day_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Day { + get { return day_; } + set { + day_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 4; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_qty" field. + public const int ItemQtyFieldNumber = 5; + private int itemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty { + get { return itemQty_; } + set { + itemQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SignIn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SignIn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ID != other.ID) return false; + if (Group != other.Group) return false; + if (Day != other.Day) return false; + if (ItemId != other.ItemId) return false; + if (ItemQty != other.ItemQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ID != 0) hash ^= ID.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (Day != 0) hash ^= Day.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemQty != 0) hash ^= ItemQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (Day != 0) { + output.WriteRawTag(24); + output.WriteInt32(Day); + } + if (ItemId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ID != 0) { + output.WriteRawTag(8); + output.WriteInt32(ID); + } + if (Group != 0) { + output.WriteRawTag(16); + output.WriteInt32(Group); + } + if (Day != 0) { + output.WriteRawTag(24); + output.WriteInt32(Day); + } + if (ItemId != 0) { + output.WriteRawTag(32); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(40); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ID); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (Day != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Day); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SignIn other) { + if (other == null) { + return; + } + if (other.ID != 0) { + ID = other.ID; + } + if (other.Group != 0) { + Group = other.Group; + } + if (other.Day != 0) { + Day = other.Day; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemQty != 0) { + ItemQty = other.ItemQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + Day = input.ReadInt32(); + break; + } + case 32: { + ItemId = input.ReadInt32(); + break; + } + case 40: { + ItemQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ID = input.ReadInt32(); + break; + } + case 16: { + Group = input.ReadInt32(); + break; + } + case 24: { + Day = input.ReadInt32(); + break; + } + case 32: { + ItemId = input.ReadInt32(); + break; + } + case 40: { + ItemQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Skill.cs b/NTR.Common/protos/Skill.cs new file mode 100644 index 0000000..b3b2a31 --- /dev/null +++ b/NTR.Common/protos/Skill.cs @@ -0,0 +1,1214 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Skill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Skill.proto + public static partial class SkillReflection { + + #region Descriptor + /// File descriptor for Skill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtTa2lsbC5wcm90byKCBAoFU2tpbGwSCgoCaWQYASABKAUSDQoFdGl0bGUY", + "AiABKAkSEAoIZl9jX3BhdGgYAyABKAkSDAoEdHlwZRgEIAEoBRIMCgRkZXNj", + "GAUgASgJEgwKBGljb24YBiABKAkSEQoJc2tpbGxfY19kGAcgASgFEhEKCW1h", + "eF9sZXZlbBgIIAEoBRIVCg1yZWxhdGVkX3NraWxsGAkgASgJEhYKDnNlY3Rp", + "b25fYW1vdW50GAogASgFEhQKDHVzZV9pbnRlcnZhbBgLIAEoBRIVCg11c2Vf", + "dGltZV9oaW50GAwgASgFEhQKDHVsdHJhX2VuZXJneRgNIAEoBRIZChFjaGVj", + "a19jX2RfcmVzdG9yZRgOIAEoCBIYChBmb3JjZV9ydW5fZmluaXNoGA8gASgI", + "EhgKEGdldF9lbmVyZ3lfbGltaXQYECABKAUSDgoGcGFyYW0xGBEgASgJEg4K", + "BnBhcmFtMhgSIAEoCRIOCgZwYXJhbTMYEyABKAkSDgoGcGFyYW00GBQgASgJ", + "Eg4KBnBhcmFtNRgVIAEoCRIOCgZwYXJhbTYYFiABKAkSDgoGcGFyYW03GBcg", + "ASgJEg4KBnBhcmFtOBgYIAEoCRIOCgZwYXJhbTkYGSABKAkSDwoHcGFyYW0x", + "MBgaIAEoCRIaChJpc19jbGVhbl9za2lsbF9jX2QYGyABKAhCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Skill), global::Nova.Client.Skill.Parser, new[]{ "Id", "Title", "FCPath", "Type", "Desc", "Icon", "SkillCD", "MaxLevel", "RelatedSkill", "SectionAmount", "UseInterval", "UseTimeHint", "UltraEnergy", "CheckCDRestore", "ForceRunFinish", "GetEnergyLimit", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6", "Param7", "Param8", "Param9", "Param10", "IsCleanSkillCD" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Skill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Skill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.SkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Skill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Skill(Skill other) : this() { + id_ = other.id_; + title_ = other.title_; + fCPath_ = other.fCPath_; + type_ = other.type_; + desc_ = other.desc_; + icon_ = other.icon_; + skillCD_ = other.skillCD_; + maxLevel_ = other.maxLevel_; + relatedSkill_ = other.relatedSkill_; + sectionAmount_ = other.sectionAmount_; + useInterval_ = other.useInterval_; + useTimeHint_ = other.useTimeHint_; + ultraEnergy_ = other.ultraEnergy_; + checkCDRestore_ = other.checkCDRestore_; + forceRunFinish_ = other.forceRunFinish_; + getEnergyLimit_ = other.getEnergyLimit_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + param5_ = other.param5_; + param6_ = other.param6_; + param7_ = other.param7_; + param8_ = other.param8_; + param9_ = other.param9_; + param10_ = other.param10_; + isCleanSkillCD_ = other.isCleanSkillCD_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Skill Clone() { + return new Skill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "f_c_path" field. + public const int FCPathFieldNumber = 3; + private string fCPath_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FCPath { + get { return fCPath_; } + set { + fCPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 6; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "skill_c_d" field. + public const int SkillCDFieldNumber = 7; + private int skillCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillCD { + get { return skillCD_; } + set { + skillCD_ = value; + } + } + + /// Field number for the "max_level" field. + public const int MaxLevelFieldNumber = 8; + private int maxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxLevel { + get { return maxLevel_; } + set { + maxLevel_ = value; + } + } + + /// Field number for the "related_skill" field. + public const int RelatedSkillFieldNumber = 9; + private string relatedSkill_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RelatedSkill { + get { return relatedSkill_; } + set { + relatedSkill_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "section_amount" field. + public const int SectionAmountFieldNumber = 10; + private int sectionAmount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SectionAmount { + get { return sectionAmount_; } + set { + sectionAmount_ = value; + } + } + + /// Field number for the "use_interval" field. + public const int UseIntervalFieldNumber = 11; + private int useInterval_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UseInterval { + get { return useInterval_; } + set { + useInterval_ = value; + } + } + + /// Field number for the "use_time_hint" field. + public const int UseTimeHintFieldNumber = 12; + private int useTimeHint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UseTimeHint { + get { return useTimeHint_; } + set { + useTimeHint_ = value; + } + } + + /// Field number for the "ultra_energy" field. + public const int UltraEnergyFieldNumber = 13; + private int ultraEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UltraEnergy { + get { return ultraEnergy_; } + set { + ultraEnergy_ = value; + } + } + + /// Field number for the "check_c_d_restore" field. + public const int CheckCDRestoreFieldNumber = 14; + private bool checkCDRestore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CheckCDRestore { + get { return checkCDRestore_; } + set { + checkCDRestore_ = value; + } + } + + /// Field number for the "force_run_finish" field. + public const int ForceRunFinishFieldNumber = 15; + private bool forceRunFinish_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ForceRunFinish { + get { return forceRunFinish_; } + set { + forceRunFinish_ = value; + } + } + + /// Field number for the "get_energy_limit" field. + public const int GetEnergyLimitFieldNumber = 16; + private int getEnergyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GetEnergyLimit { + get { return getEnergyLimit_; } + set { + getEnergyLimit_ = value; + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 17; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 18; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 19; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 20; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param5" field. + public const int Param5FieldNumber = 21; + private string param5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param5 { + get { return param5_; } + set { + param5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param6" field. + public const int Param6FieldNumber = 22; + private string param6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param6 { + get { return param6_; } + set { + param6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param7" field. + public const int Param7FieldNumber = 23; + private string param7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param7 { + get { return param7_; } + set { + param7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param8" field. + public const int Param8FieldNumber = 24; + private string param8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param8 { + get { return param8_; } + set { + param8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param9" field. + public const int Param9FieldNumber = 25; + private string param9_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param9 { + get { return param9_; } + set { + param9_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param10" field. + public const int Param10FieldNumber = 26; + private string param10_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param10 { + get { return param10_; } + set { + param10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_clean_skill_c_d" field. + public const int IsCleanSkillCDFieldNumber = 27; + private bool isCleanSkillCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsCleanSkillCD { + get { return isCleanSkillCD_; } + set { + isCleanSkillCD_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Skill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Skill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (FCPath != other.FCPath) return false; + if (Type != other.Type) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (SkillCD != other.SkillCD) return false; + if (MaxLevel != other.MaxLevel) return false; + if (RelatedSkill != other.RelatedSkill) return false; + if (SectionAmount != other.SectionAmount) return false; + if (UseInterval != other.UseInterval) return false; + if (UseTimeHint != other.UseTimeHint) return false; + if (UltraEnergy != other.UltraEnergy) return false; + if (CheckCDRestore != other.CheckCDRestore) return false; + if (ForceRunFinish != other.ForceRunFinish) return false; + if (GetEnergyLimit != other.GetEnergyLimit) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + if (Param5 != other.Param5) return false; + if (Param6 != other.Param6) return false; + if (Param7 != other.Param7) return false; + if (Param8 != other.Param8) return false; + if (Param9 != other.Param9) return false; + if (Param10 != other.Param10) return false; + if (IsCleanSkillCD != other.IsCleanSkillCD) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (FCPath.Length != 0) hash ^= FCPath.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (SkillCD != 0) hash ^= SkillCD.GetHashCode(); + if (MaxLevel != 0) hash ^= MaxLevel.GetHashCode(); + if (RelatedSkill.Length != 0) hash ^= RelatedSkill.GetHashCode(); + if (SectionAmount != 0) hash ^= SectionAmount.GetHashCode(); + if (UseInterval != 0) hash ^= UseInterval.GetHashCode(); + if (UseTimeHint != 0) hash ^= UseTimeHint.GetHashCode(); + if (UltraEnergy != 0) hash ^= UltraEnergy.GetHashCode(); + if (CheckCDRestore != false) hash ^= CheckCDRestore.GetHashCode(); + if (ForceRunFinish != false) hash ^= ForceRunFinish.GetHashCode(); + if (GetEnergyLimit != 0) hash ^= GetEnergyLimit.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (Param5.Length != 0) hash ^= Param5.GetHashCode(); + if (Param6.Length != 0) hash ^= Param6.GetHashCode(); + if (Param7.Length != 0) hash ^= Param7.GetHashCode(); + if (Param8.Length != 0) hash ^= Param8.GetHashCode(); + if (Param9.Length != 0) hash ^= Param9.GetHashCode(); + if (Param10.Length != 0) hash ^= Param10.GetHashCode(); + if (IsCleanSkillCD != false) hash ^= IsCleanSkillCD.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (FCPath.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FCPath); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Icon); + } + if (SkillCD != 0) { + output.WriteRawTag(56); + output.WriteInt32(SkillCD); + } + if (MaxLevel != 0) { + output.WriteRawTag(64); + output.WriteInt32(MaxLevel); + } + if (RelatedSkill.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RelatedSkill); + } + if (SectionAmount != 0) { + output.WriteRawTag(80); + output.WriteInt32(SectionAmount); + } + if (UseInterval != 0) { + output.WriteRawTag(88); + output.WriteInt32(UseInterval); + } + if (UseTimeHint != 0) { + output.WriteRawTag(96); + output.WriteInt32(UseTimeHint); + } + if (UltraEnergy != 0) { + output.WriteRawTag(104); + output.WriteInt32(UltraEnergy); + } + if (CheckCDRestore != false) { + output.WriteRawTag(112); + output.WriteBool(CheckCDRestore); + } + if (ForceRunFinish != false) { + output.WriteRawTag(120); + output.WriteBool(ForceRunFinish); + } + if (GetEnergyLimit != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(GetEnergyLimit); + } + if (Param1.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Param10); + } + if (IsCleanSkillCD != false) { + output.WriteRawTag(216, 1); + output.WriteBool(IsCleanSkillCD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (FCPath.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FCPath); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Icon); + } + if (SkillCD != 0) { + output.WriteRawTag(56); + output.WriteInt32(SkillCD); + } + if (MaxLevel != 0) { + output.WriteRawTag(64); + output.WriteInt32(MaxLevel); + } + if (RelatedSkill.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RelatedSkill); + } + if (SectionAmount != 0) { + output.WriteRawTag(80); + output.WriteInt32(SectionAmount); + } + if (UseInterval != 0) { + output.WriteRawTag(88); + output.WriteInt32(UseInterval); + } + if (UseTimeHint != 0) { + output.WriteRawTag(96); + output.WriteInt32(UseTimeHint); + } + if (UltraEnergy != 0) { + output.WriteRawTag(104); + output.WriteInt32(UltraEnergy); + } + if (CheckCDRestore != false) { + output.WriteRawTag(112); + output.WriteBool(CheckCDRestore); + } + if (ForceRunFinish != false) { + output.WriteRawTag(120); + output.WriteBool(ForceRunFinish); + } + if (GetEnergyLimit != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(GetEnergyLimit); + } + if (Param1.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(Param10); + } + if (IsCleanSkillCD != false) { + output.WriteRawTag(216, 1); + output.WriteBool(IsCleanSkillCD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (FCPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FCPath); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (SkillCD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillCD); + } + if (MaxLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxLevel); + } + if (RelatedSkill.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RelatedSkill); + } + if (SectionAmount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SectionAmount); + } + if (UseInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UseInterval); + } + if (UseTimeHint != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UseTimeHint); + } + if (UltraEnergy != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UltraEnergy); + } + if (CheckCDRestore != false) { + size += 1 + 1; + } + if (ForceRunFinish != false) { + size += 1 + 1; + } + if (GetEnergyLimit != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(GetEnergyLimit); + } + if (Param1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (Param5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param5); + } + if (Param6.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param6); + } + if (Param7.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param7); + } + if (Param8.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param8); + } + if (Param9.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param9); + } + if (Param10.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param10); + } + if (IsCleanSkillCD != false) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Skill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.FCPath.Length != 0) { + FCPath = other.FCPath; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.SkillCD != 0) { + SkillCD = other.SkillCD; + } + if (other.MaxLevel != 0) { + MaxLevel = other.MaxLevel; + } + if (other.RelatedSkill.Length != 0) { + RelatedSkill = other.RelatedSkill; + } + if (other.SectionAmount != 0) { + SectionAmount = other.SectionAmount; + } + if (other.UseInterval != 0) { + UseInterval = other.UseInterval; + } + if (other.UseTimeHint != 0) { + UseTimeHint = other.UseTimeHint; + } + if (other.UltraEnergy != 0) { + UltraEnergy = other.UltraEnergy; + } + if (other.CheckCDRestore != false) { + CheckCDRestore = other.CheckCDRestore; + } + if (other.ForceRunFinish != false) { + ForceRunFinish = other.ForceRunFinish; + } + if (other.GetEnergyLimit != 0) { + GetEnergyLimit = other.GetEnergyLimit; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + if (other.Param5.Length != 0) { + Param5 = other.Param5; + } + if (other.Param6.Length != 0) { + Param6 = other.Param6; + } + if (other.Param7.Length != 0) { + Param7 = other.Param7; + } + if (other.Param8.Length != 0) { + Param8 = other.Param8; + } + if (other.Param9.Length != 0) { + Param9 = other.Param9; + } + if (other.Param10.Length != 0) { + Param10 = other.Param10; + } + if (other.IsCleanSkillCD != false) { + IsCleanSkillCD = other.IsCleanSkillCD; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + FCPath = input.ReadString(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Icon = input.ReadString(); + break; + } + case 56: { + SkillCD = input.ReadInt32(); + break; + } + case 64: { + MaxLevel = input.ReadInt32(); + break; + } + case 74: { + RelatedSkill = input.ReadString(); + break; + } + case 80: { + SectionAmount = input.ReadInt32(); + break; + } + case 88: { + UseInterval = input.ReadInt32(); + break; + } + case 96: { + UseTimeHint = input.ReadInt32(); + break; + } + case 104: { + UltraEnergy = input.ReadInt32(); + break; + } + case 112: { + CheckCDRestore = input.ReadBool(); + break; + } + case 120: { + ForceRunFinish = input.ReadBool(); + break; + } + case 128: { + GetEnergyLimit = input.ReadInt32(); + break; + } + case 138: { + Param1 = input.ReadString(); + break; + } + case 146: { + Param2 = input.ReadString(); + break; + } + case 154: { + Param3 = input.ReadString(); + break; + } + case 162: { + Param4 = input.ReadString(); + break; + } + case 170: { + Param5 = input.ReadString(); + break; + } + case 178: { + Param6 = input.ReadString(); + break; + } + case 186: { + Param7 = input.ReadString(); + break; + } + case 194: { + Param8 = input.ReadString(); + break; + } + case 202: { + Param9 = input.ReadString(); + break; + } + case 210: { + Param10 = input.ReadString(); + break; + } + case 216: { + IsCleanSkillCD = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + FCPath = input.ReadString(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Icon = input.ReadString(); + break; + } + case 56: { + SkillCD = input.ReadInt32(); + break; + } + case 64: { + MaxLevel = input.ReadInt32(); + break; + } + case 74: { + RelatedSkill = input.ReadString(); + break; + } + case 80: { + SectionAmount = input.ReadInt32(); + break; + } + case 88: { + UseInterval = input.ReadInt32(); + break; + } + case 96: { + UseTimeHint = input.ReadInt32(); + break; + } + case 104: { + UltraEnergy = input.ReadInt32(); + break; + } + case 112: { + CheckCDRestore = input.ReadBool(); + break; + } + case 120: { + ForceRunFinish = input.ReadBool(); + break; + } + case 128: { + GetEnergyLimit = input.ReadInt32(); + break; + } + case 138: { + Param1 = input.ReadString(); + break; + } + case 146: { + Param2 = input.ReadString(); + break; + } + case 154: { + Param3 = input.ReadString(); + break; + } + case 162: { + Param4 = input.ReadString(); + break; + } + case 170: { + Param5 = input.ReadString(); + break; + } + case 178: { + Param6 = input.ReadString(); + break; + } + case 186: { + Param7 = input.ReadString(); + break; + } + case 194: { + Param8 = input.ReadString(); + break; + } + case 202: { + Param9 = input.ReadString(); + break; + } + case 210: { + Param10 = input.ReadString(); + break; + } + case 216: { + IsCleanSkillCD = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/SkillDamage.cs b/NTR.Common/protos/SkillDamage.cs new file mode 100644 index 0000000..6a2fd6c --- /dev/null +++ b/NTR.Common/protos/SkillDamage.cs @@ -0,0 +1,269 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SkillDamage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from SkillDamage.proto + public static partial class SkillDamageReflection { + + #region Descriptor + /// File descriptor for SkillDamage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SkillDamageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFTa2lsbERhbWFnZS5wcm90byItCgtTa2lsbERhbWFnZRIKCgJpZBgBIAEo", + "BRISCgpsX3ZfZGFtYWdlGAIgAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.SkillDamage), global::Nova.Client.SkillDamage.Parser, new[]{ "Id", "LVDamage" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SkillDamage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SkillDamage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.SkillDamageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SkillDamage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SkillDamage(SkillDamage other) : this() { + id_ = other.id_; + lVDamage_ = other.lVDamage_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SkillDamage Clone() { + return new SkillDamage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "l_v_damage" field. + public const int LVDamageFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_lVDamage_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField lVDamage_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LVDamage { + get { return lVDamage_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SkillDamage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SkillDamage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!lVDamage_.Equals(other.lVDamage_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= lVDamage_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + lVDamage_.WriteTo(output, _repeated_lVDamage_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + lVDamage_.WriteTo(ref output, _repeated_lVDamage_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += lVDamage_.CalculateSize(_repeated_lVDamage_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SkillDamage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + lVDamage_.Add(other.lVDamage_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + lVDamage_.AddEntriesFrom(input, _repeated_lVDamage_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + lVDamage_.AddEntriesFrom(ref input, _repeated_lVDamage_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTower.cs b/NTR.Common/protos/StarTower.cs new file mode 100644 index 0000000..a916c4c --- /dev/null +++ b/NTR.Common/protos/StarTower.cs @@ -0,0 +1,1217 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTower.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTower.proto + public static partial class StarTowerReflection { + + #region Descriptor + /// File descriptor for StarTower.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9TdGFyVG93ZXIucHJvdG8i2QQKCVN0YXJUb3dlchIKCgJpZBgBIAEoBRIM", + "CgRuYW1lGAIgASgJEgwKBGRlc2MYAyABKAkSEAoIZ3JvdXBfaWQYBCABKAUS", + "FgoOcHJlX2NvbmRpdGlvbnMYBSABKAkSIAoYcHJldmlld19tb25zdGVyX2dy", + "b3VwX2lkGAYgASgFEhIKCmRpZmZpY3VsdHkYByABKAUSGAoQdmFsdWVfZGlm", + "ZmljdWx0eRgIIAEoBRIRCglyZWNvbW1lbmQYCSABKAUSEwoLY3VycmVuY3lf", + "aWQYCiABKAUSFwoPc3RhZ2VfZ3JvdXBfaWRzGAsgAygFEhEKCWZsb29yX251", + "bRgMIAMoBRIZChF0ZWFtX2V4cF9ncm91cF9pZBgNIAEoBRINCgVlX2VfdBgO", + "IAMoBRIRCglub3RfZV9lX3QYDyADKAUSDwoHZXBpc29kZRgQIAEoCRINCgVp", + "bWFnZRgRIAEoCRIQCghuX3BfY19pZBgSIAEoBRIWCg5yZXdhcmRfcHJldmll", + "dxgTIAEoCRIQCghzaG9wX25wYxgUIAEoBRIWCg5zdGFuZF9zaG9wX25wYxgV", + "IAEoBRITCgt1cGdyYWRlX25wYxgWIAEoBRISCgpyZXNxdWVfbnBjGBcgASgF", + "EhIKCmRhbmdlcl9ucGMYGCABKAUSEgoKaG9ycm9yX25wYxgZIAEoBRIYChBk", + "YW5nZXJfZW5kX2V2ZW50GBogASgFEhgKEGhvcnJvcl9lbmRfZXZlbnQYGyAB", + "KAUSIAoYZGVzdHJ1Y3RpYmxlX29iamVjdF90eXBlGBwgASgFQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTower), global::Nova.Client.StarTower.Parser, new[]{ "Id", "Name", "Desc", "GroupId", "PreConditions", "PreviewMonsterGroupId", "Difficulty", "ValueDifficulty", "Recommend", "CurrencyId", "StageGroupIds", "FloorNum", "TeamExpGroupId", "EET", "NotEET", "Episode", "Image", "NPCId", "RewardPreview", "ShopNpc", "StandShopNpc", "UpgradeNpc", "ResqueNpc", "DangerNpc", "HorrorNpc", "DangerEndEvent", "HorrorEndEvent", "DestructibleObjectType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTower : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTower()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTower() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTower(StarTower other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + groupId_ = other.groupId_; + preConditions_ = other.preConditions_; + previewMonsterGroupId_ = other.previewMonsterGroupId_; + difficulty_ = other.difficulty_; + valueDifficulty_ = other.valueDifficulty_; + recommend_ = other.recommend_; + currencyId_ = other.currencyId_; + stageGroupIds_ = other.stageGroupIds_.Clone(); + floorNum_ = other.floorNum_.Clone(); + teamExpGroupId_ = other.teamExpGroupId_; + eET_ = other.eET_.Clone(); + notEET_ = other.notEET_.Clone(); + episode_ = other.episode_; + image_ = other.image_; + nPCId_ = other.nPCId_; + rewardPreview_ = other.rewardPreview_; + shopNpc_ = other.shopNpc_; + standShopNpc_ = other.standShopNpc_; + upgradeNpc_ = other.upgradeNpc_; + resqueNpc_ = other.resqueNpc_; + dangerNpc_ = other.dangerNpc_; + horrorNpc_ = other.horrorNpc_; + dangerEndEvent_ = other.dangerEndEvent_; + horrorEndEvent_ = other.horrorEndEvent_; + destructibleObjectType_ = other.destructibleObjectType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTower Clone() { + return new StarTower(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 4; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "pre_conditions" field. + public const int PreConditionsFieldNumber = 5; + private string preConditions_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PreConditions { + get { return preConditions_; } + set { + preConditions_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "preview_monster_group_id" field. + public const int PreviewMonsterGroupIdFieldNumber = 6; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 7; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "value_difficulty" field. + public const int ValueDifficultyFieldNumber = 8; + private int valueDifficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ValueDifficulty { + get { return valueDifficulty_; } + set { + valueDifficulty_ = value; + } + } + + /// Field number for the "recommend" field. + public const int RecommendFieldNumber = 9; + private int recommend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Recommend { + get { return recommend_; } + set { + recommend_ = value; + } + } + + /// Field number for the "currency_id" field. + public const int CurrencyIdFieldNumber = 10; + private int currencyId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyId { + get { return currencyId_; } + set { + currencyId_ = value; + } + } + + /// Field number for the "stage_group_ids" field. + public const int StageGroupIdsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_stageGroupIds_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField stageGroupIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StageGroupIds { + get { return stageGroupIds_; } + } + + /// Field number for the "floor_num" field. + public const int FloorNumFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_floorNum_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField floorNum_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FloorNum { + get { return floorNum_; } + } + + /// Field number for the "team_exp_group_id" field. + public const int TeamExpGroupIdFieldNumber = 13; + private int teamExpGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TeamExpGroupId { + get { return teamExpGroupId_; } + set { + teamExpGroupId_ = value; + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_eET_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField eET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EET { + get { return eET_; } + } + + /// Field number for the "not_e_e_t" field. + public const int NotEETFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_notEET_codec + = pb::FieldCodec.ForInt32(122); + private readonly pbc::RepeatedField notEET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NotEET { + get { return notEET_; } + } + + /// Field number for the "episode" field. + public const int EpisodeFieldNumber = 16; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 17; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "n_p_c_id" field. + public const int NPCIdFieldNumber = 18; + private int nPCId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NPCId { + get { return nPCId_; } + set { + nPCId_ = value; + } + } + + /// Field number for the "reward_preview" field. + public const int RewardPreviewFieldNumber = 19; + private string rewardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardPreview { + get { return rewardPreview_; } + set { + rewardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "shop_npc" field. + public const int ShopNpcFieldNumber = 20; + private int shopNpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShopNpc { + get { return shopNpc_; } + set { + shopNpc_ = value; + } + } + + /// Field number for the "stand_shop_npc" field. + public const int StandShopNpcFieldNumber = 21; + private int standShopNpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StandShopNpc { + get { return standShopNpc_; } + set { + standShopNpc_ = value; + } + } + + /// Field number for the "upgrade_npc" field. + public const int UpgradeNpcFieldNumber = 22; + private int upgradeNpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UpgradeNpc { + get { return upgradeNpc_; } + set { + upgradeNpc_ = value; + } + } + + /// Field number for the "resque_npc" field. + public const int ResqueNpcFieldNumber = 23; + private int resqueNpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ResqueNpc { + get { return resqueNpc_; } + set { + resqueNpc_ = value; + } + } + + /// Field number for the "danger_npc" field. + public const int DangerNpcFieldNumber = 24; + private int dangerNpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DangerNpc { + get { return dangerNpc_; } + set { + dangerNpc_ = value; + } + } + + /// Field number for the "horror_npc" field. + public const int HorrorNpcFieldNumber = 25; + private int horrorNpc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HorrorNpc { + get { return horrorNpc_; } + set { + horrorNpc_ = value; + } + } + + /// Field number for the "danger_end_event" field. + public const int DangerEndEventFieldNumber = 26; + private int dangerEndEvent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DangerEndEvent { + get { return dangerEndEvent_; } + set { + dangerEndEvent_ = value; + } + } + + /// Field number for the "horror_end_event" field. + public const int HorrorEndEventFieldNumber = 27; + private int horrorEndEvent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HorrorEndEvent { + get { return horrorEndEvent_; } + set { + horrorEndEvent_ = value; + } + } + + /// Field number for the "destructible_object_type" field. + public const int DestructibleObjectTypeFieldNumber = 28; + private int destructibleObjectType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DestructibleObjectType { + get { return destructibleObjectType_; } + set { + destructibleObjectType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTower); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTower other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (GroupId != other.GroupId) return false; + if (PreConditions != other.PreConditions) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if (Difficulty != other.Difficulty) return false; + if (ValueDifficulty != other.ValueDifficulty) return false; + if (Recommend != other.Recommend) return false; + if (CurrencyId != other.CurrencyId) return false; + if(!stageGroupIds_.Equals(other.stageGroupIds_)) return false; + if(!floorNum_.Equals(other.floorNum_)) return false; + if (TeamExpGroupId != other.TeamExpGroupId) return false; + if(!eET_.Equals(other.eET_)) return false; + if(!notEET_.Equals(other.notEET_)) return false; + if (Episode != other.Episode) return false; + if (Image != other.Image) return false; + if (NPCId != other.NPCId) return false; + if (RewardPreview != other.RewardPreview) return false; + if (ShopNpc != other.ShopNpc) return false; + if (StandShopNpc != other.StandShopNpc) return false; + if (UpgradeNpc != other.UpgradeNpc) return false; + if (ResqueNpc != other.ResqueNpc) return false; + if (DangerNpc != other.DangerNpc) return false; + if (HorrorNpc != other.HorrorNpc) return false; + if (DangerEndEvent != other.DangerEndEvent) return false; + if (HorrorEndEvent != other.HorrorEndEvent) return false; + if (DestructibleObjectType != other.DestructibleObjectType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (PreConditions.Length != 0) hash ^= PreConditions.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (ValueDifficulty != 0) hash ^= ValueDifficulty.GetHashCode(); + if (Recommend != 0) hash ^= Recommend.GetHashCode(); + if (CurrencyId != 0) hash ^= CurrencyId.GetHashCode(); + hash ^= stageGroupIds_.GetHashCode(); + hash ^= floorNum_.GetHashCode(); + if (TeamExpGroupId != 0) hash ^= TeamExpGroupId.GetHashCode(); + hash ^= eET_.GetHashCode(); + hash ^= notEET_.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + if (NPCId != 0) hash ^= NPCId.GetHashCode(); + if (RewardPreview.Length != 0) hash ^= RewardPreview.GetHashCode(); + if (ShopNpc != 0) hash ^= ShopNpc.GetHashCode(); + if (StandShopNpc != 0) hash ^= StandShopNpc.GetHashCode(); + if (UpgradeNpc != 0) hash ^= UpgradeNpc.GetHashCode(); + if (ResqueNpc != 0) hash ^= ResqueNpc.GetHashCode(); + if (DangerNpc != 0) hash ^= DangerNpc.GetHashCode(); + if (HorrorNpc != 0) hash ^= HorrorNpc.GetHashCode(); + if (DangerEndEvent != 0) hash ^= DangerEndEvent.GetHashCode(); + if (HorrorEndEvent != 0) hash ^= HorrorEndEvent.GetHashCode(); + if (DestructibleObjectType != 0) hash ^= DestructibleObjectType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (GroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(GroupId); + } + if (PreConditions.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PreConditions); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(48); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Difficulty != 0) { + output.WriteRawTag(56); + output.WriteInt32(Difficulty); + } + if (ValueDifficulty != 0) { + output.WriteRawTag(64); + output.WriteInt32(ValueDifficulty); + } + if (Recommend != 0) { + output.WriteRawTag(72); + output.WriteInt32(Recommend); + } + if (CurrencyId != 0) { + output.WriteRawTag(80); + output.WriteInt32(CurrencyId); + } + stageGroupIds_.WriteTo(output, _repeated_stageGroupIds_codec); + floorNum_.WriteTo(output, _repeated_floorNum_codec); + if (TeamExpGroupId != 0) { + output.WriteRawTag(104); + output.WriteInt32(TeamExpGroupId); + } + eET_.WriteTo(output, _repeated_eET_codec); + notEET_.WriteTo(output, _repeated_notEET_codec); + if (Episode.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Image); + } + if (NPCId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(NPCId); + } + if (RewardPreview.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(RewardPreview); + } + if (ShopNpc != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(ShopNpc); + } + if (StandShopNpc != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(StandShopNpc); + } + if (UpgradeNpc != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(UpgradeNpc); + } + if (ResqueNpc != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ResqueNpc); + } + if (DangerNpc != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(DangerNpc); + } + if (HorrorNpc != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(HorrorNpc); + } + if (DangerEndEvent != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(DangerEndEvent); + } + if (HorrorEndEvent != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(HorrorEndEvent); + } + if (DestructibleObjectType != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(DestructibleObjectType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (GroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(GroupId); + } + if (PreConditions.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PreConditions); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(48); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Difficulty != 0) { + output.WriteRawTag(56); + output.WriteInt32(Difficulty); + } + if (ValueDifficulty != 0) { + output.WriteRawTag(64); + output.WriteInt32(ValueDifficulty); + } + if (Recommend != 0) { + output.WriteRawTag(72); + output.WriteInt32(Recommend); + } + if (CurrencyId != 0) { + output.WriteRawTag(80); + output.WriteInt32(CurrencyId); + } + stageGroupIds_.WriteTo(ref output, _repeated_stageGroupIds_codec); + floorNum_.WriteTo(ref output, _repeated_floorNum_codec); + if (TeamExpGroupId != 0) { + output.WriteRawTag(104); + output.WriteInt32(TeamExpGroupId); + } + eET_.WriteTo(ref output, _repeated_eET_codec); + notEET_.WriteTo(ref output, _repeated_notEET_codec); + if (Episode.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Image); + } + if (NPCId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(NPCId); + } + if (RewardPreview.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(RewardPreview); + } + if (ShopNpc != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(ShopNpc); + } + if (StandShopNpc != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(StandShopNpc); + } + if (UpgradeNpc != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(UpgradeNpc); + } + if (ResqueNpc != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(ResqueNpc); + } + if (DangerNpc != 0) { + output.WriteRawTag(192, 1); + output.WriteInt32(DangerNpc); + } + if (HorrorNpc != 0) { + output.WriteRawTag(200, 1); + output.WriteInt32(HorrorNpc); + } + if (DangerEndEvent != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(DangerEndEvent); + } + if (HorrorEndEvent != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(HorrorEndEvent); + } + if (DestructibleObjectType != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(DestructibleObjectType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (PreConditions.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreConditions); + } + if (PreviewMonsterGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (ValueDifficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ValueDifficulty); + } + if (Recommend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Recommend); + } + if (CurrencyId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyId); + } + size += stageGroupIds_.CalculateSize(_repeated_stageGroupIds_codec); + size += floorNum_.CalculateSize(_repeated_floorNum_codec); + if (TeamExpGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TeamExpGroupId); + } + size += eET_.CalculateSize(_repeated_eET_codec); + size += notEET_.CalculateSize(_repeated_notEET_codec); + if (Episode.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Image.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Image); + } + if (NPCId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NPCId); + } + if (RewardPreview.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RewardPreview); + } + if (ShopNpc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ShopNpc); + } + if (StandShopNpc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(StandShopNpc); + } + if (UpgradeNpc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(UpgradeNpc); + } + if (ResqueNpc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ResqueNpc); + } + if (DangerNpc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DangerNpc); + } + if (HorrorNpc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HorrorNpc); + } + if (DangerEndEvent != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DangerEndEvent); + } + if (HorrorEndEvent != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(HorrorEndEvent); + } + if (DestructibleObjectType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DestructibleObjectType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTower other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.PreConditions.Length != 0) { + PreConditions = other.PreConditions; + } + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.ValueDifficulty != 0) { + ValueDifficulty = other.ValueDifficulty; + } + if (other.Recommend != 0) { + Recommend = other.Recommend; + } + if (other.CurrencyId != 0) { + CurrencyId = other.CurrencyId; + } + stageGroupIds_.Add(other.stageGroupIds_); + floorNum_.Add(other.floorNum_); + if (other.TeamExpGroupId != 0) { + TeamExpGroupId = other.TeamExpGroupId; + } + eET_.Add(other.eET_); + notEET_.Add(other.notEET_); + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + if (other.NPCId != 0) { + NPCId = other.NPCId; + } + if (other.RewardPreview.Length != 0) { + RewardPreview = other.RewardPreview; + } + if (other.ShopNpc != 0) { + ShopNpc = other.ShopNpc; + } + if (other.StandShopNpc != 0) { + StandShopNpc = other.StandShopNpc; + } + if (other.UpgradeNpc != 0) { + UpgradeNpc = other.UpgradeNpc; + } + if (other.ResqueNpc != 0) { + ResqueNpc = other.ResqueNpc; + } + if (other.DangerNpc != 0) { + DangerNpc = other.DangerNpc; + } + if (other.HorrorNpc != 0) { + HorrorNpc = other.HorrorNpc; + } + if (other.DangerEndEvent != 0) { + DangerEndEvent = other.DangerEndEvent; + } + if (other.HorrorEndEvent != 0) { + HorrorEndEvent = other.HorrorEndEvent; + } + if (other.DestructibleObjectType != 0) { + DestructibleObjectType = other.DestructibleObjectType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + GroupId = input.ReadInt32(); + break; + } + case 42: { + PreConditions = input.ReadString(); + break; + } + case 48: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 56: { + Difficulty = input.ReadInt32(); + break; + } + case 64: { + ValueDifficulty = input.ReadInt32(); + break; + } + case 72: { + Recommend = input.ReadInt32(); + break; + } + case 80: { + CurrencyId = input.ReadInt32(); + break; + } + case 90: + case 88: { + stageGroupIds_.AddEntriesFrom(input, _repeated_stageGroupIds_codec); + break; + } + case 98: + case 96: { + floorNum_.AddEntriesFrom(input, _repeated_floorNum_codec); + break; + } + case 104: { + TeamExpGroupId = input.ReadInt32(); + break; + } + case 114: + case 112: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + case 122: + case 120: { + notEET_.AddEntriesFrom(input, _repeated_notEET_codec); + break; + } + case 130: { + Episode = input.ReadString(); + break; + } + case 138: { + Image = input.ReadString(); + break; + } + case 144: { + NPCId = input.ReadInt32(); + break; + } + case 154: { + RewardPreview = input.ReadString(); + break; + } + case 160: { + ShopNpc = input.ReadInt32(); + break; + } + case 168: { + StandShopNpc = input.ReadInt32(); + break; + } + case 176: { + UpgradeNpc = input.ReadInt32(); + break; + } + case 184: { + ResqueNpc = input.ReadInt32(); + break; + } + case 192: { + DangerNpc = input.ReadInt32(); + break; + } + case 200: { + HorrorNpc = input.ReadInt32(); + break; + } + case 208: { + DangerEndEvent = input.ReadInt32(); + break; + } + case 216: { + HorrorEndEvent = input.ReadInt32(); + break; + } + case 224: { + DestructibleObjectType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + GroupId = input.ReadInt32(); + break; + } + case 42: { + PreConditions = input.ReadString(); + break; + } + case 48: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 56: { + Difficulty = input.ReadInt32(); + break; + } + case 64: { + ValueDifficulty = input.ReadInt32(); + break; + } + case 72: { + Recommend = input.ReadInt32(); + break; + } + case 80: { + CurrencyId = input.ReadInt32(); + break; + } + case 90: + case 88: { + stageGroupIds_.AddEntriesFrom(ref input, _repeated_stageGroupIds_codec); + break; + } + case 98: + case 96: { + floorNum_.AddEntriesFrom(ref input, _repeated_floorNum_codec); + break; + } + case 104: { + TeamExpGroupId = input.ReadInt32(); + break; + } + case 114: + case 112: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + case 122: + case 120: { + notEET_.AddEntriesFrom(ref input, _repeated_notEET_codec); + break; + } + case 130: { + Episode = input.ReadString(); + break; + } + case 138: { + Image = input.ReadString(); + break; + } + case 144: { + NPCId = input.ReadInt32(); + break; + } + case 154: { + RewardPreview = input.ReadString(); + break; + } + case 160: { + ShopNpc = input.ReadInt32(); + break; + } + case 168: { + StandShopNpc = input.ReadInt32(); + break; + } + case 176: { + UpgradeNpc = input.ReadInt32(); + break; + } + case 184: { + ResqueNpc = input.ReadInt32(); + break; + } + case 192: { + DangerNpc = input.ReadInt32(); + break; + } + case 200: { + HorrorNpc = input.ReadInt32(); + break; + } + case 208: { + DangerEndEvent = input.ReadInt32(); + break; + } + case 216: { + HorrorEndEvent = input.ReadInt32(); + break; + } + case 224: { + DestructibleObjectType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBattleThreshold.cs b/NTR.Common/protos/StarTowerBattleThreshold.cs new file mode 100644 index 0000000..e5eb527 --- /dev/null +++ b/NTR.Common/protos/StarTowerBattleThreshold.cs @@ -0,0 +1,955 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBattleThreshold.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBattleThreshold.proto + public static partial class StarTowerBattleThresholdReflection { + + #region Descriptor + /// File descriptor for StarTowerBattleThreshold.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBattleThresholdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TdGFyVG93ZXJCYXR0bGVUaHJlc2hvbGQucHJvdG8i8QMKGFN0YXJUb3dl", + "ckJhdHRsZVRocmVzaG9sZBISCgptaXNzaW9uX2lkGAEgASgFEg8KB3ZlcnNp", + "b24YAiABKAUSFAoMZnJvbV9zcmNfYXRrGAMgASgFEiEKGWZyb21fcGVya19p", + "bnRlbnNpdHlfcmF0aW8YBCABKAUSGwoTZnJvbV9zbG90X2RtZ19yYXRpbxgF", + "IAEoBRIQCghmcm9tX2VfZRgGIAEoBRIaChJmcm9tX2dlbl9kbWdfcmF0aW8Y", + "ByABKAUSFQoNZnJvbV9kbWdfcGx1cxgIIAEoBRIXCg9mcm9tX2NyaXRfcmF0", + "aW8YCSABKAUSHAoUZnJvbV9maW5hbF9kbWdfcmF0aW8YCiABKAUSGwoTZnJv", + "bV9maW5hbF9kbWdfcGx1cxgLIAEoBRITCgt0b19lcl9hbWVuZBgMIAEoBRIU", + "Cgx0b19kZWZfYW1lbmQYDSABKAUSHQoVdG9fcmNkX3Nsb3RfZG1nX3JhdGlv", + "GA4gASgFEhQKDHRvX2VfZV9yX2NfZBgPIAEoBRIcChR0b19nZW5fZG1nX3Jj", + "ZF9yYXRpbxgQIAEoBRIXCg90b19kbWdfcGx1c19yY2QYESABKAUSCwoDZG1n", + "GBIgASgFEhEKCWNyaXRfcmF0ZRgTIAEoBRIKCgJocBgUIAEoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBattleThreshold), global::Nova.Client.StarTowerBattleThreshold.Parser, new[]{ "MissionId", "Version", "FromSrcAtk", "FromPerkIntensityRatio", "FromSlotDmgRatio", "FromEE", "FromGenDmgRatio", "FromDmgPlus", "FromCritRatio", "FromFinalDmgRatio", "FromFinalDmgPlus", "ToErAmend", "ToDefAmend", "ToRcdSlotDmgRatio", "ToEERCD", "ToGenDmgRcdRatio", "ToDmgPlusRcd", "Dmg", "CritRate", "Hp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBattleThreshold : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBattleThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBattleThresholdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBattleThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBattleThreshold(StarTowerBattleThreshold other) : this() { + missionId_ = other.missionId_; + version_ = other.version_; + fromSrcAtk_ = other.fromSrcAtk_; + fromPerkIntensityRatio_ = other.fromPerkIntensityRatio_; + fromSlotDmgRatio_ = other.fromSlotDmgRatio_; + fromEE_ = other.fromEE_; + fromGenDmgRatio_ = other.fromGenDmgRatio_; + fromDmgPlus_ = other.fromDmgPlus_; + fromCritRatio_ = other.fromCritRatio_; + fromFinalDmgRatio_ = other.fromFinalDmgRatio_; + fromFinalDmgPlus_ = other.fromFinalDmgPlus_; + toErAmend_ = other.toErAmend_; + toDefAmend_ = other.toDefAmend_; + toRcdSlotDmgRatio_ = other.toRcdSlotDmgRatio_; + toEERCD_ = other.toEERCD_; + toGenDmgRcdRatio_ = other.toGenDmgRcdRatio_; + toDmgPlusRcd_ = other.toDmgPlusRcd_; + dmg_ = other.dmg_; + critRate_ = other.critRate_; + hp_ = other.hp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBattleThreshold Clone() { + return new StarTowerBattleThreshold(this); + } + + /// Field number for the "mission_id" field. + public const int MissionIdFieldNumber = 1; + private int missionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MissionId { + get { return missionId_; } + set { + missionId_ = value; + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private int version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "from_src_atk" field. + public const int FromSrcAtkFieldNumber = 3; + private int fromSrcAtk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromSrcAtk { + get { return fromSrcAtk_; } + set { + fromSrcAtk_ = value; + } + } + + /// Field number for the "from_perk_intensity_ratio" field. + public const int FromPerkIntensityRatioFieldNumber = 4; + private int fromPerkIntensityRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromPerkIntensityRatio { + get { return fromPerkIntensityRatio_; } + set { + fromPerkIntensityRatio_ = value; + } + } + + /// Field number for the "from_slot_dmg_ratio" field. + public const int FromSlotDmgRatioFieldNumber = 5; + private int fromSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromSlotDmgRatio { + get { return fromSlotDmgRatio_; } + set { + fromSlotDmgRatio_ = value; + } + } + + /// Field number for the "from_e_e" field. + public const int FromEEFieldNumber = 6; + private int fromEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromEE { + get { return fromEE_; } + set { + fromEE_ = value; + } + } + + /// Field number for the "from_gen_dmg_ratio" field. + public const int FromGenDmgRatioFieldNumber = 7; + private int fromGenDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromGenDmgRatio { + get { return fromGenDmgRatio_; } + set { + fromGenDmgRatio_ = value; + } + } + + /// Field number for the "from_dmg_plus" field. + public const int FromDmgPlusFieldNumber = 8; + private int fromDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromDmgPlus { + get { return fromDmgPlus_; } + set { + fromDmgPlus_ = value; + } + } + + /// Field number for the "from_crit_ratio" field. + public const int FromCritRatioFieldNumber = 9; + private int fromCritRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromCritRatio { + get { return fromCritRatio_; } + set { + fromCritRatio_ = value; + } + } + + /// Field number for the "from_final_dmg_ratio" field. + public const int FromFinalDmgRatioFieldNumber = 10; + private int fromFinalDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromFinalDmgRatio { + get { return fromFinalDmgRatio_; } + set { + fromFinalDmgRatio_ = value; + } + } + + /// Field number for the "from_final_dmg_plus" field. + public const int FromFinalDmgPlusFieldNumber = 11; + private int fromFinalDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromFinalDmgPlus { + get { return fromFinalDmgPlus_; } + set { + fromFinalDmgPlus_ = value; + } + } + + /// Field number for the "to_er_amend" field. + public const int ToErAmendFieldNumber = 12; + private int toErAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToErAmend { + get { return toErAmend_; } + set { + toErAmend_ = value; + } + } + + /// Field number for the "to_def_amend" field. + public const int ToDefAmendFieldNumber = 13; + private int toDefAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToDefAmend { + get { return toDefAmend_; } + set { + toDefAmend_ = value; + } + } + + /// Field number for the "to_rcd_slot_dmg_ratio" field. + public const int ToRcdSlotDmgRatioFieldNumber = 14; + private int toRcdSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToRcdSlotDmgRatio { + get { return toRcdSlotDmgRatio_; } + set { + toRcdSlotDmgRatio_ = value; + } + } + + /// Field number for the "to_e_e_r_c_d" field. + public const int ToEERCDFieldNumber = 15; + private int toEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToEERCD { + get { return toEERCD_; } + set { + toEERCD_ = value; + } + } + + /// Field number for the "to_gen_dmg_rcd_ratio" field. + public const int ToGenDmgRcdRatioFieldNumber = 16; + private int toGenDmgRcdRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToGenDmgRcdRatio { + get { return toGenDmgRcdRatio_; } + set { + toGenDmgRcdRatio_ = value; + } + } + + /// Field number for the "to_dmg_plus_rcd" field. + public const int ToDmgPlusRcdFieldNumber = 17; + private int toDmgPlusRcd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToDmgPlusRcd { + get { return toDmgPlusRcd_; } + set { + toDmgPlusRcd_ = value; + } + } + + /// Field number for the "dmg" field. + public const int DmgFieldNumber = 18; + private int dmg_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Dmg { + get { return dmg_; } + set { + dmg_ = value; + } + } + + /// Field number for the "crit_rate" field. + public const int CritRateFieldNumber = 19; + private int critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 20; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBattleThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBattleThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MissionId != other.MissionId) return false; + if (Version != other.Version) return false; + if (FromSrcAtk != other.FromSrcAtk) return false; + if (FromPerkIntensityRatio != other.FromPerkIntensityRatio) return false; + if (FromSlotDmgRatio != other.FromSlotDmgRatio) return false; + if (FromEE != other.FromEE) return false; + if (FromGenDmgRatio != other.FromGenDmgRatio) return false; + if (FromDmgPlus != other.FromDmgPlus) return false; + if (FromCritRatio != other.FromCritRatio) return false; + if (FromFinalDmgRatio != other.FromFinalDmgRatio) return false; + if (FromFinalDmgPlus != other.FromFinalDmgPlus) return false; + if (ToErAmend != other.ToErAmend) return false; + if (ToDefAmend != other.ToDefAmend) return false; + if (ToRcdSlotDmgRatio != other.ToRcdSlotDmgRatio) return false; + if (ToEERCD != other.ToEERCD) return false; + if (ToGenDmgRcdRatio != other.ToGenDmgRcdRatio) return false; + if (ToDmgPlusRcd != other.ToDmgPlusRcd) return false; + if (Dmg != other.Dmg) return false; + if (CritRate != other.CritRate) return false; + if (Hp != other.Hp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MissionId != 0) hash ^= MissionId.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (FromSrcAtk != 0) hash ^= FromSrcAtk.GetHashCode(); + if (FromPerkIntensityRatio != 0) hash ^= FromPerkIntensityRatio.GetHashCode(); + if (FromSlotDmgRatio != 0) hash ^= FromSlotDmgRatio.GetHashCode(); + if (FromEE != 0) hash ^= FromEE.GetHashCode(); + if (FromGenDmgRatio != 0) hash ^= FromGenDmgRatio.GetHashCode(); + if (FromDmgPlus != 0) hash ^= FromDmgPlus.GetHashCode(); + if (FromCritRatio != 0) hash ^= FromCritRatio.GetHashCode(); + if (FromFinalDmgRatio != 0) hash ^= FromFinalDmgRatio.GetHashCode(); + if (FromFinalDmgPlus != 0) hash ^= FromFinalDmgPlus.GetHashCode(); + if (ToErAmend != 0) hash ^= ToErAmend.GetHashCode(); + if (ToDefAmend != 0) hash ^= ToDefAmend.GetHashCode(); + if (ToRcdSlotDmgRatio != 0) hash ^= ToRcdSlotDmgRatio.GetHashCode(); + if (ToEERCD != 0) hash ^= ToEERCD.GetHashCode(); + if (ToGenDmgRcdRatio != 0) hash ^= ToGenDmgRcdRatio.GetHashCode(); + if (ToDmgPlusRcd != 0) hash ^= ToDmgPlusRcd.GetHashCode(); + if (Dmg != 0) hash ^= Dmg.GetHashCode(); + if (CritRate != 0) hash ^= CritRate.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MissionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(MissionId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (FromSrcAtk != 0) { + output.WriteRawTag(24); + output.WriteInt32(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + output.WriteRawTag(32); + output.WriteInt32(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + output.WriteRawTag(40); + output.WriteInt32(FromSlotDmgRatio); + } + if (FromEE != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromEE); + } + if (FromGenDmgRatio != 0) { + output.WriteRawTag(56); + output.WriteInt32(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + output.WriteRawTag(64); + output.WriteInt32(FromDmgPlus); + } + if (FromCritRatio != 0) { + output.WriteRawTag(72); + output.WriteInt32(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + output.WriteRawTag(88); + output.WriteInt32(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + output.WriteRawTag(96); + output.WriteInt32(ToErAmend); + } + if (ToDefAmend != 0) { + output.WriteRawTag(104); + output.WriteInt32(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + output.WriteRawTag(120); + output.WriteInt32(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ToDmgPlusRcd); + } + if (Dmg != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Dmg); + } + if (CritRate != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(CritRate); + } + if (Hp != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Hp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MissionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(MissionId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (FromSrcAtk != 0) { + output.WriteRawTag(24); + output.WriteInt32(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + output.WriteRawTag(32); + output.WriteInt32(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + output.WriteRawTag(40); + output.WriteInt32(FromSlotDmgRatio); + } + if (FromEE != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromEE); + } + if (FromGenDmgRatio != 0) { + output.WriteRawTag(56); + output.WriteInt32(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + output.WriteRawTag(64); + output.WriteInt32(FromDmgPlus); + } + if (FromCritRatio != 0) { + output.WriteRawTag(72); + output.WriteInt32(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + output.WriteRawTag(88); + output.WriteInt32(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + output.WriteRawTag(96); + output.WriteInt32(ToErAmend); + } + if (ToDefAmend != 0) { + output.WriteRawTag(104); + output.WriteInt32(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + output.WriteRawTag(120); + output.WriteInt32(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ToDmgPlusRcd); + } + if (Dmg != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Dmg); + } + if (CritRate != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(CritRate); + } + if (Hp != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Hp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MissionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MissionId); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (FromSrcAtk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromSlotDmgRatio); + } + if (FromEE != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromEE); + } + if (FromGenDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromDmgPlus); + } + if (FromCritRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToErAmend); + } + if (ToDefAmend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToDmgPlusRcd); + } + if (Dmg != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dmg); + } + if (CritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritRate); + } + if (Hp != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBattleThreshold other) { + if (other == null) { + return; + } + if (other.MissionId != 0) { + MissionId = other.MissionId; + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.FromSrcAtk != 0) { + FromSrcAtk = other.FromSrcAtk; + } + if (other.FromPerkIntensityRatio != 0) { + FromPerkIntensityRatio = other.FromPerkIntensityRatio; + } + if (other.FromSlotDmgRatio != 0) { + FromSlotDmgRatio = other.FromSlotDmgRatio; + } + if (other.FromEE != 0) { + FromEE = other.FromEE; + } + if (other.FromGenDmgRatio != 0) { + FromGenDmgRatio = other.FromGenDmgRatio; + } + if (other.FromDmgPlus != 0) { + FromDmgPlus = other.FromDmgPlus; + } + if (other.FromCritRatio != 0) { + FromCritRatio = other.FromCritRatio; + } + if (other.FromFinalDmgRatio != 0) { + FromFinalDmgRatio = other.FromFinalDmgRatio; + } + if (other.FromFinalDmgPlus != 0) { + FromFinalDmgPlus = other.FromFinalDmgPlus; + } + if (other.ToErAmend != 0) { + ToErAmend = other.ToErAmend; + } + if (other.ToDefAmend != 0) { + ToDefAmend = other.ToDefAmend; + } + if (other.ToRcdSlotDmgRatio != 0) { + ToRcdSlotDmgRatio = other.ToRcdSlotDmgRatio; + } + if (other.ToEERCD != 0) { + ToEERCD = other.ToEERCD; + } + if (other.ToGenDmgRcdRatio != 0) { + ToGenDmgRcdRatio = other.ToGenDmgRcdRatio; + } + if (other.ToDmgPlusRcd != 0) { + ToDmgPlusRcd = other.ToDmgPlusRcd; + } + if (other.Dmg != 0) { + Dmg = other.Dmg; + } + if (other.CritRate != 0) { + CritRate = other.CritRate; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MissionId = input.ReadInt32(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + FromSrcAtk = input.ReadInt32(); + break; + } + case 32: { + FromPerkIntensityRatio = input.ReadInt32(); + break; + } + case 40: { + FromSlotDmgRatio = input.ReadInt32(); + break; + } + case 48: { + FromEE = input.ReadInt32(); + break; + } + case 56: { + FromGenDmgRatio = input.ReadInt32(); + break; + } + case 64: { + FromDmgPlus = input.ReadInt32(); + break; + } + case 72: { + FromCritRatio = input.ReadInt32(); + break; + } + case 80: { + FromFinalDmgRatio = input.ReadInt32(); + break; + } + case 88: { + FromFinalDmgPlus = input.ReadInt32(); + break; + } + case 96: { + ToErAmend = input.ReadInt32(); + break; + } + case 104: { + ToDefAmend = input.ReadInt32(); + break; + } + case 112: { + ToRcdSlotDmgRatio = input.ReadInt32(); + break; + } + case 120: { + ToEERCD = input.ReadInt32(); + break; + } + case 128: { + ToGenDmgRcdRatio = input.ReadInt32(); + break; + } + case 136: { + ToDmgPlusRcd = input.ReadInt32(); + break; + } + case 144: { + Dmg = input.ReadInt32(); + break; + } + case 152: { + CritRate = input.ReadInt32(); + break; + } + case 160: { + Hp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MissionId = input.ReadInt32(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + FromSrcAtk = input.ReadInt32(); + break; + } + case 32: { + FromPerkIntensityRatio = input.ReadInt32(); + break; + } + case 40: { + FromSlotDmgRatio = input.ReadInt32(); + break; + } + case 48: { + FromEE = input.ReadInt32(); + break; + } + case 56: { + FromGenDmgRatio = input.ReadInt32(); + break; + } + case 64: { + FromDmgPlus = input.ReadInt32(); + break; + } + case 72: { + FromCritRatio = input.ReadInt32(); + break; + } + case 80: { + FromFinalDmgRatio = input.ReadInt32(); + break; + } + case 88: { + FromFinalDmgPlus = input.ReadInt32(); + break; + } + case 96: { + ToErAmend = input.ReadInt32(); + break; + } + case 104: { + ToDefAmend = input.ReadInt32(); + break; + } + case 112: { + ToRcdSlotDmgRatio = input.ReadInt32(); + break; + } + case 120: { + ToEERCD = input.ReadInt32(); + break; + } + case 128: { + ToGenDmgRcdRatio = input.ReadInt32(); + break; + } + case 136: { + ToDmgPlusRcd = input.ReadInt32(); + break; + } + case 144: { + Dmg = input.ReadInt32(); + break; + } + case 152: { + CritRate = input.ReadInt32(); + break; + } + case 160: { + Hp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBookEntrance.cs b/NTR.Common/protos/StarTowerBookEntrance.cs new file mode 100644 index 0000000..13c570a --- /dev/null +++ b/NTR.Common/protos/StarTowerBookEntrance.cs @@ -0,0 +1,354 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBookEntrance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBookEntrance.proto + public static partial class StarTowerBookEntranceReflection { + + #region Descriptor + /// File descriptor for StarTowerBookEntrance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBookEntranceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTdGFyVG93ZXJCb29rRW50cmFuY2UucHJvdG8iUQoVU3RhclRvd2VyQm9v", + "a0VudHJhbmNlEgoKAmlkGAEgASgFEgwKBGljb24YAiABKAkSEAoIcG9zaXRp", + "b24YAyABKAkSDAoEZGVzYxgEIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBookEntrance), global::Nova.Client.StarTowerBookEntrance.Parser, new[]{ "Id", "Icon", "Position", "Desc" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBookEntrance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBookEntrance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBookEntranceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookEntrance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookEntrance(StarTowerBookEntrance other) : this() { + id_ = other.id_; + icon_ = other.icon_; + position_ = other.position_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookEntrance Clone() { + return new StarTowerBookEntrance(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 2; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 3; + private string position_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Position { + get { return position_; } + set { + position_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBookEntrance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBookEntrance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Icon != other.Icon) return false; + if (Position != other.Position) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Position.Length != 0) hash ^= Position.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (Position.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Position); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Icon.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Icon); + } + if (Position.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Position); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Position.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Position); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBookEntrance other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Position.Length != 0) { + Position = other.Position; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + case 26: { + Position = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Icon = input.ReadString(); + break; + } + case 26: { + Position = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBookEventReward.cs b/NTR.Common/protos/StarTowerBookEventReward.cs new file mode 100644 index 0000000..003bd02 --- /dev/null +++ b/NTR.Common/protos/StarTowerBookEventReward.cs @@ -0,0 +1,541 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBookEventReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBookEventReward.proto + public static partial class StarTowerBookEventRewardReflection { + + #region Descriptor + /// File descriptor for StarTowerBookEventReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBookEventRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TdGFyVG93ZXJCb29rRXZlbnRSZXdhcmQucHJvdG8iqQEKGFN0YXJUb3dl", + "ckJvb2tFdmVudFJld2FyZBIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEg0K", + "BXN0b3J5GAMgASgJEhAKCG5fcF9jX2lkGAQgASgFEgwKBHNvcnQYBSABKAUS", + "DgoGc291cmNlGAYgASgJEg8KB2l0ZW1faWQYByABKAUSEAoIaXRlbV9xdHkY", + "CCABKAUSEQoJaXNfYmFubmVkGAkgASgIQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBookEventReward), global::Nova.Client.StarTowerBookEventReward.Parser, new[]{ "Id", "Name", "Story", "NPCId", "Sort", "Source", "ItemId", "ItemQty", "IsBanned" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBookEventReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBookEventReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBookEventRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookEventReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookEventReward(StarTowerBookEventReward other) : this() { + id_ = other.id_; + name_ = other.name_; + story_ = other.story_; + nPCId_ = other.nPCId_; + sort_ = other.sort_; + source_ = other.source_; + itemId_ = other.itemId_; + itemQty_ = other.itemQty_; + isBanned_ = other.isBanned_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookEventReward Clone() { + return new StarTowerBookEventReward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "story" field. + public const int StoryFieldNumber = 3; + private string story_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Story { + get { return story_; } + set { + story_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "n_p_c_id" field. + public const int NPCIdFieldNumber = 4; + private int nPCId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NPCId { + get { return nPCId_; } + set { + nPCId_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 5; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 6; + private string source_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Source { + get { return source_; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 7; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_qty" field. + public const int ItemQtyFieldNumber = 8; + private int itemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty { + get { return itemQty_; } + set { + itemQty_ = value; + } + } + + /// Field number for the "is_banned" field. + public const int IsBannedFieldNumber = 9; + private bool isBanned_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBanned { + get { return isBanned_; } + set { + isBanned_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBookEventReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBookEventReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Story != other.Story) return false; + if (NPCId != other.NPCId) return false; + if (Sort != other.Sort) return false; + if (Source != other.Source) return false; + if (ItemId != other.ItemId) return false; + if (ItemQty != other.ItemQty) return false; + if (IsBanned != other.IsBanned) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Story.Length != 0) hash ^= Story.GetHashCode(); + if (NPCId != 0) hash ^= NPCId.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Source.Length != 0) hash ^= Source.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemQty != 0) hash ^= ItemQty.GetHashCode(); + if (IsBanned != false) hash ^= IsBanned.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Story.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Story); + } + if (NPCId != 0) { + output.WriteRawTag(32); + output.WriteInt32(NPCId); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (Source.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Source); + } + if (ItemId != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(64); + output.WriteInt32(ItemQty); + } + if (IsBanned != false) { + output.WriteRawTag(72); + output.WriteBool(IsBanned); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Story.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Story); + } + if (NPCId != 0) { + output.WriteRawTag(32); + output.WriteInt32(NPCId); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (Source.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Source); + } + if (ItemId != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(64); + output.WriteInt32(ItemQty); + } + if (IsBanned != false) { + output.WriteRawTag(72); + output.WriteBool(IsBanned); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Story.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Story); + } + if (NPCId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NPCId); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Source.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Source); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQty); + } + if (IsBanned != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBookEventReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Story.Length != 0) { + Story = other.Story; + } + if (other.NPCId != 0) { + NPCId = other.NPCId; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Source.Length != 0) { + Source = other.Source; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemQty != 0) { + ItemQty = other.ItemQty; + } + if (other.IsBanned != false) { + IsBanned = other.IsBanned; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Story = input.ReadString(); + break; + } + case 32: { + NPCId = input.ReadInt32(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + case 50: { + Source = input.ReadString(); + break; + } + case 56: { + ItemId = input.ReadInt32(); + break; + } + case 64: { + ItemQty = input.ReadInt32(); + break; + } + case 72: { + IsBanned = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Story = input.ReadString(); + break; + } + case 32: { + NPCId = input.ReadInt32(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + case 50: { + Source = input.ReadString(); + break; + } + case 56: { + ItemId = input.ReadInt32(); + break; + } + case 64: { + ItemQty = input.ReadInt32(); + break; + } + case 72: { + IsBanned = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBookFateCard.cs b/NTR.Common/protos/StarTowerBookFateCard.cs new file mode 100644 index 0000000..6883c5f --- /dev/null +++ b/NTR.Common/protos/StarTowerBookFateCard.cs @@ -0,0 +1,598 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBookFateCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBookFateCard.proto + public static partial class StarTowerBookFateCardReflection { + + #region Descriptor + /// File descriptor for StarTowerBookFateCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBookFateCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTdGFyVG93ZXJCb29rRmF0ZUNhcmQucHJvdG8i5QEKFVN0YXJUb3dlckJv", + "b2tGYXRlQ2FyZBIKCgJpZBgBIAEoBRIRCglidW5kbGVfaWQYAiABKAUSDAoE", + "aWNvbhgDIAEoCRIPCgdzb3J0X2lkGAQgASgFEg4KBnNvdXJjZRgFIAEoCRIS", + "Cgp1bmxvY2tfdGlwGAYgASgJEhMKC3dvcmxkX2NsYXNzGAcgASgFEhUKDXN0", + "YXJfdG93ZXJfaWQYCCABKAUSFQoNY29sbGVjdF9jYXJkcxgJIAMoBRIUCgx1", + "bmxvY2tfY2FyZHMYCiADKAUSEQoJaXNfYmFubmVkGAsgASgIQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBookFateCard), global::Nova.Client.StarTowerBookFateCard.Parser, new[]{ "Id", "BundleId", "Icon", "SortId", "Source", "UnlockTip", "WorldClass", "StarTowerId", "CollectCards", "UnlockCards", "IsBanned" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBookFateCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBookFateCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBookFateCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCard(StarTowerBookFateCard other) : this() { + id_ = other.id_; + bundleId_ = other.bundleId_; + icon_ = other.icon_; + sortId_ = other.sortId_; + source_ = other.source_; + unlockTip_ = other.unlockTip_; + worldClass_ = other.worldClass_; + starTowerId_ = other.starTowerId_; + collectCards_ = other.collectCards_.Clone(); + unlockCards_ = other.unlockCards_.Clone(); + isBanned_ = other.isBanned_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCard Clone() { + return new StarTowerBookFateCard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "bundle_id" field. + public const int BundleIdFieldNumber = 2; + private int bundleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BundleId { + get { return bundleId_; } + set { + bundleId_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 3; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort_id" field. + public const int SortIdFieldNumber = 4; + private int sortId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortId { + get { return sortId_; } + set { + sortId_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 5; + private string source_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Source { + get { return source_; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlock_tip" field. + public const int UnlockTipFieldNumber = 6; + private string unlockTip_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnlockTip { + get { return unlockTip_; } + set { + unlockTip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "world_class" field. + public const int WorldClassFieldNumber = 7; + private int worldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClass { + get { return worldClass_; } + set { + worldClass_ = value; + } + } + + /// Field number for the "star_tower_id" field. + public const int StarTowerIdFieldNumber = 8; + private int starTowerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StarTowerId { + get { return starTowerId_; } + set { + starTowerId_ = value; + } + } + + /// Field number for the "collect_cards" field. + public const int CollectCardsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_collectCards_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField collectCards_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CollectCards { + get { return collectCards_; } + } + + /// Field number for the "unlock_cards" field. + public const int UnlockCardsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_unlockCards_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField unlockCards_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockCards { + get { return unlockCards_; } + } + + /// Field number for the "is_banned" field. + public const int IsBannedFieldNumber = 11; + private bool isBanned_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBanned { + get { return isBanned_; } + set { + isBanned_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBookFateCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBookFateCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BundleId != other.BundleId) return false; + if (Icon != other.Icon) return false; + if (SortId != other.SortId) return false; + if (Source != other.Source) return false; + if (UnlockTip != other.UnlockTip) return false; + if (WorldClass != other.WorldClass) return false; + if (StarTowerId != other.StarTowerId) return false; + if(!collectCards_.Equals(other.collectCards_)) return false; + if(!unlockCards_.Equals(other.unlockCards_)) return false; + if (IsBanned != other.IsBanned) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BundleId != 0) hash ^= BundleId.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (SortId != 0) hash ^= SortId.GetHashCode(); + if (Source.Length != 0) hash ^= Source.GetHashCode(); + if (UnlockTip.Length != 0) hash ^= UnlockTip.GetHashCode(); + if (WorldClass != 0) hash ^= WorldClass.GetHashCode(); + if (StarTowerId != 0) hash ^= StarTowerId.GetHashCode(); + hash ^= collectCards_.GetHashCode(); + hash ^= unlockCards_.GetHashCode(); + if (IsBanned != false) hash ^= IsBanned.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BundleId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BundleId); + } + if (Icon.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon); + } + if (SortId != 0) { + output.WriteRawTag(32); + output.WriteInt32(SortId); + } + if (Source.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Source); + } + if (UnlockTip.Length != 0) { + output.WriteRawTag(50); + output.WriteString(UnlockTip); + } + if (WorldClass != 0) { + output.WriteRawTag(56); + output.WriteInt32(WorldClass); + } + if (StarTowerId != 0) { + output.WriteRawTag(64); + output.WriteInt32(StarTowerId); + } + collectCards_.WriteTo(output, _repeated_collectCards_codec); + unlockCards_.WriteTo(output, _repeated_unlockCards_codec); + if (IsBanned != false) { + output.WriteRawTag(88); + output.WriteBool(IsBanned); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BundleId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BundleId); + } + if (Icon.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Icon); + } + if (SortId != 0) { + output.WriteRawTag(32); + output.WriteInt32(SortId); + } + if (Source.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Source); + } + if (UnlockTip.Length != 0) { + output.WriteRawTag(50); + output.WriteString(UnlockTip); + } + if (WorldClass != 0) { + output.WriteRawTag(56); + output.WriteInt32(WorldClass); + } + if (StarTowerId != 0) { + output.WriteRawTag(64); + output.WriteInt32(StarTowerId); + } + collectCards_.WriteTo(ref output, _repeated_collectCards_codec); + unlockCards_.WriteTo(ref output, _repeated_unlockCards_codec); + if (IsBanned != false) { + output.WriteRawTag(88); + output.WriteBool(IsBanned); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BundleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BundleId); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (SortId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SortId); + } + if (Source.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Source); + } + if (UnlockTip.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UnlockTip); + } + if (WorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClass); + } + if (StarTowerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StarTowerId); + } + size += collectCards_.CalculateSize(_repeated_collectCards_codec); + size += unlockCards_.CalculateSize(_repeated_unlockCards_codec); + if (IsBanned != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBookFateCard other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BundleId != 0) { + BundleId = other.BundleId; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.SortId != 0) { + SortId = other.SortId; + } + if (other.Source.Length != 0) { + Source = other.Source; + } + if (other.UnlockTip.Length != 0) { + UnlockTip = other.UnlockTip; + } + if (other.WorldClass != 0) { + WorldClass = other.WorldClass; + } + if (other.StarTowerId != 0) { + StarTowerId = other.StarTowerId; + } + collectCards_.Add(other.collectCards_); + unlockCards_.Add(other.unlockCards_); + if (other.IsBanned != false) { + IsBanned = other.IsBanned; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BundleId = input.ReadInt32(); + break; + } + case 26: { + Icon = input.ReadString(); + break; + } + case 32: { + SortId = input.ReadInt32(); + break; + } + case 42: { + Source = input.ReadString(); + break; + } + case 50: { + UnlockTip = input.ReadString(); + break; + } + case 56: { + WorldClass = input.ReadInt32(); + break; + } + case 64: { + StarTowerId = input.ReadInt32(); + break; + } + case 74: + case 72: { + collectCards_.AddEntriesFrom(input, _repeated_collectCards_codec); + break; + } + case 82: + case 80: { + unlockCards_.AddEntriesFrom(input, _repeated_unlockCards_codec); + break; + } + case 88: { + IsBanned = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BundleId = input.ReadInt32(); + break; + } + case 26: { + Icon = input.ReadString(); + break; + } + case 32: { + SortId = input.ReadInt32(); + break; + } + case 42: { + Source = input.ReadString(); + break; + } + case 50: { + UnlockTip = input.ReadString(); + break; + } + case 56: { + WorldClass = input.ReadInt32(); + break; + } + case 64: { + StarTowerId = input.ReadInt32(); + break; + } + case 74: + case 72: { + collectCards_.AddEntriesFrom(ref input, _repeated_collectCards_codec); + break; + } + case 82: + case 80: { + unlockCards_.AddEntriesFrom(ref input, _repeated_unlockCards_codec); + break; + } + case 88: { + IsBanned = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBookFateCardBundle.cs b/NTR.Common/protos/StarTowerBookFateCardBundle.cs new file mode 100644 index 0000000..8d8bfc6 --- /dev/null +++ b/NTR.Common/protos/StarTowerBookFateCardBundle.cs @@ -0,0 +1,635 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBookFateCardBundle.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBookFateCardBundle.proto + public static partial class StarTowerBookFateCardBundleReflection { + + #region Descriptor + /// File descriptor for StarTowerBookFateCardBundle.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBookFateCardBundleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFTdGFyVG93ZXJCb29rRmF0ZUNhcmRCdW5kbGUucHJvdG8i+QEKG1N0YXJU", + "b3dlckJvb2tGYXRlQ2FyZEJ1bmRsZRIKCgJpZBgBIAEoBRIMCgRuYW1lGAIg", + "ASgJEhIKCnNob3J0X25hbWUYAyABKAkSDwoHc29ydF9pZBgEIAEoBRILCgN0", + "YWcYBSABKAkSEgoKc21hbGxfaWNvbhgGIAEoCRITCgtidW5kbGVfaWNvbhgH", + "IAEoCRIMCgRpY29uGAggASgJEhMKC3dvcmxkX2NsYXNzGAkgASgFEhUKDXN0", + "YXJfdG93ZXJfaWQYCiABKAUSFQoNY29sbGVjdF9jYXJkcxgLIAMoBRIUCgx1", + "bmxvY2tfY2FyZHMYDCADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBookFateCardBundle), global::Nova.Client.StarTowerBookFateCardBundle.Parser, new[]{ "Id", "Name", "ShortName", "SortId", "Tag", "SmallIcon", "BundleIcon", "Icon", "WorldClass", "StarTowerId", "CollectCards", "UnlockCards" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBookFateCardBundle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBookFateCardBundle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBookFateCardBundleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCardBundle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCardBundle(StarTowerBookFateCardBundle other) : this() { + id_ = other.id_; + name_ = other.name_; + shortName_ = other.shortName_; + sortId_ = other.sortId_; + tag_ = other.tag_; + smallIcon_ = other.smallIcon_; + bundleIcon_ = other.bundleIcon_; + icon_ = other.icon_; + worldClass_ = other.worldClass_; + starTowerId_ = other.starTowerId_; + collectCards_ = other.collectCards_.Clone(); + unlockCards_ = other.unlockCards_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCardBundle Clone() { + return new StarTowerBookFateCardBundle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "short_name" field. + public const int ShortNameFieldNumber = 3; + private string shortName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ShortName { + get { return shortName_; } + set { + shortName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort_id" field. + public const int SortIdFieldNumber = 4; + private int sortId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SortId { + get { return sortId_; } + set { + sortId_ = value; + } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 5; + private string tag_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Tag { + get { return tag_; } + set { + tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "small_icon" field. + public const int SmallIconFieldNumber = 6; + private string smallIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SmallIcon { + get { return smallIcon_; } + set { + smallIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bundle_icon" field. + public const int BundleIconFieldNumber = 7; + private string bundleIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BundleIcon { + get { return bundleIcon_; } + set { + bundleIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "world_class" field. + public const int WorldClassFieldNumber = 9; + private int worldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClass { + get { return worldClass_; } + set { + worldClass_ = value; + } + } + + /// Field number for the "star_tower_id" field. + public const int StarTowerIdFieldNumber = 10; + private int starTowerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StarTowerId { + get { return starTowerId_; } + set { + starTowerId_ = value; + } + } + + /// Field number for the "collect_cards" field. + public const int CollectCardsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_collectCards_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField collectCards_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CollectCards { + get { return collectCards_; } + } + + /// Field number for the "unlock_cards" field. + public const int UnlockCardsFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_unlockCards_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField unlockCards_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockCards { + get { return unlockCards_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBookFateCardBundle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBookFateCardBundle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (ShortName != other.ShortName) return false; + if (SortId != other.SortId) return false; + if (Tag != other.Tag) return false; + if (SmallIcon != other.SmallIcon) return false; + if (BundleIcon != other.BundleIcon) return false; + if (Icon != other.Icon) return false; + if (WorldClass != other.WorldClass) return false; + if (StarTowerId != other.StarTowerId) return false; + if(!collectCards_.Equals(other.collectCards_)) return false; + if(!unlockCards_.Equals(other.unlockCards_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ShortName.Length != 0) hash ^= ShortName.GetHashCode(); + if (SortId != 0) hash ^= SortId.GetHashCode(); + if (Tag.Length != 0) hash ^= Tag.GetHashCode(); + if (SmallIcon.Length != 0) hash ^= SmallIcon.GetHashCode(); + if (BundleIcon.Length != 0) hash ^= BundleIcon.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (WorldClass != 0) hash ^= WorldClass.GetHashCode(); + if (StarTowerId != 0) hash ^= StarTowerId.GetHashCode(); + hash ^= collectCards_.GetHashCode(); + hash ^= unlockCards_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ShortName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ShortName); + } + if (SortId != 0) { + output.WriteRawTag(32); + output.WriteInt32(SortId); + } + if (Tag.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Tag); + } + if (SmallIcon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SmallIcon); + } + if (BundleIcon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(BundleIcon); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (WorldClass != 0) { + output.WriteRawTag(72); + output.WriteInt32(WorldClass); + } + if (StarTowerId != 0) { + output.WriteRawTag(80); + output.WriteInt32(StarTowerId); + } + collectCards_.WriteTo(output, _repeated_collectCards_codec); + unlockCards_.WriteTo(output, _repeated_unlockCards_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (ShortName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ShortName); + } + if (SortId != 0) { + output.WriteRawTag(32); + output.WriteInt32(SortId); + } + if (Tag.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Tag); + } + if (SmallIcon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SmallIcon); + } + if (BundleIcon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(BundleIcon); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (WorldClass != 0) { + output.WriteRawTag(72); + output.WriteInt32(WorldClass); + } + if (StarTowerId != 0) { + output.WriteRawTag(80); + output.WriteInt32(StarTowerId); + } + collectCards_.WriteTo(ref output, _repeated_collectCards_codec); + unlockCards_.WriteTo(ref output, _repeated_unlockCards_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (ShortName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShortName); + } + if (SortId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SortId); + } + if (Tag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag); + } + if (SmallIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SmallIcon); + } + if (BundleIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BundleIcon); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (WorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClass); + } + if (StarTowerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StarTowerId); + } + size += collectCards_.CalculateSize(_repeated_collectCards_codec); + size += unlockCards_.CalculateSize(_repeated_unlockCards_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBookFateCardBundle other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ShortName.Length != 0) { + ShortName = other.ShortName; + } + if (other.SortId != 0) { + SortId = other.SortId; + } + if (other.Tag.Length != 0) { + Tag = other.Tag; + } + if (other.SmallIcon.Length != 0) { + SmallIcon = other.SmallIcon; + } + if (other.BundleIcon.Length != 0) { + BundleIcon = other.BundleIcon; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.WorldClass != 0) { + WorldClass = other.WorldClass; + } + if (other.StarTowerId != 0) { + StarTowerId = other.StarTowerId; + } + collectCards_.Add(other.collectCards_); + unlockCards_.Add(other.unlockCards_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + ShortName = input.ReadString(); + break; + } + case 32: { + SortId = input.ReadInt32(); + break; + } + case 42: { + Tag = input.ReadString(); + break; + } + case 50: { + SmallIcon = input.ReadString(); + break; + } + case 58: { + BundleIcon = input.ReadString(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 72: { + WorldClass = input.ReadInt32(); + break; + } + case 80: { + StarTowerId = input.ReadInt32(); + break; + } + case 90: + case 88: { + collectCards_.AddEntriesFrom(input, _repeated_collectCards_codec); + break; + } + case 98: + case 96: { + unlockCards_.AddEntriesFrom(input, _repeated_unlockCards_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + ShortName = input.ReadString(); + break; + } + case 32: { + SortId = input.ReadInt32(); + break; + } + case 42: { + Tag = input.ReadString(); + break; + } + case 50: { + SmallIcon = input.ReadString(); + break; + } + case 58: { + BundleIcon = input.ReadString(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 72: { + WorldClass = input.ReadInt32(); + break; + } + case 80: { + StarTowerId = input.ReadInt32(); + break; + } + case 90: + case 88: { + collectCards_.AddEntriesFrom(ref input, _repeated_collectCards_codec); + break; + } + case 98: + case 96: { + unlockCards_.AddEntriesFrom(ref input, _repeated_unlockCards_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBookFateCardQuest.cs b/NTR.Common/protos/StarTowerBookFateCardQuest.cs new file mode 100644 index 0000000..09e48e6 --- /dev/null +++ b/NTR.Common/protos/StarTowerBookFateCardQuest.cs @@ -0,0 +1,615 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBookFateCardQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBookFateCardQuest.proto + public static partial class StarTowerBookFateCardQuestReflection { + + #region Descriptor + /// File descriptor for StarTowerBookFateCardQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBookFateCardQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBTdGFyVG93ZXJCb29rRmF0ZUNhcmRRdWVzdC5wcm90byLJAQoaU3RhclRv", + "d2VyQm9va0ZhdGVDYXJkUXVlc3QSCgoCaWQYASABKAUSEQoJYnVuZGxlX2lk", + "GAIgASgFEgwKBGRlc2MYAyABKAkSEwoLZmluaXNoX3R5cGUYBCABKAUSFQoN", + "ZmluaXNoX3BhcmFtcxgFIAEoCRIMCgR0aWQxGAYgASgFEgwKBHF0eTEYByAB", + "KAUSDAoEdGlkMhgIIAEoBRIMCgRxdHkyGAkgASgFEgwKBHRpZDMYCiABKAUS", + "DAoEcXR5MxgLIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBookFateCardQuest), global::Nova.Client.StarTowerBookFateCardQuest.Parser, new[]{ "Id", "BundleId", "Desc", "FinishType", "FinishParams", "Tid1", "Qty1", "Tid2", "Qty2", "Tid3", "Qty3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBookFateCardQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBookFateCardQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBookFateCardQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCardQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCardQuest(StarTowerBookFateCardQuest other) : this() { + id_ = other.id_; + bundleId_ = other.bundleId_; + desc_ = other.desc_; + finishType_ = other.finishType_; + finishParams_ = other.finishParams_; + tid1_ = other.tid1_; + qty1_ = other.qty1_; + tid2_ = other.tid2_; + qty2_ = other.qty2_; + tid3_ = other.tid3_; + qty3_ = other.qty3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookFateCardQuest Clone() { + return new StarTowerBookFateCardQuest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "bundle_id" field. + public const int BundleIdFieldNumber = 2; + private int bundleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BundleId { + get { return bundleId_; } + set { + bundleId_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "finish_type" field. + public const int FinishTypeFieldNumber = 4; + private int finishType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinishType { + get { return finishType_; } + set { + finishType_ = value; + } + } + + /// Field number for the "finish_params" field. + public const int FinishParamsFieldNumber = 5; + private string finishParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FinishParams { + get { return finishParams_; } + set { + finishParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tid1" field. + public const int Tid1FieldNumber = 6; + private int tid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid1 { + get { return tid1_; } + set { + tid1_ = value; + } + } + + /// Field number for the "qty1" field. + public const int Qty1FieldNumber = 7; + private int qty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty1 { + get { return qty1_; } + set { + qty1_ = value; + } + } + + /// Field number for the "tid2" field. + public const int Tid2FieldNumber = 8; + private int tid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid2 { + get { return tid2_; } + set { + tid2_ = value; + } + } + + /// Field number for the "qty2" field. + public const int Qty2FieldNumber = 9; + private int qty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty2 { + get { return qty2_; } + set { + qty2_ = value; + } + } + + /// Field number for the "tid3" field. + public const int Tid3FieldNumber = 10; + private int tid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tid3 { + get { return tid3_; } + set { + tid3_ = value; + } + } + + /// Field number for the "qty3" field. + public const int Qty3FieldNumber = 11; + private int qty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Qty3 { + get { return qty3_; } + set { + qty3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBookFateCardQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBookFateCardQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BundleId != other.BundleId) return false; + if (Desc != other.Desc) return false; + if (FinishType != other.FinishType) return false; + if (FinishParams != other.FinishParams) return false; + if (Tid1 != other.Tid1) return false; + if (Qty1 != other.Qty1) return false; + if (Tid2 != other.Tid2) return false; + if (Qty2 != other.Qty2) return false; + if (Tid3 != other.Tid3) return false; + if (Qty3 != other.Qty3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BundleId != 0) hash ^= BundleId.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (FinishType != 0) hash ^= FinishType.GetHashCode(); + if (FinishParams.Length != 0) hash ^= FinishParams.GetHashCode(); + if (Tid1 != 0) hash ^= Tid1.GetHashCode(); + if (Qty1 != 0) hash ^= Qty1.GetHashCode(); + if (Tid2 != 0) hash ^= Tid2.GetHashCode(); + if (Qty2 != 0) hash ^= Qty2.GetHashCode(); + if (Tid3 != 0) hash ^= Tid3.GetHashCode(); + if (Qty3 != 0) hash ^= Qty3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BundleId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BundleId); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (FinishType != 0) { + output.WriteRawTag(32); + output.WriteInt32(FinishType); + } + if (FinishParams.Length != 0) { + output.WriteRawTag(42); + output.WriteString(FinishParams); + } + if (Tid1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Qty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BundleId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BundleId); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (FinishType != 0) { + output.WriteRawTag(32); + output.WriteInt32(FinishType); + } + if (FinishParams.Length != 0) { + output.WriteRawTag(42); + output.WriteString(FinishParams); + } + if (Tid1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Tid1); + } + if (Qty1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Qty1); + } + if (Tid2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Tid2); + } + if (Qty2 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Qty2); + } + if (Tid3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Tid3); + } + if (Qty3 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Qty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BundleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BundleId); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (FinishType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinishType); + } + if (FinishParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FinishParams); + } + if (Tid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid1); + } + if (Qty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty1); + } + if (Tid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid2); + } + if (Qty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty2); + } + if (Tid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tid3); + } + if (Qty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qty3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBookFateCardQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BundleId != 0) { + BundleId = other.BundleId; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.FinishType != 0) { + FinishType = other.FinishType; + } + if (other.FinishParams.Length != 0) { + FinishParams = other.FinishParams; + } + if (other.Tid1 != 0) { + Tid1 = other.Tid1; + } + if (other.Qty1 != 0) { + Qty1 = other.Qty1; + } + if (other.Tid2 != 0) { + Tid2 = other.Tid2; + } + if (other.Qty2 != 0) { + Qty2 = other.Qty2; + } + if (other.Tid3 != 0) { + Tid3 = other.Tid3; + } + if (other.Qty3 != 0) { + Qty3 = other.Qty3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BundleId = input.ReadInt32(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + FinishType = input.ReadInt32(); + break; + } + case 42: { + FinishParams = input.ReadString(); + break; + } + case 48: { + Tid1 = input.ReadInt32(); + break; + } + case 56: { + Qty1 = input.ReadInt32(); + break; + } + case 64: { + Tid2 = input.ReadInt32(); + break; + } + case 72: { + Qty2 = input.ReadInt32(); + break; + } + case 80: { + Tid3 = input.ReadInt32(); + break; + } + case 88: { + Qty3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BundleId = input.ReadInt32(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + FinishType = input.ReadInt32(); + break; + } + case 42: { + FinishParams = input.ReadString(); + break; + } + case 48: { + Tid1 = input.ReadInt32(); + break; + } + case 56: { + Qty1 = input.ReadInt32(); + break; + } + case 64: { + Tid2 = input.ReadInt32(); + break; + } + case 72: { + Qty2 = input.ReadInt32(); + break; + } + case 80: { + Tid3 = input.ReadInt32(); + break; + } + case 88: { + Qty3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBookPotentialReward.cs b/NTR.Common/protos/StarTowerBookPotentialReward.cs new file mode 100644 index 0000000..852da73 --- /dev/null +++ b/NTR.Common/protos/StarTowerBookPotentialReward.cs @@ -0,0 +1,503 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBookPotentialReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBookPotentialReward.proto + public static partial class StarTowerBookPotentialRewardReflection { + + #region Descriptor + /// File descriptor for StarTowerBookPotentialReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBookPotentialRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJTdGFyVG93ZXJCb29rUG90ZW50aWFsUmV3YXJkLnByb3RvIpgBChxTdGFy", + "VG93ZXJCb29rUG90ZW50aWFsUmV3YXJkEgoKAmlkGAEgASgFEg8KB2NoYXJf", + "aWQYAiABKAUSDAoEZGVzYxgDIAEoCRIMCgRzb3J0GAQgASgFEgwKBGNvbmQY", + "BSABKAUSDgoGcGFyYW1zGAYgASgJEg8KB2l0ZW1faWQYByABKAUSEAoIaXRl", + "bV9xdHkYCCABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBookPotentialReward), global::Nova.Client.StarTowerBookPotentialReward.Parser, new[]{ "Id", "CharId", "Desc", "Sort", "Cond", "Params", "ItemId", "ItemQty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBookPotentialReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBookPotentialReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBookPotentialRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookPotentialReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookPotentialReward(StarTowerBookPotentialReward other) : this() { + id_ = other.id_; + charId_ = other.charId_; + desc_ = other.desc_; + sort_ = other.sort_; + cond_ = other.cond_; + params_ = other.params_; + itemId_ = other.itemId_; + itemQty_ = other.itemQty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBookPotentialReward Clone() { + return new StarTowerBookPotentialReward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 4; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "cond" field. + public const int CondFieldNumber = 5; + private int cond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Cond { + get { return cond_; } + set { + cond_ = value; + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 6; + private string params_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 7; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "item_qty" field. + public const int ItemQtyFieldNumber = 8; + private int itemQty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty { + get { return itemQty_; } + set { + itemQty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBookPotentialReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBookPotentialReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharId != other.CharId) return false; + if (Desc != other.Desc) return false; + if (Sort != other.Sort) return false; + if (Cond != other.Cond) return false; + if (Params != other.Params) return false; + if (ItemId != other.ItemId) return false; + if (ItemQty != other.ItemQty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Cond != 0) hash ^= Cond.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (ItemQty != 0) hash ^= ItemQty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Sort != 0) { + output.WriteRawTag(32); + output.WriteInt32(Sort); + } + if (Cond != 0) { + output.WriteRawTag(40); + output.WriteInt32(Cond); + } + if (Params.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Params); + } + if (ItemId != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(64); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Sort != 0) { + output.WriteRawTag(32); + output.WriteInt32(Sort); + } + if (Cond != 0) { + output.WriteRawTag(40); + output.WriteInt32(Cond); + } + if (Params.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Params); + } + if (ItemId != 0) { + output.WriteRawTag(56); + output.WriteInt32(ItemId); + } + if (ItemQty != 0) { + output.WriteRawTag(64); + output.WriteInt32(ItemQty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Cond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cond); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Params); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (ItemQty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBookPotentialReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Cond != 0) { + Cond = other.Cond; + } + if (other.Params.Length != 0) { + Params = other.Params; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.ItemQty != 0) { + ItemQty = other.ItemQty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Sort = input.ReadInt32(); + break; + } + case 40: { + Cond = input.ReadInt32(); + break; + } + case 50: { + Params = input.ReadString(); + break; + } + case 56: { + ItemId = input.ReadInt32(); + break; + } + case 64: { + ItemQty = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Sort = input.ReadInt32(); + break; + } + case 40: { + Cond = input.ReadInt32(); + break; + } + case 50: { + Params = input.ReadString(); + break; + } + case 56: { + ItemId = input.ReadInt32(); + break; + } + case 64: { + ItemQty = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerBuildRank.cs b/NTR.Common/protos/StarTowerBuildRank.cs new file mode 100644 index 0000000..775ed91 --- /dev/null +++ b/NTR.Common/protos/StarTowerBuildRank.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerBuildRank.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerBuildRank.proto + public static partial class StarTowerBuildRankReflection { + + #region Descriptor + /// File descriptor for StarTowerBuildRank.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerBuildRankReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTdGFyVG93ZXJCdWlsZFJhbmsucHJvdG8iQwoSU3RhclRvd2VyQnVpbGRS", + "YW5rEgoKAmlkGAEgASgFEhEKCW1pbl9ncmFkZRgCIAEoBRIOCgZyYXJpdHkY", + "AyABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerBuildRank), global::Nova.Client.StarTowerBuildRank.Parser, new[]{ "Id", "MinGrade", "Rarity" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerBuildRank : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerBuildRank()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerBuildRankReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBuildRank() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBuildRank(StarTowerBuildRank other) : this() { + id_ = other.id_; + minGrade_ = other.minGrade_; + rarity_ = other.rarity_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerBuildRank Clone() { + return new StarTowerBuildRank(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "min_grade" field. + public const int MinGradeFieldNumber = 2; + private int minGrade_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinGrade { + get { return minGrade_; } + set { + minGrade_ = value; + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 3; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerBuildRank); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerBuildRank other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MinGrade != other.MinGrade) return false; + if (Rarity != other.Rarity) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MinGrade != 0) hash ^= MinGrade.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MinGrade != 0) { + output.WriteRawTag(16); + output.WriteInt32(MinGrade); + } + if (Rarity != 0) { + output.WriteRawTag(24); + output.WriteInt32(Rarity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MinGrade != 0) { + output.WriteRawTag(16); + output.WriteInt32(MinGrade); + } + if (Rarity != 0) { + output.WriteRawTag(24); + output.WriteInt32(Rarity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MinGrade != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinGrade); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerBuildRank other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MinGrade != 0) { + MinGrade = other.MinGrade; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MinGrade = input.ReadInt32(); + break; + } + case 24: { + Rarity = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MinGrade = input.ReadInt32(); + break; + } + case 24: { + Rarity = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerCombatEvent.cs b/NTR.Common/protos/StarTowerCombatEvent.cs new file mode 100644 index 0000000..3c908c8 --- /dev/null +++ b/NTR.Common/protos/StarTowerCombatEvent.cs @@ -0,0 +1,466 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerCombatEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerCombatEvent.proto + public static partial class StarTowerCombatEventReflection { + + #region Descriptor + /// File descriptor for StarTowerCombatEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerCombatEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdGFyVG93ZXJDb21iYXRFdmVudC5wcm90byJ/ChRTdGFyVG93ZXJDb21i", + "YXRFdmVudBIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEgwKBHR5cGUYAyAB", + "KAUSDgoGcGFyYW1zGAQgASgJEg4KBmFjdGl2ZRgFIAEoBRINCgVzdGFydBgG", + "IAEoBRIQCghpbnRlcmFjdBgHIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerCombatEvent), global::Nova.Client.StarTowerCombatEvent.Parser, new[]{ "Id", "Name", "Type", "Params", "Active", "Start", "Interact" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerCombatEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerCombatEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerCombatEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerCombatEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerCombatEvent(StarTowerCombatEvent other) : this() { + id_ = other.id_; + name_ = other.name_; + type_ = other.type_; + params_ = other.params_; + active_ = other.active_; + start_ = other.start_; + interact_ = other.interact_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerCombatEvent Clone() { + return new StarTowerCombatEvent(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "params" field. + public const int ParamsFieldNumber = 4; + private string params_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 5; + private int active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Active { + get { return active_; } + set { + active_ = value; + } + } + + /// Field number for the "start" field. + public const int StartFieldNumber = 6; + private int start_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "interact" field. + public const int InteractFieldNumber = 7; + private int interact_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Interact { + get { return interact_; } + set { + interact_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerCombatEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerCombatEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (Params != other.Params) return false; + if (Active != other.Active) return false; + if (Start != other.Start) return false; + if (Interact != other.Interact) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (Active != 0) hash ^= Active.GetHashCode(); + if (Start != 0) hash ^= Start.GetHashCode(); + if (Interact != 0) hash ^= Interact.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Type != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type); + } + if (Params.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Params); + } + if (Active != 0) { + output.WriteRawTag(40); + output.WriteInt32(Active); + } + if (Start != 0) { + output.WriteRawTag(48); + output.WriteInt32(Start); + } + if (Interact != 0) { + output.WriteRawTag(56); + output.WriteInt32(Interact); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Type != 0) { + output.WriteRawTag(24); + output.WriteInt32(Type); + } + if (Params.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Params); + } + if (Active != 0) { + output.WriteRawTag(40); + output.WriteInt32(Active); + } + if (Start != 0) { + output.WriteRawTag(48); + output.WriteInt32(Start); + } + if (Interact != 0) { + output.WriteRawTag(56); + output.WriteInt32(Interact); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Params); + } + if (Active != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Active); + } + if (Start != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); + } + if (Interact != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Interact); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerCombatEvent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Params.Length != 0) { + Params = other.Params; + } + if (other.Active != 0) { + Active = other.Active; + } + if (other.Start != 0) { + Start = other.Start; + } + if (other.Interact != 0) { + Interact = other.Interact; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Type = input.ReadInt32(); + break; + } + case 34: { + Params = input.ReadString(); + break; + } + case 40: { + Active = input.ReadInt32(); + break; + } + case 48: { + Start = input.ReadInt32(); + break; + } + case 56: { + Interact = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Type = input.ReadInt32(); + break; + } + case 34: { + Params = input.ReadString(); + break; + } + case 40: { + Active = input.ReadInt32(); + break; + } + case 48: { + Start = input.ReadInt32(); + break; + } + case 56: { + Interact = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerCombo.cs b/NTR.Common/protos/StarTowerCombo.cs new file mode 100644 index 0000000..3e52c09 --- /dev/null +++ b/NTR.Common/protos/StarTowerCombo.cs @@ -0,0 +1,270 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerCombo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerCombo.proto + public static partial class StarTowerComboReflection { + + #region Descriptor + /// File descriptor for StarTowerCombo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerComboReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdGFyVG93ZXJDb21iby5wcm90byIwCg5TdGFyVG93ZXJDb21ibxIKCgJp", + "ZBgBIAEoBRISCgpiYXR0bGVfbHZzGAIgAygFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerCombo), global::Nova.Client.StarTowerCombo.Parser, new[]{ "Id", "BattleLvs" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerCombo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerCombo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerComboReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerCombo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerCombo(StarTowerCombo other) : this() { + id_ = other.id_; + battleLvs_ = other.battleLvs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerCombo Clone() { + return new StarTowerCombo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "battle_lvs" field. + public const int BattleLvsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_battleLvs_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField battleLvs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BattleLvs { + get { return battleLvs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerCombo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerCombo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!battleLvs_.Equals(other.battleLvs_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= battleLvs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + battleLvs_.WriteTo(output, _repeated_battleLvs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + battleLvs_.WriteTo(ref output, _repeated_battleLvs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += battleLvs_.CalculateSize(_repeated_battleLvs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerCombo other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + battleLvs_.Add(other.battleLvs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + battleLvs_.AddEntriesFrom(input, _repeated_battleLvs_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + battleLvs_.AddEntriesFrom(ref input, _repeated_battleLvs_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerDropItem.cs b/NTR.Common/protos/StarTowerDropItem.cs new file mode 100644 index 0000000..7433596 --- /dev/null +++ b/NTR.Common/protos/StarTowerDropItem.cs @@ -0,0 +1,373 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerDropItem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerDropItem.proto + public static partial class StarTowerDropItemReflection { + + #region Descriptor + /// File descriptor for StarTowerDropItem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerDropItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTdGFyVG93ZXJEcm9wSXRlbS5wcm90byJkChFTdGFyVG93ZXJEcm9wSXRl", + "bRIKCgJpZBgBIAEoBRIMCgR0eXBlGAIgASgFEhgKEGRyb3Bfc3BsaXRfcmFu", + "Z2UYAyADKAUSDAoEcmF0ZRgEIAMoBRINCgVtb2RlbBgFIAEoCUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerDropItem), global::Nova.Client.StarTowerDropItem.Parser, new[]{ "Id", "Type", "DropSplitRange", "Rate", "Model" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerDropItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerDropItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerDropItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerDropItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerDropItem(StarTowerDropItem other) : this() { + id_ = other.id_; + type_ = other.type_; + dropSplitRange_ = other.dropSplitRange_.Clone(); + rate_ = other.rate_.Clone(); + model_ = other.model_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerDropItem Clone() { + return new StarTowerDropItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "drop_split_range" field. + public const int DropSplitRangeFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_dropSplitRange_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField dropSplitRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DropSplitRange { + get { return dropSplitRange_; } + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_rate_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField rate_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Rate { + get { return rate_; } + } + + /// Field number for the "model" field. + public const int ModelFieldNumber = 5; + private string model_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Model { + get { return model_; } + set { + model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerDropItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerDropItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Type != other.Type) return false; + if(!dropSplitRange_.Equals(other.dropSplitRange_)) return false; + if(!rate_.Equals(other.rate_)) return false; + if (Model != other.Model) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + hash ^= dropSplitRange_.GetHashCode(); + hash ^= rate_.GetHashCode(); + if (Model.Length != 0) hash ^= Model.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + dropSplitRange_.WriteTo(output, _repeated_dropSplitRange_codec); + rate_.WriteTo(output, _repeated_rate_codec); + if (Model.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Model); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + dropSplitRange_.WriteTo(ref output, _repeated_dropSplitRange_codec); + rate_.WriteTo(ref output, _repeated_rate_codec); + if (Model.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Model); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + size += dropSplitRange_.CalculateSize(_repeated_dropSplitRange_codec); + size += rate_.CalculateSize(_repeated_rate_codec); + if (Model.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerDropItem other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Type != 0) { + Type = other.Type; + } + dropSplitRange_.Add(other.dropSplitRange_); + rate_.Add(other.rate_); + if (other.Model.Length != 0) { + Model = other.Model; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: + case 24: { + dropSplitRange_.AddEntriesFrom(input, _repeated_dropSplitRange_codec); + break; + } + case 34: + case 32: { + rate_.AddEntriesFrom(input, _repeated_rate_codec); + break; + } + case 42: { + Model = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 26: + case 24: { + dropSplitRange_.AddEntriesFrom(ref input, _repeated_dropSplitRange_codec); + break; + } + case 34: + case 32: { + rate_.AddEntriesFrom(ref input, _repeated_rate_codec); + break; + } + case 42: { + Model = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerEnemySet.cs b/NTR.Common/protos/StarTowerEnemySet.cs new file mode 100644 index 0000000..ab6019c --- /dev/null +++ b/NTR.Common/protos/StarTowerEnemySet.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerEnemySet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerEnemySet.proto + public static partial class StarTowerEnemySetReflection { + + #region Descriptor + /// File descriptor for StarTowerEnemySet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerEnemySetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTdGFyVG93ZXJFbmVteVNldC5wcm90byKKAQoRU3RhclRvd2VyRW5lbXlT", + "ZXQSDgoGc2V0X2lkGAEgASgFEhAKCHdhdmVfbnVtGAIgASgFEg8KB21heF9u", + "dW0YAyABKAUSGAoQbWF4X251bV9wZXJfd2F2ZRgEIAEoBRISCgptb25zdGVy", + "X2lkGAUgASgFEhQKDHJlZl9pbnRlcnZhbBgGIAEoAkIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerEnemySet), global::Nova.Client.StarTowerEnemySet.Parser, new[]{ "SetId", "WaveNum", "MaxNum", "MaxNumPerWave", "MonsterId", "RefInterval" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerEnemySet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerEnemySet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerEnemySetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEnemySet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEnemySet(StarTowerEnemySet other) : this() { + setId_ = other.setId_; + waveNum_ = other.waveNum_; + maxNum_ = other.maxNum_; + maxNumPerWave_ = other.maxNumPerWave_; + monsterId_ = other.monsterId_; + refInterval_ = other.refInterval_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEnemySet Clone() { + return new StarTowerEnemySet(this); + } + + /// Field number for the "set_id" field. + public const int SetIdFieldNumber = 1; + private int setId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SetId { + get { return setId_; } + set { + setId_ = value; + } + } + + /// Field number for the "wave_num" field. + public const int WaveNumFieldNumber = 2; + private int waveNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WaveNum { + get { return waveNum_; } + set { + waveNum_ = value; + } + } + + /// Field number for the "max_num" field. + public const int MaxNumFieldNumber = 3; + private int maxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNum { + get { return maxNum_; } + set { + maxNum_ = value; + } + } + + /// Field number for the "max_num_per_wave" field. + public const int MaxNumPerWaveFieldNumber = 4; + private int maxNumPerWave_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNumPerWave { + get { return maxNumPerWave_; } + set { + maxNumPerWave_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 5; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "ref_interval" field. + public const int RefIntervalFieldNumber = 6; + private float refInterval_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RefInterval { + get { return refInterval_; } + set { + refInterval_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerEnemySet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerEnemySet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SetId != other.SetId) return false; + if (WaveNum != other.WaveNum) return false; + if (MaxNum != other.MaxNum) return false; + if (MaxNumPerWave != other.MaxNumPerWave) return false; + if (MonsterId != other.MonsterId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RefInterval, other.RefInterval)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SetId != 0) hash ^= SetId.GetHashCode(); + if (WaveNum != 0) hash ^= WaveNum.GetHashCode(); + if (MaxNum != 0) hash ^= MaxNum.GetHashCode(); + if (MaxNumPerWave != 0) hash ^= MaxNumPerWave.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (RefInterval != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RefInterval); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SetId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SetId); + } + if (WaveNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(WaveNum); + } + if (MaxNum != 0) { + output.WriteRawTag(24); + output.WriteInt32(MaxNum); + } + if (MaxNumPerWave != 0) { + output.WriteRawTag(32); + output.WriteInt32(MaxNumPerWave); + } + if (MonsterId != 0) { + output.WriteRawTag(40); + output.WriteInt32(MonsterId); + } + if (RefInterval != 0F) { + output.WriteRawTag(53); + output.WriteFloat(RefInterval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SetId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SetId); + } + if (WaveNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(WaveNum); + } + if (MaxNum != 0) { + output.WriteRawTag(24); + output.WriteInt32(MaxNum); + } + if (MaxNumPerWave != 0) { + output.WriteRawTag(32); + output.WriteInt32(MaxNumPerWave); + } + if (MonsterId != 0) { + output.WriteRawTag(40); + output.WriteInt32(MonsterId); + } + if (RefInterval != 0F) { + output.WriteRawTag(53); + output.WriteFloat(RefInterval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SetId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SetId); + } + if (WaveNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WaveNum); + } + if (MaxNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNum); + } + if (MaxNumPerWave != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNumPerWave); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (RefInterval != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerEnemySet other) { + if (other == null) { + return; + } + if (other.SetId != 0) { + SetId = other.SetId; + } + if (other.WaveNum != 0) { + WaveNum = other.WaveNum; + } + if (other.MaxNum != 0) { + MaxNum = other.MaxNum; + } + if (other.MaxNumPerWave != 0) { + MaxNumPerWave = other.MaxNumPerWave; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.RefInterval != 0F) { + RefInterval = other.RefInterval; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SetId = input.ReadInt32(); + break; + } + case 16: { + WaveNum = input.ReadInt32(); + break; + } + case 24: { + MaxNum = input.ReadInt32(); + break; + } + case 32: { + MaxNumPerWave = input.ReadInt32(); + break; + } + case 40: { + MonsterId = input.ReadInt32(); + break; + } + case 53: { + RefInterval = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SetId = input.ReadInt32(); + break; + } + case 16: { + WaveNum = input.ReadInt32(); + break; + } + case 24: { + MaxNum = input.ReadInt32(); + break; + } + case 32: { + MaxNumPerWave = input.ReadInt32(); + break; + } + case 40: { + MonsterId = input.ReadInt32(); + break; + } + case 53: { + RefInterval = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerEvent.cs b/NTR.Common/protos/StarTowerEvent.cs new file mode 100644 index 0000000..a0ec120 --- /dev/null +++ b/NTR.Common/protos/StarTowerEvent.cs @@ -0,0 +1,494 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerEvent.proto + public static partial class StarTowerEventReflection { + + #region Descriptor + /// File descriptor for StarTowerEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdGFyVG93ZXJFdmVudC5wcm90byKtAQoOU3RhclRvd2VyRXZlbnQSCgoC", + "aWQYASABKAUSEAoIZ3JvdXBfaWQYAiABKAUSGAoQb3B0aW9uc19ydWxlc19p", + "ZBgDIAEoBRIMCgRkZXNjGAQgASgJEhIKCmV2ZW50X3R5cGUYBSABKAUSGQoR", + "Z3VhcmFudGVlZF9tYXBfaWQYBiABKAUSCwoDbnBjGAcgAygFEhkKEXJlbGF0", + "ZWRfY2hhcmFjdGVyGAggASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerEvent), global::Nova.Client.StarTowerEvent.Parser, new[]{ "Id", "GroupId", "OptionsRulesId", "Desc", "EventType", "GuaranteedMapId", "Npc", "RelatedCharacter" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEvent(StarTowerEvent other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + optionsRulesId_ = other.optionsRulesId_; + desc_ = other.desc_; + eventType_ = other.eventType_; + guaranteedMapId_ = other.guaranteedMapId_; + npc_ = other.npc_.Clone(); + relatedCharacter_ = other.relatedCharacter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEvent Clone() { + return new StarTowerEvent(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "options_rules_id" field. + public const int OptionsRulesIdFieldNumber = 3; + private int optionsRulesId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OptionsRulesId { + get { return optionsRulesId_; } + set { + optionsRulesId_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "event_type" field. + public const int EventTypeFieldNumber = 5; + private int eventType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EventType { + get { return eventType_; } + set { + eventType_ = value; + } + } + + /// Field number for the "guaranteed_map_id" field. + public const int GuaranteedMapIdFieldNumber = 6; + private int guaranteedMapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuaranteedMapId { + get { return guaranteedMapId_; } + set { + guaranteedMapId_ = value; + } + } + + /// Field number for the "npc" field. + public const int NpcFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_npc_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField npc_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Npc { + get { return npc_; } + } + + /// Field number for the "related_character" field. + public const int RelatedCharacterFieldNumber = 8; + private int relatedCharacter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RelatedCharacter { + get { return relatedCharacter_; } + set { + relatedCharacter_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (OptionsRulesId != other.OptionsRulesId) return false; + if (Desc != other.Desc) return false; + if (EventType != other.EventType) return false; + if (GuaranteedMapId != other.GuaranteedMapId) return false; + if(!npc_.Equals(other.npc_)) return false; + if (RelatedCharacter != other.RelatedCharacter) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (OptionsRulesId != 0) hash ^= OptionsRulesId.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (EventType != 0) hash ^= EventType.GetHashCode(); + if (GuaranteedMapId != 0) hash ^= GuaranteedMapId.GetHashCode(); + hash ^= npc_.GetHashCode(); + if (RelatedCharacter != 0) hash ^= RelatedCharacter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (OptionsRulesId != 0) { + output.WriteRawTag(24); + output.WriteInt32(OptionsRulesId); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (EventType != 0) { + output.WriteRawTag(40); + output.WriteInt32(EventType); + } + if (GuaranteedMapId != 0) { + output.WriteRawTag(48); + output.WriteInt32(GuaranteedMapId); + } + npc_.WriteTo(output, _repeated_npc_codec); + if (RelatedCharacter != 0) { + output.WriteRawTag(64); + output.WriteInt32(RelatedCharacter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (OptionsRulesId != 0) { + output.WriteRawTag(24); + output.WriteInt32(OptionsRulesId); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (EventType != 0) { + output.WriteRawTag(40); + output.WriteInt32(EventType); + } + if (GuaranteedMapId != 0) { + output.WriteRawTag(48); + output.WriteInt32(GuaranteedMapId); + } + npc_.WriteTo(ref output, _repeated_npc_codec); + if (RelatedCharacter != 0) { + output.WriteRawTag(64); + output.WriteInt32(RelatedCharacter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (OptionsRulesId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionsRulesId); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (EventType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EventType); + } + if (GuaranteedMapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuaranteedMapId); + } + size += npc_.CalculateSize(_repeated_npc_codec); + if (RelatedCharacter != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RelatedCharacter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerEvent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.OptionsRulesId != 0) { + OptionsRulesId = other.OptionsRulesId; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.EventType != 0) { + EventType = other.EventType; + } + if (other.GuaranteedMapId != 0) { + GuaranteedMapId = other.GuaranteedMapId; + } + npc_.Add(other.npc_); + if (other.RelatedCharacter != 0) { + RelatedCharacter = other.RelatedCharacter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + OptionsRulesId = input.ReadInt32(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + EventType = input.ReadInt32(); + break; + } + case 48: { + GuaranteedMapId = input.ReadInt32(); + break; + } + case 58: + case 56: { + npc_.AddEntriesFrom(input, _repeated_npc_codec); + break; + } + case 64: { + RelatedCharacter = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + OptionsRulesId = input.ReadInt32(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + EventType = input.ReadInt32(); + break; + } + case 48: { + GuaranteedMapId = input.ReadInt32(); + break; + } + case 58: + case 56: { + npc_.AddEntriesFrom(ref input, _repeated_npc_codec); + break; + } + case 64: { + RelatedCharacter = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerEventAction.cs b/NTR.Common/protos/StarTowerEventAction.cs new file mode 100644 index 0000000..55345bf --- /dev/null +++ b/NTR.Common/protos/StarTowerEventAction.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerEventAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerEventAction.proto + public static partial class StarTowerEventActionReflection { + + #region Descriptor + /// File descriptor for StarTowerEventAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerEventActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdGFyVG93ZXJFdmVudEFjdGlvbi5wcm90byJlChRTdGFyVG93ZXJFdmVu", + "dEFjdGlvbhIKCgJpZBgBIAEoBRIQCghldmVudF9pZBgCIAEoBRISCgp0cmln", + "X3ZvaWNlGAMgASgJEgwKBGRlc2MYBCABKAkSDQoFZ3JvdXAYBSABKAVCDqoC", + "C05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerEventAction), global::Nova.Client.StarTowerEventAction.Parser, new[]{ "Id", "EventId", "TrigVoice", "Desc", "Group" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerEventAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerEventAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerEventActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEventAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEventAction(StarTowerEventAction other) : this() { + id_ = other.id_; + eventId_ = other.eventId_; + trigVoice_ = other.trigVoice_; + desc_ = other.desc_; + group_ = other.group_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEventAction Clone() { + return new StarTowerEventAction(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "event_id" field. + public const int EventIdFieldNumber = 2; + private int eventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EventId { + get { return eventId_; } + set { + eventId_ = value; + } + } + + /// Field number for the "trig_voice" field. + public const int TrigVoiceFieldNumber = 3; + private string trigVoice_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrigVoice { + get { return trigVoice_; } + set { + trigVoice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 5; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerEventAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerEventAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (EventId != other.EventId) return false; + if (TrigVoice != other.TrigVoice) return false; + if (Desc != other.Desc) return false; + if (Group != other.Group) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (EventId != 0) hash ^= EventId.GetHashCode(); + if (TrigVoice.Length != 0) hash ^= TrigVoice.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EventId != 0) { + output.WriteRawTag(16); + output.WriteInt32(EventId); + } + if (TrigVoice.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TrigVoice); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Group != 0) { + output.WriteRawTag(40); + output.WriteInt32(Group); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EventId != 0) { + output.WriteRawTag(16); + output.WriteInt32(EventId); + } + if (TrigVoice.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TrigVoice); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Group != 0) { + output.WriteRawTag(40); + output.WriteInt32(Group); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (EventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EventId); + } + if (TrigVoice.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrigVoice); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerEventAction other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.EventId != 0) { + EventId = other.EventId; + } + if (other.TrigVoice.Length != 0) { + TrigVoice = other.TrigVoice; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Group != 0) { + Group = other.Group; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + EventId = input.ReadInt32(); + break; + } + case 26: { + TrigVoice = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Group = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + EventId = input.ReadInt32(); + break; + } + case 26: { + TrigVoice = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Group = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerEventOptionAction.cs b/NTR.Common/protos/StarTowerEventOptionAction.cs new file mode 100644 index 0000000..b7e6e53 --- /dev/null +++ b/NTR.Common/protos/StarTowerEventOptionAction.cs @@ -0,0 +1,354 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerEventOptionAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerEventOptionAction.proto + public static partial class StarTowerEventOptionActionReflection { + + #region Descriptor + /// File descriptor for StarTowerEventOptionAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerEventOptionActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBTdGFyVG93ZXJFdmVudE9wdGlvbkFjdGlvbi5wcm90byJYChpTdGFyVG93", + "ZXJFdmVudE9wdGlvbkFjdGlvbhIKCgJpZBgBIAEoBRIRCglvcHRpb25faWQY", + "AiABKAUSDAoEZGVzYxgDIAEoCRINCgVncm91cBgEIAEoBUIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerEventOptionAction), global::Nova.Client.StarTowerEventOptionAction.Parser, new[]{ "Id", "OptionId", "Desc", "Group" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerEventOptionAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerEventOptionAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerEventOptionActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEventOptionAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEventOptionAction(StarTowerEventOptionAction other) : this() { + id_ = other.id_; + optionId_ = other.optionId_; + desc_ = other.desc_; + group_ = other.group_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerEventOptionAction Clone() { + return new StarTowerEventOptionAction(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "option_id" field. + public const int OptionIdFieldNumber = 2; + private int optionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OptionId { + get { return optionId_; } + set { + optionId_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 4; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerEventOptionAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerEventOptionAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (OptionId != other.OptionId) return false; + if (Desc != other.Desc) return false; + if (Group != other.Group) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (OptionId != 0) hash ^= OptionId.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (OptionId != 0) { + output.WriteRawTag(16); + output.WriteInt32(OptionId); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Group != 0) { + output.WriteRawTag(32); + output.WriteInt32(Group); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (OptionId != 0) { + output.WriteRawTag(16); + output.WriteInt32(OptionId); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Group != 0) { + output.WriteRawTag(32); + output.WriteInt32(Group); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (OptionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionId); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerEventOptionAction other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.OptionId != 0) { + OptionId = other.OptionId; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Group != 0) { + Group = other.Group; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + OptionId = input.ReadInt32(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Group = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + OptionId = input.ReadInt32(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Group = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerFloor.cs b/NTR.Common/protos/StarTowerFloor.cs new file mode 100644 index 0000000..291c3e2 --- /dev/null +++ b/NTR.Common/protos/StarTowerFloor.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerFloor.proto + public static partial class StarTowerFloorReflection { + + #region Descriptor + /// File descriptor for StarTowerFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdGFyVG93ZXJGbG9vci5wcm90byLVAQoOU3RhclRvd2VyRmxvb3ISCgoC", + "aWQYASABKAUSHAoUY29tbW9uX2dhbWVwbGF5X3R5cGUYAiABKAUSGgoSY29t", + "bW9uX21vbnN0ZXJfc2V0GAMgASgJEhIKCmxpbWl0X3RpbWUYBCABKAUSHAoU", + "ZHJvcF9vYmplY3RfZ3JvdXBfaWQYBSABKAUSGAoQZHJvcF9vYmplY3RfcmF0", + "ZRgGIAEoBRIUCgxkcm9wX21heF9udW0YByABKAUSGwoTbW9uc3Rlcl9zdXJw", + "bHVzX251bRgIIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerFloor), global::Nova.Client.StarTowerFloor.Parser, new[]{ "Id", "CommonGameplayType", "CommonMonsterSet", "LimitTime", "DropObjectGroupId", "DropObjectRate", "DropMaxNum", "MonsterSurplusNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloor(StarTowerFloor other) : this() { + id_ = other.id_; + commonGameplayType_ = other.commonGameplayType_; + commonMonsterSet_ = other.commonMonsterSet_; + limitTime_ = other.limitTime_; + dropObjectGroupId_ = other.dropObjectGroupId_; + dropObjectRate_ = other.dropObjectRate_; + dropMaxNum_ = other.dropMaxNum_; + monsterSurplusNum_ = other.monsterSurplusNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloor Clone() { + return new StarTowerFloor(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "common_gameplay_type" field. + public const int CommonGameplayTypeFieldNumber = 2; + private int commonGameplayType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CommonGameplayType { + get { return commonGameplayType_; } + set { + commonGameplayType_ = value; + } + } + + /// Field number for the "common_monster_set" field. + public const int CommonMonsterSetFieldNumber = 3; + private string commonMonsterSet_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CommonMonsterSet { + get { return commonMonsterSet_; } + set { + commonMonsterSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private int limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LimitTime { + get { return limitTime_; } + set { + limitTime_ = value; + } + } + + /// Field number for the "drop_object_group_id" field. + public const int DropObjectGroupIdFieldNumber = 5; + private int dropObjectGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropObjectGroupId { + get { return dropObjectGroupId_; } + set { + dropObjectGroupId_ = value; + } + } + + /// Field number for the "drop_object_rate" field. + public const int DropObjectRateFieldNumber = 6; + private int dropObjectRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropObjectRate { + get { return dropObjectRate_; } + set { + dropObjectRate_ = value; + } + } + + /// Field number for the "drop_max_num" field. + public const int DropMaxNumFieldNumber = 7; + private int dropMaxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropMaxNum { + get { return dropMaxNum_; } + set { + dropMaxNum_ = value; + } + } + + /// Field number for the "monster_surplus_num" field. + public const int MonsterSurplusNumFieldNumber = 8; + private int monsterSurplusNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterSurplusNum { + get { return monsterSurplusNum_; } + set { + monsterSurplusNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CommonGameplayType != other.CommonGameplayType) return false; + if (CommonMonsterSet != other.CommonMonsterSet) return false; + if (LimitTime != other.LimitTime) return false; + if (DropObjectGroupId != other.DropObjectGroupId) return false; + if (DropObjectRate != other.DropObjectRate) return false; + if (DropMaxNum != other.DropMaxNum) return false; + if (MonsterSurplusNum != other.MonsterSurplusNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CommonGameplayType != 0) hash ^= CommonGameplayType.GetHashCode(); + if (CommonMonsterSet.Length != 0) hash ^= CommonMonsterSet.GetHashCode(); + if (LimitTime != 0) hash ^= LimitTime.GetHashCode(); + if (DropObjectGroupId != 0) hash ^= DropObjectGroupId.GetHashCode(); + if (DropObjectRate != 0) hash ^= DropObjectRate.GetHashCode(); + if (DropMaxNum != 0) hash ^= DropMaxNum.GetHashCode(); + if (MonsterSurplusNum != 0) hash ^= MonsterSurplusNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CommonGameplayType != 0) { + output.WriteRawTag(16); + output.WriteInt32(CommonGameplayType); + } + if (CommonMonsterSet.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CommonMonsterSet); + } + if (LimitTime != 0) { + output.WriteRawTag(32); + output.WriteInt32(LimitTime); + } + if (DropObjectGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(DropObjectGroupId); + } + if (DropObjectRate != 0) { + output.WriteRawTag(48); + output.WriteInt32(DropObjectRate); + } + if (DropMaxNum != 0) { + output.WriteRawTag(56); + output.WriteInt32(DropMaxNum); + } + if (MonsterSurplusNum != 0) { + output.WriteRawTag(64); + output.WriteInt32(MonsterSurplusNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CommonGameplayType != 0) { + output.WriteRawTag(16); + output.WriteInt32(CommonGameplayType); + } + if (CommonMonsterSet.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CommonMonsterSet); + } + if (LimitTime != 0) { + output.WriteRawTag(32); + output.WriteInt32(LimitTime); + } + if (DropObjectGroupId != 0) { + output.WriteRawTag(40); + output.WriteInt32(DropObjectGroupId); + } + if (DropObjectRate != 0) { + output.WriteRawTag(48); + output.WriteInt32(DropObjectRate); + } + if (DropMaxNum != 0) { + output.WriteRawTag(56); + output.WriteInt32(DropMaxNum); + } + if (MonsterSurplusNum != 0) { + output.WriteRawTag(64); + output.WriteInt32(MonsterSurplusNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CommonGameplayType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CommonGameplayType); + } + if (CommonMonsterSet.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CommonMonsterSet); + } + if (LimitTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LimitTime); + } + if (DropObjectGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropObjectGroupId); + } + if (DropObjectRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropObjectRate); + } + if (DropMaxNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropMaxNum); + } + if (MonsterSurplusNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterSurplusNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CommonGameplayType != 0) { + CommonGameplayType = other.CommonGameplayType; + } + if (other.CommonMonsterSet.Length != 0) { + CommonMonsterSet = other.CommonMonsterSet; + } + if (other.LimitTime != 0) { + LimitTime = other.LimitTime; + } + if (other.DropObjectGroupId != 0) { + DropObjectGroupId = other.DropObjectGroupId; + } + if (other.DropObjectRate != 0) { + DropObjectRate = other.DropObjectRate; + } + if (other.DropMaxNum != 0) { + DropMaxNum = other.DropMaxNum; + } + if (other.MonsterSurplusNum != 0) { + MonsterSurplusNum = other.MonsterSurplusNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CommonGameplayType = input.ReadInt32(); + break; + } + case 26: { + CommonMonsterSet = input.ReadString(); + break; + } + case 32: { + LimitTime = input.ReadInt32(); + break; + } + case 40: { + DropObjectGroupId = input.ReadInt32(); + break; + } + case 48: { + DropObjectRate = input.ReadInt32(); + break; + } + case 56: { + DropMaxNum = input.ReadInt32(); + break; + } + case 64: { + MonsterSurplusNum = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CommonGameplayType = input.ReadInt32(); + break; + } + case 26: { + CommonMonsterSet = input.ReadString(); + break; + } + case 32: { + LimitTime = input.ReadInt32(); + break; + } + case 40: { + DropObjectGroupId = input.ReadInt32(); + break; + } + case 48: { + DropObjectRate = input.ReadInt32(); + break; + } + case 56: { + DropMaxNum = input.ReadInt32(); + break; + } + case 64: { + MonsterSurplusNum = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerFloorAward.cs b/NTR.Common/protos/StarTowerFloorAward.cs new file mode 100644 index 0000000..b54a9a1 --- /dev/null +++ b/NTR.Common/protos/StarTowerFloorAward.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerFloorAward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerFloorAward.proto + public static partial class StarTowerFloorAwardReflection { + + #region Descriptor + /// File descriptor for StarTowerFloorAward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerFloorAwardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFyVG93ZXJGbG9vckF3YXJkLnByb3RvIpgBChNTdGFyVG93ZXJGbG9v", + "ckF3YXJkEgoKAmlkGAEgASgFEhQKDHJvZ3VlbGlrZV9pZBgCIAEoBRIUCgxj", + "b21iYXRfZmxvb3IYAyABKAUSIgoaaW50ZXJpb3JfY3VycmVuY3lfcXVhbnRp", + "dHkYBCABKAUSEwoLbmVlZF9lbmVyZ3kYBSABKAUSEAoIYWZmaW5pdHkYBiAB", + "KAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerFloorAward), global::Nova.Client.StarTowerFloorAward.Parser, new[]{ "Id", "RoguelikeId", "CombatFloor", "InteriorCurrencyQuantity", "NeedEnergy", "Affinity" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerFloorAward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerFloorAward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerFloorAwardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorAward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorAward(StarTowerFloorAward other) : this() { + id_ = other.id_; + roguelikeId_ = other.roguelikeId_; + combatFloor_ = other.combatFloor_; + interiorCurrencyQuantity_ = other.interiorCurrencyQuantity_; + needEnergy_ = other.needEnergy_; + affinity_ = other.affinity_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorAward Clone() { + return new StarTowerFloorAward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "roguelike_id" field. + public const int RoguelikeIdFieldNumber = 2; + private int roguelikeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RoguelikeId { + get { return roguelikeId_; } + set { + roguelikeId_ = value; + } + } + + /// Field number for the "combat_floor" field. + public const int CombatFloorFieldNumber = 3; + private int combatFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CombatFloor { + get { return combatFloor_; } + set { + combatFloor_ = value; + } + } + + /// Field number for the "interior_currency_quantity" field. + public const int InteriorCurrencyQuantityFieldNumber = 4; + private int interiorCurrencyQuantity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InteriorCurrencyQuantity { + get { return interiorCurrencyQuantity_; } + set { + interiorCurrencyQuantity_ = value; + } + } + + /// Field number for the "need_energy" field. + public const int NeedEnergyFieldNumber = 5; + private int needEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedEnergy { + get { return needEnergy_; } + set { + needEnergy_ = value; + } + } + + /// Field number for the "affinity" field. + public const int AffinityFieldNumber = 6; + private int affinity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affinity { + get { return affinity_; } + set { + affinity_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerFloorAward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerFloorAward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (RoguelikeId != other.RoguelikeId) return false; + if (CombatFloor != other.CombatFloor) return false; + if (InteriorCurrencyQuantity != other.InteriorCurrencyQuantity) return false; + if (NeedEnergy != other.NeedEnergy) return false; + if (Affinity != other.Affinity) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (RoguelikeId != 0) hash ^= RoguelikeId.GetHashCode(); + if (CombatFloor != 0) hash ^= CombatFloor.GetHashCode(); + if (InteriorCurrencyQuantity != 0) hash ^= InteriorCurrencyQuantity.GetHashCode(); + if (NeedEnergy != 0) hash ^= NeedEnergy.GetHashCode(); + if (Affinity != 0) hash ^= Affinity.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RoguelikeId != 0) { + output.WriteRawTag(16); + output.WriteInt32(RoguelikeId); + } + if (CombatFloor != 0) { + output.WriteRawTag(24); + output.WriteInt32(CombatFloor); + } + if (InteriorCurrencyQuantity != 0) { + output.WriteRawTag(32); + output.WriteInt32(InteriorCurrencyQuantity); + } + if (NeedEnergy != 0) { + output.WriteRawTag(40); + output.WriteInt32(NeedEnergy); + } + if (Affinity != 0) { + output.WriteRawTag(48); + output.WriteInt32(Affinity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RoguelikeId != 0) { + output.WriteRawTag(16); + output.WriteInt32(RoguelikeId); + } + if (CombatFloor != 0) { + output.WriteRawTag(24); + output.WriteInt32(CombatFloor); + } + if (InteriorCurrencyQuantity != 0) { + output.WriteRawTag(32); + output.WriteInt32(InteriorCurrencyQuantity); + } + if (NeedEnergy != 0) { + output.WriteRawTag(40); + output.WriteInt32(NeedEnergy); + } + if (Affinity != 0) { + output.WriteRawTag(48); + output.WriteInt32(Affinity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (RoguelikeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoguelikeId); + } + if (CombatFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CombatFloor); + } + if (InteriorCurrencyQuantity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(InteriorCurrencyQuantity); + } + if (NeedEnergy != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedEnergy); + } + if (Affinity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Affinity); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerFloorAward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.RoguelikeId != 0) { + RoguelikeId = other.RoguelikeId; + } + if (other.CombatFloor != 0) { + CombatFloor = other.CombatFloor; + } + if (other.InteriorCurrencyQuantity != 0) { + InteriorCurrencyQuantity = other.InteriorCurrencyQuantity; + } + if (other.NeedEnergy != 0) { + NeedEnergy = other.NeedEnergy; + } + if (other.Affinity != 0) { + Affinity = other.Affinity; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RoguelikeId = input.ReadInt32(); + break; + } + case 24: { + CombatFloor = input.ReadInt32(); + break; + } + case 32: { + InteriorCurrencyQuantity = input.ReadInt32(); + break; + } + case 40: { + NeedEnergy = input.ReadInt32(); + break; + } + case 48: { + Affinity = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RoguelikeId = input.ReadInt32(); + break; + } + case 24: { + CombatFloor = input.ReadInt32(); + break; + } + case 32: { + InteriorCurrencyQuantity = input.ReadInt32(); + break; + } + case 40: { + NeedEnergy = input.ReadInt32(); + break; + } + case 48: { + Affinity = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerFloorExp.cs b/NTR.Common/protos/StarTowerFloorExp.cs new file mode 100644 index 0000000..4383b92 --- /dev/null +++ b/NTR.Common/protos/StarTowerFloorExp.cs @@ -0,0 +1,541 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerFloorExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerFloorExp.proto + public static partial class StarTowerFloorExpReflection { + + #region Descriptor + /// File descriptor for StarTowerFloorExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerFloorExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTdGFyVG93ZXJGbG9vckV4cC5wcm90byK+AQoRU3RhclRvd2VyRmxvb3JF", + "eHASCgoCaWQYASABKAUSFQoNc3Rhcl90b3dlcl9pZBgCIAEoBRINCgVzdGFn", + "ZRgDIAEoBRISCgpub3JtYWxfZXhwGAQgASgFEhEKCWVsaXRlX2V4cBgFIAEo", + "BRIQCghib3NzX2V4cBgGIAEoBRIWCg5maW5hbF9ib3NzX2V4cBgHIAEoBRIS", + "CgpkYW5nZXJfZXhwGAggASgFEhIKCmhvcnJvcl9leHAYCSABKAVCDqoCC05v", + "dmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerFloorExp), global::Nova.Client.StarTowerFloorExp.Parser, new[]{ "Id", "StarTowerId", "Stage", "NormalExp", "EliteExp", "BossExp", "FinalBossExp", "DangerExp", "HorrorExp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerFloorExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerFloorExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerFloorExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorExp(StarTowerFloorExp other) : this() { + id_ = other.id_; + starTowerId_ = other.starTowerId_; + stage_ = other.stage_; + normalExp_ = other.normalExp_; + eliteExp_ = other.eliteExp_; + bossExp_ = other.bossExp_; + finalBossExp_ = other.finalBossExp_; + dangerExp_ = other.dangerExp_; + horrorExp_ = other.horrorExp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorExp Clone() { + return new StarTowerFloorExp(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "star_tower_id" field. + public const int StarTowerIdFieldNumber = 2; + private int starTowerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StarTowerId { + get { return starTowerId_; } + set { + starTowerId_ = value; + } + } + + /// Field number for the "stage" field. + public const int StageFieldNumber = 3; + private int stage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stage { + get { return stage_; } + set { + stage_ = value; + } + } + + /// Field number for the "normal_exp" field. + public const int NormalExpFieldNumber = 4; + private int normalExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalExp { + get { return normalExp_; } + set { + normalExp_ = value; + } + } + + /// Field number for the "elite_exp" field. + public const int EliteExpFieldNumber = 5; + private int eliteExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EliteExp { + get { return eliteExp_; } + set { + eliteExp_ = value; + } + } + + /// Field number for the "boss_exp" field. + public const int BossExpFieldNumber = 6; + private int bossExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BossExp { + get { return bossExp_; } + set { + bossExp_ = value; + } + } + + /// Field number for the "final_boss_exp" field. + public const int FinalBossExpFieldNumber = 7; + private int finalBossExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FinalBossExp { + get { return finalBossExp_; } + set { + finalBossExp_ = value; + } + } + + /// Field number for the "danger_exp" field. + public const int DangerExpFieldNumber = 8; + private int dangerExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DangerExp { + get { return dangerExp_; } + set { + dangerExp_ = value; + } + } + + /// Field number for the "horror_exp" field. + public const int HorrorExpFieldNumber = 9; + private int horrorExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int HorrorExp { + get { return horrorExp_; } + set { + horrorExp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerFloorExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerFloorExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (StarTowerId != other.StarTowerId) return false; + if (Stage != other.Stage) return false; + if (NormalExp != other.NormalExp) return false; + if (EliteExp != other.EliteExp) return false; + if (BossExp != other.BossExp) return false; + if (FinalBossExp != other.FinalBossExp) return false; + if (DangerExp != other.DangerExp) return false; + if (HorrorExp != other.HorrorExp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (StarTowerId != 0) hash ^= StarTowerId.GetHashCode(); + if (Stage != 0) hash ^= Stage.GetHashCode(); + if (NormalExp != 0) hash ^= NormalExp.GetHashCode(); + if (EliteExp != 0) hash ^= EliteExp.GetHashCode(); + if (BossExp != 0) hash ^= BossExp.GetHashCode(); + if (FinalBossExp != 0) hash ^= FinalBossExp.GetHashCode(); + if (DangerExp != 0) hash ^= DangerExp.GetHashCode(); + if (HorrorExp != 0) hash ^= HorrorExp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (StarTowerId != 0) { + output.WriteRawTag(16); + output.WriteInt32(StarTowerId); + } + if (Stage != 0) { + output.WriteRawTag(24); + output.WriteInt32(Stage); + } + if (NormalExp != 0) { + output.WriteRawTag(32); + output.WriteInt32(NormalExp); + } + if (EliteExp != 0) { + output.WriteRawTag(40); + output.WriteInt32(EliteExp); + } + if (BossExp != 0) { + output.WriteRawTag(48); + output.WriteInt32(BossExp); + } + if (FinalBossExp != 0) { + output.WriteRawTag(56); + output.WriteInt32(FinalBossExp); + } + if (DangerExp != 0) { + output.WriteRawTag(64); + output.WriteInt32(DangerExp); + } + if (HorrorExp != 0) { + output.WriteRawTag(72); + output.WriteInt32(HorrorExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (StarTowerId != 0) { + output.WriteRawTag(16); + output.WriteInt32(StarTowerId); + } + if (Stage != 0) { + output.WriteRawTag(24); + output.WriteInt32(Stage); + } + if (NormalExp != 0) { + output.WriteRawTag(32); + output.WriteInt32(NormalExp); + } + if (EliteExp != 0) { + output.WriteRawTag(40); + output.WriteInt32(EliteExp); + } + if (BossExp != 0) { + output.WriteRawTag(48); + output.WriteInt32(BossExp); + } + if (FinalBossExp != 0) { + output.WriteRawTag(56); + output.WriteInt32(FinalBossExp); + } + if (DangerExp != 0) { + output.WriteRawTag(64); + output.WriteInt32(DangerExp); + } + if (HorrorExp != 0) { + output.WriteRawTag(72); + output.WriteInt32(HorrorExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (StarTowerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StarTowerId); + } + if (Stage != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stage); + } + if (NormalExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NormalExp); + } + if (EliteExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EliteExp); + } + if (BossExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossExp); + } + if (FinalBossExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FinalBossExp); + } + if (DangerExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DangerExp); + } + if (HorrorExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(HorrorExp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerFloorExp other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.StarTowerId != 0) { + StarTowerId = other.StarTowerId; + } + if (other.Stage != 0) { + Stage = other.Stage; + } + if (other.NormalExp != 0) { + NormalExp = other.NormalExp; + } + if (other.EliteExp != 0) { + EliteExp = other.EliteExp; + } + if (other.BossExp != 0) { + BossExp = other.BossExp; + } + if (other.FinalBossExp != 0) { + FinalBossExp = other.FinalBossExp; + } + if (other.DangerExp != 0) { + DangerExp = other.DangerExp; + } + if (other.HorrorExp != 0) { + HorrorExp = other.HorrorExp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + StarTowerId = input.ReadInt32(); + break; + } + case 24: { + Stage = input.ReadInt32(); + break; + } + case 32: { + NormalExp = input.ReadInt32(); + break; + } + case 40: { + EliteExp = input.ReadInt32(); + break; + } + case 48: { + BossExp = input.ReadInt32(); + break; + } + case 56: { + FinalBossExp = input.ReadInt32(); + break; + } + case 64: { + DangerExp = input.ReadInt32(); + break; + } + case 72: { + HorrorExp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + StarTowerId = input.ReadInt32(); + break; + } + case 24: { + Stage = input.ReadInt32(); + break; + } + case 32: { + NormalExp = input.ReadInt32(); + break; + } + case 40: { + EliteExp = input.ReadInt32(); + break; + } + case 48: { + BossExp = input.ReadInt32(); + break; + } + case 56: { + FinalBossExp = input.ReadInt32(); + break; + } + case 64: { + DangerExp = input.ReadInt32(); + break; + } + case 72: { + HorrorExp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerFloorSet.cs b/NTR.Common/protos/StarTowerFloorSet.cs new file mode 100644 index 0000000..64c5c58 --- /dev/null +++ b/NTR.Common/protos/StarTowerFloorSet.cs @@ -0,0 +1,608 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerFloorSet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerFloorSet.proto + public static partial class StarTowerFloorSetReflection { + + #region Descriptor + /// File descriptor for StarTowerFloorSet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerFloorSetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTdGFyVG93ZXJGbG9vclNldC5wcm90byKEAgoRU3RhclRvd2VyRmxvb3JT", + "ZXQSCgoCaWQYASABKAUSEgoKYmF0dGxlX2x2cxgCIAEoBRINCgVzdGFnZRgD", + "IAMoBRIRCglyb29tX3R5cGUYBCABKAUSDwoHbWFwX2lfZBgFIAMoBRIRCglm", + "bG9vcl9pX2QYBiADKAUSEgoKbW9uc3Rlcl9sdhgHIAEoBRIWCg50aGVtZV9z", + "a2lsbF9sdhgIIAEoBRIOCgZ3ZWlnaHQYCSABKAUSEwoLbXV0ZXhfZ3JvdXAY", + "CiADKAUSFwoPc3BlY2lhbF9tb2RlX2lkGAsgASgFEh8KF21vbnN0ZXJfZ3Jv", + "dXBfYmxhY2tsaXN0GAwgAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerFloorSet), global::Nova.Client.StarTowerFloorSet.Parser, new[]{ "Id", "BattleLvs", "Stage", "RoomType", "MapID", "FloorID", "MonsterLv", "ThemeSkillLv", "Weight", "MutexGroup", "SpecialModeId", "MonsterGroupBlacklist" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerFloorSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerFloorSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerFloorSetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorSet(StarTowerFloorSet other) : this() { + id_ = other.id_; + battleLvs_ = other.battleLvs_; + stage_ = other.stage_.Clone(); + roomType_ = other.roomType_; + mapID_ = other.mapID_.Clone(); + floorID_ = other.floorID_.Clone(); + monsterLv_ = other.monsterLv_; + themeSkillLv_ = other.themeSkillLv_; + weight_ = other.weight_; + mutexGroup_ = other.mutexGroup_.Clone(); + specialModeId_ = other.specialModeId_; + monsterGroupBlacklist_ = other.monsterGroupBlacklist_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerFloorSet Clone() { + return new StarTowerFloorSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "battle_lvs" field. + public const int BattleLvsFieldNumber = 2; + private int battleLvs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BattleLvs { + get { return battleLvs_; } + set { + battleLvs_ = value; + } + } + + /// Field number for the "stage" field. + public const int StageFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_stage_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField stage_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Stage { + get { return stage_; } + } + + /// Field number for the "room_type" field. + public const int RoomTypeFieldNumber = 4; + private int roomType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RoomType { + get { return roomType_; } + set { + roomType_ = value; + } + } + + /// Field number for the "map_i_d" field. + public const int MapIDFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_mapID_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField mapID_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MapID { + get { return mapID_; } + } + + /// Field number for the "floor_i_d" field. + public const int FloorIDFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_floorID_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField floorID_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FloorID { + get { return floorID_; } + } + + /// Field number for the "monster_lv" field. + public const int MonsterLvFieldNumber = 7; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + /// Field number for the "theme_skill_lv" field. + public const int ThemeSkillLvFieldNumber = 8; + private int themeSkillLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ThemeSkillLv { + get { return themeSkillLv_; } + set { + themeSkillLv_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 9; + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { return weight_; } + set { + weight_ = value; + } + } + + /// Field number for the "mutex_group" field. + public const int MutexGroupFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_mutexGroup_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField mutexGroup_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MutexGroup { + get { return mutexGroup_; } + } + + /// Field number for the "special_mode_id" field. + public const int SpecialModeIdFieldNumber = 11; + private int specialModeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SpecialModeId { + get { return specialModeId_; } + set { + specialModeId_ = value; + } + } + + /// Field number for the "monster_group_blacklist" field. + public const int MonsterGroupBlacklistFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_monsterGroupBlacklist_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField monsterGroupBlacklist_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MonsterGroupBlacklist { + get { return monsterGroupBlacklist_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerFloorSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerFloorSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BattleLvs != other.BattleLvs) return false; + if(!stage_.Equals(other.stage_)) return false; + if (RoomType != other.RoomType) return false; + if(!mapID_.Equals(other.mapID_)) return false; + if(!floorID_.Equals(other.floorID_)) return false; + if (MonsterLv != other.MonsterLv) return false; + if (ThemeSkillLv != other.ThemeSkillLv) return false; + if (Weight != other.Weight) return false; + if(!mutexGroup_.Equals(other.mutexGroup_)) return false; + if (SpecialModeId != other.SpecialModeId) return false; + if(!monsterGroupBlacklist_.Equals(other.monsterGroupBlacklist_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BattleLvs != 0) hash ^= BattleLvs.GetHashCode(); + hash ^= stage_.GetHashCode(); + if (RoomType != 0) hash ^= RoomType.GetHashCode(); + hash ^= mapID_.GetHashCode(); + hash ^= floorID_.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (ThemeSkillLv != 0) hash ^= ThemeSkillLv.GetHashCode(); + if (Weight != 0) hash ^= Weight.GetHashCode(); + hash ^= mutexGroup_.GetHashCode(); + if (SpecialModeId != 0) hash ^= SpecialModeId.GetHashCode(); + hash ^= monsterGroupBlacklist_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BattleLvs != 0) { + output.WriteRawTag(16); + output.WriteInt32(BattleLvs); + } + stage_.WriteTo(output, _repeated_stage_codec); + if (RoomType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RoomType); + } + mapID_.WriteTo(output, _repeated_mapID_codec); + floorID_.WriteTo(output, _repeated_floorID_codec); + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (ThemeSkillLv != 0) { + output.WriteRawTag(64); + output.WriteInt32(ThemeSkillLv); + } + if (Weight != 0) { + output.WriteRawTag(72); + output.WriteInt32(Weight); + } + mutexGroup_.WriteTo(output, _repeated_mutexGroup_codec); + if (SpecialModeId != 0) { + output.WriteRawTag(88); + output.WriteInt32(SpecialModeId); + } + monsterGroupBlacklist_.WriteTo(output, _repeated_monsterGroupBlacklist_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BattleLvs != 0) { + output.WriteRawTag(16); + output.WriteInt32(BattleLvs); + } + stage_.WriteTo(ref output, _repeated_stage_codec); + if (RoomType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RoomType); + } + mapID_.WriteTo(ref output, _repeated_mapID_codec); + floorID_.WriteTo(ref output, _repeated_floorID_codec); + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (ThemeSkillLv != 0) { + output.WriteRawTag(64); + output.WriteInt32(ThemeSkillLv); + } + if (Weight != 0) { + output.WriteRawTag(72); + output.WriteInt32(Weight); + } + mutexGroup_.WriteTo(ref output, _repeated_mutexGroup_codec); + if (SpecialModeId != 0) { + output.WriteRawTag(88); + output.WriteInt32(SpecialModeId); + } + monsterGroupBlacklist_.WriteTo(ref output, _repeated_monsterGroupBlacklist_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BattleLvs != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BattleLvs); + } + size += stage_.CalculateSize(_repeated_stage_codec); + if (RoomType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomType); + } + size += mapID_.CalculateSize(_repeated_mapID_codec); + size += floorID_.CalculateSize(_repeated_floorID_codec); + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (ThemeSkillLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThemeSkillLv); + } + if (Weight != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + size += mutexGroup_.CalculateSize(_repeated_mutexGroup_codec); + if (SpecialModeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpecialModeId); + } + size += monsterGroupBlacklist_.CalculateSize(_repeated_monsterGroupBlacklist_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerFloorSet other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BattleLvs != 0) { + BattleLvs = other.BattleLvs; + } + stage_.Add(other.stage_); + if (other.RoomType != 0) { + RoomType = other.RoomType; + } + mapID_.Add(other.mapID_); + floorID_.Add(other.floorID_); + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + if (other.ThemeSkillLv != 0) { + ThemeSkillLv = other.ThemeSkillLv; + } + if (other.Weight != 0) { + Weight = other.Weight; + } + mutexGroup_.Add(other.mutexGroup_); + if (other.SpecialModeId != 0) { + SpecialModeId = other.SpecialModeId; + } + monsterGroupBlacklist_.Add(other.monsterGroupBlacklist_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BattleLvs = input.ReadInt32(); + break; + } + case 26: + case 24: { + stage_.AddEntriesFrom(input, _repeated_stage_codec); + break; + } + case 32: { + RoomType = input.ReadInt32(); + break; + } + case 42: + case 40: { + mapID_.AddEntriesFrom(input, _repeated_mapID_codec); + break; + } + case 50: + case 48: { + floorID_.AddEntriesFrom(input, _repeated_floorID_codec); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + case 64: { + ThemeSkillLv = input.ReadInt32(); + break; + } + case 72: { + Weight = input.ReadInt32(); + break; + } + case 82: + case 80: { + mutexGroup_.AddEntriesFrom(input, _repeated_mutexGroup_codec); + break; + } + case 88: { + SpecialModeId = input.ReadInt32(); + break; + } + case 98: + case 96: { + monsterGroupBlacklist_.AddEntriesFrom(input, _repeated_monsterGroupBlacklist_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BattleLvs = input.ReadInt32(); + break; + } + case 26: + case 24: { + stage_.AddEntriesFrom(ref input, _repeated_stage_codec); + break; + } + case 32: { + RoomType = input.ReadInt32(); + break; + } + case 42: + case 40: { + mapID_.AddEntriesFrom(ref input, _repeated_mapID_codec); + break; + } + case 50: + case 48: { + floorID_.AddEntriesFrom(ref input, _repeated_floorID_codec); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + case 64: { + ThemeSkillLv = input.ReadInt32(); + break; + } + case 72: { + Weight = input.ReadInt32(); + break; + } + case 82: + case 80: { + mutexGroup_.AddEntriesFrom(ref input, _repeated_mutexGroup_codec); + break; + } + case 88: { + SpecialModeId = input.ReadInt32(); + break; + } + case 98: + case 96: { + monsterGroupBlacklist_.AddEntriesFrom(ref input, _repeated_monsterGroupBlacklist_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerGroup.cs b/NTR.Common/protos/StarTowerGroup.cs new file mode 100644 index 0000000..8d9b4e0 --- /dev/null +++ b/NTR.Common/protos/StarTowerGroup.cs @@ -0,0 +1,456 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerGroup.proto + public static partial class StarTowerGroupReflection { + + #region Descriptor + /// File descriptor for StarTowerGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdGFyVG93ZXJHcm91cC5wcm90byKBAQoOU3RhclRvd2VyR3JvdXASCgoC", + "aWQYASABKAUSDAoEbmFtZRgCIAEoCRINCgVlX2VfdBgDIAMoBRIPCgdlcGlz", + "b2RlGAQgASgJEgwKBHNvcnQYBSABKAUSEgoKZ3JvdXBfdHlwZRgGIAEoBRIT", + "Cgtncm91cF90aGVtZRgHIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerGroup), global::Nova.Client.StarTowerGroup.Parser, new[]{ "Id", "Name", "EET", "Episode", "Sort", "GroupType", "GroupTheme" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGroup(StarTowerGroup other) : this() { + id_ = other.id_; + name_ = other.name_; + eET_ = other.eET_.Clone(); + episode_ = other.episode_; + sort_ = other.sort_; + groupType_ = other.groupType_; + groupTheme_ = other.groupTheme_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGroup Clone() { + return new StarTowerGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "e_e_t" field. + public const int EETFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_eET_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField eET_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EET { + get { return eET_; } + } + + /// Field number for the "episode" field. + public const int EpisodeFieldNumber = 4; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 5; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "group_type" field. + public const int GroupTypeFieldNumber = 6; + private int groupType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupType { + get { return groupType_; } + set { + groupType_ = value; + } + } + + /// Field number for the "group_theme" field. + public const int GroupThemeFieldNumber = 7; + private int groupTheme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupTheme { + get { return groupTheme_; } + set { + groupTheme_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!eET_.Equals(other.eET_)) return false; + if (Episode != other.Episode) return false; + if (Sort != other.Sort) return false; + if (GroupType != other.GroupType) return false; + if (GroupTheme != other.GroupTheme) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= eET_.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (GroupType != 0) hash ^= GroupType.GetHashCode(); + if (GroupTheme != 0) hash ^= GroupTheme.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + eET_.WriteTo(output, _repeated_eET_codec); + if (Episode.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Episode); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (GroupType != 0) { + output.WriteRawTag(48); + output.WriteInt32(GroupType); + } + if (GroupTheme != 0) { + output.WriteRawTag(56); + output.WriteInt32(GroupTheme); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + eET_.WriteTo(ref output, _repeated_eET_codec); + if (Episode.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Episode); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (GroupType != 0) { + output.WriteRawTag(48); + output.WriteInt32(GroupType); + } + if (GroupTheme != 0) { + output.WriteRawTag(56); + output.WriteInt32(GroupTheme); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += eET_.CalculateSize(_repeated_eET_codec); + if (Episode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (GroupType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupType); + } + if (GroupTheme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupTheme); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + eET_.Add(other.eET_); + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.GroupType != 0) { + GroupType = other.GroupType; + } + if (other.GroupTheme != 0) { + GroupTheme = other.GroupTheme; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: + case 24: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + case 34: { + Episode = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + case 48: { + GroupType = input.ReadInt32(); + break; + } + case 56: { + GroupTheme = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: + case 24: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + case 34: { + Episode = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + case 48: { + GroupType = input.ReadInt32(); + break; + } + case 56: { + GroupTheme = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerGrowthGroup.cs b/NTR.Common/protos/StarTowerGrowthGroup.cs new file mode 100644 index 0000000..edf144e --- /dev/null +++ b/NTR.Common/protos/StarTowerGrowthGroup.cs @@ -0,0 +1,354 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerGrowthGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerGrowthGroup.proto + public static partial class StarTowerGrowthGroupReflection { + + #region Descriptor + /// File descriptor for StarTowerGrowthGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerGrowthGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdGFyVG93ZXJHcm93dGhHcm91cC5wcm90byJYChRTdGFyVG93ZXJHcm93", + "dGhHcm91cBIKCgJpZBgBIAEoBRIRCglwcmVfZ3JvdXAYAiABKAUSEwoLd29y", + "bGRfY2xhc3MYAyABKAUSDAoEbmFtZRgEIAEoCUIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerGrowthGroup), global::Nova.Client.StarTowerGrowthGroup.Parser, new[]{ "Id", "PreGroup", "WorldClass", "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerGrowthGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerGrowthGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerGrowthGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGrowthGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGrowthGroup(StarTowerGrowthGroup other) : this() { + id_ = other.id_; + preGroup_ = other.preGroup_; + worldClass_ = other.worldClass_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGrowthGroup Clone() { + return new StarTowerGrowthGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "pre_group" field. + public const int PreGroupFieldNumber = 2; + private int preGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreGroup { + get { return preGroup_; } + set { + preGroup_ = value; + } + } + + /// Field number for the "world_class" field. + public const int WorldClassFieldNumber = 3; + private int worldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClass { + get { return worldClass_; } + set { + worldClass_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerGrowthGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerGrowthGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (PreGroup != other.PreGroup) return false; + if (WorldClass != other.WorldClass) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (PreGroup != 0) hash ^= PreGroup.GetHashCode(); + if (WorldClass != 0) hash ^= WorldClass.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PreGroup != 0) { + output.WriteRawTag(16); + output.WriteInt32(PreGroup); + } + if (WorldClass != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorldClass); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (PreGroup != 0) { + output.WriteRawTag(16); + output.WriteInt32(PreGroup); + } + if (WorldClass != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorldClass); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (PreGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreGroup); + } + if (WorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClass); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerGrowthGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.PreGroup != 0) { + PreGroup = other.PreGroup; + } + if (other.WorldClass != 0) { + WorldClass = other.WorldClass; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + PreGroup = input.ReadInt32(); + break; + } + case 24: { + WorldClass = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + PreGroup = input.ReadInt32(); + break; + } + case 24: { + WorldClass = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerGrowthNode.cs b/NTR.Common/protos/StarTowerGrowthNode.cs new file mode 100644 index 0000000..887fcd6 --- /dev/null +++ b/NTR.Common/protos/StarTowerGrowthNode.cs @@ -0,0 +1,971 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerGrowthNode.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerGrowthNode.proto + public static partial class StarTowerGrowthNodeReflection { + + #region Descriptor + /// File descriptor for StarTowerGrowthNode.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerGrowthNodeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFyVG93ZXJHcm93dGhOb2RlLnByb3RvIoIDChNTdGFyVG93ZXJHcm93", + "dGhOb2RlEgoKAmlkGAEgASgFEg8KB25vZGVfaWQYAiABKAUSDQoFZ3JvdXAY", + "AyABKAUSDAoEbmFtZRgEIAEoCRIRCglpc19zZXJ2ZXIYBSABKAgSEQoJaXNf", + "Y2xpZW50GAYgASgIEgwKBHR5cGUYByABKAUSDQoFY29sb3IYCCABKAUSEQoJ", + "cHJlX25vZGVzGAkgAygFEhUKDWVmZmVjdF9jbGllbnQYCiABKAUSFQoNY2xp", + "ZW50X3BhcmFtcxgLIAEoCRIQCghwcmlvcml0eRgMIAEoBRIMCgRpY29uGA0g", + "ASgJEhAKCHBvc2l0aW9uGA4gAygFEgwKBGRlc2MYDyABKAkSEAoIaXRlbV9p", + "ZDEYECABKAUSEQoJaXRlbV9xdHkxGBEgASgFEhAKCGl0ZW1faWQyGBIgASgF", + "EhEKCWl0ZW1fcXR5MhgTIAEoBRIQCghpdGVtX2lkMxgUIAEoBRIRCglpdGVt", + "X3F0eTMYFSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerGrowthNode), global::Nova.Client.StarTowerGrowthNode.Parser, new[]{ "Id", "NodeId", "Group", "Name", "IsServer", "IsClient", "Type", "Color", "PreNodes", "EffectClient", "ClientParams", "Priority", "Icon", "Position", "Desc", "ItemId1", "ItemQty1", "ItemId2", "ItemQty2", "ItemId3", "ItemQty3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerGrowthNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerGrowthNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerGrowthNodeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGrowthNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGrowthNode(StarTowerGrowthNode other) : this() { + id_ = other.id_; + nodeId_ = other.nodeId_; + group_ = other.group_; + name_ = other.name_; + isServer_ = other.isServer_; + isClient_ = other.isClient_; + type_ = other.type_; + color_ = other.color_; + preNodes_ = other.preNodes_.Clone(); + effectClient_ = other.effectClient_; + clientParams_ = other.clientParams_; + priority_ = other.priority_; + icon_ = other.icon_; + position_ = other.position_.Clone(); + desc_ = other.desc_; + itemId1_ = other.itemId1_; + itemQty1_ = other.itemQty1_; + itemId2_ = other.itemId2_; + itemQty2_ = other.itemQty2_; + itemId3_ = other.itemId3_; + itemQty3_ = other.itemQty3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerGrowthNode Clone() { + return new StarTowerGrowthNode(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "node_id" field. + public const int NodeIdFieldNumber = 2; + private int nodeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NodeId { + get { return nodeId_; } + set { + nodeId_ = value; + } + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 3; + private int group_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Group { + get { return group_; } + set { + group_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_server" field. + public const int IsServerFieldNumber = 5; + private bool isServer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsServer { + get { return isServer_; } + set { + isServer_ = value; + } + } + + /// Field number for the "is_client" field. + public const int IsClientFieldNumber = 6; + private bool isClient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsClient { + get { return isClient_; } + set { + isClient_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 7; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 8; + private int color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Color { + get { return color_; } + set { + color_ = value; + } + } + + /// Field number for the "pre_nodes" field. + public const int PreNodesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_preNodes_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField preNodes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PreNodes { + get { return preNodes_; } + } + + /// Field number for the "effect_client" field. + public const int EffectClientFieldNumber = 10; + private int effectClient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectClient { + get { return effectClient_; } + set { + effectClient_ = value; + } + } + + /// Field number for the "client_params" field. + public const int ClientParamsFieldNumber = 11; + private string clientParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientParams { + get { return clientParams_; } + set { + clientParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 12; + private int priority_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 13; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_position_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField position_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Position { + get { return position_; } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 15; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item_id1" field. + public const int ItemId1FieldNumber = 16; + private int itemId1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId1 { + get { return itemId1_; } + set { + itemId1_ = value; + } + } + + /// Field number for the "item_qty1" field. + public const int ItemQty1FieldNumber = 17; + private int itemQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty1 { + get { return itemQty1_; } + set { + itemQty1_ = value; + } + } + + /// Field number for the "item_id2" field. + public const int ItemId2FieldNumber = 18; + private int itemId2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId2 { + get { return itemId2_; } + set { + itemId2_ = value; + } + } + + /// Field number for the "item_qty2" field. + public const int ItemQty2FieldNumber = 19; + private int itemQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty2 { + get { return itemQty2_; } + set { + itemQty2_ = value; + } + } + + /// Field number for the "item_id3" field. + public const int ItemId3FieldNumber = 20; + private int itemId3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId3 { + get { return itemId3_; } + set { + itemId3_ = value; + } + } + + /// Field number for the "item_qty3" field. + public const int ItemQty3FieldNumber = 21; + private int itemQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemQty3 { + get { return itemQty3_; } + set { + itemQty3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerGrowthNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerGrowthNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeId != other.NodeId) return false; + if (Group != other.Group) return false; + if (Name != other.Name) return false; + if (IsServer != other.IsServer) return false; + if (IsClient != other.IsClient) return false; + if (Type != other.Type) return false; + if (Color != other.Color) return false; + if(!preNodes_.Equals(other.preNodes_)) return false; + if (EffectClient != other.EffectClient) return false; + if (ClientParams != other.ClientParams) return false; + if (Priority != other.Priority) return false; + if (Icon != other.Icon) return false; + if(!position_.Equals(other.position_)) return false; + if (Desc != other.Desc) return false; + if (ItemId1 != other.ItemId1) return false; + if (ItemQty1 != other.ItemQty1) return false; + if (ItemId2 != other.ItemId2) return false; + if (ItemQty2 != other.ItemQty2) return false; + if (ItemId3 != other.ItemId3) return false; + if (ItemQty3 != other.ItemQty3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (NodeId != 0) hash ^= NodeId.GetHashCode(); + if (Group != 0) hash ^= Group.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (IsServer != false) hash ^= IsServer.GetHashCode(); + if (IsClient != false) hash ^= IsClient.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (Color != 0) hash ^= Color.GetHashCode(); + hash ^= preNodes_.GetHashCode(); + if (EffectClient != 0) hash ^= EffectClient.GetHashCode(); + if (ClientParams.Length != 0) hash ^= ClientParams.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + hash ^= position_.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (ItemId1 != 0) hash ^= ItemId1.GetHashCode(); + if (ItemQty1 != 0) hash ^= ItemQty1.GetHashCode(); + if (ItemId2 != 0) hash ^= ItemId2.GetHashCode(); + if (ItemQty2 != 0) hash ^= ItemQty2.GetHashCode(); + if (ItemId3 != 0) hash ^= ItemId3.GetHashCode(); + if (ItemQty3 != 0) hash ^= ItemQty3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (NodeId != 0) { + output.WriteRawTag(16); + output.WriteInt32(NodeId); + } + if (Group != 0) { + output.WriteRawTag(24); + output.WriteInt32(Group); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (IsServer != false) { + output.WriteRawTag(40); + output.WriteBool(IsServer); + } + if (IsClient != false) { + output.WriteRawTag(48); + output.WriteBool(IsClient); + } + if (Type != 0) { + output.WriteRawTag(56); + output.WriteInt32(Type); + } + if (Color != 0) { + output.WriteRawTag(64); + output.WriteInt32(Color); + } + preNodes_.WriteTo(output, _repeated_preNodes_codec); + if (EffectClient != 0) { + output.WriteRawTag(80); + output.WriteInt32(EffectClient); + } + if (ClientParams.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ClientParams); + } + if (Priority != 0) { + output.WriteRawTag(96); + output.WriteInt32(Priority); + } + if (Icon.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Icon); + } + position_.WriteTo(output, _repeated_position_codec); + if (Desc.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Desc); + } + if (ItemId1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ItemId1); + } + if (ItemQty1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ItemQty1); + } + if (ItemId2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(ItemId2); + } + if (ItemQty2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ItemQty2); + } + if (ItemId3 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(ItemId3); + } + if (ItemQty3 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(ItemQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (NodeId != 0) { + output.WriteRawTag(16); + output.WriteInt32(NodeId); + } + if (Group != 0) { + output.WriteRawTag(24); + output.WriteInt32(Group); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (IsServer != false) { + output.WriteRawTag(40); + output.WriteBool(IsServer); + } + if (IsClient != false) { + output.WriteRawTag(48); + output.WriteBool(IsClient); + } + if (Type != 0) { + output.WriteRawTag(56); + output.WriteInt32(Type); + } + if (Color != 0) { + output.WriteRawTag(64); + output.WriteInt32(Color); + } + preNodes_.WriteTo(ref output, _repeated_preNodes_codec); + if (EffectClient != 0) { + output.WriteRawTag(80); + output.WriteInt32(EffectClient); + } + if (ClientParams.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ClientParams); + } + if (Priority != 0) { + output.WriteRawTag(96); + output.WriteInt32(Priority); + } + if (Icon.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Icon); + } + position_.WriteTo(ref output, _repeated_position_codec); + if (Desc.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Desc); + } + if (ItemId1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ItemId1); + } + if (ItemQty1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ItemQty1); + } + if (ItemId2 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(ItemId2); + } + if (ItemQty2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ItemQty2); + } + if (ItemId3 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(ItemId3); + } + if (ItemQty3 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(ItemQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (NodeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeId); + } + if (Group != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (IsServer != false) { + size += 1 + 1; + } + if (IsClient != false) { + size += 1 + 1; + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (Color != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Color); + } + size += preNodes_.CalculateSize(_repeated_preNodes_codec); + if (EffectClient != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectClient); + } + if (ClientParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientParams); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + size += position_.CalculateSize(_repeated_position_codec); + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (ItemId1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemId1); + } + if (ItemQty1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemQty1); + } + if (ItemId2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemId2); + } + if (ItemQty2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemQty2); + } + if (ItemId3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemId3); + } + if (ItemQty3 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ItemQty3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerGrowthNode other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.NodeId != 0) { + NodeId = other.NodeId; + } + if (other.Group != 0) { + Group = other.Group; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.IsServer != false) { + IsServer = other.IsServer; + } + if (other.IsClient != false) { + IsClient = other.IsClient; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Color != 0) { + Color = other.Color; + } + preNodes_.Add(other.preNodes_); + if (other.EffectClient != 0) { + EffectClient = other.EffectClient; + } + if (other.ClientParams.Length != 0) { + ClientParams = other.ClientParams; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + position_.Add(other.position_); + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.ItemId1 != 0) { + ItemId1 = other.ItemId1; + } + if (other.ItemQty1 != 0) { + ItemQty1 = other.ItemQty1; + } + if (other.ItemId2 != 0) { + ItemId2 = other.ItemId2; + } + if (other.ItemQty2 != 0) { + ItemQty2 = other.ItemQty2; + } + if (other.ItemId3 != 0) { + ItemId3 = other.ItemId3; + } + if (other.ItemQty3 != 0) { + ItemQty3 = other.ItemQty3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + NodeId = input.ReadInt32(); + break; + } + case 24: { + Group = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + IsServer = input.ReadBool(); + break; + } + case 48: { + IsClient = input.ReadBool(); + break; + } + case 56: { + Type = input.ReadInt32(); + break; + } + case 64: { + Color = input.ReadInt32(); + break; + } + case 74: + case 72: { + preNodes_.AddEntriesFrom(input, _repeated_preNodes_codec); + break; + } + case 80: { + EffectClient = input.ReadInt32(); + break; + } + case 90: { + ClientParams = input.ReadString(); + break; + } + case 96: { + Priority = input.ReadInt32(); + break; + } + case 106: { + Icon = input.ReadString(); + break; + } + case 114: + case 112: { + position_.AddEntriesFrom(input, _repeated_position_codec); + break; + } + case 122: { + Desc = input.ReadString(); + break; + } + case 128: { + ItemId1 = input.ReadInt32(); + break; + } + case 136: { + ItemQty1 = input.ReadInt32(); + break; + } + case 144: { + ItemId2 = input.ReadInt32(); + break; + } + case 152: { + ItemQty2 = input.ReadInt32(); + break; + } + case 160: { + ItemId3 = input.ReadInt32(); + break; + } + case 168: { + ItemQty3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + NodeId = input.ReadInt32(); + break; + } + case 24: { + Group = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 40: { + IsServer = input.ReadBool(); + break; + } + case 48: { + IsClient = input.ReadBool(); + break; + } + case 56: { + Type = input.ReadInt32(); + break; + } + case 64: { + Color = input.ReadInt32(); + break; + } + case 74: + case 72: { + preNodes_.AddEntriesFrom(ref input, _repeated_preNodes_codec); + break; + } + case 80: { + EffectClient = input.ReadInt32(); + break; + } + case 90: { + ClientParams = input.ReadString(); + break; + } + case 96: { + Priority = input.ReadInt32(); + break; + } + case 106: { + Icon = input.ReadString(); + break; + } + case 114: + case 112: { + position_.AddEntriesFrom(ref input, _repeated_position_codec); + break; + } + case 122: { + Desc = input.ReadString(); + break; + } + case 128: { + ItemId1 = input.ReadInt32(); + break; + } + case 136: { + ItemQty1 = input.ReadInt32(); + break; + } + case 144: { + ItemId2 = input.ReadInt32(); + break; + } + case 152: { + ItemQty2 = input.ReadInt32(); + break; + } + case 160: { + ItemId3 = input.ReadInt32(); + break; + } + case 168: { + ItemQty3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerHarmonySkill.cs b/NTR.Common/protos/StarTowerHarmonySkill.cs new file mode 100644 index 0000000..b5065b2 --- /dev/null +++ b/NTR.Common/protos/StarTowerHarmonySkill.cs @@ -0,0 +1,569 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerHarmonySkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerHarmonySkill.proto + public static partial class StarTowerHarmonySkillReflection { + + #region Descriptor + /// File descriptor for StarTowerHarmonySkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerHarmonySkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTdGFyVG93ZXJIYXJtb255U2tpbGwucHJvdG8isgEKFVN0YXJUb3dlckhh", + "cm1vbnlTa2lsbBIKCgJpZBgBIAEoBRIOCgZyYXJpdHkYAiABKAUSDAoEbmFt", + "ZRgDIAEoCRILCgN0YWcYBCABKAUSDQoFc2NvcmUYBSABKAUSEQoJZWZmZWN0", + "X2lkGAYgAygFEgwKBGRlc2MYByABKAkSDAoEaWNvbhgIIAEoCRIPCgdpY29u", + "X2JnGAkgASgJEhMKC2ljb25fY29ybmVyGAogASgJQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerHarmonySkill), global::Nova.Client.StarTowerHarmonySkill.Parser, new[]{ "Id", "Rarity", "Name", "Tag", "Score", "EffectId", "Desc", "Icon", "IconBg", "IconCorner" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerHarmonySkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerHarmonySkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerHarmonySkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerHarmonySkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerHarmonySkill(StarTowerHarmonySkill other) : this() { + id_ = other.id_; + rarity_ = other.rarity_; + name_ = other.name_; + tag_ = other.tag_; + score_ = other.score_; + effectId_ = other.effectId_.Clone(); + desc_ = other.desc_; + icon_ = other.icon_; + iconBg_ = other.iconBg_; + iconCorner_ = other.iconCorner_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerHarmonySkill Clone() { + return new StarTowerHarmonySkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 2; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 4; + private int tag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Tag { + get { return tag_; } + set { + tag_ = value; + } + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 5; + private int score_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Score { + get { return score_; } + set { + score_ = value; + } + } + + /// Field number for the "effect_id" field. + public const int EffectIdFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_effectId_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField effectId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId { + get { return effectId_; } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 7; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon_bg" field. + public const int IconBgFieldNumber = 9; + private string iconBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBg { + get { return iconBg_; } + set { + iconBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon_corner" field. + public const int IconCornerFieldNumber = 10; + private string iconCorner_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconCorner { + get { return iconCorner_; } + set { + iconCorner_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerHarmonySkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerHarmonySkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Rarity != other.Rarity) return false; + if (Name != other.Name) return false; + if (Tag != other.Tag) return false; + if (Score != other.Score) return false; + if(!effectId_.Equals(other.effectId_)) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (IconBg != other.IconBg) return false; + if (IconCorner != other.IconCorner) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Tag != 0) hash ^= Tag.GetHashCode(); + if (Score != 0) hash ^= Score.GetHashCode(); + hash ^= effectId_.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (IconBg.Length != 0) hash ^= IconBg.GetHashCode(); + if (IconCorner.Length != 0) hash ^= IconCorner.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Rarity != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rarity); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Tag != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tag); + } + if (Score != 0) { + output.WriteRawTag(40); + output.WriteInt32(Score); + } + effectId_.WriteTo(output, _repeated_effectId_codec); + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(74); + output.WriteString(IconBg); + } + if (IconCorner.Length != 0) { + output.WriteRawTag(82); + output.WriteString(IconCorner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Rarity != 0) { + output.WriteRawTag(16); + output.WriteInt32(Rarity); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Tag != 0) { + output.WriteRawTag(32); + output.WriteInt32(Tag); + } + if (Score != 0) { + output.WriteRawTag(40); + output.WriteInt32(Score); + } + effectId_.WriteTo(ref output, _repeated_effectId_codec); + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(74); + output.WriteString(IconBg); + } + if (IconCorner.Length != 0) { + output.WriteRawTag(82); + output.WriteString(IconCorner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Tag != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Tag); + } + if (Score != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score); + } + size += effectId_.CalculateSize(_repeated_effectId_codec); + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (IconBg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBg); + } + if (IconCorner.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconCorner); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerHarmonySkill other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Tag != 0) { + Tag = other.Tag; + } + if (other.Score != 0) { + Score = other.Score; + } + effectId_.Add(other.effectId_); + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.IconBg.Length != 0) { + IconBg = other.IconBg; + } + if (other.IconCorner.Length != 0) { + IconCorner = other.IconCorner; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Rarity = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Tag = input.ReadInt32(); + break; + } + case 40: { + Score = input.ReadInt32(); + break; + } + case 50: + case 48: { + effectId_.AddEntriesFrom(input, _repeated_effectId_codec); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + IconBg = input.ReadString(); + break; + } + case 82: { + IconCorner = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Rarity = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + Tag = input.ReadInt32(); + break; + } + case 40: { + Score = input.ReadInt32(); + break; + } + case 50: + case 48: { + effectId_.AddEntriesFrom(ref input, _repeated_effectId_codec); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + IconBg = input.ReadString(); + break; + } + case 82: { + IconCorner = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerLimitReward.cs b/NTR.Common/protos/StarTowerLimitReward.cs new file mode 100644 index 0000000..744e242 --- /dev/null +++ b/NTR.Common/protos/StarTowerLimitReward.cs @@ -0,0 +1,382 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerLimitReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerLimitReward.proto + public static partial class StarTowerLimitRewardReflection { + + #region Descriptor + /// File descriptor for StarTowerLimitReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerLimitRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdGFyVG93ZXJMaW1pdFJld2FyZC5wcm90byJvChRTdGFyVG93ZXJMaW1p", + "dFJld2FyZBIKCgJpZBgBIAEoBRINCgVzdGFnZRgCIAEoBRIVCg1zdGFyX3Rv", + "d2VyX2lkGAMgASgFEhEKCXJvb21fdHlwZRgEIAEoBRISCgp0aW1lX2xpbWl0", + "GAUgAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerLimitReward), global::Nova.Client.StarTowerLimitReward.Parser, new[]{ "Id", "Stage", "StarTowerId", "RoomType", "TimeLimit" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerLimitReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerLimitReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerLimitRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerLimitReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerLimitReward(StarTowerLimitReward other) : this() { + id_ = other.id_; + stage_ = other.stage_; + starTowerId_ = other.starTowerId_; + roomType_ = other.roomType_; + timeLimit_ = other.timeLimit_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerLimitReward Clone() { + return new StarTowerLimitReward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "stage" field. + public const int StageFieldNumber = 2; + private int stage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stage { + get { return stage_; } + set { + stage_ = value; + } + } + + /// Field number for the "star_tower_id" field. + public const int StarTowerIdFieldNumber = 3; + private int starTowerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StarTowerId { + get { return starTowerId_; } + set { + starTowerId_ = value; + } + } + + /// Field number for the "room_type" field. + public const int RoomTypeFieldNumber = 4; + private int roomType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RoomType { + get { return roomType_; } + set { + roomType_ = value; + } + } + + /// Field number for the "time_limit" field. + public const int TimeLimitFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_timeLimit_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField timeLimit_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TimeLimit { + get { return timeLimit_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerLimitReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerLimitReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Stage != other.Stage) return false; + if (StarTowerId != other.StarTowerId) return false; + if (RoomType != other.RoomType) return false; + if(!timeLimit_.Equals(other.timeLimit_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Stage != 0) hash ^= Stage.GetHashCode(); + if (StarTowerId != 0) hash ^= StarTowerId.GetHashCode(); + if (RoomType != 0) hash ^= RoomType.GetHashCode(); + hash ^= timeLimit_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Stage != 0) { + output.WriteRawTag(16); + output.WriteInt32(Stage); + } + if (StarTowerId != 0) { + output.WriteRawTag(24); + output.WriteInt32(StarTowerId); + } + if (RoomType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RoomType); + } + timeLimit_.WriteTo(output, _repeated_timeLimit_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Stage != 0) { + output.WriteRawTag(16); + output.WriteInt32(Stage); + } + if (StarTowerId != 0) { + output.WriteRawTag(24); + output.WriteInt32(StarTowerId); + } + if (RoomType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RoomType); + } + timeLimit_.WriteTo(ref output, _repeated_timeLimit_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Stage != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stage); + } + if (StarTowerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StarTowerId); + } + if (RoomType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomType); + } + size += timeLimit_.CalculateSize(_repeated_timeLimit_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerLimitReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Stage != 0) { + Stage = other.Stage; + } + if (other.StarTowerId != 0) { + StarTowerId = other.StarTowerId; + } + if (other.RoomType != 0) { + RoomType = other.RoomType; + } + timeLimit_.Add(other.timeLimit_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Stage = input.ReadInt32(); + break; + } + case 24: { + StarTowerId = input.ReadInt32(); + break; + } + case 32: { + RoomType = input.ReadInt32(); + break; + } + case 42: + case 40: { + timeLimit_.AddEntriesFrom(input, _repeated_timeLimit_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Stage = input.ReadInt32(); + break; + } + case 24: { + StarTowerId = input.ReadInt32(); + break; + } + case 32: { + RoomType = input.ReadInt32(); + break; + } + case 42: + case 40: { + timeLimit_.AddEntriesFrom(ref input, _repeated_timeLimit_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerMap.cs b/NTR.Common/protos/StarTowerMap.cs new file mode 100644 index 0000000..9998403 --- /dev/null +++ b/NTR.Common/protos/StarTowerMap.cs @@ -0,0 +1,569 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerMap.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerMap.proto + public static partial class StarTowerMapReflection { + + #region Descriptor + /// File descriptor for StarTowerMap.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerMapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJTdGFyVG93ZXJNYXAucHJvdG8i1wEKDFN0YXJUb3dlck1hcBIKCgJpZBgB", + "IAEoBRIRCglzY2VuZV9yZXMYAiABKAkSFQoNYl9nX3NjZW5lX3JlcxgDIAEo", + "CRINCgV0aGVtZRgEIAEoBRISCgpwcmVmYWJfbnVtGAUgAygFEgsKA21pchgG", + "IAEoCBIUCgxvdXRfcG9ydF9udW0YByABKAUSFQoNb3V0X3BvcnRfaGludBgI", + "IAEoCBIRCgliX2dfbV9yZXMYCSABKAkSIQoZY29tcGxldGVfc291bmRfZWZm", + "ZWN0X3JlcxgKIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerMap), global::Nova.Client.StarTowerMap.Parser, new[]{ "Id", "SceneRes", "BGSceneRes", "Theme", "PrefabNum", "Mir", "OutPortNum", "OutPortHint", "BGMRes", "CompleteSoundEffectRes" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerMapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMap(StarTowerMap other) : this() { + id_ = other.id_; + sceneRes_ = other.sceneRes_; + bGSceneRes_ = other.bGSceneRes_; + theme_ = other.theme_; + prefabNum_ = other.prefabNum_.Clone(); + mir_ = other.mir_; + outPortNum_ = other.outPortNum_; + outPortHint_ = other.outPortHint_; + bGMRes_ = other.bGMRes_; + completeSoundEffectRes_ = other.completeSoundEffectRes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMap Clone() { + return new StarTowerMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "scene_res" field. + public const int SceneResFieldNumber = 2; + private string sceneRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneRes { + get { return sceneRes_; } + set { + sceneRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "b_g_scene_res" field. + public const int BGSceneResFieldNumber = 3; + private string bGSceneRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGSceneRes { + get { return bGSceneRes_; } + set { + bGSceneRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "theme" field. + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// Field number for the "prefab_num" field. + public const int PrefabNumFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_prefabNum_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField prefabNum_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrefabNum { + get { return prefabNum_; } + } + + /// Field number for the "mir" field. + public const int MirFieldNumber = 6; + private bool mir_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Mir { + get { return mir_; } + set { + mir_ = value; + } + } + + /// Field number for the "out_port_num" field. + public const int OutPortNumFieldNumber = 7; + private int outPortNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OutPortNum { + get { return outPortNum_; } + set { + outPortNum_ = value; + } + } + + /// Field number for the "out_port_hint" field. + public const int OutPortHintFieldNumber = 8; + private bool outPortHint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool OutPortHint { + get { return outPortHint_; } + set { + outPortHint_ = value; + } + } + + /// Field number for the "b_g_m_res" field. + public const int BGMResFieldNumber = 9; + private string bGMRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGMRes { + get { return bGMRes_; } + set { + bGMRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "complete_sound_effect_res" field. + public const int CompleteSoundEffectResFieldNumber = 10; + private string completeSoundEffectRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteSoundEffectRes { + get { return completeSoundEffectRes_; } + set { + completeSoundEffectRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneRes != other.SceneRes) return false; + if (BGSceneRes != other.BGSceneRes) return false; + if (Theme != other.Theme) return false; + if(!prefabNum_.Equals(other.prefabNum_)) return false; + if (Mir != other.Mir) return false; + if (OutPortNum != other.OutPortNum) return false; + if (OutPortHint != other.OutPortHint) return false; + if (BGMRes != other.BGMRes) return false; + if (CompleteSoundEffectRes != other.CompleteSoundEffectRes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneRes.Length != 0) hash ^= SceneRes.GetHashCode(); + if (BGSceneRes.Length != 0) hash ^= BGSceneRes.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + hash ^= prefabNum_.GetHashCode(); + if (Mir != false) hash ^= Mir.GetHashCode(); + if (OutPortNum != 0) hash ^= OutPortNum.GetHashCode(); + if (OutPortHint != false) hash ^= OutPortHint.GetHashCode(); + if (BGMRes.Length != 0) hash ^= BGMRes.GetHashCode(); + if (CompleteSoundEffectRes.Length != 0) hash ^= CompleteSoundEffectRes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneRes.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneRes); + } + if (BGSceneRes.Length != 0) { + output.WriteRawTag(26); + output.WriteString(BGSceneRes); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + prefabNum_.WriteTo(output, _repeated_prefabNum_codec); + if (Mir != false) { + output.WriteRawTag(48); + output.WriteBool(Mir); + } + if (OutPortNum != 0) { + output.WriteRawTag(56); + output.WriteInt32(OutPortNum); + } + if (OutPortHint != false) { + output.WriteRawTag(64); + output.WriteBool(OutPortHint); + } + if (BGMRes.Length != 0) { + output.WriteRawTag(74); + output.WriteString(BGMRes); + } + if (CompleteSoundEffectRes.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CompleteSoundEffectRes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneRes.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneRes); + } + if (BGSceneRes.Length != 0) { + output.WriteRawTag(26); + output.WriteString(BGSceneRes); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + prefabNum_.WriteTo(ref output, _repeated_prefabNum_codec); + if (Mir != false) { + output.WriteRawTag(48); + output.WriteBool(Mir); + } + if (OutPortNum != 0) { + output.WriteRawTag(56); + output.WriteInt32(OutPortNum); + } + if (OutPortHint != false) { + output.WriteRawTag(64); + output.WriteBool(OutPortHint); + } + if (BGMRes.Length != 0) { + output.WriteRawTag(74); + output.WriteString(BGMRes); + } + if (CompleteSoundEffectRes.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CompleteSoundEffectRes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneRes); + } + if (BGSceneRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGSceneRes); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + size += prefabNum_.CalculateSize(_repeated_prefabNum_codec); + if (Mir != false) { + size += 1 + 1; + } + if (OutPortNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutPortNum); + } + if (OutPortHint != false) { + size += 1 + 1; + } + if (BGMRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGMRes); + } + if (CompleteSoundEffectRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteSoundEffectRes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerMap other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneRes.Length != 0) { + SceneRes = other.SceneRes; + } + if (other.BGSceneRes.Length != 0) { + BGSceneRes = other.BGSceneRes; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + prefabNum_.Add(other.prefabNum_); + if (other.Mir != false) { + Mir = other.Mir; + } + if (other.OutPortNum != 0) { + OutPortNum = other.OutPortNum; + } + if (other.OutPortHint != false) { + OutPortHint = other.OutPortHint; + } + if (other.BGMRes.Length != 0) { + BGMRes = other.BGMRes; + } + if (other.CompleteSoundEffectRes.Length != 0) { + CompleteSoundEffectRes = other.CompleteSoundEffectRes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneRes = input.ReadString(); + break; + } + case 26: { + BGSceneRes = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: + case 40: { + prefabNum_.AddEntriesFrom(input, _repeated_prefabNum_codec); + break; + } + case 48: { + Mir = input.ReadBool(); + break; + } + case 56: { + OutPortNum = input.ReadInt32(); + break; + } + case 64: { + OutPortHint = input.ReadBool(); + break; + } + case 74: { + BGMRes = input.ReadString(); + break; + } + case 82: { + CompleteSoundEffectRes = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneRes = input.ReadString(); + break; + } + case 26: { + BGSceneRes = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: + case 40: { + prefabNum_.AddEntriesFrom(ref input, _repeated_prefabNum_codec); + break; + } + case 48: { + Mir = input.ReadBool(); + break; + } + case 56: { + OutPortNum = input.ReadInt32(); + break; + } + case 64: { + OutPortHint = input.ReadBool(); + break; + } + case 74: { + BGMRes = input.ReadString(); + break; + } + case 82: { + CompleteSoundEffectRes = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerMapMaxNumPerStage.cs b/NTR.Common/protos/StarTowerMapMaxNumPerStage.cs new file mode 100644 index 0000000..ed412c5 --- /dev/null +++ b/NTR.Common/protos/StarTowerMapMaxNumPerStage.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerMapMaxNumPerStage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerMapMaxNumPerStage.proto + public static partial class StarTowerMapMaxNumPerStageReflection { + + #region Descriptor + /// File descriptor for StarTowerMapMaxNumPerStage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerMapMaxNumPerStageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBTdGFyVG93ZXJNYXBNYXhOdW1QZXJTdGFnZS5wcm90byJDChpTdGFyVG93", + "ZXJNYXBNYXhOdW1QZXJTdGFnZRIKCgJpZBgBIAEoBRIZChFtYXhfbnVtX3Bl", + "cl9zdGFnZRgCIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerMapMaxNumPerStage), global::Nova.Client.StarTowerMapMaxNumPerStage.Parser, new[]{ "Id", "MaxNumPerStage" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerMapMaxNumPerStage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerMapMaxNumPerStage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerMapMaxNumPerStageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMapMaxNumPerStage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMapMaxNumPerStage(StarTowerMapMaxNumPerStage other) : this() { + id_ = other.id_; + maxNumPerStage_ = other.maxNumPerStage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMapMaxNumPerStage Clone() { + return new StarTowerMapMaxNumPerStage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "max_num_per_stage" field. + public const int MaxNumPerStageFieldNumber = 2; + private int maxNumPerStage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNumPerStage { + get { return maxNumPerStage_; } + set { + maxNumPerStage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerMapMaxNumPerStage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerMapMaxNumPerStage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MaxNumPerStage != other.MaxNumPerStage) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MaxNumPerStage != 0) hash ^= MaxNumPerStage.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MaxNumPerStage != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxNumPerStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MaxNumPerStage != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxNumPerStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MaxNumPerStage != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNumPerStage); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerMapMaxNumPerStage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MaxNumPerStage != 0) { + MaxNumPerStage = other.MaxNumPerStage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MaxNumPerStage = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MaxNumPerStage = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerMonsterBornGroup.cs b/NTR.Common/protos/StarTowerMonsterBornGroup.cs new file mode 100644 index 0000000..1421b3a --- /dev/null +++ b/NTR.Common/protos/StarTowerMonsterBornGroup.cs @@ -0,0 +1,392 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerMonsterBornGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerMonsterBornGroup.proto + public static partial class StarTowerMonsterBornGroupReflection { + + #region Descriptor + /// File descriptor for StarTowerMonsterBornGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerMonsterBornGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9TdGFyVG93ZXJNb25zdGVyQm9ybkdyb3VwLnByb3RvInsKGVN0YXJUb3dl", + "ck1vbnN0ZXJCb3JuR3JvdXASEAoIZ3JvdXBfaWQYASABKAUSEgoKbW9uc3Rl", + "cl9pZBgCIAEoBRISCgpkaWZmaWN1bHR5GAMgASgFEhEKCW1pbl9mbG9vchgE", + "IAEoBRIRCgltYXhfZmxvb3IYBSABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerMonsterBornGroup), global::Nova.Client.StarTowerMonsterBornGroup.Parser, new[]{ "GroupId", "MonsterId", "Difficulty", "MinFloor", "MaxFloor" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerMonsterBornGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerMonsterBornGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerMonsterBornGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMonsterBornGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMonsterBornGroup(StarTowerMonsterBornGroup other) : this() { + groupId_ = other.groupId_; + monsterId_ = other.monsterId_; + difficulty_ = other.difficulty_; + minFloor_ = other.minFloor_; + maxFloor_ = other.maxFloor_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMonsterBornGroup Clone() { + return new StarTowerMonsterBornGroup(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 2; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "min_floor" field. + public const int MinFloorFieldNumber = 4; + private int minFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinFloor { + get { return minFloor_; } + set { + minFloor_ = value; + } + } + + /// Field number for the "max_floor" field. + public const int MaxFloorFieldNumber = 5; + private int maxFloor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxFloor { + get { return maxFloor_; } + set { + maxFloor_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerMonsterBornGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerMonsterBornGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (MonsterId != other.MonsterId) return false; + if (Difficulty != other.Difficulty) return false; + if (MinFloor != other.MinFloor) return false; + if (MaxFloor != other.MaxFloor) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (MinFloor != 0) hash ^= MinFloor.GetHashCode(); + if (MaxFloor != 0) hash ^= MaxFloor.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(GroupId); + } + if (MonsterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (MinFloor != 0) { + output.WriteRawTag(32); + output.WriteInt32(MinFloor); + } + if (MaxFloor != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxFloor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GroupId != 0) { + output.WriteRawTag(8); + output.WriteInt32(GroupId); + } + if (MonsterId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (MinFloor != 0) { + output.WriteRawTag(32); + output.WriteInt32(MinFloor); + } + if (MaxFloor != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxFloor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (MinFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinFloor); + } + if (MaxFloor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxFloor); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerMonsterBornGroup other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.MinFloor != 0) { + MinFloor = other.MinFloor; + } + if (other.MaxFloor != 0) { + MaxFloor = other.MaxFloor; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GroupId = input.ReadInt32(); + break; + } + case 16: { + MonsterId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + MinFloor = input.ReadInt32(); + break; + } + case 40: { + MaxFloor = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GroupId = input.ReadInt32(); + break; + } + case 16: { + MonsterId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + MinFloor = input.ReadInt32(); + break; + } + case 40: { + MaxFloor = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerMonsterSpAttr.cs b/NTR.Common/protos/StarTowerMonsterSpAttr.cs new file mode 100644 index 0000000..5449c53 --- /dev/null +++ b/NTR.Common/protos/StarTowerMonsterSpAttr.cs @@ -0,0 +1,478 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerMonsterSpAttr.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerMonsterSpAttr.proto + public static partial class StarTowerMonsterSpAttrReflection { + + #region Descriptor + /// File descriptor for StarTowerMonsterSpAttr.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerMonsterSpAttrReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxTdGFyVG93ZXJNb25zdGVyU3BBdHRyLnByb3RvIt8BChZTdGFyVG93ZXJN", + "b25zdGVyU3BBdHRyEgoKAmlkGAEgASgFEhgKEG1vbnN0ZXJfcG9zaXRpb24Y", + "AiABKAUSFAoMdGhlbWVfc2tpbGxzGAMgASgJEh8KF2NvbnRpbnVvdXNfa2ls", + "bGluZ190aW1lGAQgASgFEh4KFnJvdWdlX21vbmV5X2Ryb3BfcmFuZ2UYBSAD", + "KAUSHAoUcm91Z2VfZXhwX2Ryb3BfcmFuZ2UYBiADKAUSFAoMcmVmX2Rpc3Rh", + "bmNlGAcgAygFEhQKDHJlZl9pbnRlcnZhbBgIIAEoBUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerMonsterSpAttr), global::Nova.Client.StarTowerMonsterSpAttr.Parser, new[]{ "Id", "MonsterPosition", "ThemeSkills", "ContinuousKillingTime", "RougeMoneyDropRange", "RougeExpDropRange", "RefDistance", "RefInterval" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerMonsterSpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerMonsterSpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerMonsterSpAttrReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMonsterSpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMonsterSpAttr(StarTowerMonsterSpAttr other) : this() { + id_ = other.id_; + monsterPosition_ = other.monsterPosition_; + themeSkills_ = other.themeSkills_; + continuousKillingTime_ = other.continuousKillingTime_; + rougeMoneyDropRange_ = other.rougeMoneyDropRange_.Clone(); + rougeExpDropRange_ = other.rougeExpDropRange_.Clone(); + refDistance_ = other.refDistance_.Clone(); + refInterval_ = other.refInterval_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerMonsterSpAttr Clone() { + return new StarTowerMonsterSpAttr(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "monster_position" field. + public const int MonsterPositionFieldNumber = 2; + private int monsterPosition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterPosition { + get { return monsterPosition_; } + set { + monsterPosition_ = value; + } + } + + /// Field number for the "theme_skills" field. + public const int ThemeSkillsFieldNumber = 3; + private string themeSkills_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ThemeSkills { + get { return themeSkills_; } + set { + themeSkills_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "continuous_killing_time" field. + public const int ContinuousKillingTimeFieldNumber = 4; + private int continuousKillingTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ContinuousKillingTime { + get { return continuousKillingTime_; } + set { + continuousKillingTime_ = value; + } + } + + /// Field number for the "rouge_money_drop_range" field. + public const int RougeMoneyDropRangeFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_rougeMoneyDropRange_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField rougeMoneyDropRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RougeMoneyDropRange { + get { return rougeMoneyDropRange_; } + } + + /// Field number for the "rouge_exp_drop_range" field. + public const int RougeExpDropRangeFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_rougeExpDropRange_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField rougeExpDropRange_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RougeExpDropRange { + get { return rougeExpDropRange_; } + } + + /// Field number for the "ref_distance" field. + public const int RefDistanceFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_refDistance_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField refDistance_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RefDistance { + get { return refDistance_; } + } + + /// Field number for the "ref_interval" field. + public const int RefIntervalFieldNumber = 8; + private int refInterval_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RefInterval { + get { return refInterval_; } + set { + refInterval_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerMonsterSpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerMonsterSpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MonsterPosition != other.MonsterPosition) return false; + if (ThemeSkills != other.ThemeSkills) return false; + if (ContinuousKillingTime != other.ContinuousKillingTime) return false; + if(!rougeMoneyDropRange_.Equals(other.rougeMoneyDropRange_)) return false; + if(!rougeExpDropRange_.Equals(other.rougeExpDropRange_)) return false; + if(!refDistance_.Equals(other.refDistance_)) return false; + if (RefInterval != other.RefInterval) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MonsterPosition != 0) hash ^= MonsterPosition.GetHashCode(); + if (ThemeSkills.Length != 0) hash ^= ThemeSkills.GetHashCode(); + if (ContinuousKillingTime != 0) hash ^= ContinuousKillingTime.GetHashCode(); + hash ^= rougeMoneyDropRange_.GetHashCode(); + hash ^= rougeExpDropRange_.GetHashCode(); + hash ^= refDistance_.GetHashCode(); + if (RefInterval != 0) hash ^= RefInterval.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MonsterPosition != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterPosition); + } + if (ThemeSkills.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ThemeSkills); + } + if (ContinuousKillingTime != 0) { + output.WriteRawTag(32); + output.WriteInt32(ContinuousKillingTime); + } + rougeMoneyDropRange_.WriteTo(output, _repeated_rougeMoneyDropRange_codec); + rougeExpDropRange_.WriteTo(output, _repeated_rougeExpDropRange_codec); + refDistance_.WriteTo(output, _repeated_refDistance_codec); + if (RefInterval != 0) { + output.WriteRawTag(64); + output.WriteInt32(RefInterval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MonsterPosition != 0) { + output.WriteRawTag(16); + output.WriteInt32(MonsterPosition); + } + if (ThemeSkills.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ThemeSkills); + } + if (ContinuousKillingTime != 0) { + output.WriteRawTag(32); + output.WriteInt32(ContinuousKillingTime); + } + rougeMoneyDropRange_.WriteTo(ref output, _repeated_rougeMoneyDropRange_codec); + rougeExpDropRange_.WriteTo(ref output, _repeated_rougeExpDropRange_codec); + refDistance_.WriteTo(ref output, _repeated_refDistance_codec); + if (RefInterval != 0) { + output.WriteRawTag(64); + output.WriteInt32(RefInterval); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MonsterPosition != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterPosition); + } + if (ThemeSkills.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ThemeSkills); + } + if (ContinuousKillingTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ContinuousKillingTime); + } + size += rougeMoneyDropRange_.CalculateSize(_repeated_rougeMoneyDropRange_codec); + size += rougeExpDropRange_.CalculateSize(_repeated_rougeExpDropRange_codec); + size += refDistance_.CalculateSize(_repeated_refDistance_codec); + if (RefInterval != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefInterval); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerMonsterSpAttr other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MonsterPosition != 0) { + MonsterPosition = other.MonsterPosition; + } + if (other.ThemeSkills.Length != 0) { + ThemeSkills = other.ThemeSkills; + } + if (other.ContinuousKillingTime != 0) { + ContinuousKillingTime = other.ContinuousKillingTime; + } + rougeMoneyDropRange_.Add(other.rougeMoneyDropRange_); + rougeExpDropRange_.Add(other.rougeExpDropRange_); + refDistance_.Add(other.refDistance_); + if (other.RefInterval != 0) { + RefInterval = other.RefInterval; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MonsterPosition = input.ReadInt32(); + break; + } + case 26: { + ThemeSkills = input.ReadString(); + break; + } + case 32: { + ContinuousKillingTime = input.ReadInt32(); + break; + } + case 42: + case 40: { + rougeMoneyDropRange_.AddEntriesFrom(input, _repeated_rougeMoneyDropRange_codec); + break; + } + case 50: + case 48: { + rougeExpDropRange_.AddEntriesFrom(input, _repeated_rougeExpDropRange_codec); + break; + } + case 58: + case 56: { + refDistance_.AddEntriesFrom(input, _repeated_refDistance_codec); + break; + } + case 64: { + RefInterval = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MonsterPosition = input.ReadInt32(); + break; + } + case 26: { + ThemeSkills = input.ReadString(); + break; + } + case 32: { + ContinuousKillingTime = input.ReadInt32(); + break; + } + case 42: + case 40: { + rougeMoneyDropRange_.AddEntriesFrom(ref input, _repeated_rougeMoneyDropRange_codec); + break; + } + case 50: + case 48: { + rougeExpDropRange_.AddEntriesFrom(ref input, _repeated_rougeExpDropRange_codec); + break; + } + case 58: + case 56: { + refDistance_.AddEntriesFrom(ref input, _repeated_refDistance_codec); + break; + } + case 64: { + RefInterval = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerQuest.cs b/NTR.Common/protos/StarTowerQuest.cs new file mode 100644 index 0000000..b6508fa --- /dev/null +++ b/NTR.Common/protos/StarTowerQuest.cs @@ -0,0 +1,607 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerQuest.proto + public static partial class StarTowerQuestReflection { + + #region Descriptor + /// File descriptor for StarTowerQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdGFyVG93ZXJRdWVzdC5wcm90byLlAQoOU3RhclRvd2VyUXVlc3QSCgoC", + "aWQYASABKAUSDQoFdGl0bGUYAiABKAkSDwoHanVtcF90bxgDIAEoBRIYChB0", + "b3dlcl9xdWVzdF90eXBlGAQgASgFEhsKE3ByZV90b3dlcl9xdWVzdF9pZHMY", + "BSADKAUSDwoHcmV3YXJkMRgGIAEoBRITCgtyZXdhcmRfcXR5MRgHIAEoBRIP", + "CgdyZXdhcmQyGAggASgFEhMKC3Jld2FyZF9xdHkyGAkgASgFEg8KB3Jld2Fy", + "ZDMYCiABKAUSEwoLcmV3YXJkX3F0eTMYCyABKAVCDqoCC05vdmEuQ2xpZW50", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerQuest), global::Nova.Client.StarTowerQuest.Parser, new[]{ "Id", "Title", "JumpTo", "TowerQuestType", "PreTowerQuestIds", "Reward1", "RewardQty1", "Reward2", "RewardQty2", "Reward3", "RewardQty3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerQuest(StarTowerQuest other) : this() { + id_ = other.id_; + title_ = other.title_; + jumpTo_ = other.jumpTo_; + towerQuestType_ = other.towerQuestType_; + preTowerQuestIds_ = other.preTowerQuestIds_.Clone(); + reward1_ = other.reward1_; + rewardQty1_ = other.rewardQty1_; + reward2_ = other.reward2_; + rewardQty2_ = other.rewardQty2_; + reward3_ = other.reward3_; + rewardQty3_ = other.rewardQty3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerQuest Clone() { + return new StarTowerQuest(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "jump_to" field. + public const int JumpToFieldNumber = 3; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// Field number for the "tower_quest_type" field. + public const int TowerQuestTypeFieldNumber = 4; + private int towerQuestType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TowerQuestType { + get { return towerQuestType_; } + set { + towerQuestType_ = value; + } + } + + /// Field number for the "pre_tower_quest_ids" field. + public const int PreTowerQuestIdsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_preTowerQuestIds_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField preTowerQuestIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PreTowerQuestIds { + get { return preTowerQuestIds_; } + } + + /// Field number for the "reward1" field. + public const int Reward1FieldNumber = 6; + private int reward1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward1 { + get { return reward1_; } + set { + reward1_ = value; + } + } + + /// Field number for the "reward_qty1" field. + public const int RewardQty1FieldNumber = 7; + private int rewardQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty1 { + get { return rewardQty1_; } + set { + rewardQty1_ = value; + } + } + + /// Field number for the "reward2" field. + public const int Reward2FieldNumber = 8; + private int reward2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward2 { + get { return reward2_; } + set { + reward2_ = value; + } + } + + /// Field number for the "reward_qty2" field. + public const int RewardQty2FieldNumber = 9; + private int rewardQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty2 { + get { return rewardQty2_; } + set { + rewardQty2_ = value; + } + } + + /// Field number for the "reward3" field. + public const int Reward3FieldNumber = 10; + private int reward3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward3 { + get { return reward3_; } + set { + reward3_ = value; + } + } + + /// Field number for the "reward_qty3" field. + public const int RewardQty3FieldNumber = 11; + private int rewardQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty3 { + get { return rewardQty3_; } + set { + rewardQty3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (JumpTo != other.JumpTo) return false; + if (TowerQuestType != other.TowerQuestType) return false; + if(!preTowerQuestIds_.Equals(other.preTowerQuestIds_)) return false; + if (Reward1 != other.Reward1) return false; + if (RewardQty1 != other.RewardQty1) return false; + if (Reward2 != other.Reward2) return false; + if (RewardQty2 != other.RewardQty2) return false; + if (Reward3 != other.Reward3) return false; + if (RewardQty3 != other.RewardQty3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (TowerQuestType != 0) hash ^= TowerQuestType.GetHashCode(); + hash ^= preTowerQuestIds_.GetHashCode(); + if (Reward1 != 0) hash ^= Reward1.GetHashCode(); + if (RewardQty1 != 0) hash ^= RewardQty1.GetHashCode(); + if (Reward2 != 0) hash ^= Reward2.GetHashCode(); + if (RewardQty2 != 0) hash ^= RewardQty2.GetHashCode(); + if (Reward3 != 0) hash ^= Reward3.GetHashCode(); + if (RewardQty3 != 0) hash ^= RewardQty3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(24); + output.WriteInt32(JumpTo); + } + if (TowerQuestType != 0) { + output.WriteRawTag(32); + output.WriteInt32(TowerQuestType); + } + preTowerQuestIds_.WriteTo(output, _repeated_preTowerQuestIds_codec); + if (Reward1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(72); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(88); + output.WriteInt32(RewardQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(24); + output.WriteInt32(JumpTo); + } + if (TowerQuestType != 0) { + output.WriteRawTag(32); + output.WriteInt32(TowerQuestType); + } + preTowerQuestIds_.WriteTo(ref output, _repeated_preTowerQuestIds_codec); + if (Reward1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(72); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(88); + output.WriteInt32(RewardQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (TowerQuestType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TowerQuestType); + } + size += preTowerQuestIds_.CalculateSize(_repeated_preTowerQuestIds_codec); + if (Reward1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward1); + } + if (RewardQty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty1); + } + if (Reward2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward2); + } + if (RewardQty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty2); + } + if (Reward3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward3); + } + if (RewardQty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.TowerQuestType != 0) { + TowerQuestType = other.TowerQuestType; + } + preTowerQuestIds_.Add(other.preTowerQuestIds_); + if (other.Reward1 != 0) { + Reward1 = other.Reward1; + } + if (other.RewardQty1 != 0) { + RewardQty1 = other.RewardQty1; + } + if (other.Reward2 != 0) { + Reward2 = other.Reward2; + } + if (other.RewardQty2 != 0) { + RewardQty2 = other.RewardQty2; + } + if (other.Reward3 != 0) { + Reward3 = other.Reward3; + } + if (other.RewardQty3 != 0) { + RewardQty3 = other.RewardQty3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + JumpTo = input.ReadInt32(); + break; + } + case 32: { + TowerQuestType = input.ReadInt32(); + break; + } + case 42: + case 40: { + preTowerQuestIds_.AddEntriesFrom(input, _repeated_preTowerQuestIds_codec); + break; + } + case 48: { + Reward1 = input.ReadInt32(); + break; + } + case 56: { + RewardQty1 = input.ReadInt32(); + break; + } + case 64: { + Reward2 = input.ReadInt32(); + break; + } + case 72: { + RewardQty2 = input.ReadInt32(); + break; + } + case 80: { + Reward3 = input.ReadInt32(); + break; + } + case 88: { + RewardQty3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + JumpTo = input.ReadInt32(); + break; + } + case 32: { + TowerQuestType = input.ReadInt32(); + break; + } + case 42: + case 40: { + preTowerQuestIds_.AddEntriesFrom(ref input, _repeated_preTowerQuestIds_codec); + break; + } + case 48: { + Reward1 = input.ReadInt32(); + break; + } + case 56: { + RewardQty1 = input.ReadInt32(); + break; + } + case 64: { + Reward2 = input.ReadInt32(); + break; + } + case 72: { + RewardQty2 = input.ReadInt32(); + break; + } + case 80: { + Reward3 = input.ReadInt32(); + break; + } + case 88: { + RewardQty3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerRankAffix.cs b/NTR.Common/protos/StarTowerRankAffix.cs new file mode 100644 index 0000000..53c8aa0 --- /dev/null +++ b/NTR.Common/protos/StarTowerRankAffix.cs @@ -0,0 +1,382 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerRankAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerRankAffix.proto + public static partial class StarTowerRankAffixReflection { + + #region Descriptor + /// File descriptor for StarTowerRankAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerRankAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTdGFyVG93ZXJSYW5rQWZmaXgucHJvdG8iXAoSU3RhclRvd2VyUmFua0Fm", + "Zml4EgoKAmlkGAEgASgFEgwKBG5hbWUYAiABKAkSDAoEZGVzYxgDIAEoCRIO", + "CgZyYXJpdHkYBCABKAUSDgoGZWZmZWN0GAUgAygFQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerRankAffix), global::Nova.Client.StarTowerRankAffix.Parser, new[]{ "Id", "Name", "Desc", "Rarity", "Effect" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerRankAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerRankAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerRankAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankAffix(StarTowerRankAffix other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + rarity_ = other.rarity_; + effect_ = other.effect_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankAffix Clone() { + return new StarTowerRankAffix(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rarity" field. + public const int RarityFieldNumber = 4; + private int rarity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rarity { + get { return rarity_; } + set { + rarity_ = value; + } + } + + /// Field number for the "effect" field. + public const int EffectFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_effect_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField effect_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Effect { + get { return effect_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerRankAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerRankAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Rarity != other.Rarity) return false; + if(!effect_.Equals(other.effect_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Rarity != 0) hash ^= Rarity.GetHashCode(); + hash ^= effect_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Rarity != 0) { + output.WriteRawTag(32); + output.WriteInt32(Rarity); + } + effect_.WriteTo(output, _repeated_effect_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Rarity != 0) { + output.WriteRawTag(32); + output.WriteInt32(Rarity); + } + effect_.WriteTo(ref output, _repeated_effect_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Rarity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rarity); + } + size += effect_.CalculateSize(_repeated_effect_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerRankAffix other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Rarity != 0) { + Rarity = other.Rarity; + } + effect_.Add(other.effect_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Rarity = input.ReadInt32(); + break; + } + case 42: + case 40: { + effect_.AddEntriesFrom(input, _repeated_effect_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Rarity = input.ReadInt32(); + break; + } + case 42: + case 40: { + effect_.AddEntriesFrom(ref input, _repeated_effect_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerRankReward.cs b/NTR.Common/protos/StarTowerRankReward.cs new file mode 100644 index 0000000..bc855be --- /dev/null +++ b/NTR.Common/protos/StarTowerRankReward.cs @@ -0,0 +1,429 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerRankReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerRankReward.proto + public static partial class StarTowerRankRewardReflection { + + #region Descriptor + /// File descriptor for StarTowerRankReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerRankRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFyVG93ZXJSYW5rUmV3YXJkLnByb3RvIpkBChNTdGFyVG93ZXJSYW5r", + "UmV3YXJkEgoKAmlkGAEgASgFEhIKCnJhbmtfbG93ZXIYAiABKAUSFwoPYXdh", + "cmRfaXRlbV90aWQxGAMgASgFEhcKD2F3YXJkX2l0ZW1fbnVtMRgEIAEoBRIX", + "Cg9hd2FyZF9pdGVtX3RpZDIYBSABKAUSFwoPYXdhcmRfaXRlbV9udW0yGAYg", + "ASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerRankReward), global::Nova.Client.StarTowerRankReward.Parser, new[]{ "Id", "RankLower", "AwardItemTid1", "AwardItemNum1", "AwardItemTid2", "AwardItemNum2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerRankReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerRankReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerRankRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankReward(StarTowerRankReward other) : this() { + id_ = other.id_; + rankLower_ = other.rankLower_; + awardItemTid1_ = other.awardItemTid1_; + awardItemNum1_ = other.awardItemNum1_; + awardItemTid2_ = other.awardItemTid2_; + awardItemNum2_ = other.awardItemNum2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankReward Clone() { + return new StarTowerRankReward(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "rank_lower" field. + public const int RankLowerFieldNumber = 2; + private int rankLower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RankLower { + get { return rankLower_; } + set { + rankLower_ = value; + } + } + + /// Field number for the "award_item_tid1" field. + public const int AwardItemTid1FieldNumber = 3; + private int awardItemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid1 { + get { return awardItemTid1_; } + set { + awardItemTid1_ = value; + } + } + + /// Field number for the "award_item_num1" field. + public const int AwardItemNum1FieldNumber = 4; + private int awardItemNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum1 { + get { return awardItemNum1_; } + set { + awardItemNum1_ = value; + } + } + + /// Field number for the "award_item_tid2" field. + public const int AwardItemTid2FieldNumber = 5; + private int awardItemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid2 { + get { return awardItemTid2_; } + set { + awardItemTid2_ = value; + } + } + + /// Field number for the "award_item_num2" field. + public const int AwardItemNum2FieldNumber = 6; + private int awardItemNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum2 { + get { return awardItemNum2_; } + set { + awardItemNum2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerRankReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerRankReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (RankLower != other.RankLower) return false; + if (AwardItemTid1 != other.AwardItemTid1) return false; + if (AwardItemNum1 != other.AwardItemNum1) return false; + if (AwardItemTid2 != other.AwardItemTid2) return false; + if (AwardItemNum2 != other.AwardItemNum2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (RankLower != 0) hash ^= RankLower.GetHashCode(); + if (AwardItemTid1 != 0) hash ^= AwardItemTid1.GetHashCode(); + if (AwardItemNum1 != 0) hash ^= AwardItemNum1.GetHashCode(); + if (AwardItemTid2 != 0) hash ^= AwardItemTid2.GetHashCode(); + if (AwardItemNum2 != 0) hash ^= AwardItemNum2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RankLower != 0) { + output.WriteRawTag(16); + output.WriteInt32(RankLower); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(AwardItemNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RankLower != 0) { + output.WriteRawTag(16); + output.WriteInt32(RankLower); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(AwardItemNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (RankLower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RankLower); + } + if (AwardItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerRankReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.RankLower != 0) { + RankLower = other.RankLower; + } + if (other.AwardItemTid1 != 0) { + AwardItemTid1 = other.AwardItemTid1; + } + if (other.AwardItemNum1 != 0) { + AwardItemNum1 = other.AwardItemNum1; + } + if (other.AwardItemTid2 != 0) { + AwardItemTid2 = other.AwardItemTid2; + } + if (other.AwardItemNum2 != 0) { + AwardItemNum2 = other.AwardItemNum2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RankLower = input.ReadInt32(); + break; + } + case 24: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 32: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 40: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 48: { + AwardItemNum2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RankLower = input.ReadInt32(); + break; + } + case 24: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 32: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 40: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 48: { + AwardItemNum2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerRankScore.cs b/NTR.Common/protos/StarTowerRankScore.cs new file mode 100644 index 0000000..5d82e60 --- /dev/null +++ b/NTR.Common/protos/StarTowerRankScore.cs @@ -0,0 +1,316 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerRankScore.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerRankScore.proto + public static partial class StarTowerRankScoreReflection { + + #region Descriptor + /// File descriptor for StarTowerRankScore.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerRankScoreReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTdGFyVG93ZXJSYW5rU2NvcmUucHJvdG8iUwoSU3RhclRvd2VyUmFua1Nj", + "b3JlEhIKCmRpZmZpY3VsdHkYASABKAUSEgoKYmFzZV9zY29yZRgCIAEoBRIV", + "Cg1tYXhpbXVtX3Njb3JlGAMgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerRankScore), global::Nova.Client.StarTowerRankScore.Parser, new[]{ "Difficulty", "BaseScore", "MaximumScore" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerRankScore : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerRankScore()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerRankScoreReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankScore() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankScore(StarTowerRankScore other) : this() { + difficulty_ = other.difficulty_; + baseScore_ = other.baseScore_; + maximumScore_ = other.maximumScore_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankScore Clone() { + return new StarTowerRankScore(this); + } + + /// Field number for the "difficulty" field. + public const int DifficultyFieldNumber = 1; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// Field number for the "base_score" field. + public const int BaseScoreFieldNumber = 2; + private int baseScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BaseScore { + get { return baseScore_; } + set { + baseScore_ = value; + } + } + + /// Field number for the "maximum_score" field. + public const int MaximumScoreFieldNumber = 3; + private int maximumScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaximumScore { + get { return maximumScore_; } + set { + maximumScore_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerRankScore); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerRankScore other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Difficulty != other.Difficulty) return false; + if (BaseScore != other.BaseScore) return false; + if (MaximumScore != other.MaximumScore) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (BaseScore != 0) hash ^= BaseScore.GetHashCode(); + if (MaximumScore != 0) hash ^= MaximumScore.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Difficulty != 0) { + output.WriteRawTag(8); + output.WriteInt32(Difficulty); + } + if (BaseScore != 0) { + output.WriteRawTag(16); + output.WriteInt32(BaseScore); + } + if (MaximumScore != 0) { + output.WriteRawTag(24); + output.WriteInt32(MaximumScore); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Difficulty != 0) { + output.WriteRawTag(8); + output.WriteInt32(Difficulty); + } + if (BaseScore != 0) { + output.WriteRawTag(16); + output.WriteInt32(BaseScore); + } + if (MaximumScore != 0) { + output.WriteRawTag(24); + output.WriteInt32(MaximumScore); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (BaseScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseScore); + } + if (MaximumScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximumScore); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerRankScore other) { + if (other == null) { + return; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.BaseScore != 0) { + BaseScore = other.BaseScore; + } + if (other.MaximumScore != 0) { + MaximumScore = other.MaximumScore; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Difficulty = input.ReadInt32(); + break; + } + case 16: { + BaseScore = input.ReadInt32(); + break; + } + case 24: { + MaximumScore = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Difficulty = input.ReadInt32(); + break; + } + case 16: { + BaseScore = input.ReadInt32(); + break; + } + case 24: { + MaximumScore = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerRankSeason.cs b/NTR.Common/protos/StarTowerRankSeason.cs new file mode 100644 index 0000000..1aa1a00 --- /dev/null +++ b/NTR.Common/protos/StarTowerRankSeason.cs @@ -0,0 +1,617 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerRankSeason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerRankSeason.proto + public static partial class StarTowerRankSeasonReflection { + + #region Descriptor + /// File descriptor for StarTowerRankSeason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerRankSeasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFyVG93ZXJSYW5rU2Vhc29uLnByb3RvIugBChNTdGFyVG93ZXJSYW5r", + "U2Vhc29uEgoKAmlkGAEgASgFEhAKCGdyb3VwX2lkGAIgASgFEhEKCW9wZW5f", + "dGltZRgDIAEoCRIQCghlbmRfdGltZRgEIAEoCRIOCgZhZmZpeDEYBSABKAUS", + "EgoKYWZmaXhfYWRkMRgGIAMoBRIOCgZhZmZpeDIYByABKAUSEgoKYWZmaXhf", + "YWRkMhgIIAMoBRIOCgZhZmZpeDMYCSABKAUSEgoKYWZmaXhfYWRkMxgKIAMo", + "BRIOCgZhZmZpeDQYCyABKAUSEgoKYWZmaXhfYWRkNBgMIAMoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerRankSeason), global::Nova.Client.StarTowerRankSeason.Parser, new[]{ "Id", "GroupId", "OpenTime", "EndTime", "Affix1", "AffixAdd1", "Affix2", "AffixAdd2", "Affix3", "AffixAdd3", "Affix4", "AffixAdd4" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerRankSeason : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerRankSeason()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerRankSeasonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankSeason() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankSeason(StarTowerRankSeason other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + openTime_ = other.openTime_; + endTime_ = other.endTime_; + affix1_ = other.affix1_; + affixAdd1_ = other.affixAdd1_.Clone(); + affix2_ = other.affix2_; + affixAdd2_ = other.affixAdd2_.Clone(); + affix3_ = other.affix3_; + affixAdd3_ = other.affixAdd3_.Clone(); + affix4_ = other.affix4_; + affixAdd4_ = other.affixAdd4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerRankSeason Clone() { + return new StarTowerRankSeason(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "open_time" field. + public const int OpenTimeFieldNumber = 3; + private string openTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenTime { + get { return openTime_; } + set { + openTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 4; + private string endTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndTime { + get { return endTime_; } + set { + endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "affix1" field. + public const int Affix1FieldNumber = 5; + private int affix1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affix1 { + get { return affix1_; } + set { + affix1_ = value; + } + } + + /// Field number for the "affix_add1" field. + public const int AffixAdd1FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_affixAdd1_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField affixAdd1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AffixAdd1 { + get { return affixAdd1_; } + } + + /// Field number for the "affix2" field. + public const int Affix2FieldNumber = 7; + private int affix2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affix2 { + get { return affix2_; } + set { + affix2_ = value; + } + } + + /// Field number for the "affix_add2" field. + public const int AffixAdd2FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_affixAdd2_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField affixAdd2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AffixAdd2 { + get { return affixAdd2_; } + } + + /// Field number for the "affix3" field. + public const int Affix3FieldNumber = 9; + private int affix3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affix3 { + get { return affix3_; } + set { + affix3_ = value; + } + } + + /// Field number for the "affix_add3" field. + public const int AffixAdd3FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_affixAdd3_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField affixAdd3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AffixAdd3 { + get { return affixAdd3_; } + } + + /// Field number for the "affix4" field. + public const int Affix4FieldNumber = 11; + private int affix4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affix4 { + get { return affix4_; } + set { + affix4_ = value; + } + } + + /// Field number for the "affix_add4" field. + public const int AffixAdd4FieldNumber = 12; + private static readonly pb::FieldCodec _repeated_affixAdd4_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField affixAdd4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AffixAdd4 { + get { return affixAdd4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerRankSeason); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerRankSeason other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (OpenTime != other.OpenTime) return false; + if (EndTime != other.EndTime) return false; + if (Affix1 != other.Affix1) return false; + if(!affixAdd1_.Equals(other.affixAdd1_)) return false; + if (Affix2 != other.Affix2) return false; + if(!affixAdd2_.Equals(other.affixAdd2_)) return false; + if (Affix3 != other.Affix3) return false; + if(!affixAdd3_.Equals(other.affixAdd3_)) return false; + if (Affix4 != other.Affix4) return false; + if(!affixAdd4_.Equals(other.affixAdd4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (OpenTime.Length != 0) hash ^= OpenTime.GetHashCode(); + if (EndTime.Length != 0) hash ^= EndTime.GetHashCode(); + if (Affix1 != 0) hash ^= Affix1.GetHashCode(); + hash ^= affixAdd1_.GetHashCode(); + if (Affix2 != 0) hash ^= Affix2.GetHashCode(); + hash ^= affixAdd2_.GetHashCode(); + if (Affix3 != 0) hash ^= Affix3.GetHashCode(); + hash ^= affixAdd3_.GetHashCode(); + if (Affix4 != 0) hash ^= Affix4.GetHashCode(); + hash ^= affixAdd4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OpenTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EndTime); + } + if (Affix1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Affix1); + } + affixAdd1_.WriteTo(output, _repeated_affixAdd1_codec); + if (Affix2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Affix2); + } + affixAdd2_.WriteTo(output, _repeated_affixAdd2_codec); + if (Affix3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Affix3); + } + affixAdd3_.WriteTo(output, _repeated_affixAdd3_codec); + if (Affix4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Affix4); + } + affixAdd4_.WriteTo(output, _repeated_affixAdd4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OpenTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EndTime); + } + if (Affix1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Affix1); + } + affixAdd1_.WriteTo(ref output, _repeated_affixAdd1_codec); + if (Affix2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Affix2); + } + affixAdd2_.WriteTo(ref output, _repeated_affixAdd2_codec); + if (Affix3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Affix3); + } + affixAdd3_.WriteTo(ref output, _repeated_affixAdd3_codec); + if (Affix4 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Affix4); + } + affixAdd4_.WriteTo(ref output, _repeated_affixAdd4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (OpenTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenTime); + } + if (EndTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime); + } + if (Affix1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Affix1); + } + size += affixAdd1_.CalculateSize(_repeated_affixAdd1_codec); + if (Affix2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Affix2); + } + size += affixAdd2_.CalculateSize(_repeated_affixAdd2_codec); + if (Affix3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Affix3); + } + size += affixAdd3_.CalculateSize(_repeated_affixAdd3_codec); + if (Affix4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Affix4); + } + size += affixAdd4_.CalculateSize(_repeated_affixAdd4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerRankSeason other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.OpenTime.Length != 0) { + OpenTime = other.OpenTime; + } + if (other.EndTime.Length != 0) { + EndTime = other.EndTime; + } + if (other.Affix1 != 0) { + Affix1 = other.Affix1; + } + affixAdd1_.Add(other.affixAdd1_); + if (other.Affix2 != 0) { + Affix2 = other.Affix2; + } + affixAdd2_.Add(other.affixAdd2_); + if (other.Affix3 != 0) { + Affix3 = other.Affix3; + } + affixAdd3_.Add(other.affixAdd3_); + if (other.Affix4 != 0) { + Affix4 = other.Affix4; + } + affixAdd4_.Add(other.affixAdd4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: { + OpenTime = input.ReadString(); + break; + } + case 34: { + EndTime = input.ReadString(); + break; + } + case 40: { + Affix1 = input.ReadInt32(); + break; + } + case 50: + case 48: { + affixAdd1_.AddEntriesFrom(input, _repeated_affixAdd1_codec); + break; + } + case 56: { + Affix2 = input.ReadInt32(); + break; + } + case 66: + case 64: { + affixAdd2_.AddEntriesFrom(input, _repeated_affixAdd2_codec); + break; + } + case 72: { + Affix3 = input.ReadInt32(); + break; + } + case 82: + case 80: { + affixAdd3_.AddEntriesFrom(input, _repeated_affixAdd3_codec); + break; + } + case 88: { + Affix4 = input.ReadInt32(); + break; + } + case 98: + case 96: { + affixAdd4_.AddEntriesFrom(input, _repeated_affixAdd4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: { + OpenTime = input.ReadString(); + break; + } + case 34: { + EndTime = input.ReadString(); + break; + } + case 40: { + Affix1 = input.ReadInt32(); + break; + } + case 50: + case 48: { + affixAdd1_.AddEntriesFrom(ref input, _repeated_affixAdd1_codec); + break; + } + case 56: { + Affix2 = input.ReadInt32(); + break; + } + case 66: + case 64: { + affixAdd2_.AddEntriesFrom(ref input, _repeated_affixAdd2_codec); + break; + } + case 72: { + Affix3 = input.ReadInt32(); + break; + } + case 82: + case 80: { + affixAdd3_.AddEntriesFrom(ref input, _repeated_affixAdd3_codec); + break; + } + case 88: { + Affix4 = input.ReadInt32(); + break; + } + case 98: + case 96: { + affixAdd4_.AddEntriesFrom(ref input, _repeated_affixAdd4_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerScenePrefab.cs b/NTR.Common/protos/StarTowerScenePrefab.cs new file mode 100644 index 0000000..2f50c77 --- /dev/null +++ b/NTR.Common/protos/StarTowerScenePrefab.cs @@ -0,0 +1,345 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerScenePrefab.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerScenePrefab.proto + public static partial class StarTowerScenePrefabReflection { + + #region Descriptor + /// File descriptor for StarTowerScenePrefab.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerScenePrefabReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdGFyVG93ZXJTY2VuZVByZWZhYi5wcm90byJhChRTdGFyVG93ZXJTY2Vu", + "ZVByZWZhYhIKCgJpZBgBIAEoBRISCgpjb25maWdfcmVzGAIgASgJEhEKCWJp", + "YW5fcXVhbhgDIAEoCRIWCg5nYW1lcGxheV90eXBlcxgEIAMoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerScenePrefab), global::Nova.Client.StarTowerScenePrefab.Parser, new[]{ "Id", "ConfigRes", "BianQuan", "GameplayTypes" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerScenePrefab : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerScenePrefab()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerScenePrefabReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerScenePrefab() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerScenePrefab(StarTowerScenePrefab other) : this() { + id_ = other.id_; + configRes_ = other.configRes_; + bianQuan_ = other.bianQuan_; + gameplayTypes_ = other.gameplayTypes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerScenePrefab Clone() { + return new StarTowerScenePrefab(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "config_res" field. + public const int ConfigResFieldNumber = 2; + private string configRes_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigRes { + get { return configRes_; } + set { + configRes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bian_quan" field. + public const int BianQuanFieldNumber = 3; + private string bianQuan_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BianQuan { + get { return bianQuan_; } + set { + bianQuan_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gameplay_types" field. + public const int GameplayTypesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_gameplayTypes_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField gameplayTypes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GameplayTypes { + get { return gameplayTypes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerScenePrefab); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerScenePrefab other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ConfigRes != other.ConfigRes) return false; + if (BianQuan != other.BianQuan) return false; + if(!gameplayTypes_.Equals(other.gameplayTypes_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ConfigRes.Length != 0) hash ^= ConfigRes.GetHashCode(); + if (BianQuan.Length != 0) hash ^= BianQuan.GetHashCode(); + hash ^= gameplayTypes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ConfigRes.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConfigRes); + } + if (BianQuan.Length != 0) { + output.WriteRawTag(26); + output.WriteString(BianQuan); + } + gameplayTypes_.WriteTo(output, _repeated_gameplayTypes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ConfigRes.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConfigRes); + } + if (BianQuan.Length != 0) { + output.WriteRawTag(26); + output.WriteString(BianQuan); + } + gameplayTypes_.WriteTo(ref output, _repeated_gameplayTypes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ConfigRes.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigRes); + } + if (BianQuan.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BianQuan); + } + size += gameplayTypes_.CalculateSize(_repeated_gameplayTypes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerScenePrefab other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ConfigRes.Length != 0) { + ConfigRes = other.ConfigRes; + } + if (other.BianQuan.Length != 0) { + BianQuan = other.BianQuan; + } + gameplayTypes_.Add(other.gameplayTypes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + ConfigRes = input.ReadString(); + break; + } + case 26: { + BianQuan = input.ReadString(); + break; + } + case 34: + case 32: { + gameplayTypes_.AddEntriesFrom(input, _repeated_gameplayTypes_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + ConfigRes = input.ReadString(); + break; + } + case 26: { + BianQuan = input.ReadString(); + break; + } + case 34: + case 32: { + gameplayTypes_.AddEntriesFrom(ref input, _repeated_gameplayTypes_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerShopGoodsGroup.cs b/NTR.Common/protos/StarTowerShopGoodsGroup.cs new file mode 100644 index 0000000..cacb302 --- /dev/null +++ b/NTR.Common/protos/StarTowerShopGoodsGroup.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerShopGoodsGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerShopGoodsGroup.proto + public static partial class StarTowerShopGoodsGroupReflection { + + #region Descriptor + /// File descriptor for StarTowerShopGoodsGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerShopGoodsGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TdGFyVG93ZXJTaG9wR29vZHNHcm91cC5wcm90byI4ChdTdGFyVG93ZXJT", + "aG9wR29vZHNHcm91cBIKCgJpZBgBIAEoBRIRCglzaG93X2l0ZW0YAiABKAVC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerShopGoodsGroup), global::Nova.Client.StarTowerShopGoodsGroup.Parser, new[]{ "Id", "ShowItem" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerShopGoodsGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerShopGoodsGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerShopGoodsGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerShopGoodsGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerShopGoodsGroup(StarTowerShopGoodsGroup other) : this() { + id_ = other.id_; + showItem_ = other.showItem_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerShopGoodsGroup Clone() { + return new StarTowerShopGoodsGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "show_item" field. + public const int ShowItemFieldNumber = 2; + private int showItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowItem { + get { return showItem_; } + set { + showItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerShopGoodsGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerShopGoodsGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ShowItem != other.ShowItem) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ShowItem != 0) hash ^= ShowItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShowItem != 0) { + output.WriteRawTag(16); + output.WriteInt32(ShowItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ShowItem != 0) { + output.WriteRawTag(16); + output.WriteInt32(ShowItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ShowItem != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerShopGoodsGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ShowItem != 0) { + ShowItem = other.ShowItem; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShowItem = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ShowItem = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerSpMode.cs b/NTR.Common/protos/StarTowerSpMode.cs new file mode 100644 index 0000000..5d519bc --- /dev/null +++ b/NTR.Common/protos/StarTowerSpMode.cs @@ -0,0 +1,392 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerSpMode.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerSpMode.proto + public static partial class StarTowerSpModeReflection { + + #region Descriptor + /// File descriptor for StarTowerSpMode.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerSpModeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTdGFyVG93ZXJTcE1vZGUucHJvdG8ijwEKD1N0YXJUb3dlclNwTW9kZRIK", + "CgJpZBgBIAEoBRIZChFsaW1pdF90aW1lX3dlaWdodBgCIAEoCBIbChNsaW1p", + "dF9raWxsZWRfd2VpZ2h0GAMgASgIEhUKDWdvYmxpbl93ZWlnaHQYBCABKAgS", + "IQoZY29udGludW91c19raWxsaW5nX3dlaWdodBgFIAEoCEIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerSpMode), global::Nova.Client.StarTowerSpMode.Parser, new[]{ "Id", "LimitTimeWeight", "LimitKilledWeight", "GoblinWeight", "ContinuousKillingWeight" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerSpMode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerSpMode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerSpModeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerSpMode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerSpMode(StarTowerSpMode other) : this() { + id_ = other.id_; + limitTimeWeight_ = other.limitTimeWeight_; + limitKilledWeight_ = other.limitKilledWeight_; + goblinWeight_ = other.goblinWeight_; + continuousKillingWeight_ = other.continuousKillingWeight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerSpMode Clone() { + return new StarTowerSpMode(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "limit_time_weight" field. + public const int LimitTimeWeightFieldNumber = 2; + private bool limitTimeWeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool LimitTimeWeight { + get { return limitTimeWeight_; } + set { + limitTimeWeight_ = value; + } + } + + /// Field number for the "limit_killed_weight" field. + public const int LimitKilledWeightFieldNumber = 3; + private bool limitKilledWeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool LimitKilledWeight { + get { return limitKilledWeight_; } + set { + limitKilledWeight_ = value; + } + } + + /// Field number for the "goblin_weight" field. + public const int GoblinWeightFieldNumber = 4; + private bool goblinWeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool GoblinWeight { + get { return goblinWeight_; } + set { + goblinWeight_ = value; + } + } + + /// Field number for the "continuous_killing_weight" field. + public const int ContinuousKillingWeightFieldNumber = 5; + private bool continuousKillingWeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ContinuousKillingWeight { + get { return continuousKillingWeight_; } + set { + continuousKillingWeight_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerSpMode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerSpMode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (LimitTimeWeight != other.LimitTimeWeight) return false; + if (LimitKilledWeight != other.LimitKilledWeight) return false; + if (GoblinWeight != other.GoblinWeight) return false; + if (ContinuousKillingWeight != other.ContinuousKillingWeight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (LimitTimeWeight != false) hash ^= LimitTimeWeight.GetHashCode(); + if (LimitKilledWeight != false) hash ^= LimitKilledWeight.GetHashCode(); + if (GoblinWeight != false) hash ^= GoblinWeight.GetHashCode(); + if (ContinuousKillingWeight != false) hash ^= ContinuousKillingWeight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LimitTimeWeight != false) { + output.WriteRawTag(16); + output.WriteBool(LimitTimeWeight); + } + if (LimitKilledWeight != false) { + output.WriteRawTag(24); + output.WriteBool(LimitKilledWeight); + } + if (GoblinWeight != false) { + output.WriteRawTag(32); + output.WriteBool(GoblinWeight); + } + if (ContinuousKillingWeight != false) { + output.WriteRawTag(40); + output.WriteBool(ContinuousKillingWeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LimitTimeWeight != false) { + output.WriteRawTag(16); + output.WriteBool(LimitTimeWeight); + } + if (LimitKilledWeight != false) { + output.WriteRawTag(24); + output.WriteBool(LimitKilledWeight); + } + if (GoblinWeight != false) { + output.WriteRawTag(32); + output.WriteBool(GoblinWeight); + } + if (ContinuousKillingWeight != false) { + output.WriteRawTag(40); + output.WriteBool(ContinuousKillingWeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (LimitTimeWeight != false) { + size += 1 + 1; + } + if (LimitKilledWeight != false) { + size += 1 + 1; + } + if (GoblinWeight != false) { + size += 1 + 1; + } + if (ContinuousKillingWeight != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerSpMode other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.LimitTimeWeight != false) { + LimitTimeWeight = other.LimitTimeWeight; + } + if (other.LimitKilledWeight != false) { + LimitKilledWeight = other.LimitKilledWeight; + } + if (other.GoblinWeight != false) { + GoblinWeight = other.GoblinWeight; + } + if (other.ContinuousKillingWeight != false) { + ContinuousKillingWeight = other.ContinuousKillingWeight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LimitTimeWeight = input.ReadBool(); + break; + } + case 24: { + LimitKilledWeight = input.ReadBool(); + break; + } + case 32: { + GoblinWeight = input.ReadBool(); + break; + } + case 40: { + ContinuousKillingWeight = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LimitTimeWeight = input.ReadBool(); + break; + } + case 24: { + LimitKilledWeight = input.ReadBool(); + break; + } + case 32: { + GoblinWeight = input.ReadBool(); + break; + } + case 40: { + ContinuousKillingWeight = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerSpecificCombat.cs b/NTR.Common/protos/StarTowerSpecificCombat.cs new file mode 100644 index 0000000..0c4d175 --- /dev/null +++ b/NTR.Common/protos/StarTowerSpecificCombat.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerSpecificCombat.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerSpecificCombat.proto + public static partial class StarTowerSpecificCombatReflection { + + #region Descriptor + /// File descriptor for StarTowerSpecificCombat.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerSpecificCombatReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TdGFyVG93ZXJTcGVjaWZpY0NvbWJhdC5wcm90byJhChdTdGFyVG93ZXJT", + "cGVjaWZpY0NvbWJhdBIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEgwKBGRl", + "c2MYAyABKAkSDAoEdHlwZRgEIAEoBRIQCghldmVudF9pZBgFIAEoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerSpecificCombat), global::Nova.Client.StarTowerSpecificCombat.Parser, new[]{ "Id", "Name", "Desc", "Type", "EventId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerSpecificCombat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerSpecificCombat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerSpecificCombatReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerSpecificCombat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerSpecificCombat(StarTowerSpecificCombat other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + type_ = other.type_; + eventId_ = other.eventId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerSpecificCombat Clone() { + return new StarTowerSpecificCombat(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "event_id" field. + public const int EventIdFieldNumber = 5; + private int eventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EventId { + get { return eventId_; } + set { + eventId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerSpecificCombat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerSpecificCombat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Type != other.Type) return false; + if (EventId != other.EventId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (EventId != 0) hash ^= EventId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (EventId != 0) { + output.WriteRawTag(40); + output.WriteInt32(EventId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Type != 0) { + output.WriteRawTag(32); + output.WriteInt32(Type); + } + if (EventId != 0) { + output.WriteRawTag(40); + output.WriteInt32(EventId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (EventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EventId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerSpecificCombat other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.EventId != 0) { + EventId = other.EventId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 40: { + EventId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Type = input.ReadInt32(); + break; + } + case 40: { + EventId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerStage.cs b/NTR.Common/protos/StarTowerStage.cs new file mode 100644 index 0000000..7639eec --- /dev/null +++ b/NTR.Common/protos/StarTowerStage.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerStage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerStage.proto + public static partial class StarTowerStageReflection { + + #region Descriptor + /// File descriptor for StarTowerStage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerStageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdGFyVG93ZXJTdGFnZS5wcm90byLCAQoOU3RhclRvd2VyU3RhZ2USCgoC", + "aWQYASABKAUSDQoFc3RhZ2UYAiABKAUSEAoIZ3JvdXBfaWQYAyABKAUSDQoF", + "Zmxvb3IYBCABKAUSEQoJcm9vbV90eXBlGAUgASgFEiIKGmludGVyaW9yX2N1", + "cnJlbmN5X3F1YW50aXR5GAYgASgFEhkKEWd1YXJhbnRlZWRfbWFwX2lkGAcg", + "ASgFEiIKGmd1YXJhbnRlZWRfbW9uc3Rlcl9wbGFuX2lkGAggASgFQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerStage), global::Nova.Client.StarTowerStage.Parser, new[]{ "Id", "Stage", "GroupId", "Floor", "RoomType", "InteriorCurrencyQuantity", "GuaranteedMapId", "GuaranteedMonsterPlanId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerStage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerStage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerStageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerStage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerStage(StarTowerStage other) : this() { + id_ = other.id_; + stage_ = other.stage_; + groupId_ = other.groupId_; + floor_ = other.floor_; + roomType_ = other.roomType_; + interiorCurrencyQuantity_ = other.interiorCurrencyQuantity_; + guaranteedMapId_ = other.guaranteedMapId_; + guaranteedMonsterPlanId_ = other.guaranteedMonsterPlanId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerStage Clone() { + return new StarTowerStage(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "stage" field. + public const int StageFieldNumber = 2; + private int stage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Stage { + get { return stage_; } + set { + stage_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 3; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "floor" field. + public const int FloorFieldNumber = 4; + private int floor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Floor { + get { return floor_; } + set { + floor_ = value; + } + } + + /// Field number for the "room_type" field. + public const int RoomTypeFieldNumber = 5; + private int roomType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RoomType { + get { return roomType_; } + set { + roomType_ = value; + } + } + + /// Field number for the "interior_currency_quantity" field. + public const int InteriorCurrencyQuantityFieldNumber = 6; + private int interiorCurrencyQuantity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InteriorCurrencyQuantity { + get { return interiorCurrencyQuantity_; } + set { + interiorCurrencyQuantity_ = value; + } + } + + /// Field number for the "guaranteed_map_id" field. + public const int GuaranteedMapIdFieldNumber = 7; + private int guaranteedMapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuaranteedMapId { + get { return guaranteedMapId_; } + set { + guaranteedMapId_ = value; + } + } + + /// Field number for the "guaranteed_monster_plan_id" field. + public const int GuaranteedMonsterPlanIdFieldNumber = 8; + private int guaranteedMonsterPlanId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GuaranteedMonsterPlanId { + get { return guaranteedMonsterPlanId_; } + set { + guaranteedMonsterPlanId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerStage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerStage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Stage != other.Stage) return false; + if (GroupId != other.GroupId) return false; + if (Floor != other.Floor) return false; + if (RoomType != other.RoomType) return false; + if (InteriorCurrencyQuantity != other.InteriorCurrencyQuantity) return false; + if (GuaranteedMapId != other.GuaranteedMapId) return false; + if (GuaranteedMonsterPlanId != other.GuaranteedMonsterPlanId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Stage != 0) hash ^= Stage.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Floor != 0) hash ^= Floor.GetHashCode(); + if (RoomType != 0) hash ^= RoomType.GetHashCode(); + if (InteriorCurrencyQuantity != 0) hash ^= InteriorCurrencyQuantity.GetHashCode(); + if (GuaranteedMapId != 0) hash ^= GuaranteedMapId.GetHashCode(); + if (GuaranteedMonsterPlanId != 0) hash ^= GuaranteedMonsterPlanId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Stage != 0) { + output.WriteRawTag(16); + output.WriteInt32(Stage); + } + if (GroupId != 0) { + output.WriteRawTag(24); + output.WriteInt32(GroupId); + } + if (Floor != 0) { + output.WriteRawTag(32); + output.WriteInt32(Floor); + } + if (RoomType != 0) { + output.WriteRawTag(40); + output.WriteInt32(RoomType); + } + if (InteriorCurrencyQuantity != 0) { + output.WriteRawTag(48); + output.WriteInt32(InteriorCurrencyQuantity); + } + if (GuaranteedMapId != 0) { + output.WriteRawTag(56); + output.WriteInt32(GuaranteedMapId); + } + if (GuaranteedMonsterPlanId != 0) { + output.WriteRawTag(64); + output.WriteInt32(GuaranteedMonsterPlanId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Stage != 0) { + output.WriteRawTag(16); + output.WriteInt32(Stage); + } + if (GroupId != 0) { + output.WriteRawTag(24); + output.WriteInt32(GroupId); + } + if (Floor != 0) { + output.WriteRawTag(32); + output.WriteInt32(Floor); + } + if (RoomType != 0) { + output.WriteRawTag(40); + output.WriteInt32(RoomType); + } + if (InteriorCurrencyQuantity != 0) { + output.WriteRawTag(48); + output.WriteInt32(InteriorCurrencyQuantity); + } + if (GuaranteedMapId != 0) { + output.WriteRawTag(56); + output.WriteInt32(GuaranteedMapId); + } + if (GuaranteedMonsterPlanId != 0) { + output.WriteRawTag(64); + output.WriteInt32(GuaranteedMonsterPlanId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Stage != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stage); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Floor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Floor); + } + if (RoomType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomType); + } + if (InteriorCurrencyQuantity != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(InteriorCurrencyQuantity); + } + if (GuaranteedMapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuaranteedMapId); + } + if (GuaranteedMonsterPlanId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GuaranteedMonsterPlanId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerStage other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Stage != 0) { + Stage = other.Stage; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Floor != 0) { + Floor = other.Floor; + } + if (other.RoomType != 0) { + RoomType = other.RoomType; + } + if (other.InteriorCurrencyQuantity != 0) { + InteriorCurrencyQuantity = other.InteriorCurrencyQuantity; + } + if (other.GuaranteedMapId != 0) { + GuaranteedMapId = other.GuaranteedMapId; + } + if (other.GuaranteedMonsterPlanId != 0) { + GuaranteedMonsterPlanId = other.GuaranteedMonsterPlanId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Stage = input.ReadInt32(); + break; + } + case 24: { + GroupId = input.ReadInt32(); + break; + } + case 32: { + Floor = input.ReadInt32(); + break; + } + case 40: { + RoomType = input.ReadInt32(); + break; + } + case 48: { + InteriorCurrencyQuantity = input.ReadInt32(); + break; + } + case 56: { + GuaranteedMapId = input.ReadInt32(); + break; + } + case 64: { + GuaranteedMonsterPlanId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Stage = input.ReadInt32(); + break; + } + case 24: { + GroupId = input.ReadInt32(); + break; + } + case 32: { + Floor = input.ReadInt32(); + break; + } + case 40: { + RoomType = input.ReadInt32(); + break; + } + case 48: { + InteriorCurrencyQuantity = input.ReadInt32(); + break; + } + case 56: { + GuaranteedMapId = input.ReadInt32(); + break; + } + case 64: { + GuaranteedMonsterPlanId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerTalk.cs b/NTR.Common/protos/StarTowerTalk.cs new file mode 100644 index 0000000..911cf89 --- /dev/null +++ b/NTR.Common/protos/StarTowerTalk.cs @@ -0,0 +1,428 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerTalk.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerTalk.proto + public static partial class StarTowerTalkReflection { + + #region Descriptor + /// File descriptor for StarTowerTalk.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerTalkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNTdGFyVG93ZXJUYWxrLnByb3RvImYKDVN0YXJUb3dlclRhbGsSCgoCaWQY", + "ASABKAUSDAoEbmFtZRgCIAEoCRIPCgdjb250ZW50GAMgASgJEg0KBWNvbG9y", + "GAQgASgJEgwKBGZhY2UYBSABKAkSDQoFdm9pY2UYBiABKAlCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerTalk), global::Nova.Client.StarTowerTalk.Parser, new[]{ "Id", "Name", "Content", "Color", "Face", "Voice" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerTalk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerTalk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerTalkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerTalk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerTalk(StarTowerTalk other) : this() { + id_ = other.id_; + name_ = other.name_; + content_ = other.content_; + color_ = other.color_; + face_ = other.face_; + voice_ = other.voice_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerTalk Clone() { + return new StarTowerTalk(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 3; + private string content_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 4; + private string color_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Color { + get { return color_; } + set { + color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "face" field. + public const int FaceFieldNumber = 5; + private string face_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Face { + get { return face_; } + set { + face_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "voice" field. + public const int VoiceFieldNumber = 6; + private string voice_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Voice { + get { return voice_; } + set { + voice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerTalk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerTalk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Content != other.Content) return false; + if (Color != other.Color) return false; + if (Face != other.Face) return false; + if (Voice != other.Voice) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (Color.Length != 0) hash ^= Color.GetHashCode(); + if (Face.Length != 0) hash ^= Face.GetHashCode(); + if (Voice.Length != 0) hash ^= Voice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (Color.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Color); + } + if (Face.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Face); + } + if (Voice.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (Color.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Color); + } + if (Face.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Face); + } + if (Voice.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Voice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (Color.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); + } + if (Face.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Face); + } + if (Voice.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Voice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerTalk other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + if (other.Color.Length != 0) { + Color = other.Color; + } + if (other.Face.Length != 0) { + Face = other.Face; + } + if (other.Voice.Length != 0) { + Voice = other.Voice; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 34: { + Color = input.ReadString(); + break; + } + case 42: { + Face = input.ReadString(); + break; + } + case 50: { + Voice = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 34: { + Color = input.ReadString(); + break; + } + case 42: { + Face = input.ReadString(); + break; + } + case 50: { + Voice = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StarTowerTeamExp.cs b/NTR.Common/protos/StarTowerTeamExp.cs new file mode 100644 index 0000000..e20fac4 --- /dev/null +++ b/NTR.Common/protos/StarTowerTeamExp.cs @@ -0,0 +1,353 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StarTowerTeamExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StarTowerTeamExp.proto + public static partial class StarTowerTeamExpReflection { + + #region Descriptor + /// File descriptor for StarTowerTeamExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StarTowerTeamExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTdGFyVG93ZXJUZWFtRXhwLnByb3RvIlEKEFN0YXJUb3dlclRlYW1FeHAS", + "CgoCaWQYASABKAUSEAoIZ3JvdXBfaWQYAiABKAUSDQoFbGV2ZWwYAyABKAUS", + "EAoIbmVlZF9leHAYBCABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StarTowerTeamExp), global::Nova.Client.StarTowerTeamExp.Parser, new[]{ "Id", "GroupId", "Level", "NeedExp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StarTowerTeamExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StarTowerTeamExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StarTowerTeamExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerTeamExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerTeamExp(StarTowerTeamExp other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + level_ = other.level_; + needExp_ = other.needExp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StarTowerTeamExp Clone() { + return new StarTowerTeamExp(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "need_exp" field. + public const int NeedExpFieldNumber = 4; + private int needExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedExp { + get { return needExp_; } + set { + needExp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StarTowerTeamExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StarTowerTeamExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Level != other.Level) return false; + if (NeedExp != other.NeedExp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (NeedExp != 0) hash ^= NeedExp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (NeedExp != 0) { + output.WriteRawTag(32); + output.WriteInt32(NeedExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteInt32(Level); + } + if (NeedExp != 0) { + output.WriteRawTag(32); + output.WriteInt32(NeedExp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (NeedExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedExp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StarTowerTeamExp other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.NeedExp != 0) { + NeedExp = other.NeedExp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + NeedExp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Level = input.ReadInt32(); + break; + } + case 32: { + NeedExp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Story.cs b/NTR.Common/protos/Story.cs new file mode 100644 index 0000000..3d26868 --- /dev/null +++ b/NTR.Common/protos/Story.cs @@ -0,0 +1,932 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Story.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Story.proto + public static partial class StoryReflection { + + #region Descriptor + /// File descriptor for Story.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StoryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtTdG9yeS5wcm90byKFAwoFU3RvcnkSCgoCaWQYASABKAUSEAoIc3Rvcnlf", + "aWQYAiABKAkSDwoHY29tbWVudBgDIAEoCRIPCgdjaGFwdGVyGAQgASgFEg0K", + "BWluZGV4GAUgASgJEg0KBXRpdGxlGAYgASgJEgwKBGRlc2MYByABKAkSEwoL", + "dHJpYWxfYnVpbGQYCCABKAUSFAoMY29uZGl0aW9uX2lkGAkgASgJEhEKCWlz", + "X2JyYW5jaBgKIAEoCBIRCglpc19iYXR0bGUYCyABKAgSDgoGcmV3YXJkGAwg", + "ASgFEhYKDnJld2FyZF9kaXNwbGF5GA0gASgJEhcKD3BhcmVudF9zdG9yeV9p", + "ZBgOIAMoCRIUCgxoYXNfZXZpZGVuY2UYDyABKAgSFAoMYXZnX2x1YV9uYW1l", + "GBAgASgJEhAKCGZsb29yX2lkGBEgAygFEiAKGHByZXZpZXdfbW9uc3Rlcl9n", + "cm91cF9pZBgSIAEoBRIRCglyZWNvbW1lbmQYEyABKAkSCwoDYWltGBQgASgJ", + "Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Story), global::Nova.Client.Story.Parser, new[]{ "Id", "StoryId", "Comment", "Chapter", "Index", "Title", "Desc", "TrialBuild", "ConditionId", "IsBranch", "IsBattle", "Reward", "RewardDisplay", "ParentStoryId", "HasEvidence", "AvgLuaName", "FloorId", "PreviewMonsterGroupId", "Recommend", "Aim" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Story : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Story()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StoryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Story() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Story(Story other) : this() { + id_ = other.id_; + storyId_ = other.storyId_; + comment_ = other.comment_; + chapter_ = other.chapter_; + index_ = other.index_; + title_ = other.title_; + desc_ = other.desc_; + trialBuild_ = other.trialBuild_; + conditionId_ = other.conditionId_; + isBranch_ = other.isBranch_; + isBattle_ = other.isBattle_; + reward_ = other.reward_; + rewardDisplay_ = other.rewardDisplay_; + parentStoryId_ = other.parentStoryId_.Clone(); + hasEvidence_ = other.hasEvidence_; + avgLuaName_ = other.avgLuaName_; + floorId_ = other.floorId_.Clone(); + previewMonsterGroupId_ = other.previewMonsterGroupId_; + recommend_ = other.recommend_; + aim_ = other.aim_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Story Clone() { + return new Story(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "story_id" field. + public const int StoryIdFieldNumber = 2; + private string storyId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StoryId { + get { return storyId_; } + set { + storyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 3; + private string comment_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "chapter" field. + public const int ChapterFieldNumber = 4; + private int chapter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Chapter { + get { return chapter_; } + set { + chapter_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 5; + private string index_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Index { + get { return index_; } + set { + index_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 6; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 7; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trial_build" field. + public const int TrialBuildFieldNumber = 8; + private int trialBuild_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TrialBuild { + get { return trialBuild_; } + set { + trialBuild_ = value; + } + } + + /// Field number for the "condition_id" field. + public const int ConditionIdFieldNumber = 9; + private string conditionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConditionId { + get { return conditionId_; } + set { + conditionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_branch" field. + public const int IsBranchFieldNumber = 10; + private bool isBranch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBranch { + get { return isBranch_; } + set { + isBranch_ = value; + } + } + + /// Field number for the "is_battle" field. + public const int IsBattleFieldNumber = 11; + private bool isBattle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBattle { + get { return isBattle_; } + set { + isBattle_ = value; + } + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 12; + private int reward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward { + get { return reward_; } + set { + reward_ = value; + } + } + + /// Field number for the "reward_display" field. + public const int RewardDisplayFieldNumber = 13; + private string rewardDisplay_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RewardDisplay { + get { return rewardDisplay_; } + set { + rewardDisplay_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parent_story_id" field. + public const int ParentStoryIdFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_parentStoryId_codec + = pb::FieldCodec.ForString(114); + private readonly pbc::RepeatedField parentStoryId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ParentStoryId { + get { return parentStoryId_; } + } + + /// Field number for the "has_evidence" field. + public const int HasEvidenceFieldNumber = 15; + private bool hasEvidence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEvidence { + get { return hasEvidence_; } + set { + hasEvidence_ = value; + } + } + + /// Field number for the "avg_lua_name" field. + public const int AvgLuaNameFieldNumber = 16; + private string avgLuaName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AvgLuaName { + get { return avgLuaName_; } + set { + avgLuaName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 17; + private static readonly pb::FieldCodec _repeated_floorId_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField floorId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FloorId { + get { return floorId_; } + } + + /// Field number for the "preview_monster_group_id" field. + public const int PreviewMonsterGroupIdFieldNumber = 18; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// Field number for the "recommend" field. + public const int RecommendFieldNumber = 19; + private string recommend_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Recommend { + get { return recommend_; } + set { + recommend_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "aim" field. + public const int AimFieldNumber = 20; + private string aim_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Aim { + get { return aim_; } + set { + aim_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Story); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Story other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (StoryId != other.StoryId) return false; + if (Comment != other.Comment) return false; + if (Chapter != other.Chapter) return false; + if (Index != other.Index) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (TrialBuild != other.TrialBuild) return false; + if (ConditionId != other.ConditionId) return false; + if (IsBranch != other.IsBranch) return false; + if (IsBattle != other.IsBattle) return false; + if (Reward != other.Reward) return false; + if (RewardDisplay != other.RewardDisplay) return false; + if(!parentStoryId_.Equals(other.parentStoryId_)) return false; + if (HasEvidence != other.HasEvidence) return false; + if (AvgLuaName != other.AvgLuaName) return false; + if(!floorId_.Equals(other.floorId_)) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if (Recommend != other.Recommend) return false; + if (Aim != other.Aim) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (StoryId.Length != 0) hash ^= StoryId.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + if (Chapter != 0) hash ^= Chapter.GetHashCode(); + if (Index.Length != 0) hash ^= Index.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (TrialBuild != 0) hash ^= TrialBuild.GetHashCode(); + if (ConditionId.Length != 0) hash ^= ConditionId.GetHashCode(); + if (IsBranch != false) hash ^= IsBranch.GetHashCode(); + if (IsBattle != false) hash ^= IsBattle.GetHashCode(); + if (Reward != 0) hash ^= Reward.GetHashCode(); + if (RewardDisplay.Length != 0) hash ^= RewardDisplay.GetHashCode(); + hash ^= parentStoryId_.GetHashCode(); + if (HasEvidence != false) hash ^= HasEvidence.GetHashCode(); + if (AvgLuaName.Length != 0) hash ^= AvgLuaName.GetHashCode(); + hash ^= floorId_.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + if (Recommend.Length != 0) hash ^= Recommend.GetHashCode(); + if (Aim.Length != 0) hash ^= Aim.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (StoryId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(StoryId); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + if (Chapter != 0) { + output.WriteRawTag(32); + output.WriteInt32(Chapter); + } + if (Index.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Index); + } + if (Title.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (TrialBuild != 0) { + output.WriteRawTag(64); + output.WriteInt32(TrialBuild); + } + if (ConditionId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ConditionId); + } + if (IsBranch != false) { + output.WriteRawTag(80); + output.WriteBool(IsBranch); + } + if (IsBattle != false) { + output.WriteRawTag(88); + output.WriteBool(IsBattle); + } + if (Reward != 0) { + output.WriteRawTag(96); + output.WriteInt32(Reward); + } + if (RewardDisplay.Length != 0) { + output.WriteRawTag(106); + output.WriteString(RewardDisplay); + } + parentStoryId_.WriteTo(output, _repeated_parentStoryId_codec); + if (HasEvidence != false) { + output.WriteRawTag(120); + output.WriteBool(HasEvidence); + } + if (AvgLuaName.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(AvgLuaName); + } + floorId_.WriteTo(output, _repeated_floorId_codec); + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Recommend.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Recommend); + } + if (Aim.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Aim); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (StoryId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(StoryId); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + if (Chapter != 0) { + output.WriteRawTag(32); + output.WriteInt32(Chapter); + } + if (Index.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Index); + } + if (Title.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (TrialBuild != 0) { + output.WriteRawTag(64); + output.WriteInt32(TrialBuild); + } + if (ConditionId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ConditionId); + } + if (IsBranch != false) { + output.WriteRawTag(80); + output.WriteBool(IsBranch); + } + if (IsBattle != false) { + output.WriteRawTag(88); + output.WriteBool(IsBattle); + } + if (Reward != 0) { + output.WriteRawTag(96); + output.WriteInt32(Reward); + } + if (RewardDisplay.Length != 0) { + output.WriteRawTag(106); + output.WriteString(RewardDisplay); + } + parentStoryId_.WriteTo(ref output, _repeated_parentStoryId_codec); + if (HasEvidence != false) { + output.WriteRawTag(120); + output.WriteBool(HasEvidence); + } + if (AvgLuaName.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(AvgLuaName); + } + floorId_.WriteTo(ref output, _repeated_floorId_codec); + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(PreviewMonsterGroupId); + } + if (Recommend.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Recommend); + } + if (Aim.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Aim); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (StoryId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StoryId); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + if (Chapter != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Chapter); + } + if (Index.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Index); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (TrialBuild != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TrialBuild); + } + if (ConditionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConditionId); + } + if (IsBranch != false) { + size += 1 + 1; + } + if (IsBattle != false) { + size += 1 + 1; + } + if (Reward != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward); + } + if (RewardDisplay.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardDisplay); + } + size += parentStoryId_.CalculateSize(_repeated_parentStoryId_codec); + if (HasEvidence != false) { + size += 1 + 1; + } + if (AvgLuaName.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AvgLuaName); + } + size += floorId_.CalculateSize(_repeated_floorId_codec); + if (PreviewMonsterGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + if (Recommend.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Recommend); + } + if (Aim.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Aim); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Story other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.StoryId.Length != 0) { + StoryId = other.StoryId; + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + if (other.Chapter != 0) { + Chapter = other.Chapter; + } + if (other.Index.Length != 0) { + Index = other.Index; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.TrialBuild != 0) { + TrialBuild = other.TrialBuild; + } + if (other.ConditionId.Length != 0) { + ConditionId = other.ConditionId; + } + if (other.IsBranch != false) { + IsBranch = other.IsBranch; + } + if (other.IsBattle != false) { + IsBattle = other.IsBattle; + } + if (other.Reward != 0) { + Reward = other.Reward; + } + if (other.RewardDisplay.Length != 0) { + RewardDisplay = other.RewardDisplay; + } + parentStoryId_.Add(other.parentStoryId_); + if (other.HasEvidence != false) { + HasEvidence = other.HasEvidence; + } + if (other.AvgLuaName.Length != 0) { + AvgLuaName = other.AvgLuaName; + } + floorId_.Add(other.floorId_); + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + if (other.Recommend.Length != 0) { + Recommend = other.Recommend; + } + if (other.Aim.Length != 0) { + Aim = other.Aim; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + StoryId = input.ReadString(); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 32: { + Chapter = input.ReadInt32(); + break; + } + case 42: { + Index = input.ReadString(); + break; + } + case 50: { + Title = input.ReadString(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 64: { + TrialBuild = input.ReadInt32(); + break; + } + case 74: { + ConditionId = input.ReadString(); + break; + } + case 80: { + IsBranch = input.ReadBool(); + break; + } + case 88: { + IsBattle = input.ReadBool(); + break; + } + case 96: { + Reward = input.ReadInt32(); + break; + } + case 106: { + RewardDisplay = input.ReadString(); + break; + } + case 114: { + parentStoryId_.AddEntriesFrom(input, _repeated_parentStoryId_codec); + break; + } + case 120: { + HasEvidence = input.ReadBool(); + break; + } + case 130: { + AvgLuaName = input.ReadString(); + break; + } + case 138: + case 136: { + floorId_.AddEntriesFrom(input, _repeated_floorId_codec); + break; + } + case 144: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 154: { + Recommend = input.ReadString(); + break; + } + case 162: { + Aim = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + StoryId = input.ReadString(); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 32: { + Chapter = input.ReadInt32(); + break; + } + case 42: { + Index = input.ReadString(); + break; + } + case 50: { + Title = input.ReadString(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 64: { + TrialBuild = input.ReadInt32(); + break; + } + case 74: { + ConditionId = input.ReadString(); + break; + } + case 80: { + IsBranch = input.ReadBool(); + break; + } + case 88: { + IsBattle = input.ReadBool(); + break; + } + case 96: { + Reward = input.ReadInt32(); + break; + } + case 106: { + RewardDisplay = input.ReadString(); + break; + } + case 114: { + parentStoryId_.AddEntriesFrom(ref input, _repeated_parentStoryId_codec); + break; + } + case 120: { + HasEvidence = input.ReadBool(); + break; + } + case 130: { + AvgLuaName = input.ReadString(); + break; + } + case 138: + case 136: { + floorId_.AddEntriesFrom(ref input, _repeated_floorId_codec); + break; + } + case 144: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 154: { + Recommend = input.ReadString(); + break; + } + case 162: { + Aim = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StoryChapter.cs b/NTR.Common/protos/StoryChapter.cs new file mode 100644 index 0000000..c50c3be --- /dev/null +++ b/NTR.Common/protos/StoryChapter.cs @@ -0,0 +1,593 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StoryChapter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StoryChapter.proto + public static partial class StoryChapterReflection { + + #region Descriptor + /// File descriptor for StoryChapter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StoryChapterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJTdG9yeUNoYXB0ZXIucHJvdG8i3AEKDFN0b3J5Q2hhcHRlchIKCgJpZBgB", + "IAEoBRIMCgR0eXBlGAIgASgFEhMKC3dvcmxkX2NsYXNzGAMgASgFEhQKDHBy", + "ZXZfc3RvcmllcxgEIAMoCRINCgVpbmRleBgFIAEoCRIMCgRuYW1lGAYgASgJ", + "EgwKBGRlc2MYByABKAkSFAoMY2hhcHRlcl9pY29uGAggASgJEhIKCnRpbWVf", + "c3RhbXAYCSADKAkSFAoMY2hhcHRlcl95ZWFyGAogASgJEhwKFHVubG9ja19z", + "aG93X3N0b3J5X2lkGAsgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryChapter), global::Nova.Client.StoryChapter.Parser, new[]{ "Id", "Type", "WorldClass", "PrevStories", "Index", "Name", "Desc", "ChapterIcon", "TimeStamp", "ChapterYear", "UnlockShowStoryId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StoryChapter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoryChapter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StoryChapterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryChapter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryChapter(StoryChapter other) : this() { + id_ = other.id_; + type_ = other.type_; + worldClass_ = other.worldClass_; + prevStories_ = other.prevStories_.Clone(); + index_ = other.index_; + name_ = other.name_; + desc_ = other.desc_; + chapterIcon_ = other.chapterIcon_; + timeStamp_ = other.timeStamp_.Clone(); + chapterYear_ = other.chapterYear_; + unlockShowStoryId_ = other.unlockShowStoryId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryChapter Clone() { + return new StoryChapter(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "world_class" field. + public const int WorldClassFieldNumber = 3; + private int worldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorldClass { + get { return worldClass_; } + set { + worldClass_ = value; + } + } + + /// Field number for the "prev_stories" field. + public const int PrevStoriesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_prevStories_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField prevStories_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrevStories { + get { return prevStories_; } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 5; + private string index_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Index { + get { return index_; } + set { + index_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 6; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 7; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "chapter_icon" field. + public const int ChapterIconFieldNumber = 8; + private string chapterIcon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChapterIcon { + get { return chapterIcon_; } + set { + chapterIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "time_stamp" field. + public const int TimeStampFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_timeStamp_codec + = pb::FieldCodec.ForString(74); + private readonly pbc::RepeatedField timeStamp_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TimeStamp { + get { return timeStamp_; } + } + + /// Field number for the "chapter_year" field. + public const int ChapterYearFieldNumber = 10; + private string chapterYear_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChapterYear { + get { return chapterYear_; } + set { + chapterYear_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlock_show_story_id" field. + public const int UnlockShowStoryIdFieldNumber = 11; + private int unlockShowStoryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockShowStoryId { + get { return unlockShowStoryId_; } + set { + unlockShowStoryId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StoryChapter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StoryChapter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Type != other.Type) return false; + if (WorldClass != other.WorldClass) return false; + if(!prevStories_.Equals(other.prevStories_)) return false; + if (Index != other.Index) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ChapterIcon != other.ChapterIcon) return false; + if(!timeStamp_.Equals(other.timeStamp_)) return false; + if (ChapterYear != other.ChapterYear) return false; + if (UnlockShowStoryId != other.UnlockShowStoryId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (WorldClass != 0) hash ^= WorldClass.GetHashCode(); + hash ^= prevStories_.GetHashCode(); + if (Index.Length != 0) hash ^= Index.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (ChapterIcon.Length != 0) hash ^= ChapterIcon.GetHashCode(); + hash ^= timeStamp_.GetHashCode(); + if (ChapterYear.Length != 0) hash ^= ChapterYear.GetHashCode(); + if (UnlockShowStoryId != 0) hash ^= UnlockShowStoryId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (WorldClass != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorldClass); + } + prevStories_.WriteTo(output, _repeated_prevStories_codec); + if (Index.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Index); + } + if (Name.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (ChapterIcon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ChapterIcon); + } + timeStamp_.WriteTo(output, _repeated_timeStamp_codec); + if (ChapterYear.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ChapterYear); + } + if (UnlockShowStoryId != 0) { + output.WriteRawTag(88); + output.WriteInt32(UnlockShowStoryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Type != 0) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (WorldClass != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorldClass); + } + prevStories_.WriteTo(ref output, _repeated_prevStories_codec); + if (Index.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Index); + } + if (Name.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Desc); + } + if (ChapterIcon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ChapterIcon); + } + timeStamp_.WriteTo(ref output, _repeated_timeStamp_codec); + if (ChapterYear.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ChapterYear); + } + if (UnlockShowStoryId != 0) { + output.WriteRawTag(88); + output.WriteInt32(UnlockShowStoryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (WorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClass); + } + size += prevStories_.CalculateSize(_repeated_prevStories_codec); + if (Index.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Index); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (ChapterIcon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChapterIcon); + } + size += timeStamp_.CalculateSize(_repeated_timeStamp_codec); + if (ChapterYear.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChapterYear); + } + if (UnlockShowStoryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockShowStoryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StoryChapter other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.WorldClass != 0) { + WorldClass = other.WorldClass; + } + prevStories_.Add(other.prevStories_); + if (other.Index.Length != 0) { + Index = other.Index; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.ChapterIcon.Length != 0) { + ChapterIcon = other.ChapterIcon; + } + timeStamp_.Add(other.timeStamp_); + if (other.ChapterYear.Length != 0) { + ChapterYear = other.ChapterYear; + } + if (other.UnlockShowStoryId != 0) { + UnlockShowStoryId = other.UnlockShowStoryId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 24: { + WorldClass = input.ReadInt32(); + break; + } + case 34: { + prevStories_.AddEntriesFrom(input, _repeated_prevStories_codec); + break; + } + case 42: { + Index = input.ReadString(); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 66: { + ChapterIcon = input.ReadString(); + break; + } + case 74: { + timeStamp_.AddEntriesFrom(input, _repeated_timeStamp_codec); + break; + } + case 82: { + ChapterYear = input.ReadString(); + break; + } + case 88: { + UnlockShowStoryId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Type = input.ReadInt32(); + break; + } + case 24: { + WorldClass = input.ReadInt32(); + break; + } + case 34: { + prevStories_.AddEntriesFrom(ref input, _repeated_prevStories_codec); + break; + } + case 42: { + Index = input.ReadString(); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + case 58: { + Desc = input.ReadString(); + break; + } + case 66: { + ChapterIcon = input.ReadString(); + break; + } + case 74: { + timeStamp_.AddEntriesFrom(ref input, _repeated_timeStamp_codec); + break; + } + case 82: { + ChapterYear = input.ReadString(); + break; + } + case 88: { + UnlockShowStoryId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StoryCondition.cs b/NTR.Common/protos/StoryCondition.cs new file mode 100644 index 0000000..50db8dc --- /dev/null +++ b/NTR.Common/protos/StoryCondition.cs @@ -0,0 +1,459 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StoryCondition.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StoryCondition.proto + public static partial class StoryConditionReflection { + + #region Descriptor + /// File descriptor for StoryCondition.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StoryConditionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTdG9yeUNvbmRpdGlvbi5wcm90byKrAQoOU3RvcnlDb25kaXRpb24SCgoC", + "aWQYASABKAUSFAoMY29uZGl0aW9uX2lkGAIgASgJEg8KB2NvbW1lbnQYAyAB", + "KAkSEAoIZXZfaWRzX2EYBCADKAkSEAoIZXZfaWRzX2IYBSADKAkSEgoKc3Rv", + "cnlfaWRfYRgGIAMoCRISCgpzdG9yeV9pZF9iGAcgAygJEhoKEnBsYXllcl93", + "b3JsZF9sZXZlbBgIIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryCondition), global::Nova.Client.StoryCondition.Parser, new[]{ "Id", "ConditionId", "Comment", "EvIdsA", "EvIdsB", "StoryIdA", "StoryIdB", "PlayerWorldLevel" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StoryCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoryCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StoryConditionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryCondition(StoryCondition other) : this() { + id_ = other.id_; + conditionId_ = other.conditionId_; + comment_ = other.comment_; + evIdsA_ = other.evIdsA_.Clone(); + evIdsB_ = other.evIdsB_.Clone(); + storyIdA_ = other.storyIdA_.Clone(); + storyIdB_ = other.storyIdB_.Clone(); + playerWorldLevel_ = other.playerWorldLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryCondition Clone() { + return new StoryCondition(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "condition_id" field. + public const int ConditionIdFieldNumber = 2; + private string conditionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConditionId { + get { return conditionId_; } + set { + conditionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 3; + private string comment_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ev_ids_a" field. + public const int EvIdsAFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_evIdsA_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField evIdsA_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EvIdsA { + get { return evIdsA_; } + } + + /// Field number for the "ev_ids_b" field. + public const int EvIdsBFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_evIdsB_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField evIdsB_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EvIdsB { + get { return evIdsB_; } + } + + /// Field number for the "story_id_a" field. + public const int StoryIdAFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_storyIdA_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField storyIdA_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StoryIdA { + get { return storyIdA_; } + } + + /// Field number for the "story_id_b" field. + public const int StoryIdBFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_storyIdB_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField storyIdB_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StoryIdB { + get { return storyIdB_; } + } + + /// Field number for the "player_world_level" field. + public const int PlayerWorldLevelFieldNumber = 8; + private int playerWorldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PlayerWorldLevel { + get { return playerWorldLevel_; } + set { + playerWorldLevel_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StoryCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StoryCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ConditionId != other.ConditionId) return false; + if (Comment != other.Comment) return false; + if(!evIdsA_.Equals(other.evIdsA_)) return false; + if(!evIdsB_.Equals(other.evIdsB_)) return false; + if(!storyIdA_.Equals(other.storyIdA_)) return false; + if(!storyIdB_.Equals(other.storyIdB_)) return false; + if (PlayerWorldLevel != other.PlayerWorldLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ConditionId.Length != 0) hash ^= ConditionId.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + hash ^= evIdsA_.GetHashCode(); + hash ^= evIdsB_.GetHashCode(); + hash ^= storyIdA_.GetHashCode(); + hash ^= storyIdB_.GetHashCode(); + if (PlayerWorldLevel != 0) hash ^= PlayerWorldLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ConditionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConditionId); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + evIdsA_.WriteTo(output, _repeated_evIdsA_codec); + evIdsB_.WriteTo(output, _repeated_evIdsB_codec); + storyIdA_.WriteTo(output, _repeated_storyIdA_codec); + storyIdB_.WriteTo(output, _repeated_storyIdB_codec); + if (PlayerWorldLevel != 0) { + output.WriteRawTag(64); + output.WriteInt32(PlayerWorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ConditionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConditionId); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + evIdsA_.WriteTo(ref output, _repeated_evIdsA_codec); + evIdsB_.WriteTo(ref output, _repeated_evIdsB_codec); + storyIdA_.WriteTo(ref output, _repeated_storyIdA_codec); + storyIdB_.WriteTo(ref output, _repeated_storyIdB_codec); + if (PlayerWorldLevel != 0) { + output.WriteRawTag(64); + output.WriteInt32(PlayerWorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ConditionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConditionId); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + size += evIdsA_.CalculateSize(_repeated_evIdsA_codec); + size += evIdsB_.CalculateSize(_repeated_evIdsB_codec); + size += storyIdA_.CalculateSize(_repeated_storyIdA_codec); + size += storyIdB_.CalculateSize(_repeated_storyIdB_codec); + if (PlayerWorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerWorldLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StoryCondition other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ConditionId.Length != 0) { + ConditionId = other.ConditionId; + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + evIdsA_.Add(other.evIdsA_); + evIdsB_.Add(other.evIdsB_); + storyIdA_.Add(other.storyIdA_); + storyIdB_.Add(other.storyIdB_); + if (other.PlayerWorldLevel != 0) { + PlayerWorldLevel = other.PlayerWorldLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + ConditionId = input.ReadString(); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 34: { + evIdsA_.AddEntriesFrom(input, _repeated_evIdsA_codec); + break; + } + case 42: { + evIdsB_.AddEntriesFrom(input, _repeated_evIdsB_codec); + break; + } + case 50: { + storyIdA_.AddEntriesFrom(input, _repeated_storyIdA_codec); + break; + } + case 58: { + storyIdB_.AddEntriesFrom(input, _repeated_storyIdB_codec); + break; + } + case 64: { + PlayerWorldLevel = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + ConditionId = input.ReadString(); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 34: { + evIdsA_.AddEntriesFrom(ref input, _repeated_evIdsA_codec); + break; + } + case 42: { + evIdsB_.AddEntriesFrom(ref input, _repeated_evIdsB_codec); + break; + } + case 50: { + storyIdA_.AddEntriesFrom(ref input, _repeated_storyIdA_codec); + break; + } + case 58: { + storyIdB_.AddEntriesFrom(ref input, _repeated_storyIdB_codec); + break; + } + case 64: { + PlayerWorldLevel = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StoryEvidence.cs b/NTR.Common/protos/StoryEvidence.cs new file mode 100644 index 0000000..ebec3ae --- /dev/null +++ b/NTR.Common/protos/StoryEvidence.cs @@ -0,0 +1,465 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StoryEvidence.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StoryEvidence.proto + public static partial class StoryEvidenceReflection { + + #region Descriptor + /// File descriptor for StoryEvidence.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StoryEvidenceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNTdG9yeUV2aWRlbmNlLnByb3RvInYKDVN0b3J5RXZpZGVuY2USCgoCaWQY", + "ASABKAUSDQoFZXZfaWQYAiABKAkSDwoHY29tbWVudBgDIAEoCRIMCgRuYW1l", + "GAQgASgJEgwKBGRlc2MYBSABKAkSDAoEaWNvbhgGIAEoCRIPCgdpY29uX2Jn", + "GAcgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryEvidence), global::Nova.Client.StoryEvidence.Parser, new[]{ "Id", "EvId", "Comment", "Name", "Desc", "Icon", "IconBg" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StoryEvidence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoryEvidence()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StoryEvidenceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryEvidence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryEvidence(StoryEvidence other) : this() { + id_ = other.id_; + evId_ = other.evId_; + comment_ = other.comment_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + iconBg_ = other.iconBg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryEvidence Clone() { + return new StoryEvidence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "ev_id" field. + public const int EvIdFieldNumber = 2; + private string evId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EvId { + get { return evId_; } + set { + evId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "comment" field. + public const int CommentFieldNumber = 3; + private string comment_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Comment { + get { return comment_; } + set { + comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 6; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon_bg" field. + public const int IconBgFieldNumber = 7; + private string iconBg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBg { + get { return iconBg_; } + set { + iconBg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StoryEvidence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StoryEvidence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (EvId != other.EvId) return false; + if (Comment != other.Comment) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (IconBg != other.IconBg) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (EvId.Length != 0) hash ^= EvId.GetHashCode(); + if (Comment.Length != 0) hash ^= Comment.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (IconBg.Length != 0) hash ^= IconBg.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EvId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(EvId); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(58); + output.WriteString(IconBg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (EvId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(EvId); + } + if (Comment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Comment); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Icon); + } + if (IconBg.Length != 0) { + output.WriteRawTag(58); + output.WriteString(IconBg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (EvId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EvId); + } + if (Comment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (IconBg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBg); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StoryEvidence other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.EvId.Length != 0) { + EvId = other.EvId; + } + if (other.Comment.Length != 0) { + Comment = other.Comment; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.IconBg.Length != 0) { + IconBg = other.IconBg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + EvId = input.ReadString(); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Icon = input.ReadString(); + break; + } + case 58: { + IconBg = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + EvId = input.ReadString(); + break; + } + case 26: { + Comment = input.ReadString(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Icon = input.ReadString(); + break; + } + case 58: { + IconBg = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StoryPersonality.cs b/NTR.Common/protos/StoryPersonality.cs new file mode 100644 index 0000000..34f9149 --- /dev/null +++ b/NTR.Common/protos/StoryPersonality.cs @@ -0,0 +1,390 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StoryPersonality.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StoryPersonality.proto + public static partial class StoryPersonalityReflection { + + #region Descriptor + /// File descriptor for StoryPersonality.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StoryPersonalityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTdG9yeVBlcnNvbmFsaXR5LnByb3RvIlUKEFN0b3J5UGVyc29uYWxpdHkS", + "CgoCaWQYASABKAUSDAoEbmFtZRgCIAEoCRIKCgJkYhgDIAEoCRIMCgRpY29u", + "GAQgASgJEg0KBWNvbG9yGAUgASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryPersonality), global::Nova.Client.StoryPersonality.Parser, new[]{ "Id", "Name", "Db", "Icon", "Color" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StoryPersonality : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoryPersonality()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StoryPersonalityReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryPersonality() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryPersonality(StoryPersonality other) : this() { + id_ = other.id_; + name_ = other.name_; + db_ = other.db_; + icon_ = other.icon_; + color_ = other.color_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryPersonality Clone() { + return new StoryPersonality(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "db" field. + public const int DbFieldNumber = 3; + private string db_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Db { + get { return db_; } + set { + db_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 5; + private string color_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Color { + get { return color_; } + set { + color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StoryPersonality); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StoryPersonality other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Db != other.Db) return false; + if (Icon != other.Icon) return false; + if (Color != other.Color) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Db.Length != 0) hash ^= Db.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Color.Length != 0) hash ^= Color.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Db.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Db); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (Color.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Db.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Db); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (Color.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Db.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Db); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Color.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StoryPersonality other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Db.Length != 0) { + Db = other.Db; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Color.Length != 0) { + Color = other.Color; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Db = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + Color = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Db = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + Color = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/StoryRolePersonality.cs b/NTR.Common/protos/StoryRolePersonality.cs new file mode 100644 index 0000000..55d2474 --- /dev/null +++ b/NTR.Common/protos/StoryRolePersonality.cs @@ -0,0 +1,1083 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StoryRolePersonality.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from StoryRolePersonality.proto + public static partial class StoryRolePersonalityReflection { + + #region Descriptor + /// File descriptor for StoryRolePersonality.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StoryRolePersonalityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdG9yeVJvbGVQZXJzb25hbGl0eS5wcm90byKpAwoUU3RvcnlSb2xlUGVy", + "c29uYWxpdHkSCgoCaWQYASABKAUSEwoLYXZnX2NoYXJfaWQYAiABKAkSFAoM", + "cGVyc29uYWxpdHlzGAMgAygFEhIKCmJhc2VfdmFsdWUYBCADKAUSDAoEYW1h", + "eBgFIAEoCRIRCglhbWF4X2ZhY2UYBiABKAkSDAoEYm1heBgHIAEoCRIRCgli", + "bWF4X2ZhY2UYCCABKAkSDAoEY21heBgJIAEoCRIRCgljbWF4X2ZhY2UYCiAB", + "KAkSDQoFYXBsdXMYCyABKAkSEgoKYXBsdXNfZmFjZRgMIAEoCRINCgVicGx1", + "cxgNIAEoCRISCgpicGx1c19mYWNlGA4gASgJEg0KBWNwbHVzGA8gASgJEhIK", + "CmNwbHVzX2ZhY2UYECABKAkSCgoCYWIYESABKAkSDwoHYWJfZmFjZRgSIAEo", + "CRIKCgJhYxgTIAEoCRIPCgdhY19mYWNlGBQgASgJEgoKAmJjGBUgASgJEg8K", + "B2JjX2ZhY2UYFiABKAkSDgoGbm9ybWFsGBcgASgJEhMKC25vcm1hbF9mYWNl", + "GBggASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryRolePersonality), global::Nova.Client.StoryRolePersonality.Parser, new[]{ "Id", "AvgCharId", "Personalitys", "BaseValue", "Amax", "AmaxFace", "Bmax", "BmaxFace", "Cmax", "CmaxFace", "Aplus", "AplusFace", "Bplus", "BplusFace", "Cplus", "CplusFace", "Ab", "AbFace", "Ac", "AcFace", "Bc", "BcFace", "Normal", "NormalFace" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StoryRolePersonality : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoryRolePersonality()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.StoryRolePersonalityReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryRolePersonality() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryRolePersonality(StoryRolePersonality other) : this() { + id_ = other.id_; + avgCharId_ = other.avgCharId_; + personalitys_ = other.personalitys_.Clone(); + baseValue_ = other.baseValue_.Clone(); + amax_ = other.amax_; + amaxFace_ = other.amaxFace_; + bmax_ = other.bmax_; + bmaxFace_ = other.bmaxFace_; + cmax_ = other.cmax_; + cmaxFace_ = other.cmaxFace_; + aplus_ = other.aplus_; + aplusFace_ = other.aplusFace_; + bplus_ = other.bplus_; + bplusFace_ = other.bplusFace_; + cplus_ = other.cplus_; + cplusFace_ = other.cplusFace_; + ab_ = other.ab_; + abFace_ = other.abFace_; + ac_ = other.ac_; + acFace_ = other.acFace_; + bc_ = other.bc_; + bcFace_ = other.bcFace_; + normal_ = other.normal_; + normalFace_ = other.normalFace_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StoryRolePersonality Clone() { + return new StoryRolePersonality(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "avg_char_id" field. + public const int AvgCharIdFieldNumber = 2; + private string avgCharId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AvgCharId { + get { return avgCharId_; } + set { + avgCharId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "personalitys" field. + public const int PersonalitysFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_personalitys_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField personalitys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Personalitys { + get { return personalitys_; } + } + + /// Field number for the "base_value" field. + public const int BaseValueFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_baseValue_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField baseValue_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseValue { + get { return baseValue_; } + } + + /// Field number for the "amax" field. + public const int AmaxFieldNumber = 5; + private string amax_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Amax { + get { return amax_; } + set { + amax_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amax_face" field. + public const int AmaxFaceFieldNumber = 6; + private string amaxFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AmaxFace { + get { return amaxFace_; } + set { + amaxFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bmax" field. + public const int BmaxFieldNumber = 7; + private string bmax_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bmax { + get { return bmax_; } + set { + bmax_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bmax_face" field. + public const int BmaxFaceFieldNumber = 8; + private string bmaxFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BmaxFace { + get { return bmaxFace_; } + set { + bmaxFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cmax" field. + public const int CmaxFieldNumber = 9; + private string cmax_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cmax { + get { return cmax_; } + set { + cmax_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cmax_face" field. + public const int CmaxFaceFieldNumber = 10; + private string cmaxFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CmaxFace { + get { return cmaxFace_; } + set { + cmaxFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "aplus" field. + public const int AplusFieldNumber = 11; + private string aplus_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Aplus { + get { return aplus_; } + set { + aplus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "aplus_face" field. + public const int AplusFaceFieldNumber = 12; + private string aplusFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AplusFace { + get { return aplusFace_; } + set { + aplusFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bplus" field. + public const int BplusFieldNumber = 13; + private string bplus_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bplus { + get { return bplus_; } + set { + bplus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bplus_face" field. + public const int BplusFaceFieldNumber = 14; + private string bplusFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BplusFace { + get { return bplusFace_; } + set { + bplusFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cplus" field. + public const int CplusFieldNumber = 15; + private string cplus_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cplus { + get { return cplus_; } + set { + cplus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cplus_face" field. + public const int CplusFaceFieldNumber = 16; + private string cplusFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CplusFace { + get { return cplusFace_; } + set { + cplusFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ab" field. + public const int AbFieldNumber = 17; + private string ab_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ab { + get { return ab_; } + set { + ab_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ab_face" field. + public const int AbFaceFieldNumber = 18; + private string abFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AbFace { + get { return abFace_; } + set { + abFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ac" field. + public const int AcFieldNumber = 19; + private string ac_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ac { + get { return ac_; } + set { + ac_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ac_face" field. + public const int AcFaceFieldNumber = 20; + private string acFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AcFace { + get { return acFace_; } + set { + acFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bc" field. + public const int BcFieldNumber = 21; + private string bc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bc { + get { return bc_; } + set { + bc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "bc_face" field. + public const int BcFaceFieldNumber = 22; + private string bcFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BcFace { + get { return bcFace_; } + set { + bcFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "normal" field. + public const int NormalFieldNumber = 23; + private string normal_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Normal { + get { return normal_; } + set { + normal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "normal_face" field. + public const int NormalFaceFieldNumber = 24; + private string normalFace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NormalFace { + get { return normalFace_; } + set { + normalFace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StoryRolePersonality); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StoryRolePersonality other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AvgCharId != other.AvgCharId) return false; + if(!personalitys_.Equals(other.personalitys_)) return false; + if(!baseValue_.Equals(other.baseValue_)) return false; + if (Amax != other.Amax) return false; + if (AmaxFace != other.AmaxFace) return false; + if (Bmax != other.Bmax) return false; + if (BmaxFace != other.BmaxFace) return false; + if (Cmax != other.Cmax) return false; + if (CmaxFace != other.CmaxFace) return false; + if (Aplus != other.Aplus) return false; + if (AplusFace != other.AplusFace) return false; + if (Bplus != other.Bplus) return false; + if (BplusFace != other.BplusFace) return false; + if (Cplus != other.Cplus) return false; + if (CplusFace != other.CplusFace) return false; + if (Ab != other.Ab) return false; + if (AbFace != other.AbFace) return false; + if (Ac != other.Ac) return false; + if (AcFace != other.AcFace) return false; + if (Bc != other.Bc) return false; + if (BcFace != other.BcFace) return false; + if (Normal != other.Normal) return false; + if (NormalFace != other.NormalFace) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (AvgCharId.Length != 0) hash ^= AvgCharId.GetHashCode(); + hash ^= personalitys_.GetHashCode(); + hash ^= baseValue_.GetHashCode(); + if (Amax.Length != 0) hash ^= Amax.GetHashCode(); + if (AmaxFace.Length != 0) hash ^= AmaxFace.GetHashCode(); + if (Bmax.Length != 0) hash ^= Bmax.GetHashCode(); + if (BmaxFace.Length != 0) hash ^= BmaxFace.GetHashCode(); + if (Cmax.Length != 0) hash ^= Cmax.GetHashCode(); + if (CmaxFace.Length != 0) hash ^= CmaxFace.GetHashCode(); + if (Aplus.Length != 0) hash ^= Aplus.GetHashCode(); + if (AplusFace.Length != 0) hash ^= AplusFace.GetHashCode(); + if (Bplus.Length != 0) hash ^= Bplus.GetHashCode(); + if (BplusFace.Length != 0) hash ^= BplusFace.GetHashCode(); + if (Cplus.Length != 0) hash ^= Cplus.GetHashCode(); + if (CplusFace.Length != 0) hash ^= CplusFace.GetHashCode(); + if (Ab.Length != 0) hash ^= Ab.GetHashCode(); + if (AbFace.Length != 0) hash ^= AbFace.GetHashCode(); + if (Ac.Length != 0) hash ^= Ac.GetHashCode(); + if (AcFace.Length != 0) hash ^= AcFace.GetHashCode(); + if (Bc.Length != 0) hash ^= Bc.GetHashCode(); + if (BcFace.Length != 0) hash ^= BcFace.GetHashCode(); + if (Normal.Length != 0) hash ^= Normal.GetHashCode(); + if (NormalFace.Length != 0) hash ^= NormalFace.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AvgCharId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AvgCharId); + } + personalitys_.WriteTo(output, _repeated_personalitys_codec); + baseValue_.WriteTo(output, _repeated_baseValue_codec); + if (Amax.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Amax); + } + if (AmaxFace.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AmaxFace); + } + if (Bmax.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Bmax); + } + if (BmaxFace.Length != 0) { + output.WriteRawTag(66); + output.WriteString(BmaxFace); + } + if (Cmax.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Cmax); + } + if (CmaxFace.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CmaxFace); + } + if (Aplus.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Aplus); + } + if (AplusFace.Length != 0) { + output.WriteRawTag(98); + output.WriteString(AplusFace); + } + if (Bplus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Bplus); + } + if (BplusFace.Length != 0) { + output.WriteRawTag(114); + output.WriteString(BplusFace); + } + if (Cplus.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Cplus); + } + if (CplusFace.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(CplusFace); + } + if (Ab.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Ab); + } + if (AbFace.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(AbFace); + } + if (Ac.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Ac); + } + if (AcFace.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(AcFace); + } + if (Bc.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Bc); + } + if (BcFace.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(BcFace); + } + if (Normal.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Normal); + } + if (NormalFace.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(NormalFace); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (AvgCharId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AvgCharId); + } + personalitys_.WriteTo(ref output, _repeated_personalitys_codec); + baseValue_.WriteTo(ref output, _repeated_baseValue_codec); + if (Amax.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Amax); + } + if (AmaxFace.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AmaxFace); + } + if (Bmax.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Bmax); + } + if (BmaxFace.Length != 0) { + output.WriteRawTag(66); + output.WriteString(BmaxFace); + } + if (Cmax.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Cmax); + } + if (CmaxFace.Length != 0) { + output.WriteRawTag(82); + output.WriteString(CmaxFace); + } + if (Aplus.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Aplus); + } + if (AplusFace.Length != 0) { + output.WriteRawTag(98); + output.WriteString(AplusFace); + } + if (Bplus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Bplus); + } + if (BplusFace.Length != 0) { + output.WriteRawTag(114); + output.WriteString(BplusFace); + } + if (Cplus.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Cplus); + } + if (CplusFace.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(CplusFace); + } + if (Ab.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Ab); + } + if (AbFace.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(AbFace); + } + if (Ac.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Ac); + } + if (AcFace.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(AcFace); + } + if (Bc.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Bc); + } + if (BcFace.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(BcFace); + } + if (Normal.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Normal); + } + if (NormalFace.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(NormalFace); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (AvgCharId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AvgCharId); + } + size += personalitys_.CalculateSize(_repeated_personalitys_codec); + size += baseValue_.CalculateSize(_repeated_baseValue_codec); + if (Amax.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Amax); + } + if (AmaxFace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AmaxFace); + } + if (Bmax.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bmax); + } + if (BmaxFace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BmaxFace); + } + if (Cmax.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Cmax); + } + if (CmaxFace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CmaxFace); + } + if (Aplus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Aplus); + } + if (AplusFace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AplusFace); + } + if (Bplus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bplus); + } + if (BplusFace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BplusFace); + } + if (Cplus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Cplus); + } + if (CplusFace.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CplusFace); + } + if (Ab.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Ab); + } + if (AbFace.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AbFace); + } + if (Ac.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Ac); + } + if (AcFace.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AcFace); + } + if (Bc.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Bc); + } + if (BcFace.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BcFace); + } + if (Normal.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Normal); + } + if (NormalFace.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(NormalFace); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StoryRolePersonality other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AvgCharId.Length != 0) { + AvgCharId = other.AvgCharId; + } + personalitys_.Add(other.personalitys_); + baseValue_.Add(other.baseValue_); + if (other.Amax.Length != 0) { + Amax = other.Amax; + } + if (other.AmaxFace.Length != 0) { + AmaxFace = other.AmaxFace; + } + if (other.Bmax.Length != 0) { + Bmax = other.Bmax; + } + if (other.BmaxFace.Length != 0) { + BmaxFace = other.BmaxFace; + } + if (other.Cmax.Length != 0) { + Cmax = other.Cmax; + } + if (other.CmaxFace.Length != 0) { + CmaxFace = other.CmaxFace; + } + if (other.Aplus.Length != 0) { + Aplus = other.Aplus; + } + if (other.AplusFace.Length != 0) { + AplusFace = other.AplusFace; + } + if (other.Bplus.Length != 0) { + Bplus = other.Bplus; + } + if (other.BplusFace.Length != 0) { + BplusFace = other.BplusFace; + } + if (other.Cplus.Length != 0) { + Cplus = other.Cplus; + } + if (other.CplusFace.Length != 0) { + CplusFace = other.CplusFace; + } + if (other.Ab.Length != 0) { + Ab = other.Ab; + } + if (other.AbFace.Length != 0) { + AbFace = other.AbFace; + } + if (other.Ac.Length != 0) { + Ac = other.Ac; + } + if (other.AcFace.Length != 0) { + AcFace = other.AcFace; + } + if (other.Bc.Length != 0) { + Bc = other.Bc; + } + if (other.BcFace.Length != 0) { + BcFace = other.BcFace; + } + if (other.Normal.Length != 0) { + Normal = other.Normal; + } + if (other.NormalFace.Length != 0) { + NormalFace = other.NormalFace; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + AvgCharId = input.ReadString(); + break; + } + case 26: + case 24: { + personalitys_.AddEntriesFrom(input, _repeated_personalitys_codec); + break; + } + case 34: + case 32: { + baseValue_.AddEntriesFrom(input, _repeated_baseValue_codec); + break; + } + case 42: { + Amax = input.ReadString(); + break; + } + case 50: { + AmaxFace = input.ReadString(); + break; + } + case 58: { + Bmax = input.ReadString(); + break; + } + case 66: { + BmaxFace = input.ReadString(); + break; + } + case 74: { + Cmax = input.ReadString(); + break; + } + case 82: { + CmaxFace = input.ReadString(); + break; + } + case 90: { + Aplus = input.ReadString(); + break; + } + case 98: { + AplusFace = input.ReadString(); + break; + } + case 106: { + Bplus = input.ReadString(); + break; + } + case 114: { + BplusFace = input.ReadString(); + break; + } + case 122: { + Cplus = input.ReadString(); + break; + } + case 130: { + CplusFace = input.ReadString(); + break; + } + case 138: { + Ab = input.ReadString(); + break; + } + case 146: { + AbFace = input.ReadString(); + break; + } + case 154: { + Ac = input.ReadString(); + break; + } + case 162: { + AcFace = input.ReadString(); + break; + } + case 170: { + Bc = input.ReadString(); + break; + } + case 178: { + BcFace = input.ReadString(); + break; + } + case 186: { + Normal = input.ReadString(); + break; + } + case 194: { + NormalFace = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + AvgCharId = input.ReadString(); + break; + } + case 26: + case 24: { + personalitys_.AddEntriesFrom(ref input, _repeated_personalitys_codec); + break; + } + case 34: + case 32: { + baseValue_.AddEntriesFrom(ref input, _repeated_baseValue_codec); + break; + } + case 42: { + Amax = input.ReadString(); + break; + } + case 50: { + AmaxFace = input.ReadString(); + break; + } + case 58: { + Bmax = input.ReadString(); + break; + } + case 66: { + BmaxFace = input.ReadString(); + break; + } + case 74: { + Cmax = input.ReadString(); + break; + } + case 82: { + CmaxFace = input.ReadString(); + break; + } + case 90: { + Aplus = input.ReadString(); + break; + } + case 98: { + AplusFace = input.ReadString(); + break; + } + case 106: { + Bplus = input.ReadString(); + break; + } + case 114: { + BplusFace = input.ReadString(); + break; + } + case 122: { + Cplus = input.ReadString(); + break; + } + case 130: { + CplusFace = input.ReadString(); + break; + } + case 138: { + Ab = input.ReadString(); + break; + } + case 146: { + AbFace = input.ReadString(); + break; + } + case 154: { + Ac = input.ReadString(); + break; + } + case 162: { + AcFace = input.ReadString(); + break; + } + case 170: { + Bc = input.ReadString(); + break; + } + case 178: { + BcFace = input.ReadString(); + break; + } + case 186: { + Normal = input.ReadString(); + break; + } + case 194: { + NormalFace = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAI.cs b/NTR.Common/protos/TableAI.cs new file mode 100644 index 0000000..b5c476a --- /dev/null +++ b/NTR.Common/protos/TableAI.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AI.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AI.proto + public static partial class TableAIReflection { + + #region Descriptor + /// File descriptor for table_AI.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAIReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg50YWJsZV9BSS5wcm90bxoIQUkucHJvdG8iHQoIdGFibGVfQUkSEQoEbGlz", + "dBgBIAMoCzIDLkFJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AIReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AI), global::Nova.Client.table_AI.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AI : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AI()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAIReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AI() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AI(table_AI other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AI Clone() { + return new table_AI(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AI.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AI); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AI other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AI other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAchievement.cs b/NTR.Common/protos/TableAchievement.cs new file mode 100644 index 0000000..af68e17 --- /dev/null +++ b/NTR.Common/protos/TableAchievement.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Achievement.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Achievement.proto + public static partial class TableAchievementReflection { + + #region Descriptor + /// File descriptor for table_Achievement.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAchievementReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9BY2hpZXZlbWVudC5wcm90bxoRQWNoaWV2ZW1lbnQucHJvdG8i", + "LwoRdGFibGVfQWNoaWV2ZW1lbnQSGgoEbGlzdBgBIAMoCzIMLkFjaGlldmVt", + "ZW50Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AchievementReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Achievement), global::Nova.Client.table_Achievement.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Achievement : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Achievement()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAchievementReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Achievement() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Achievement(table_Achievement other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Achievement Clone() { + return new table_Achievement(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Achievement.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Achievement); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Achievement other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Achievement other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableActivity.cs b/NTR.Common/protos/TableActivity.cs new file mode 100644 index 0000000..17e30ad --- /dev/null +++ b/NTR.Common/protos/TableActivity.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Activity.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Activity.proto + public static partial class TableActivityReflection { + + #region Descriptor + /// File descriptor for table_Activity.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableActivityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9BY3Rpdml0eS5wcm90bxoOQWN0aXZpdHkucHJvdG8iKQoOdGFi", + "bGVfQWN0aXZpdHkSFwoEbGlzdBgBIAMoCzIJLkFjdGl2aXR5Qg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ActivityReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Activity), global::Nova.Client.table_Activity.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Activity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Activity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableActivityReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Activity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Activity(table_Activity other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Activity Clone() { + return new table_Activity(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Activity.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Activity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Activity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Activity other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAddBuffAction.cs b/NTR.Common/protos/TableAddBuffAction.cs new file mode 100644 index 0000000..cb2421a --- /dev/null +++ b/NTR.Common/protos/TableAddBuffAction.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AddBuffAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AddBuffAction.proto + public static partial class TableAddBuffActionReflection { + + #region Descriptor + /// File descriptor for table_AddBuffAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAddBuffActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9BZGRCdWZmQWN0aW9uLnByb3RvGhNBZGRCdWZmQWN0aW9uLnBy", + "b3RvIjMKE3RhYmxlX0FkZEJ1ZmZBY3Rpb24SHAoEbGlzdBgBIAMoCzIOLkFk", + "ZEJ1ZmZBY3Rpb25CDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AddBuffActionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AddBuffAction), global::Nova.Client.table_AddBuffAction.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AddBuffAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AddBuffAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAddBuffActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AddBuffAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AddBuffAction(table_AddBuffAction other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AddBuffAction Clone() { + return new table_AddBuffAction(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AddBuffAction.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AddBuffAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AddBuffAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AddBuffAction other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAffinityGift.cs b/NTR.Common/protos/TableAffinityGift.cs new file mode 100644 index 0000000..f805941 --- /dev/null +++ b/NTR.Common/protos/TableAffinityGift.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AffinityGift.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AffinityGift.proto + public static partial class TableAffinityGiftReflection { + + #region Descriptor + /// File descriptor for table_AffinityGift.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAffinityGiftReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9BZmZpbml0eUdpZnQucHJvdG8aEkFmZmluaXR5R2lmdC5wcm90", + "byIxChJ0YWJsZV9BZmZpbml0eUdpZnQSGwoEbGlzdBgBIAMoCzINLkFmZmlu", + "aXR5R2lmdEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AffinityGiftReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AffinityGift), global::Nova.Client.table_AffinityGift.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AffinityGift : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AffinityGift()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAffinityGiftReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityGift() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityGift(table_AffinityGift other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityGift Clone() { + return new table_AffinityGift(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AffinityGift.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AffinityGift); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AffinityGift other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AffinityGift other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAffinityLevel.cs b/NTR.Common/protos/TableAffinityLevel.cs new file mode 100644 index 0000000..823497a --- /dev/null +++ b/NTR.Common/protos/TableAffinityLevel.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AffinityLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AffinityLevel.proto + public static partial class TableAffinityLevelReflection { + + #region Descriptor + /// File descriptor for table_AffinityLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAffinityLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9BZmZpbml0eUxldmVsLnByb3RvGhNBZmZpbml0eUxldmVsLnBy", + "b3RvIjMKE3RhYmxlX0FmZmluaXR5TGV2ZWwSHAoEbGlzdBgBIAMoCzIOLkFm", + "ZmluaXR5TGV2ZWxCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AffinityLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AffinityLevel), global::Nova.Client.table_AffinityLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AffinityLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AffinityLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAffinityLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityLevel(table_AffinityLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityLevel Clone() { + return new table_AffinityLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AffinityLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AffinityLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AffinityLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AffinityLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAffinityQuest.cs b/NTR.Common/protos/TableAffinityQuest.cs new file mode 100644 index 0000000..f99aa51 --- /dev/null +++ b/NTR.Common/protos/TableAffinityQuest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AffinityQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AffinityQuest.proto + public static partial class TableAffinityQuestReflection { + + #region Descriptor + /// File descriptor for table_AffinityQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAffinityQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9BZmZpbml0eVF1ZXN0LnByb3RvGhNBZmZpbml0eVF1ZXN0LnBy", + "b3RvIjMKE3RhYmxlX0FmZmluaXR5UXVlc3QSHAoEbGlzdBgBIAMoCzIOLkFm", + "ZmluaXR5UXVlc3RCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AffinityQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AffinityQuest), global::Nova.Client.table_AffinityQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AffinityQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AffinityQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAffinityQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityQuest(table_AffinityQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityQuest Clone() { + return new table_AffinityQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AffinityQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AffinityQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AffinityQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AffinityQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAffinityUpReward.cs b/NTR.Common/protos/TableAffinityUpReward.cs new file mode 100644 index 0000000..8b3ab91 --- /dev/null +++ b/NTR.Common/protos/TableAffinityUpReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AffinityUpReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AffinityUpReward.proto + public static partial class TableAffinityUpRewardReflection { + + #region Descriptor + /// File descriptor for table_AffinityUpReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAffinityUpRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9BZmZpbml0eVVwUmV3YXJkLnByb3RvGhZBZmZpbml0eVVwUmV3", + "YXJkLnByb3RvIjkKFnRhYmxlX0FmZmluaXR5VXBSZXdhcmQSHwoEbGlzdBgB", + "IAMoCzIRLkFmZmluaXR5VXBSZXdhcmRCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AffinityUpRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AffinityUpReward), global::Nova.Client.table_AffinityUpReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AffinityUpReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AffinityUpReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAffinityUpRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityUpReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityUpReward(table_AffinityUpReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AffinityUpReward Clone() { + return new table_AffinityUpReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AffinityUpReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AffinityUpReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AffinityUpReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AffinityUpReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAgent.cs b/NTR.Common/protos/TableAgent.cs new file mode 100644 index 0000000..bfa7b06 --- /dev/null +++ b/NTR.Common/protos/TableAgent.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Agent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Agent.proto + public static partial class TableAgentReflection { + + #region Descriptor + /// File descriptor for table_Agent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAgentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9BZ2VudC5wcm90bxoLQWdlbnQucHJvdG8iIwoLdGFibGVfQWdl", + "bnQSFAoEbGlzdBgBIAMoCzIGLkFnZW50Qg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AgentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Agent), global::Nova.Client.table_Agent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Agent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Agent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAgentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Agent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Agent(table_Agent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Agent Clone() { + return new table_Agent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Agent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Agent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Agent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Agent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAgentSpecialPerformance.cs b/NTR.Common/protos/TableAgentSpecialPerformance.cs new file mode 100644 index 0000000..56d4404 --- /dev/null +++ b/NTR.Common/protos/TableAgentSpecialPerformance.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AgentSpecialPerformance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AgentSpecialPerformance.proto + public static partial class TableAgentSpecialPerformanceReflection { + + #region Descriptor + /// File descriptor for table_AgentSpecialPerformance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAgentSpecialPerformanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiN0YWJsZV9BZ2VudFNwZWNpYWxQZXJmb3JtYW5jZS5wcm90bxodQWdlbnRT", + "cGVjaWFsUGVyZm9ybWFuY2UucHJvdG8iRwoddGFibGVfQWdlbnRTcGVjaWFs", + "UGVyZm9ybWFuY2USJgoEbGlzdBgBIAMoCzIYLkFnZW50U3BlY2lhbFBlcmZv", + "cm1hbmNlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AgentSpecialPerformanceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AgentSpecialPerformance), global::Nova.Client.table_AgentSpecialPerformance.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AgentSpecialPerformance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AgentSpecialPerformance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAgentSpecialPerformanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AgentSpecialPerformance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AgentSpecialPerformance(table_AgentSpecialPerformance other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AgentSpecialPerformance Clone() { + return new table_AgentSpecialPerformance(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AgentSpecialPerformance.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AgentSpecialPerformance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AgentSpecialPerformance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AgentSpecialPerformance other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAgentTab.cs b/NTR.Common/protos/TableAgentTab.cs new file mode 100644 index 0000000..f897356 --- /dev/null +++ b/NTR.Common/protos/TableAgentTab.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AgentTab.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AgentTab.proto + public static partial class TableAgentTabReflection { + + #region Descriptor + /// File descriptor for table_AgentTab.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAgentTabReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9BZ2VudFRhYi5wcm90bxoOQWdlbnRUYWIucHJvdG8iKQoOdGFi", + "bGVfQWdlbnRUYWISFwoEbGlzdBgBIAMoCzIJLkFnZW50VGFiQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AgentTabReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AgentTab), global::Nova.Client.table_AgentTab.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AgentTab : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AgentTab()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAgentTabReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AgentTab() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AgentTab(table_AgentTab other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AgentTab Clone() { + return new table_AgentTab(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AgentTab.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AgentTab); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AgentTab other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AgentTab other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAreaEffect.cs b/NTR.Common/protos/TableAreaEffect.cs new file mode 100644 index 0000000..c2705d9 --- /dev/null +++ b/NTR.Common/protos/TableAreaEffect.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AreaEffect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AreaEffect.proto + public static partial class TableAreaEffectReflection { + + #region Descriptor + /// File descriptor for table_AreaEffect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAreaEffectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9BcmVhRWZmZWN0LnByb3RvGhBBcmVhRWZmZWN0LnByb3RvIi0K", + "EHRhYmxlX0FyZWFFZmZlY3QSGQoEbGlzdBgBIAMoCzILLkFyZWFFZmZlY3RC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AreaEffectReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AreaEffect), global::Nova.Client.table_AreaEffect.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AreaEffect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AreaEffect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAreaEffectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AreaEffect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AreaEffect(table_AreaEffect other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AreaEffect Clone() { + return new table_AreaEffect(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AreaEffect.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AreaEffect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AreaEffect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AreaEffect other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAttribute.cs b/NTR.Common/protos/TableAttribute.cs new file mode 100644 index 0000000..399d144 --- /dev/null +++ b/NTR.Common/protos/TableAttribute.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Attribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Attribute.proto + public static partial class TableAttributeReflection { + + #region Descriptor + /// File descriptor for table_Attribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9BdHRyaWJ1dGUucHJvdG8aD0F0dHJpYnV0ZS5wcm90byIrCg90", + "YWJsZV9BdHRyaWJ1dGUSGAoEbGlzdBgBIAMoCzIKLkF0dHJpYnV0ZUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AttributeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Attribute), global::Nova.Client.table_Attribute.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Attribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Attribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Attribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Attribute(table_Attribute other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Attribute Clone() { + return new table_Attribute(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Attribute.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Attribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Attribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Attribute other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableAttributeLimit.cs b/NTR.Common/protos/TableAttributeLimit.cs new file mode 100644 index 0000000..17d0aa4 --- /dev/null +++ b/NTR.Common/protos/TableAttributeLimit.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_AttributeLimit.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_AttributeLimit.proto + public static partial class TableAttributeLimitReflection { + + #region Descriptor + /// File descriptor for table_AttributeLimit.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableAttributeLimitReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9BdHRyaWJ1dGVMaW1pdC5wcm90bxoUQXR0cmlidXRlTGltaXQu", + "cHJvdG8iNQoUdGFibGVfQXR0cmlidXRlTGltaXQSHQoEbGlzdBgBIAMoCzIP", + "LkF0dHJpYnV0ZUxpbWl0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.AttributeLimitReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_AttributeLimit), global::Nova.Client.table_AttributeLimit.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_AttributeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_AttributeLimit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableAttributeLimitReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AttributeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AttributeLimit(table_AttributeLimit other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_AttributeLimit Clone() { + return new table_AttributeLimit(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.AttributeLimit.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_AttributeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_AttributeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_AttributeLimit other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBattlePass.cs b/NTR.Common/protos/TableBattlePass.cs new file mode 100644 index 0000000..6745c9a --- /dev/null +++ b/NTR.Common/protos/TableBattlePass.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BattlePass.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BattlePass.proto + public static partial class TableBattlePassReflection { + + #region Descriptor + /// File descriptor for table_BattlePass.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBattlePassReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9CYXR0bGVQYXNzLnByb3RvGhBCYXR0bGVQYXNzLnByb3RvIi0K", + "EHRhYmxlX0JhdHRsZVBhc3MSGQoEbGlzdBgBIAMoCzILLkJhdHRsZVBhc3NC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BattlePassReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BattlePass), global::Nova.Client.table_BattlePass.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BattlePass : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BattlePass()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBattlePassReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePass() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePass(table_BattlePass other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePass Clone() { + return new table_BattlePass(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BattlePass.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BattlePass); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BattlePass other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BattlePass other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBattlePassLevel.cs b/NTR.Common/protos/TableBattlePassLevel.cs new file mode 100644 index 0000000..dc88366 --- /dev/null +++ b/NTR.Common/protos/TableBattlePassLevel.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BattlePassLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BattlePassLevel.proto + public static partial class TableBattlePassLevelReflection { + + #region Descriptor + /// File descriptor for table_BattlePassLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBattlePassLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9CYXR0bGVQYXNzTGV2ZWwucHJvdG8aFUJhdHRsZVBhc3NMZXZl", + "bC5wcm90byI3ChV0YWJsZV9CYXR0bGVQYXNzTGV2ZWwSHgoEbGlzdBgBIAMo", + "CzIQLkJhdHRsZVBhc3NMZXZlbEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BattlePassLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BattlePassLevel), global::Nova.Client.table_BattlePassLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BattlePassLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BattlePassLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBattlePassLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassLevel(table_BattlePassLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassLevel Clone() { + return new table_BattlePassLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BattlePassLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BattlePassLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BattlePassLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BattlePassLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBattlePassQuest.cs b/NTR.Common/protos/TableBattlePassQuest.cs new file mode 100644 index 0000000..c2116ac --- /dev/null +++ b/NTR.Common/protos/TableBattlePassQuest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BattlePassQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BattlePassQuest.proto + public static partial class TableBattlePassQuestReflection { + + #region Descriptor + /// File descriptor for table_BattlePassQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBattlePassQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9CYXR0bGVQYXNzUXVlc3QucHJvdG8aFUJhdHRsZVBhc3NRdWVz", + "dC5wcm90byI3ChV0YWJsZV9CYXR0bGVQYXNzUXVlc3QSHgoEbGlzdBgBIAMo", + "CzIQLkJhdHRsZVBhc3NRdWVzdEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BattlePassQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BattlePassQuest), global::Nova.Client.table_BattlePassQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BattlePassQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BattlePassQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBattlePassQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassQuest(table_BattlePassQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassQuest Clone() { + return new table_BattlePassQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BattlePassQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BattlePassQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BattlePassQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BattlePassQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBattlePassReward.cs b/NTR.Common/protos/TableBattlePassReward.cs new file mode 100644 index 0000000..ab1d273 --- /dev/null +++ b/NTR.Common/protos/TableBattlePassReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BattlePassReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BattlePassReward.proto + public static partial class TableBattlePassRewardReflection { + + #region Descriptor + /// File descriptor for table_BattlePassReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBattlePassRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9CYXR0bGVQYXNzUmV3YXJkLnByb3RvGhZCYXR0bGVQYXNzUmV3", + "YXJkLnByb3RvIjkKFnRhYmxlX0JhdHRsZVBhc3NSZXdhcmQSHwoEbGlzdBgB", + "IAMoCzIRLkJhdHRsZVBhc3NSZXdhcmRCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BattlePassRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BattlePassReward), global::Nova.Client.table_BattlePassReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BattlePassReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BattlePassReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBattlePassRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassReward(table_BattlePassReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattlePassReward Clone() { + return new table_BattlePassReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BattlePassReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BattlePassReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BattlePassReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BattlePassReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBattleThreshold.cs b/NTR.Common/protos/TableBattleThreshold.cs new file mode 100644 index 0000000..5c6d41b --- /dev/null +++ b/NTR.Common/protos/TableBattleThreshold.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BattleThreshold.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BattleThreshold.proto + public static partial class TableBattleThresholdReflection { + + #region Descriptor + /// File descriptor for table_BattleThreshold.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBattleThresholdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9CYXR0bGVUaHJlc2hvbGQucHJvdG8aFUJhdHRsZVRocmVzaG9s", + "ZC5wcm90byI3ChV0YWJsZV9CYXR0bGVUaHJlc2hvbGQSHgoEbGlzdBgBIAMo", + "CzIQLkJhdHRsZVRocmVzaG9sZEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BattleThresholdReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BattleThreshold), global::Nova.Client.table_BattleThreshold.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BattleThreshold : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BattleThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBattleThresholdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattleThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattleThreshold(table_BattleThreshold other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BattleThreshold Clone() { + return new table_BattleThreshold(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BattleThreshold.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BattleThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BattleThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BattleThreshold other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBoardNPC.cs b/NTR.Common/protos/TableBoardNPC.cs new file mode 100644 index 0000000..7033de7 --- /dev/null +++ b/NTR.Common/protos/TableBoardNPC.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BoardNPC.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BoardNPC.proto + public static partial class TableBoardNPCReflection { + + #region Descriptor + /// File descriptor for table_BoardNPC.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBoardNPCReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9Cb2FyZE5QQy5wcm90bxoOQm9hcmROUEMucHJvdG8iKQoOdGFi", + "bGVfQm9hcmROUEMSFwoEbGlzdBgBIAMoCzIJLkJvYXJkTlBDQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BoardNPCReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BoardNPC), global::Nova.Client.table_BoardNPC.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BoardNPC : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BoardNPC()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBoardNPCReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BoardNPC() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BoardNPC(table_BoardNPC other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BoardNPC Clone() { + return new table_BoardNPC(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BoardNPC.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BoardNPC); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BoardNPC other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BoardNPC other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBuff.cs b/NTR.Common/protos/TableBuff.cs new file mode 100644 index 0000000..e5590e1 --- /dev/null +++ b/NTR.Common/protos/TableBuff.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Buff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Buff.proto + public static partial class TableBuffReflection { + + #region Descriptor + /// File descriptor for table_Buff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9CdWZmLnByb3RvGgpCdWZmLnByb3RvIiEKCnRhYmxlX0J1ZmYS", + "EwoEbGlzdBgBIAMoCzIFLkJ1ZmZCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BuffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Buff), global::Nova.Client.table_Buff.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Buff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Buff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Buff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Buff(table_Buff other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Buff Clone() { + return new table_Buff(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Buff.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Buff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Buff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Buff other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableBuffValue.cs b/NTR.Common/protos/TableBuffValue.cs new file mode 100644 index 0000000..5782107 --- /dev/null +++ b/NTR.Common/protos/TableBuffValue.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_BuffValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_BuffValue.proto + public static partial class TableBuffValueReflection { + + #region Descriptor + /// File descriptor for table_BuffValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableBuffValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9CdWZmVmFsdWUucHJvdG8aD0J1ZmZWYWx1ZS5wcm90byIrCg90", + "YWJsZV9CdWZmVmFsdWUSGAoEbGlzdBgBIAMoCzIKLkJ1ZmZWYWx1ZUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.BuffValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_BuffValue), global::Nova.Client.table_BuffValue.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_BuffValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_BuffValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableBuffValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BuffValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BuffValue(table_BuffValue other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_BuffValue Clone() { + return new table_BuffValue(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.BuffValue.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_BuffValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_BuffValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_BuffValue other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableChapter.cs b/NTR.Common/protos/TableChapter.cs new file mode 100644 index 0000000..8493fe6 --- /dev/null +++ b/NTR.Common/protos/TableChapter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Chapter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Chapter.proto + public static partial class TableChapterReflection { + + #region Descriptor + /// File descriptor for table_Chapter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableChapterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9DaGFwdGVyLnByb3RvGg1DaGFwdGVyLnByb3RvIicKDXRhYmxl", + "X0NoYXB0ZXISFgoEbGlzdBgBIAMoCzIILkNoYXB0ZXJCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ChapterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Chapter), global::Nova.Client.table_Chapter.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Chapter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Chapter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableChapterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chapter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chapter(table_Chapter other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chapter Clone() { + return new table_Chapter(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Chapter.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Chapter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Chapter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Chapter other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharAffinityTemplate.cs b/NTR.Common/protos/TableCharAffinityTemplate.cs new file mode 100644 index 0000000..4d7999f --- /dev/null +++ b/NTR.Common/protos/TableCharAffinityTemplate.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharAffinityTemplate.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharAffinityTemplate.proto + public static partial class TableCharAffinityTemplateReflection { + + #region Descriptor + /// File descriptor for table_CharAffinityTemplate.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharAffinityTemplateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9DaGFyQWZmaW5pdHlUZW1wbGF0ZS5wcm90bxoaQ2hhckFmZmlu", + "aXR5VGVtcGxhdGUucHJvdG8iQQoadGFibGVfQ2hhckFmZmluaXR5VGVtcGxh", + "dGUSIwoEbGlzdBgBIAMoCzIVLkNoYXJBZmZpbml0eVRlbXBsYXRlQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharAffinityTemplateReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharAffinityTemplate), global::Nova.Client.table_CharAffinityTemplate.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharAffinityTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharAffinityTemplate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharAffinityTemplateReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharAffinityTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharAffinityTemplate(table_CharAffinityTemplate other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharAffinityTemplate Clone() { + return new table_CharAffinityTemplate(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharAffinityTemplate.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharAffinityTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharAffinityTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharAffinityTemplate other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharGrade.cs b/NTR.Common/protos/TableCharGrade.cs new file mode 100644 index 0000000..7f12a08 --- /dev/null +++ b/NTR.Common/protos/TableCharGrade.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharGrade.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharGrade.proto + public static partial class TableCharGradeReflection { + + #region Descriptor + /// File descriptor for table_CharGrade.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharGradeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9DaGFyR3JhZGUucHJvdG8aD0NoYXJHcmFkZS5wcm90byIrCg90", + "YWJsZV9DaGFyR3JhZGUSGAoEbGlzdBgBIAMoCzIKLkNoYXJHcmFkZUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharGradeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharGrade), global::Nova.Client.table_CharGrade.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharGrade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharGrade()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharGradeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharGrade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharGrade(table_CharGrade other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharGrade Clone() { + return new table_CharGrade(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharGrade.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharGrade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharGrade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharGrade other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharItemExp.cs b/NTR.Common/protos/TableCharItemExp.cs new file mode 100644 index 0000000..40c8490 --- /dev/null +++ b/NTR.Common/protos/TableCharItemExp.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharItemExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharItemExp.proto + public static partial class TableCharItemExpReflection { + + #region Descriptor + /// File descriptor for table_CharItemExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharItemExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9DaGFySXRlbUV4cC5wcm90bxoRQ2hhckl0ZW1FeHAucHJvdG8i", + "LwoRdGFibGVfQ2hhckl0ZW1FeHASGgoEbGlzdBgBIAMoCzIMLkNoYXJJdGVt", + "RXhwQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharItemExpReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharItemExp), global::Nova.Client.table_CharItemExp.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharItemExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharItemExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharItemExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharItemExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharItemExp(table_CharItemExp other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharItemExp Clone() { + return new table_CharItemExp(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharItemExp.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharItemExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharItemExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharItemExp other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharPotential.cs b/NTR.Common/protos/TableCharPotential.cs new file mode 100644 index 0000000..fc98194 --- /dev/null +++ b/NTR.Common/protos/TableCharPotential.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharPotential.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharPotential.proto + public static partial class TableCharPotentialReflection { + + #region Descriptor + /// File descriptor for table_CharPotential.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharPotentialReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9DaGFyUG90ZW50aWFsLnByb3RvGhNDaGFyUG90ZW50aWFsLnBy", + "b3RvIjMKE3RhYmxlX0NoYXJQb3RlbnRpYWwSHAoEbGlzdBgBIAMoCzIOLkNo", + "YXJQb3RlbnRpYWxCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharPotentialReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharPotential), global::Nova.Client.table_CharPotential.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharPotential : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharPotential()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharPotentialReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharPotential() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharPotential(table_CharPotential other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharPotential Clone() { + return new table_CharPotential(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharPotential.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharPotential); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharPotential other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharPotential other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharRaritySequence.cs b/NTR.Common/protos/TableCharRaritySequence.cs new file mode 100644 index 0000000..cba6e50 --- /dev/null +++ b/NTR.Common/protos/TableCharRaritySequence.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharRaritySequence.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharRaritySequence.proto + public static partial class TableCharRaritySequenceReflection { + + #region Descriptor + /// File descriptor for table_CharRaritySequence.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharRaritySequenceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9DaGFyUmFyaXR5U2VxdWVuY2UucHJvdG8aGENoYXJSYXJpdHlT", + "ZXF1ZW5jZS5wcm90byI9Chh0YWJsZV9DaGFyUmFyaXR5U2VxdWVuY2USIQoE", + "bGlzdBgBIAMoCzITLkNoYXJSYXJpdHlTZXF1ZW5jZUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharRaritySequenceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharRaritySequence), global::Nova.Client.table_CharRaritySequence.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharRaritySequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharRaritySequence()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharRaritySequenceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharRaritySequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharRaritySequence(table_CharRaritySequence other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharRaritySequence Clone() { + return new table_CharRaritySequence(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharRaritySequence.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharRaritySequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharRaritySequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharRaritySequence other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacter.cs b/NTR.Common/protos/TableCharacter.cs new file mode 100644 index 0000000..26331c7 --- /dev/null +++ b/NTR.Common/protos/TableCharacter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Character.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Character.proto + public static partial class TableCharacterReflection { + + #region Descriptor + /// File descriptor for table_Character.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9DaGFyYWN0ZXIucHJvdG8aD0NoYXJhY3Rlci5wcm90byIrCg90", + "YWJsZV9DaGFyYWN0ZXISGAoEbGlzdBgBIAMoCzIKLkNoYXJhY3RlckIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Character), global::Nova.Client.table_Character.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Character : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Character()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Character() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Character(table_Character other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Character Clone() { + return new table_Character(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Character.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Character); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Character other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Character other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterAdvance.cs b/NTR.Common/protos/TableCharacterAdvance.cs new file mode 100644 index 0000000..cde6dd9 --- /dev/null +++ b/NTR.Common/protos/TableCharacterAdvance.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterAdvance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterAdvance.proto + public static partial class TableCharacterAdvanceReflection { + + #region Descriptor + /// File descriptor for table_CharacterAdvance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterAdvanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9DaGFyYWN0ZXJBZHZhbmNlLnByb3RvGhZDaGFyYWN0ZXJBZHZh", + "bmNlLnByb3RvIjkKFnRhYmxlX0NoYXJhY3RlckFkdmFuY2USHwoEbGlzdBgB", + "IAMoCzIRLkNoYXJhY3RlckFkdmFuY2VCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterAdvanceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterAdvance), global::Nova.Client.table_CharacterAdvance.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterAdvance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterAdvance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterAdvanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterAdvance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterAdvance(table_CharacterAdvance other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterAdvance Clone() { + return new table_CharacterAdvance(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterAdvance.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterAdvance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterAdvance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterAdvance other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterArchive.cs b/NTR.Common/protos/TableCharacterArchive.cs new file mode 100644 index 0000000..745b0a9 --- /dev/null +++ b/NTR.Common/protos/TableCharacterArchive.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterArchive.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterArchive.proto + public static partial class TableCharacterArchiveReflection { + + #region Descriptor + /// File descriptor for table_CharacterArchive.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterArchiveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9DaGFyYWN0ZXJBcmNoaXZlLnByb3RvGhZDaGFyYWN0ZXJBcmNo", + "aXZlLnByb3RvIjkKFnRhYmxlX0NoYXJhY3RlckFyY2hpdmUSHwoEbGlzdBgB", + "IAMoCzIRLkNoYXJhY3RlckFyY2hpdmVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterArchiveReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterArchive), global::Nova.Client.table_CharacterArchive.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterArchive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterArchive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterArchiveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchive(table_CharacterArchive other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchive Clone() { + return new table_CharacterArchive(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterArchive.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterArchive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterArchive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterArchive other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterArchiveBaseInfo.cs b/NTR.Common/protos/TableCharacterArchiveBaseInfo.cs new file mode 100644 index 0000000..9a6ae21 --- /dev/null +++ b/NTR.Common/protos/TableCharacterArchiveBaseInfo.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterArchiveBaseInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterArchiveBaseInfo.proto + public static partial class TableCharacterArchiveBaseInfoReflection { + + #region Descriptor + /// File descriptor for table_CharacterArchiveBaseInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterArchiveBaseInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0YWJsZV9DaGFyYWN0ZXJBcmNoaXZlQmFzZUluZm8ucHJvdG8aHkNoYXJh", + "Y3RlckFyY2hpdmVCYXNlSW5mby5wcm90byJJCh50YWJsZV9DaGFyYWN0ZXJB", + "cmNoaXZlQmFzZUluZm8SJwoEbGlzdBgBIAMoCzIZLkNoYXJhY3RlckFyY2hp", + "dmVCYXNlSW5mb0IOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterArchiveBaseInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterArchiveBaseInfo), global::Nova.Client.table_CharacterArchiveBaseInfo.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterArchiveBaseInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterArchiveBaseInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterArchiveBaseInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveBaseInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveBaseInfo(table_CharacterArchiveBaseInfo other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveBaseInfo Clone() { + return new table_CharacterArchiveBaseInfo(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterArchiveBaseInfo.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterArchiveBaseInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterArchiveBaseInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterArchiveBaseInfo other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterArchiveContent.cs b/NTR.Common/protos/TableCharacterArchiveContent.cs new file mode 100644 index 0000000..fc6eada --- /dev/null +++ b/NTR.Common/protos/TableCharacterArchiveContent.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterArchiveContent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterArchiveContent.proto + public static partial class TableCharacterArchiveContentReflection { + + #region Descriptor + /// File descriptor for table_CharacterArchiveContent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterArchiveContentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiN0YWJsZV9DaGFyYWN0ZXJBcmNoaXZlQ29udGVudC5wcm90bxodQ2hhcmFj", + "dGVyQXJjaGl2ZUNvbnRlbnQucHJvdG8iRwoddGFibGVfQ2hhcmFjdGVyQXJj", + "aGl2ZUNvbnRlbnQSJgoEbGlzdBgBIAMoCzIYLkNoYXJhY3RlckFyY2hpdmVD", + "b250ZW50Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterArchiveContentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterArchiveContent), global::Nova.Client.table_CharacterArchiveContent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterArchiveContent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterArchiveContent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterArchiveContentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveContent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveContent(table_CharacterArchiveContent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveContent Clone() { + return new table_CharacterArchiveContent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterArchiveContent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterArchiveContent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterArchiveContent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterArchiveContent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterArchiveVoice.cs b/NTR.Common/protos/TableCharacterArchiveVoice.cs new file mode 100644 index 0000000..bb9c2ea --- /dev/null +++ b/NTR.Common/protos/TableCharacterArchiveVoice.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterArchiveVoice.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterArchiveVoice.proto + public static partial class TableCharacterArchiveVoiceReflection { + + #region Descriptor + /// File descriptor for table_CharacterArchiveVoice.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterArchiveVoiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9DaGFyYWN0ZXJBcmNoaXZlVm9pY2UucHJvdG8aG0NoYXJhY3Rl", + "ckFyY2hpdmVWb2ljZS5wcm90byJDCht0YWJsZV9DaGFyYWN0ZXJBcmNoaXZl", + "Vm9pY2USJAoEbGlzdBgBIAMoCzIWLkNoYXJhY3RlckFyY2hpdmVWb2ljZUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterArchiveVoiceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterArchiveVoice), global::Nova.Client.table_CharacterArchiveVoice.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterArchiveVoice : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterArchiveVoice()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterArchiveVoiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveVoice() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveVoice(table_CharacterArchiveVoice other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterArchiveVoice Clone() { + return new table_CharacterArchiveVoice(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterArchiveVoice.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterArchiveVoice); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterArchiveVoice other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterArchiveVoice other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterCG.cs b/NTR.Common/protos/TableCharacterCG.cs new file mode 100644 index 0000000..715c1b3 --- /dev/null +++ b/NTR.Common/protos/TableCharacterCG.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterCG.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterCG.proto + public static partial class TableCharacterCGReflection { + + #region Descriptor + /// File descriptor for table_CharacterCG.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterCGReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9DaGFyYWN0ZXJDRy5wcm90bxoRQ2hhcmFjdGVyQ0cucHJvdG8i", + "LwoRdGFibGVfQ2hhcmFjdGVyQ0cSGgoEbGlzdBgBIAMoCzIMLkNoYXJhY3Rl", + "ckNHQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterCGReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterCG), global::Nova.Client.table_CharacterCG.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterCG : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterCG()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterCGReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterCG() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterCG(table_CharacterCG other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterCG Clone() { + return new table_CharacterCG(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterCG.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterCG); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterCG other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterCG other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterDes.cs b/NTR.Common/protos/TableCharacterDes.cs new file mode 100644 index 0000000..15409e1 --- /dev/null +++ b/NTR.Common/protos/TableCharacterDes.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterDes.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterDes.proto + public static partial class TableCharacterDesReflection { + + #region Descriptor + /// File descriptor for table_CharacterDes.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterDesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9DaGFyYWN0ZXJEZXMucHJvdG8aEkNoYXJhY3RlckRlcy5wcm90", + "byIxChJ0YWJsZV9DaGFyYWN0ZXJEZXMSGwoEbGlzdBgBIAMoCzINLkNoYXJh", + "Y3RlckRlc0IOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterDesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterDes), global::Nova.Client.table_CharacterDes.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterDes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterDes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterDesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterDes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterDes(table_CharacterDes other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterDes Clone() { + return new table_CharacterDes(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterDes.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterDes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterDes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterDes other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterSkillUpgrade.cs b/NTR.Common/protos/TableCharacterSkillUpgrade.cs new file mode 100644 index 0000000..fec15bb --- /dev/null +++ b/NTR.Common/protos/TableCharacterSkillUpgrade.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterSkillUpgrade.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterSkillUpgrade.proto + public static partial class TableCharacterSkillUpgradeReflection { + + #region Descriptor + /// File descriptor for table_CharacterSkillUpgrade.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterSkillUpgradeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9DaGFyYWN0ZXJTa2lsbFVwZ3JhZGUucHJvdG8aG0NoYXJhY3Rl", + "clNraWxsVXBncmFkZS5wcm90byJDCht0YWJsZV9DaGFyYWN0ZXJTa2lsbFVw", + "Z3JhZGUSJAoEbGlzdBgBIAMoCzIWLkNoYXJhY3RlclNraWxsVXBncmFkZUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterSkillUpgradeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterSkillUpgrade), global::Nova.Client.table_CharacterSkillUpgrade.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterSkillUpgrade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterSkillUpgrade()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterSkillUpgradeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkillUpgrade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkillUpgrade(table_CharacterSkillUpgrade other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkillUpgrade Clone() { + return new table_CharacterSkillUpgrade(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterSkillUpgrade.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterSkillUpgrade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterSkillUpgrade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterSkillUpgrade other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterSkin.cs b/NTR.Common/protos/TableCharacterSkin.cs new file mode 100644 index 0000000..afdad99 --- /dev/null +++ b/NTR.Common/protos/TableCharacterSkin.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterSkin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterSkin.proto + public static partial class TableCharacterSkinReflection { + + #region Descriptor + /// File descriptor for table_CharacterSkin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterSkinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9DaGFyYWN0ZXJTa2luLnByb3RvGhNDaGFyYWN0ZXJTa2luLnBy", + "b3RvIjMKE3RhYmxlX0NoYXJhY3RlclNraW4SHAoEbGlzdBgBIAMoCzIOLkNo", + "YXJhY3RlclNraW5CDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterSkinReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterSkin), global::Nova.Client.table_CharacterSkin.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterSkin : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterSkin()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterSkinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkin(table_CharacterSkin other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkin Clone() { + return new table_CharacterSkin(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterSkin.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterSkin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterSkin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterSkin other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterSkinPanelFace.cs b/NTR.Common/protos/TableCharacterSkinPanelFace.cs new file mode 100644 index 0000000..79af0fd --- /dev/null +++ b/NTR.Common/protos/TableCharacterSkinPanelFace.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterSkinPanelFace.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterSkinPanelFace.proto + public static partial class TableCharacterSkinPanelFaceReflection { + + #region Descriptor + /// File descriptor for table_CharacterSkinPanelFace.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterSkinPanelFaceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJ0YWJsZV9DaGFyYWN0ZXJTa2luUGFuZWxGYWNlLnByb3RvGhxDaGFyYWN0", + "ZXJTa2luUGFuZWxGYWNlLnByb3RvIkUKHHRhYmxlX0NoYXJhY3RlclNraW5Q", + "YW5lbEZhY2USJQoEbGlzdBgBIAMoCzIXLkNoYXJhY3RlclNraW5QYW5lbEZh", + "Y2VCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterSkinPanelFaceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterSkinPanelFace), global::Nova.Client.table_CharacterSkinPanelFace.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterSkinPanelFace : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterSkinPanelFace()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterSkinPanelFaceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkinPanelFace() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkinPanelFace(table_CharacterSkinPanelFace other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkinPanelFace Clone() { + return new table_CharacterSkinPanelFace(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterSkinPanelFace.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterSkinPanelFace); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterSkinPanelFace other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterSkinPanelFace other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterSkinTheme.cs b/NTR.Common/protos/TableCharacterSkinTheme.cs new file mode 100644 index 0000000..f718f98 --- /dev/null +++ b/NTR.Common/protos/TableCharacterSkinTheme.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterSkinTheme.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterSkinTheme.proto + public static partial class TableCharacterSkinThemeReflection { + + #region Descriptor + /// File descriptor for table_CharacterSkinTheme.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterSkinThemeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9DaGFyYWN0ZXJTa2luVGhlbWUucHJvdG8aGENoYXJhY3RlclNr", + "aW5UaGVtZS5wcm90byI9Chh0YWJsZV9DaGFyYWN0ZXJTa2luVGhlbWUSIQoE", + "bGlzdBgBIAMoCzITLkNoYXJhY3RlclNraW5UaGVtZUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterSkinThemeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterSkinTheme), global::Nova.Client.table_CharacterSkinTheme.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterSkinTheme : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterSkinTheme()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterSkinThemeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkinTheme() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkinTheme(table_CharacterSkinTheme other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterSkinTheme Clone() { + return new table_CharacterSkinTheme(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterSkinTheme.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterSkinTheme); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterSkinTheme other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterSkinTheme other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterTag.cs b/NTR.Common/protos/TableCharacterTag.cs new file mode 100644 index 0000000..b97d24c --- /dev/null +++ b/NTR.Common/protos/TableCharacterTag.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterTag.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterTag.proto + public static partial class TableCharacterTagReflection { + + #region Descriptor + /// File descriptor for table_CharacterTag.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterTagReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9DaGFyYWN0ZXJUYWcucHJvdG8aEkNoYXJhY3RlclRhZy5wcm90", + "byIxChJ0YWJsZV9DaGFyYWN0ZXJUYWcSGwoEbGlzdBgBIAMoCzINLkNoYXJh", + "Y3RlclRhZ0IOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterTagReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterTag), global::Nova.Client.table_CharacterTag.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterTagReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterTag(table_CharacterTag other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterTag Clone() { + return new table_CharacterTag(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterTag.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterTag other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterUpgrade.cs b/NTR.Common/protos/TableCharacterUpgrade.cs new file mode 100644 index 0000000..99a0a53 --- /dev/null +++ b/NTR.Common/protos/TableCharacterUpgrade.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterUpgrade.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterUpgrade.proto + public static partial class TableCharacterUpgradeReflection { + + #region Descriptor + /// File descriptor for table_CharacterUpgrade.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterUpgradeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9DaGFyYWN0ZXJVcGdyYWRlLnByb3RvGhZDaGFyYWN0ZXJVcGdy", + "YWRlLnByb3RvIjkKFnRhYmxlX0NoYXJhY3RlclVwZ3JhZGUSHwoEbGlzdBgB", + "IAMoCzIRLkNoYXJhY3RlclVwZ3JhZGVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterUpgradeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterUpgrade), global::Nova.Client.table_CharacterUpgrade.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterUpgrade : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterUpgrade()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterUpgradeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterUpgrade() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterUpgrade(table_CharacterUpgrade other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterUpgrade Clone() { + return new table_CharacterUpgrade(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterUpgrade.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterUpgrade); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterUpgrade other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterUpgrade other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableCharacterVoiceControl.cs b/NTR.Common/protos/TableCharacterVoiceControl.cs new file mode 100644 index 0000000..14d01fe --- /dev/null +++ b/NTR.Common/protos/TableCharacterVoiceControl.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_CharacterVoiceControl.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_CharacterVoiceControl.proto + public static partial class TableCharacterVoiceControlReflection { + + #region Descriptor + /// File descriptor for table_CharacterVoiceControl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableCharacterVoiceControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9DaGFyYWN0ZXJWb2ljZUNvbnRyb2wucHJvdG8aG0NoYXJhY3Rl", + "clZvaWNlQ29udHJvbC5wcm90byJDCht0YWJsZV9DaGFyYWN0ZXJWb2ljZUNv", + "bnRyb2wSJAoEbGlzdBgBIAMoCzIWLkNoYXJhY3RlclZvaWNlQ29udHJvbEIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.CharacterVoiceControlReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_CharacterVoiceControl), global::Nova.Client.table_CharacterVoiceControl.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_CharacterVoiceControl : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_CharacterVoiceControl()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableCharacterVoiceControlReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterVoiceControl() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterVoiceControl(table_CharacterVoiceControl other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_CharacterVoiceControl Clone() { + return new table_CharacterVoiceControl(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.CharacterVoiceControl.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_CharacterVoiceControl); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_CharacterVoiceControl other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_CharacterVoiceControl other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableChat.cs b/NTR.Common/protos/TableChat.cs new file mode 100644 index 0000000..902914a --- /dev/null +++ b/NTR.Common/protos/TableChat.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Chat.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Chat.proto + public static partial class TableChatReflection { + + #region Descriptor + /// File descriptor for table_Chat.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableChatReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9DaGF0LnByb3RvGgpDaGF0LnByb3RvIiEKCnRhYmxlX0NoYXQS", + "EwoEbGlzdBgBIAMoCzIFLkNoYXRCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ChatReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Chat), global::Nova.Client.table_Chat.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Chat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Chat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableChatReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chat(table_Chat other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chat Clone() { + return new table_Chat(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Chat.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Chat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Chat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Chat other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableChest.cs b/NTR.Common/protos/TableChest.cs new file mode 100644 index 0000000..ec97153 --- /dev/null +++ b/NTR.Common/protos/TableChest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Chest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Chest.proto + public static partial class TableChestReflection { + + #region Descriptor + /// File descriptor for table_Chest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableChestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9DaGVzdC5wcm90bxoLQ2hlc3QucHJvdG8iIwoLdGFibGVfQ2hl", + "c3QSFAoEbGlzdBgBIAMoCzIGLkNoZXN0Qg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ChestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Chest), global::Nova.Client.table_Chest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Chest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Chest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableChestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chest(table_Chest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Chest Clone() { + return new table_Chest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Chest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Chest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Chest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Chest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableConfig.cs b/NTR.Common/protos/TableConfig.cs new file mode 100644 index 0000000..bbe2257 --- /dev/null +++ b/NTR.Common/protos/TableConfig.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Config.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Config.proto + public static partial class TableConfigReflection { + + #region Descriptor + /// File descriptor for table_Config.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9Db25maWcucHJvdG8aDENvbmZpZy5wcm90byIlCgx0YWJsZV9D", + "b25maWcSFQoEbGlzdBgBIAMoCzIHLkNvbmZpZ0IOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ConfigReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Config), global::Nova.Client.table_Config.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Config : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Config()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Config() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Config(table_Config other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Config Clone() { + return new table_Config(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Config.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Config); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Config other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Config other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableContentWord.cs b/NTR.Common/protos/TableContentWord.cs new file mode 100644 index 0000000..1ff1d1a --- /dev/null +++ b/NTR.Common/protos/TableContentWord.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ContentWord.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ContentWord.proto + public static partial class TableContentWordReflection { + + #region Descriptor + /// File descriptor for table_ContentWord.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableContentWordReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9Db250ZW50V29yZC5wcm90bxoRQ29udGVudFdvcmQucHJvdG8i", + "LwoRdGFibGVfQ29udGVudFdvcmQSGgoEbGlzdBgBIAMoCzIMLkNvbnRlbnRX", + "b3JkQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ContentWordReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ContentWord), global::Nova.Client.table_ContentWord.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ContentWord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ContentWord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableContentWordReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ContentWord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ContentWord(table_ContentWord other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ContentWord Clone() { + return new table_ContentWord(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ContentWord.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ContentWord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ContentWord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ContentWord other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyInstance.cs b/NTR.Common/protos/TableDailyInstance.cs new file mode 100644 index 0000000..1f71646 --- /dev/null +++ b/NTR.Common/protos/TableDailyInstance.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyInstance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyInstance.proto + public static partial class TableDailyInstanceReflection { + + #region Descriptor + /// File descriptor for table_DailyInstance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyInstanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9EYWlseUluc3RhbmNlLnByb3RvGhNEYWlseUluc3RhbmNlLnBy", + "b3RvIjMKE3RhYmxlX0RhaWx5SW5zdGFuY2USHAoEbGlzdBgBIAMoCzIOLkRh", + "aWx5SW5zdGFuY2VCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyInstanceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyInstance), global::Nova.Client.table_DailyInstance.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyInstance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyInstance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyInstanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstance(table_DailyInstance other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstance Clone() { + return new table_DailyInstance(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyInstance.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyInstance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyInstance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyInstance other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyInstanceFloor.cs b/NTR.Common/protos/TableDailyInstanceFloor.cs new file mode 100644 index 0000000..e98fb57 --- /dev/null +++ b/NTR.Common/protos/TableDailyInstanceFloor.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyInstanceFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyInstanceFloor.proto + public static partial class TableDailyInstanceFloorReflection { + + #region Descriptor + /// File descriptor for table_DailyInstanceFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyInstanceFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9EYWlseUluc3RhbmNlRmxvb3IucHJvdG8aGERhaWx5SW5zdGFu", + "Y2VGbG9vci5wcm90byI9Chh0YWJsZV9EYWlseUluc3RhbmNlRmxvb3ISIQoE", + "bGlzdBgBIAMoCzITLkRhaWx5SW5zdGFuY2VGbG9vckIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyInstanceFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyInstanceFloor), global::Nova.Client.table_DailyInstanceFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyInstanceFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyInstanceFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyInstanceFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceFloor(table_DailyInstanceFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceFloor Clone() { + return new table_DailyInstanceFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyInstanceFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyInstanceFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyInstanceFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyInstanceFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyInstanceRewardGroup.cs b/NTR.Common/protos/TableDailyInstanceRewardGroup.cs new file mode 100644 index 0000000..4477d3b --- /dev/null +++ b/NTR.Common/protos/TableDailyInstanceRewardGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyInstanceRewardGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyInstanceRewardGroup.proto + public static partial class TableDailyInstanceRewardGroupReflection { + + #region Descriptor + /// File descriptor for table_DailyInstanceRewardGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyInstanceRewardGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0YWJsZV9EYWlseUluc3RhbmNlUmV3YXJkR3JvdXAucHJvdG8aHkRhaWx5", + "SW5zdGFuY2VSZXdhcmRHcm91cC5wcm90byJJCh50YWJsZV9EYWlseUluc3Rh", + "bmNlUmV3YXJkR3JvdXASJwoEbGlzdBgBIAMoCzIZLkRhaWx5SW5zdGFuY2VS", + "ZXdhcmRHcm91cEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyInstanceRewardGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyInstanceRewardGroup), global::Nova.Client.table_DailyInstanceRewardGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyInstanceRewardGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyInstanceRewardGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyInstanceRewardGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceRewardGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceRewardGroup(table_DailyInstanceRewardGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceRewardGroup Clone() { + return new table_DailyInstanceRewardGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyInstanceRewardGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyInstanceRewardGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyInstanceRewardGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyInstanceRewardGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyInstanceType.cs b/NTR.Common/protos/TableDailyInstanceType.cs new file mode 100644 index 0000000..3ed0e48 --- /dev/null +++ b/NTR.Common/protos/TableDailyInstanceType.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyInstanceType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyInstanceType.proto + public static partial class TableDailyInstanceTypeReflection { + + #region Descriptor + /// File descriptor for table_DailyInstanceType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyInstanceTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9EYWlseUluc3RhbmNlVHlwZS5wcm90bxoXRGFpbHlJbnN0YW5j", + "ZVR5cGUucHJvdG8iOwoXdGFibGVfRGFpbHlJbnN0YW5jZVR5cGUSIAoEbGlz", + "dBgBIAMoCzISLkRhaWx5SW5zdGFuY2VUeXBlQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyInstanceTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyInstanceType), global::Nova.Client.table_DailyInstanceType.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyInstanceType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyInstanceType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyInstanceTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceType(table_DailyInstanceType other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyInstanceType Clone() { + return new table_DailyInstanceType(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyInstanceType.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyInstanceType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyInstanceType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyInstanceType other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyQuest.cs b/NTR.Common/protos/TableDailyQuest.cs new file mode 100644 index 0000000..39b7627 --- /dev/null +++ b/NTR.Common/protos/TableDailyQuest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyQuest.proto + public static partial class TableDailyQuestReflection { + + #region Descriptor + /// File descriptor for table_DailyQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9EYWlseVF1ZXN0LnByb3RvGhBEYWlseVF1ZXN0LnByb3RvIi0K", + "EHRhYmxlX0RhaWx5UXVlc3QSGQoEbGlzdBgBIAMoCzILLkRhaWx5UXVlc3RC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyQuest), global::Nova.Client.table_DailyQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuest(table_DailyQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuest Clone() { + return new table_DailyQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyQuestActive.cs b/NTR.Common/protos/TableDailyQuestActive.cs new file mode 100644 index 0000000..ab5e80a --- /dev/null +++ b/NTR.Common/protos/TableDailyQuestActive.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyQuestActive.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyQuestActive.proto + public static partial class TableDailyQuestActiveReflection { + + #region Descriptor + /// File descriptor for table_DailyQuestActive.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyQuestActiveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9EYWlseVF1ZXN0QWN0aXZlLnByb3RvGhZEYWlseVF1ZXN0QWN0", + "aXZlLnByb3RvIjkKFnRhYmxlX0RhaWx5UXVlc3RBY3RpdmUSHwoEbGlzdBgB", + "IAMoCzIRLkRhaWx5UXVlc3RBY3RpdmVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyQuestActiveReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyQuestActive), global::Nova.Client.table_DailyQuestActive.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyQuestActive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyQuestActive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyQuestActiveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuestActive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuestActive(table_DailyQuestActive other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuestActive Clone() { + return new table_DailyQuestActive(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyQuestActive.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyQuestActive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyQuestActive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyQuestActive other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDailyQuestAward.cs b/NTR.Common/protos/TableDailyQuestAward.cs new file mode 100644 index 0000000..0d1716b --- /dev/null +++ b/NTR.Common/protos/TableDailyQuestAward.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DailyQuestAward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DailyQuestAward.proto + public static partial class TableDailyQuestAwardReflection { + + #region Descriptor + /// File descriptor for table_DailyQuestAward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDailyQuestAwardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9EYWlseVF1ZXN0QXdhcmQucHJvdG8aFURhaWx5UXVlc3RBd2Fy", + "ZC5wcm90byI3ChV0YWJsZV9EYWlseVF1ZXN0QXdhcmQSHgoEbGlzdBgBIAMo", + "CzIQLkRhaWx5UXVlc3RBd2FyZEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DailyQuestAwardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DailyQuestAward), global::Nova.Client.table_DailyQuestAward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DailyQuestAward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DailyQuestAward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDailyQuestAwardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuestAward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuestAward(table_DailyQuestAward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DailyQuestAward Clone() { + return new table_DailyQuestAward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DailyQuestAward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DailyQuestAward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DailyQuestAward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DailyQuestAward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDatingCharResponse.cs b/NTR.Common/protos/TableDatingCharResponse.cs new file mode 100644 index 0000000..73738ba --- /dev/null +++ b/NTR.Common/protos/TableDatingCharResponse.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DatingCharResponse.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DatingCharResponse.proto + public static partial class TableDatingCharResponseReflection { + + #region Descriptor + /// File descriptor for table_DatingCharResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDatingCharResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9EYXRpbmdDaGFyUmVzcG9uc2UucHJvdG8aGERhdGluZ0NoYXJS", + "ZXNwb25zZS5wcm90byI9Chh0YWJsZV9EYXRpbmdDaGFyUmVzcG9uc2USIQoE", + "bGlzdBgBIAMoCzITLkRhdGluZ0NoYXJSZXNwb25zZUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DatingCharResponseReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DatingCharResponse), global::Nova.Client.table_DatingCharResponse.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DatingCharResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DatingCharResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDatingCharResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingCharResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingCharResponse(table_DatingCharResponse other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingCharResponse Clone() { + return new table_DatingCharResponse(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DatingCharResponse.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DatingCharResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DatingCharResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DatingCharResponse other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDatingEvent.cs b/NTR.Common/protos/TableDatingEvent.cs new file mode 100644 index 0000000..3fe91dd --- /dev/null +++ b/NTR.Common/protos/TableDatingEvent.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DatingEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DatingEvent.proto + public static partial class TableDatingEventReflection { + + #region Descriptor + /// File descriptor for table_DatingEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDatingEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9EYXRpbmdFdmVudC5wcm90bxoRRGF0aW5nRXZlbnQucHJvdG8i", + "LwoRdGFibGVfRGF0aW5nRXZlbnQSGgoEbGlzdBgBIAMoCzIMLkRhdGluZ0V2", + "ZW50Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DatingEventReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DatingEvent), global::Nova.Client.table_DatingEvent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DatingEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DatingEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDatingEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingEvent(table_DatingEvent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingEvent Clone() { + return new table_DatingEvent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DatingEvent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DatingEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DatingEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DatingEvent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDatingLandmark.cs b/NTR.Common/protos/TableDatingLandmark.cs new file mode 100644 index 0000000..e452dc6 --- /dev/null +++ b/NTR.Common/protos/TableDatingLandmark.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DatingLandmark.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DatingLandmark.proto + public static partial class TableDatingLandmarkReflection { + + #region Descriptor + /// File descriptor for table_DatingLandmark.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDatingLandmarkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9EYXRpbmdMYW5kbWFyay5wcm90bxoURGF0aW5nTGFuZG1hcmsu", + "cHJvdG8iNQoUdGFibGVfRGF0aW5nTGFuZG1hcmsSHQoEbGlzdBgBIAMoCzIP", + "LkRhdGluZ0xhbmRtYXJrQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DatingLandmarkReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DatingLandmark), global::Nova.Client.table_DatingLandmark.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DatingLandmark : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DatingLandmark()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDatingLandmarkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingLandmark() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingLandmark(table_DatingLandmark other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DatingLandmark Clone() { + return new table_DatingLandmark(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DatingLandmark.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DatingLandmark); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DatingLandmark other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DatingLandmark other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDestroyObject.cs b/NTR.Common/protos/TableDestroyObject.cs new file mode 100644 index 0000000..c41772d --- /dev/null +++ b/NTR.Common/protos/TableDestroyObject.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DestroyObject.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DestroyObject.proto + public static partial class TableDestroyObjectReflection { + + #region Descriptor + /// File descriptor for table_DestroyObject.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDestroyObjectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9EZXN0cm95T2JqZWN0LnByb3RvGhNEZXN0cm95T2JqZWN0LnBy", + "b3RvIjMKE3RhYmxlX0Rlc3Ryb3lPYmplY3QSHAoEbGlzdBgBIAMoCzIOLkRl", + "c3Ryb3lPYmplY3RCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DestroyObjectReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DestroyObject), global::Nova.Client.table_DestroyObject.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DestroyObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DestroyObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDestroyObjectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DestroyObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DestroyObject(table_DestroyObject other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DestroyObject Clone() { + return new table_DestroyObject(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DestroyObject.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DestroyObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DestroyObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DestroyObject other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDictionaryDiagram.cs b/NTR.Common/protos/TableDictionaryDiagram.cs new file mode 100644 index 0000000..449f2d9 --- /dev/null +++ b/NTR.Common/protos/TableDictionaryDiagram.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DictionaryDiagram.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DictionaryDiagram.proto + public static partial class TableDictionaryDiagramReflection { + + #region Descriptor + /// File descriptor for table_DictionaryDiagram.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDictionaryDiagramReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9EaWN0aW9uYXJ5RGlhZ3JhbS5wcm90bxoXRGljdGlvbmFyeURp", + "YWdyYW0ucHJvdG8iOwoXdGFibGVfRGljdGlvbmFyeURpYWdyYW0SIAoEbGlz", + "dBgBIAMoCzISLkRpY3Rpb25hcnlEaWFncmFtQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DictionaryDiagramReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DictionaryDiagram), global::Nova.Client.table_DictionaryDiagram.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DictionaryDiagram : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DictionaryDiagram()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDictionaryDiagramReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryDiagram() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryDiagram(table_DictionaryDiagram other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryDiagram Clone() { + return new table_DictionaryDiagram(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DictionaryDiagram.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DictionaryDiagram); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DictionaryDiagram other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DictionaryDiagram other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDictionaryEntry.cs b/NTR.Common/protos/TableDictionaryEntry.cs new file mode 100644 index 0000000..b514639 --- /dev/null +++ b/NTR.Common/protos/TableDictionaryEntry.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DictionaryEntry.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DictionaryEntry.proto + public static partial class TableDictionaryEntryReflection { + + #region Descriptor + /// File descriptor for table_DictionaryEntry.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDictionaryEntryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9EaWN0aW9uYXJ5RW50cnkucHJvdG8aFURpY3Rpb25hcnlFbnRy", + "eS5wcm90byI3ChV0YWJsZV9EaWN0aW9uYXJ5RW50cnkSHgoEbGlzdBgBIAMo", + "CzIQLkRpY3Rpb25hcnlFbnRyeUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DictionaryEntryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DictionaryEntry), global::Nova.Client.table_DictionaryEntry.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DictionaryEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DictionaryEntry()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDictionaryEntryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryEntry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryEntry(table_DictionaryEntry other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryEntry Clone() { + return new table_DictionaryEntry(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DictionaryEntry.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DictionaryEntry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DictionaryEntry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DictionaryEntry other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDictionaryTab.cs b/NTR.Common/protos/TableDictionaryTab.cs new file mode 100644 index 0000000..5a22e36 --- /dev/null +++ b/NTR.Common/protos/TableDictionaryTab.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DictionaryTab.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DictionaryTab.proto + public static partial class TableDictionaryTabReflection { + + #region Descriptor + /// File descriptor for table_DictionaryTab.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDictionaryTabReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9EaWN0aW9uYXJ5VGFiLnByb3RvGhNEaWN0aW9uYXJ5VGFiLnBy", + "b3RvIjMKE3RhYmxlX0RpY3Rpb25hcnlUYWISHAoEbGlzdBgBIAMoCzIOLkRp", + "Y3Rpb25hcnlUYWJCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DictionaryTabReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DictionaryTab), global::Nova.Client.table_DictionaryTab.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DictionaryTab : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DictionaryTab()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDictionaryTabReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryTab() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryTab(table_DictionaryTab other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryTab Clone() { + return new table_DictionaryTab(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DictionaryTab.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DictionaryTab); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DictionaryTab other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DictionaryTab other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDictionaryTopBarEntry.cs b/NTR.Common/protos/TableDictionaryTopBarEntry.cs new file mode 100644 index 0000000..624732e --- /dev/null +++ b/NTR.Common/protos/TableDictionaryTopBarEntry.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DictionaryTopBarEntry.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DictionaryTopBarEntry.proto + public static partial class TableDictionaryTopBarEntryReflection { + + #region Descriptor + /// File descriptor for table_DictionaryTopBarEntry.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDictionaryTopBarEntryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9EaWN0aW9uYXJ5VG9wQmFyRW50cnkucHJvdG8aG0RpY3Rpb25h", + "cnlUb3BCYXJFbnRyeS5wcm90byJDCht0YWJsZV9EaWN0aW9uYXJ5VG9wQmFy", + "RW50cnkSJAoEbGlzdBgBIAMoCzIWLkRpY3Rpb25hcnlUb3BCYXJFbnRyeUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DictionaryTopBarEntryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DictionaryTopBarEntry), global::Nova.Client.table_DictionaryTopBarEntry.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DictionaryTopBarEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DictionaryTopBarEntry()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDictionaryTopBarEntryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryTopBarEntry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryTopBarEntry(table_DictionaryTopBarEntry other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DictionaryTopBarEntry Clone() { + return new table_DictionaryTopBarEntry(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DictionaryTopBarEntry.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DictionaryTopBarEntry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DictionaryTopBarEntry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DictionaryTopBarEntry other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDisc.cs b/NTR.Common/protos/TableDisc.cs new file mode 100644 index 0000000..050235f --- /dev/null +++ b/NTR.Common/protos/TableDisc.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Disc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Disc.proto + public static partial class TableDiscReflection { + + #region Descriptor + /// File descriptor for table_Disc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9EaXNjLnByb3RvGgpEaXNjLnByb3RvIiEKCnRhYmxlX0Rpc2MS", + "EwoEbGlzdBgBIAMoCzIFLkRpc2NCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Disc), global::Nova.Client.table_Disc.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Disc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Disc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Disc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Disc(table_Disc other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Disc Clone() { + return new table_Disc(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Disc.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Disc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Disc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Disc other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscCommonSkill.cs b/NTR.Common/protos/TableDiscCommonSkill.cs new file mode 100644 index 0000000..911e561 --- /dev/null +++ b/NTR.Common/protos/TableDiscCommonSkill.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscCommonSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscCommonSkill.proto + public static partial class TableDiscCommonSkillReflection { + + #region Descriptor + /// File descriptor for table_DiscCommonSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscCommonSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9EaXNjQ29tbW9uU2tpbGwucHJvdG8aFURpc2NDb21tb25Ta2ls", + "bC5wcm90byI3ChV0YWJsZV9EaXNjQ29tbW9uU2tpbGwSHgoEbGlzdBgBIAMo", + "CzIQLkRpc2NDb21tb25Ta2lsbEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscCommonSkillReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscCommonSkill), global::Nova.Client.table_DiscCommonSkill.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscCommonSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscCommonSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscCommonSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscCommonSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscCommonSkill(table_DiscCommonSkill other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscCommonSkill Clone() { + return new table_DiscCommonSkill(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscCommonSkill.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscCommonSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscCommonSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscCommonSkill other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscItemExp.cs b/NTR.Common/protos/TableDiscItemExp.cs new file mode 100644 index 0000000..86254a5 --- /dev/null +++ b/NTR.Common/protos/TableDiscItemExp.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscItemExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscItemExp.proto + public static partial class TableDiscItemExpReflection { + + #region Descriptor + /// File descriptor for table_DiscItemExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscItemExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9EaXNjSXRlbUV4cC5wcm90bxoRRGlzY0l0ZW1FeHAucHJvdG8i", + "LwoRdGFibGVfRGlzY0l0ZW1FeHASGgoEbGlzdBgBIAMoCzIMLkRpc2NJdGVt", + "RXhwQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscItemExpReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscItemExp), global::Nova.Client.table_DiscItemExp.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscItemExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscItemExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscItemExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscItemExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscItemExp(table_DiscItemExp other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscItemExp Clone() { + return new table_DiscItemExp(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscItemExp.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscItemExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscItemExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscItemExp other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscPassiveSkill.cs b/NTR.Common/protos/TableDiscPassiveSkill.cs new file mode 100644 index 0000000..a5f734c --- /dev/null +++ b/NTR.Common/protos/TableDiscPassiveSkill.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscPassiveSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscPassiveSkill.proto + public static partial class TableDiscPassiveSkillReflection { + + #region Descriptor + /// File descriptor for table_DiscPassiveSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscPassiveSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9EaXNjUGFzc2l2ZVNraWxsLnByb3RvGhZEaXNjUGFzc2l2ZVNr", + "aWxsLnByb3RvIjkKFnRhYmxlX0Rpc2NQYXNzaXZlU2tpbGwSHwoEbGlzdBgB", + "IAMoCzIRLkRpc2NQYXNzaXZlU2tpbGxCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscPassiveSkillReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscPassiveSkill), global::Nova.Client.table_DiscPassiveSkill.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscPassiveSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscPassiveSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscPassiveSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPassiveSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPassiveSkill(table_DiscPassiveSkill other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPassiveSkill Clone() { + return new table_DiscPassiveSkill(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscPassiveSkill.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscPassiveSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscPassiveSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscPassiveSkill other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscPromote.cs b/NTR.Common/protos/TableDiscPromote.cs new file mode 100644 index 0000000..493ca0a --- /dev/null +++ b/NTR.Common/protos/TableDiscPromote.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscPromote.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscPromote.proto + public static partial class TableDiscPromoteReflection { + + #region Descriptor + /// File descriptor for table_DiscPromote.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscPromoteReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9EaXNjUHJvbW90ZS5wcm90bxoRRGlzY1Byb21vdGUucHJvdG8i", + "LwoRdGFibGVfRGlzY1Byb21vdGUSGgoEbGlzdBgBIAMoCzIMLkRpc2NQcm9t", + "b3RlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscPromoteReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscPromote), global::Nova.Client.table_DiscPromote.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscPromote : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscPromote()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscPromoteReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPromote() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPromote(table_DiscPromote other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPromote Clone() { + return new table_DiscPromote(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscPromote.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscPromote); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscPromote other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscPromote other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscPromoteLimit.cs b/NTR.Common/protos/TableDiscPromoteLimit.cs new file mode 100644 index 0000000..52c44e9 --- /dev/null +++ b/NTR.Common/protos/TableDiscPromoteLimit.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscPromoteLimit.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscPromoteLimit.proto + public static partial class TableDiscPromoteLimitReflection { + + #region Descriptor + /// File descriptor for table_DiscPromoteLimit.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscPromoteLimitReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9EaXNjUHJvbW90ZUxpbWl0LnByb3RvGhZEaXNjUHJvbW90ZUxp", + "bWl0LnByb3RvIjkKFnRhYmxlX0Rpc2NQcm9tb3RlTGltaXQSHwoEbGlzdBgB", + "IAMoCzIRLkRpc2NQcm9tb3RlTGltaXRCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscPromoteLimitReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscPromoteLimit), global::Nova.Client.table_DiscPromoteLimit.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscPromoteLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscPromoteLimit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscPromoteLimitReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPromoteLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPromoteLimit(table_DiscPromoteLimit other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscPromoteLimit Clone() { + return new table_DiscPromoteLimit(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscPromoteLimit.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscPromoteLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscPromoteLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscPromoteLimit other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscStrengthen.cs b/NTR.Common/protos/TableDiscStrengthen.cs new file mode 100644 index 0000000..326b29d --- /dev/null +++ b/NTR.Common/protos/TableDiscStrengthen.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscStrengthen.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscStrengthen.proto + public static partial class TableDiscStrengthenReflection { + + #region Descriptor + /// File descriptor for table_DiscStrengthen.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscStrengthenReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9EaXNjU3RyZW5ndGhlbi5wcm90bxoURGlzY1N0cmVuZ3RoZW4u", + "cHJvdG8iNQoUdGFibGVfRGlzY1N0cmVuZ3RoZW4SHQoEbGlzdBgBIAMoCzIP", + "LkRpc2NTdHJlbmd0aGVuQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscStrengthenReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscStrengthen), global::Nova.Client.table_DiscStrengthen.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscStrengthen : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscStrengthen()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscStrengthenReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscStrengthen() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscStrengthen(table_DiscStrengthen other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscStrengthen Clone() { + return new table_DiscStrengthen(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscStrengthen.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscStrengthen); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscStrengthen other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscStrengthen other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDiscTag.cs b/NTR.Common/protos/TableDiscTag.cs new file mode 100644 index 0000000..e5435e4 --- /dev/null +++ b/NTR.Common/protos/TableDiscTag.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DiscTag.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DiscTag.proto + public static partial class TableDiscTagReflection { + + #region Descriptor + /// File descriptor for table_DiscTag.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDiscTagReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9EaXNjVGFnLnByb3RvGg1EaXNjVGFnLnByb3RvIicKDXRhYmxl", + "X0Rpc2NUYWcSFgoEbGlzdBgBIAMoCzIILkRpc2NUYWdCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DiscTagReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DiscTag), global::Nova.Client.table_DiscTag.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DiscTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DiscTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDiscTagReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscTag(table_DiscTag other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DiscTag Clone() { + return new table_DiscTag(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DiscTag.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DiscTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DiscTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DiscTag other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDrop.cs b/NTR.Common/protos/TableDrop.cs new file mode 100644 index 0000000..18b0fbd --- /dev/null +++ b/NTR.Common/protos/TableDrop.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Drop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Drop.proto + public static partial class TableDropReflection { + + #region Descriptor + /// File descriptor for table_Drop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDropReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9Ecm9wLnByb3RvGgpEcm9wLnByb3RvIiEKCnRhYmxlX0Ryb3AS", + "EwoEbGlzdBgBIAMoCzIFLkRyb3BCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DropReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Drop), global::Nova.Client.table_Drop.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Drop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Drop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDropReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Drop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Drop(table_Drop other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Drop Clone() { + return new table_Drop(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Drop.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Drop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Drop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Drop other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDropItemShow.cs b/NTR.Common/protos/TableDropItemShow.cs new file mode 100644 index 0000000..0e4b81e --- /dev/null +++ b/NTR.Common/protos/TableDropItemShow.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DropItemShow.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DropItemShow.proto + public static partial class TableDropItemShowReflection { + + #region Descriptor + /// File descriptor for table_DropItemShow.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDropItemShowReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9Ecm9wSXRlbVNob3cucHJvdG8aEkRyb3BJdGVtU2hvdy5wcm90", + "byIxChJ0YWJsZV9Ecm9wSXRlbVNob3cSGwoEbGlzdBgBIAMoCzINLkRyb3BJ", + "dGVtU2hvd0IOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DropItemShowReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DropItemShow), global::Nova.Client.table_DropItemShow.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DropItemShow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DropItemShow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDropItemShowReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropItemShow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropItemShow(table_DropItemShow other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropItemShow Clone() { + return new table_DropItemShow(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DropItemShow.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DropItemShow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DropItemShow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DropItemShow other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDropObject.cs b/NTR.Common/protos/TableDropObject.cs new file mode 100644 index 0000000..6a1c948 --- /dev/null +++ b/NTR.Common/protos/TableDropObject.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DropObject.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DropObject.proto + public static partial class TableDropObjectReflection { + + #region Descriptor + /// File descriptor for table_DropObject.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDropObjectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9Ecm9wT2JqZWN0LnByb3RvGhBEcm9wT2JqZWN0LnByb3RvIi0K", + "EHRhYmxlX0Ryb3BPYmplY3QSGQoEbGlzdBgBIAMoCzILLkRyb3BPYmplY3RC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DropObjectReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DropObject), global::Nova.Client.table_DropObject.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DropObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DropObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDropObjectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropObject(table_DropObject other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropObject Clone() { + return new table_DropObject(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DropObject.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DropObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DropObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DropObject other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDropObjectGroup.cs b/NTR.Common/protos/TableDropObjectGroup.cs new file mode 100644 index 0000000..6c3fa0a --- /dev/null +++ b/NTR.Common/protos/TableDropObjectGroup.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DropObjectGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DropObjectGroup.proto + public static partial class TableDropObjectGroupReflection { + + #region Descriptor + /// File descriptor for table_DropObjectGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDropObjectGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9Ecm9wT2JqZWN0R3JvdXAucHJvdG8aFURyb3BPYmplY3RHcm91", + "cC5wcm90byI3ChV0YWJsZV9Ecm9wT2JqZWN0R3JvdXASHgoEbGlzdBgBIAMo", + "CzIQLkRyb3BPYmplY3RHcm91cEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DropObjectGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DropObjectGroup), global::Nova.Client.table_DropObjectGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DropObjectGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DropObjectGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDropObjectGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropObjectGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropObjectGroup(table_DropObjectGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropObjectGroup Clone() { + return new table_DropObjectGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DropObjectGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DropObjectGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DropObjectGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DropObjectGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableDropPkg.cs b/NTR.Common/protos/TableDropPkg.cs new file mode 100644 index 0000000..3ab60bc --- /dev/null +++ b/NTR.Common/protos/TableDropPkg.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_DropPkg.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_DropPkg.proto + public static partial class TableDropPkgReflection { + + #region Descriptor + /// File descriptor for table_DropPkg.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableDropPkgReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9Ecm9wUGtnLnByb3RvGg1Ecm9wUGtnLnByb3RvIicKDXRhYmxl", + "X0Ryb3BQa2cSFgoEbGlzdBgBIAMoCzIILkRyb3BQa2dCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.DropPkgReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_DropPkg), global::Nova.Client.table_DropPkg.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_DropPkg : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_DropPkg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableDropPkgReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropPkg() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropPkg(table_DropPkg other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_DropPkg Clone() { + return new table_DropPkg(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.DropPkg.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_DropPkg); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_DropPkg other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_DropPkg other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEffect.cs b/NTR.Common/protos/TableEffect.cs new file mode 100644 index 0000000..4b073bb --- /dev/null +++ b/NTR.Common/protos/TableEffect.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Effect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Effect.proto + public static partial class TableEffectReflection { + + #region Descriptor + /// File descriptor for table_Effect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEffectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9FZmZlY3QucHJvdG8aDEVmZmVjdC5wcm90byIlCgx0YWJsZV9F", + "ZmZlY3QSFQoEbGlzdBgBIAMoCzIHLkVmZmVjdEIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EffectReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Effect), global::Nova.Client.table_Effect.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Effect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Effect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEffectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Effect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Effect(table_Effect other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Effect Clone() { + return new table_Effect(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Effect.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Effect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Effect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Effect other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEffectDesc.cs b/NTR.Common/protos/TableEffectDesc.cs new file mode 100644 index 0000000..1bece70 --- /dev/null +++ b/NTR.Common/protos/TableEffectDesc.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EffectDesc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EffectDesc.proto + public static partial class TableEffectDescReflection { + + #region Descriptor + /// File descriptor for table_EffectDesc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEffectDescReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9FZmZlY3REZXNjLnByb3RvGhBFZmZlY3REZXNjLnByb3RvIi0K", + "EHRhYmxlX0VmZmVjdERlc2MSGQoEbGlzdBgBIAMoCzILLkVmZmVjdERlc2NC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EffectDescReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EffectDesc), global::Nova.Client.table_EffectDesc.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EffectDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EffectDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEffectDescReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EffectDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EffectDesc(table_EffectDesc other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EffectDesc Clone() { + return new table_EffectDesc(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EffectDesc.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EffectDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EffectDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EffectDesc other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEffectValue.cs b/NTR.Common/protos/TableEffectValue.cs new file mode 100644 index 0000000..568b48a --- /dev/null +++ b/NTR.Common/protos/TableEffectValue.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EffectValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EffectValue.proto + public static partial class TableEffectValueReflection { + + #region Descriptor + /// File descriptor for table_EffectValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEffectValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9FZmZlY3RWYWx1ZS5wcm90bxoRRWZmZWN0VmFsdWUucHJvdG8i", + "LwoRdGFibGVfRWZmZWN0VmFsdWUSGgoEbGlzdBgBIAMoCzIMLkVmZmVjdFZh", + "bHVlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EffectValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EffectValue), global::Nova.Client.table_EffectValue.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EffectValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EffectValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEffectValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EffectValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EffectValue(table_EffectValue other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EffectValue Clone() { + return new table_EffectValue(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EffectValue.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EffectValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EffectValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EffectValue other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEndSceneType.cs b/NTR.Common/protos/TableEndSceneType.cs new file mode 100644 index 0000000..d027306 --- /dev/null +++ b/NTR.Common/protos/TableEndSceneType.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EndSceneType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EndSceneType.proto + public static partial class TableEndSceneTypeReflection { + + #region Descriptor + /// File descriptor for table_EndSceneType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEndSceneTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9FbmRTY2VuZVR5cGUucHJvdG8aEkVuZFNjZW5lVHlwZS5wcm90", + "byIxChJ0YWJsZV9FbmRTY2VuZVR5cGUSGwoEbGlzdBgBIAMoCzINLkVuZFNj", + "ZW5lVHlwZUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EndSceneTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EndSceneType), global::Nova.Client.table_EndSceneType.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EndSceneType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EndSceneType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEndSceneTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EndSceneType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EndSceneType(table_EndSceneType other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EndSceneType Clone() { + return new table_EndSceneType(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EndSceneType.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EndSceneType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EndSceneType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EndSceneType other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEnergyBuy.cs b/NTR.Common/protos/TableEnergyBuy.cs new file mode 100644 index 0000000..22cfb17 --- /dev/null +++ b/NTR.Common/protos/TableEnergyBuy.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EnergyBuy.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EnergyBuy.proto + public static partial class TableEnergyBuyReflection { + + #region Descriptor + /// File descriptor for table_EnergyBuy.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEnergyBuyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9FbmVyZ3lCdXkucHJvdG8aD0VuZXJneUJ1eS5wcm90byIrCg90", + "YWJsZV9FbmVyZ3lCdXkSGAoEbGlzdBgBIAMoCzIKLkVuZXJneUJ1eUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EnergyBuyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EnergyBuy), global::Nova.Client.table_EnergyBuy.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EnergyBuy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EnergyBuy()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEnergyBuyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EnergyBuy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EnergyBuy(table_EnergyBuy other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EnergyBuy Clone() { + return new table_EnergyBuy(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EnergyBuy.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EnergyBuy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EnergyBuy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EnergyBuy other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEnumDesc.cs b/NTR.Common/protos/TableEnumDesc.cs new file mode 100644 index 0000000..7662006 --- /dev/null +++ b/NTR.Common/protos/TableEnumDesc.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EnumDesc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EnumDesc.proto + public static partial class TableEnumDescReflection { + + #region Descriptor + /// File descriptor for table_EnumDesc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEnumDescReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9FbnVtRGVzYy5wcm90bxoORW51bURlc2MucHJvdG8iKQoOdGFi", + "bGVfRW51bURlc2MSFwoEbGlzdBgBIAMoCzIJLkVudW1EZXNjQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EnumDescReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EnumDesc), global::Nova.Client.table_EnumDesc.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EnumDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EnumDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEnumDescReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EnumDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EnumDesc(table_EnumDesc other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EnumDesc Clone() { + return new table_EnumDesc(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EnumDesc.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EnumDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EnumDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EnumDesc other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipment.cs b/NTR.Common/protos/TableEquipment.cs new file mode 100644 index 0000000..ee73f7e --- /dev/null +++ b/NTR.Common/protos/TableEquipment.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Equipment.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Equipment.proto + public static partial class TableEquipmentReflection { + + #region Descriptor + /// File descriptor for table_Equipment.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9FcXVpcG1lbnQucHJvdG8aD0VxdWlwbWVudC5wcm90byIrCg90", + "YWJsZV9FcXVpcG1lbnQSGAoEbGlzdBgBIAMoCzIKLkVxdWlwbWVudEIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Equipment), global::Nova.Client.table_Equipment.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Equipment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Equipment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Equipment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Equipment(table_Equipment other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Equipment Clone() { + return new table_Equipment(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Equipment.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Equipment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Equipment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Equipment other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipmentGroupExp.cs b/NTR.Common/protos/TableEquipmentGroupExp.cs new file mode 100644 index 0000000..a6ca01f --- /dev/null +++ b/NTR.Common/protos/TableEquipmentGroupExp.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EquipmentGroupExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EquipmentGroupExp.proto + public static partial class TableEquipmentGroupExpReflection { + + #region Descriptor + /// File descriptor for table_EquipmentGroupExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentGroupExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9FcXVpcG1lbnRHcm91cEV4cC5wcm90bxoXRXF1aXBtZW50R3Jv", + "dXBFeHAucHJvdG8iOwoXdGFibGVfRXF1aXBtZW50R3JvdXBFeHASIAoEbGlz", + "dBgBIAMoCzISLkVxdWlwbWVudEdyb3VwRXhwQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentGroupExpReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EquipmentGroupExp), global::Nova.Client.table_EquipmentGroupExp.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EquipmentGroupExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EquipmentGroupExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentGroupExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentGroupExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentGroupExp(table_EquipmentGroupExp other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentGroupExp Clone() { + return new table_EquipmentGroupExp(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EquipmentGroupExp.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EquipmentGroupExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EquipmentGroupExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EquipmentGroupExp other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipmentInstance.cs b/NTR.Common/protos/TableEquipmentInstance.cs new file mode 100644 index 0000000..ec03f26 --- /dev/null +++ b/NTR.Common/protos/TableEquipmentInstance.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EquipmentInstance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EquipmentInstance.proto + public static partial class TableEquipmentInstanceReflection { + + #region Descriptor + /// File descriptor for table_EquipmentInstance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentInstanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9FcXVpcG1lbnRJbnN0YW5jZS5wcm90bxoXRXF1aXBtZW50SW5z", + "dGFuY2UucHJvdG8iOwoXdGFibGVfRXF1aXBtZW50SW5zdGFuY2USIAoEbGlz", + "dBgBIAMoCzISLkVxdWlwbWVudEluc3RhbmNlQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentInstanceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EquipmentInstance), global::Nova.Client.table_EquipmentInstance.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EquipmentInstance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EquipmentInstance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentInstanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstance(table_EquipmentInstance other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstance Clone() { + return new table_EquipmentInstance(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EquipmentInstance.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EquipmentInstance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EquipmentInstance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EquipmentInstance other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipmentInstanceFloor.cs b/NTR.Common/protos/TableEquipmentInstanceFloor.cs new file mode 100644 index 0000000..609ae28 --- /dev/null +++ b/NTR.Common/protos/TableEquipmentInstanceFloor.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EquipmentInstanceFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EquipmentInstanceFloor.proto + public static partial class TableEquipmentInstanceFloorReflection { + + #region Descriptor + /// File descriptor for table_EquipmentInstanceFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentInstanceFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJ0YWJsZV9FcXVpcG1lbnRJbnN0YW5jZUZsb29yLnByb3RvGhxFcXVpcG1l", + "bnRJbnN0YW5jZUZsb29yLnByb3RvIkUKHHRhYmxlX0VxdWlwbWVudEluc3Rh", + "bmNlRmxvb3ISJQoEbGlzdBgBIAMoCzIXLkVxdWlwbWVudEluc3RhbmNlRmxv", + "b3JCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentInstanceFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EquipmentInstanceFloor), global::Nova.Client.table_EquipmentInstanceFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EquipmentInstanceFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EquipmentInstanceFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentInstanceFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstanceFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstanceFloor(table_EquipmentInstanceFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstanceFloor Clone() { + return new table_EquipmentInstanceFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EquipmentInstanceFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EquipmentInstanceFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EquipmentInstanceFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EquipmentInstanceFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipmentInstanceType.cs b/NTR.Common/protos/TableEquipmentInstanceType.cs new file mode 100644 index 0000000..93d5605 --- /dev/null +++ b/NTR.Common/protos/TableEquipmentInstanceType.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EquipmentInstanceType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EquipmentInstanceType.proto + public static partial class TableEquipmentInstanceTypeReflection { + + #region Descriptor + /// File descriptor for table_EquipmentInstanceType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentInstanceTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9FcXVpcG1lbnRJbnN0YW5jZVR5cGUucHJvdG8aG0VxdWlwbWVu", + "dEluc3RhbmNlVHlwZS5wcm90byJDCht0YWJsZV9FcXVpcG1lbnRJbnN0YW5j", + "ZVR5cGUSJAoEbGlzdBgBIAMoCzIWLkVxdWlwbWVudEluc3RhbmNlVHlwZUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentInstanceTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EquipmentInstanceType), global::Nova.Client.table_EquipmentInstanceType.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EquipmentInstanceType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EquipmentInstanceType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentInstanceTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstanceType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstanceType(table_EquipmentInstanceType other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentInstanceType Clone() { + return new table_EquipmentInstanceType(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EquipmentInstanceType.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EquipmentInstanceType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EquipmentInstanceType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EquipmentInstanceType other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipmentItemExp.cs b/NTR.Common/protos/TableEquipmentItemExp.cs new file mode 100644 index 0000000..2345473 --- /dev/null +++ b/NTR.Common/protos/TableEquipmentItemExp.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EquipmentItemExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EquipmentItemExp.proto + public static partial class TableEquipmentItemExpReflection { + + #region Descriptor + /// File descriptor for table_EquipmentItemExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentItemExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9FcXVpcG1lbnRJdGVtRXhwLnByb3RvGhZFcXVpcG1lbnRJdGVt", + "RXhwLnByb3RvIjkKFnRhYmxlX0VxdWlwbWVudEl0ZW1FeHASHwoEbGlzdBgB", + "IAMoCzIRLkVxdWlwbWVudEl0ZW1FeHBCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentItemExpReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EquipmentItemExp), global::Nova.Client.table_EquipmentItemExp.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EquipmentItemExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EquipmentItemExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentItemExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentItemExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentItemExp(table_EquipmentItemExp other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentItemExp Clone() { + return new table_EquipmentItemExp(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EquipmentItemExp.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EquipmentItemExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EquipmentItemExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EquipmentItemExp other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEquipmentRandomAttribute.cs b/NTR.Common/protos/TableEquipmentRandomAttribute.cs new file mode 100644 index 0000000..043deeb --- /dev/null +++ b/NTR.Common/protos/TableEquipmentRandomAttribute.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EquipmentRandomAttribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EquipmentRandomAttribute.proto + public static partial class TableEquipmentRandomAttributeReflection { + + #region Descriptor + /// File descriptor for table_EquipmentRandomAttribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEquipmentRandomAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0YWJsZV9FcXVpcG1lbnRSYW5kb21BdHRyaWJ1dGUucHJvdG8aHkVxdWlw", + "bWVudFJhbmRvbUF0dHJpYnV0ZS5wcm90byJJCh50YWJsZV9FcXVpcG1lbnRS", + "YW5kb21BdHRyaWJ1dGUSJwoEbGlzdBgBIAMoCzIZLkVxdWlwbWVudFJhbmRv", + "bUF0dHJpYnV0ZUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EquipmentRandomAttributeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EquipmentRandomAttribute), global::Nova.Client.table_EquipmentRandomAttribute.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EquipmentRandomAttribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EquipmentRandomAttribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEquipmentRandomAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentRandomAttribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentRandomAttribute(table_EquipmentRandomAttribute other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EquipmentRandomAttribute Clone() { + return new table_EquipmentRandomAttribute(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EquipmentRandomAttribute.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EquipmentRandomAttribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EquipmentRandomAttribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EquipmentRandomAttribute other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableErrorCode.cs b/NTR.Common/protos/TableErrorCode.cs new file mode 100644 index 0000000..01d453b --- /dev/null +++ b/NTR.Common/protos/TableErrorCode.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ErrorCode.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ErrorCode.proto + public static partial class TableErrorCodeReflection { + + #region Descriptor + /// File descriptor for table_ErrorCode.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableErrorCodeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9FcnJvckNvZGUucHJvdG8aD0Vycm9yQ29kZS5wcm90byIrCg90", + "YWJsZV9FcnJvckNvZGUSGAoEbGlzdBgBIAMoCzIKLkVycm9yQ29kZUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ErrorCodeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ErrorCode), global::Nova.Client.table_ErrorCode.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ErrorCode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ErrorCode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableErrorCodeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ErrorCode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ErrorCode(table_ErrorCode other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ErrorCode Clone() { + return new table_ErrorCode(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ErrorCode.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ErrorCode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ErrorCode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ErrorCode other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEventOptions.cs b/NTR.Common/protos/TableEventOptions.cs new file mode 100644 index 0000000..e52e0f0 --- /dev/null +++ b/NTR.Common/protos/TableEventOptions.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EventOptions.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EventOptions.proto + public static partial class TableEventOptionsReflection { + + #region Descriptor + /// File descriptor for table_EventOptions.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEventOptionsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9FdmVudE9wdGlvbnMucHJvdG8aEkV2ZW50T3B0aW9ucy5wcm90", + "byIxChJ0YWJsZV9FdmVudE9wdGlvbnMSGwoEbGlzdBgBIAMoCzINLkV2ZW50", + "T3B0aW9uc0IOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EventOptionsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EventOptions), global::Nova.Client.table_EventOptions.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EventOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EventOptions()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEventOptionsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventOptions(table_EventOptions other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventOptions Clone() { + return new table_EventOptions(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EventOptions.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EventOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EventOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EventOptions other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEventOptionsRules.cs b/NTR.Common/protos/TableEventOptionsRules.cs new file mode 100644 index 0000000..f933ac9 --- /dev/null +++ b/NTR.Common/protos/TableEventOptionsRules.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EventOptionsRules.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EventOptionsRules.proto + public static partial class TableEventOptionsRulesReflection { + + #region Descriptor + /// File descriptor for table_EventOptionsRules.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEventOptionsRulesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9FdmVudE9wdGlvbnNSdWxlcy5wcm90bxoXRXZlbnRPcHRpb25z", + "UnVsZXMucHJvdG8iOwoXdGFibGVfRXZlbnRPcHRpb25zUnVsZXMSIAoEbGlz", + "dBgBIAMoCzISLkV2ZW50T3B0aW9uc1J1bGVzQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EventOptionsRulesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EventOptionsRules), global::Nova.Client.table_EventOptionsRules.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EventOptionsRules : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EventOptionsRules()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEventOptionsRulesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventOptionsRules() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventOptionsRules(table_EventOptionsRules other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventOptionsRules Clone() { + return new table_EventOptionsRules(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EventOptionsRules.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EventOptionsRules); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EventOptionsRules other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EventOptionsRules other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableEventResult.cs b/NTR.Common/protos/TableEventResult.cs new file mode 100644 index 0000000..29a7e06 --- /dev/null +++ b/NTR.Common/protos/TableEventResult.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_EventResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_EventResult.proto + public static partial class TableEventResultReflection { + + #region Descriptor + /// File descriptor for table_EventResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableEventResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9FdmVudFJlc3VsdC5wcm90bxoRRXZlbnRSZXN1bHQucHJvdG8i", + "LwoRdGFibGVfRXZlbnRSZXN1bHQSGgoEbGlzdBgBIAMoCzIMLkV2ZW50UmVz", + "dWx0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.EventResultReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_EventResult), global::Nova.Client.table_EventResult.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_EventResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_EventResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableEventResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventResult(table_EventResult other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_EventResult Clone() { + return new table_EventResult(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.EventResult.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_EventResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_EventResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_EventResult other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableFactionRelation.cs b/NTR.Common/protos/TableFactionRelation.cs new file mode 100644 index 0000000..fc29909 --- /dev/null +++ b/NTR.Common/protos/TableFactionRelation.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_FactionRelation.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_FactionRelation.proto + public static partial class TableFactionRelationReflection { + + #region Descriptor + /// File descriptor for table_FactionRelation.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableFactionRelationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9GYWN0aW9uUmVsYXRpb24ucHJvdG8aFUZhY3Rpb25SZWxhdGlv", + "bi5wcm90byI3ChV0YWJsZV9GYWN0aW9uUmVsYXRpb24SHgoEbGlzdBgBIAMo", + "CzIQLkZhY3Rpb25SZWxhdGlvbkIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.FactionRelationReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_FactionRelation), global::Nova.Client.table_FactionRelation.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_FactionRelation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_FactionRelation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableFactionRelationReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FactionRelation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FactionRelation(table_FactionRelation other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FactionRelation Clone() { + return new table_FactionRelation(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.FactionRelation.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_FactionRelation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_FactionRelation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_FactionRelation other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableFateCard.cs b/NTR.Common/protos/TableFateCard.cs new file mode 100644 index 0000000..fa7b0e1 --- /dev/null +++ b/NTR.Common/protos/TableFateCard.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_FateCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_FateCard.proto + public static partial class TableFateCardReflection { + + #region Descriptor + /// File descriptor for table_FateCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableFateCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9GYXRlQ2FyZC5wcm90bxoORmF0ZUNhcmQucHJvdG8iKQoOdGFi", + "bGVfRmF0ZUNhcmQSFwoEbGlzdBgBIAMoCzIJLkZhdGVDYXJkQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.FateCardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_FateCard), global::Nova.Client.table_FateCard.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_FateCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_FateCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableFateCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FateCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FateCard(table_FateCard other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FateCard Clone() { + return new table_FateCard(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.FateCard.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_FateCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_FateCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_FateCard other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableFloorBuff.cs b/NTR.Common/protos/TableFloorBuff.cs new file mode 100644 index 0000000..efbc4ce --- /dev/null +++ b/NTR.Common/protos/TableFloorBuff.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_FloorBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_FloorBuff.proto + public static partial class TableFloorBuffReflection { + + #region Descriptor + /// File descriptor for table_FloorBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableFloorBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9GbG9vckJ1ZmYucHJvdG8aD0Zsb29yQnVmZi5wcm90byIrCg90", + "YWJsZV9GbG9vckJ1ZmYSGAoEbGlzdBgBIAMoCzIKLkZsb29yQnVmZkIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.FloorBuffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_FloorBuff), global::Nova.Client.table_FloorBuff.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_FloorBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_FloorBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableFloorBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FloorBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FloorBuff(table_FloorBuff other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FloorBuff Clone() { + return new table_FloorBuff(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.FloorBuff.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_FloorBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_FloorBuff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_FloorBuff other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableForce.cs b/NTR.Common/protos/TableForce.cs new file mode 100644 index 0000000..258af68 --- /dev/null +++ b/NTR.Common/protos/TableForce.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Force.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Force.proto + public static partial class TableForceReflection { + + #region Descriptor + /// File descriptor for table_Force.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableForceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9Gb3JjZS5wcm90bxoLRm9yY2UucHJvdG8iIwoLdGFibGVfRm9y", + "Y2USFAoEbGlzdBgBIAMoCzIGLkZvcmNlQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ForceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Force), global::Nova.Client.table_Force.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Force : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Force()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableForceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Force() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Force(table_Force other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Force Clone() { + return new table_Force(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Force.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Force); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Force other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Force other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableFormationScene.cs b/NTR.Common/protos/TableFormationScene.cs new file mode 100644 index 0000000..63fe235 --- /dev/null +++ b/NTR.Common/protos/TableFormationScene.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_FormationScene.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_FormationScene.proto + public static partial class TableFormationSceneReflection { + + #region Descriptor + /// File descriptor for table_FormationScene.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableFormationSceneReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9Gb3JtYXRpb25TY2VuZS5wcm90bxoURm9ybWF0aW9uU2NlbmUu", + "cHJvdG8iNQoUdGFibGVfRm9ybWF0aW9uU2NlbmUSHQoEbGlzdBgBIAMoCzIP", + "LkZvcm1hdGlvblNjZW5lQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.FormationSceneReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_FormationScene), global::Nova.Client.table_FormationScene.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_FormationScene : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_FormationScene()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableFormationSceneReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FormationScene() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FormationScene(table_FormationScene other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_FormationScene Clone() { + return new table_FormationScene(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.FormationScene.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_FormationScene); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_FormationScene other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_FormationScene other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGMBuild.cs b/NTR.Common/protos/TableGMBuild.cs new file mode 100644 index 0000000..4d0d868 --- /dev/null +++ b/NTR.Common/protos/TableGMBuild.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GMBuild.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GMBuild.proto + public static partial class TableGMBuildReflection { + + #region Descriptor + /// File descriptor for table_GMBuild.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGMBuildReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9HTUJ1aWxkLnByb3RvGg1HTUJ1aWxkLnByb3RvIicKDXRhYmxl", + "X0dNQnVpbGQSFgoEbGlzdBgBIAMoCzIILkdNQnVpbGRCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GMBuildReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GMBuild), global::Nova.Client.table_GMBuild.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GMBuild : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GMBuild()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGMBuildReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMBuild() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMBuild(table_GMBuild other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMBuild Clone() { + return new table_GMBuild(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GMBuild.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GMBuild); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GMBuild other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GMBuild other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGMOrder.cs b/NTR.Common/protos/TableGMOrder.cs new file mode 100644 index 0000000..ab69181 --- /dev/null +++ b/NTR.Common/protos/TableGMOrder.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GMOrder.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GMOrder.proto + public static partial class TableGMOrderReflection { + + #region Descriptor + /// File descriptor for table_GMOrder.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGMOrderReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9HTU9yZGVyLnByb3RvGg1HTU9yZGVyLnByb3RvIicKDXRhYmxl", + "X0dNT3JkZXISFgoEbGlzdBgBIAMoCzIILkdNT3JkZXJCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GMOrderReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GMOrder), global::Nova.Client.table_GMOrder.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GMOrder : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GMOrder()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGMOrderReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMOrder() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMOrder(table_GMOrder other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMOrder Clone() { + return new table_GMOrder(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GMOrder.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GMOrder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GMOrder other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GMOrder other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGMTeam.cs b/NTR.Common/protos/TableGMTeam.cs new file mode 100644 index 0000000..a41edba --- /dev/null +++ b/NTR.Common/protos/TableGMTeam.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GMTeam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GMTeam.proto + public static partial class TableGMTeamReflection { + + #region Descriptor + /// File descriptor for table_GMTeam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGMTeamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9HTVRlYW0ucHJvdG8aDEdNVGVhbS5wcm90byIlCgx0YWJsZV9H", + "TVRlYW0SFQoEbGlzdBgBIAMoCzIHLkdNVGVhbUIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GMTeamReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GMTeam), global::Nova.Client.table_GMTeam.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GMTeam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GMTeam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGMTeamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMTeam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMTeam(table_GMTeam other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GMTeam Clone() { + return new table_GMTeam(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GMTeam.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GMTeam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GMTeam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GMTeam other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGacha.cs b/NTR.Common/protos/TableGacha.cs new file mode 100644 index 0000000..f56765f --- /dev/null +++ b/NTR.Common/protos/TableGacha.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Gacha.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Gacha.proto + public static partial class TableGachaReflection { + + #region Descriptor + /// File descriptor for table_Gacha.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGachaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9HYWNoYS5wcm90bxoLR2FjaGEucHJvdG8iIwoLdGFibGVfR2Fj", + "aGESFAoEbGlzdBgBIAMoCzIGLkdhY2hhQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GachaReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Gacha), global::Nova.Client.table_Gacha.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Gacha : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Gacha()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGachaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Gacha() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Gacha(table_Gacha other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Gacha Clone() { + return new table_Gacha(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Gacha.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Gacha); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Gacha other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Gacha other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGachaAcquireReward.cs b/NTR.Common/protos/TableGachaAcquireReward.cs new file mode 100644 index 0000000..f9e0718 --- /dev/null +++ b/NTR.Common/protos/TableGachaAcquireReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GachaAcquireReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GachaAcquireReward.proto + public static partial class TableGachaAcquireRewardReflection { + + #region Descriptor + /// File descriptor for table_GachaAcquireReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGachaAcquireRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9HYWNoYUFjcXVpcmVSZXdhcmQucHJvdG8aGEdhY2hhQWNxdWly", + "ZVJld2FyZC5wcm90byI9Chh0YWJsZV9HYWNoYUFjcXVpcmVSZXdhcmQSIQoE", + "bGlzdBgBIAMoCzITLkdhY2hhQWNxdWlyZVJld2FyZEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GachaAcquireRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GachaAcquireReward), global::Nova.Client.table_GachaAcquireReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GachaAcquireReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GachaAcquireReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGachaAcquireRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GachaAcquireReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GachaAcquireReward(table_GachaAcquireReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GachaAcquireReward Clone() { + return new table_GachaAcquireReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GachaAcquireReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GachaAcquireReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GachaAcquireReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GachaAcquireReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGachaType.cs b/NTR.Common/protos/TableGachaType.cs new file mode 100644 index 0000000..3f9faf8 --- /dev/null +++ b/NTR.Common/protos/TableGachaType.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GachaType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GachaType.proto + public static partial class TableGachaTypeReflection { + + #region Descriptor + /// File descriptor for table_GachaType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGachaTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9HYWNoYVR5cGUucHJvdG8aD0dhY2hhVHlwZS5wcm90byIrCg90", + "YWJsZV9HYWNoYVR5cGUSGAoEbGlzdBgBIAMoCzIKLkdhY2hhVHlwZUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GachaTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GachaType), global::Nova.Client.table_GachaType.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GachaType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GachaType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGachaTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GachaType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GachaType(table_GachaType other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GachaType Clone() { + return new table_GachaType(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GachaType.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GachaType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GachaType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GachaType other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGamepadButton.cs b/NTR.Common/protos/TableGamepadButton.cs new file mode 100644 index 0000000..39c8a71 --- /dev/null +++ b/NTR.Common/protos/TableGamepadButton.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GamepadButton.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GamepadButton.proto + public static partial class TableGamepadButtonReflection { + + #region Descriptor + /// File descriptor for table_GamepadButton.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGamepadButtonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9HYW1lcGFkQnV0dG9uLnByb3RvGhNHYW1lcGFkQnV0dG9uLnBy", + "b3RvIjMKE3RhYmxlX0dhbWVwYWRCdXR0b24SHAoEbGlzdBgBIAMoCzIOLkdh", + "bWVwYWRCdXR0b25CDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GamepadButtonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GamepadButton), global::Nova.Client.table_GamepadButton.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GamepadButton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GamepadButton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGamepadButtonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GamepadButton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GamepadButton(table_GamepadButton other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GamepadButton Clone() { + return new table_GamepadButton(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GamepadButton.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GamepadButton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GamepadButton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GamepadButton other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGuide.cs b/NTR.Common/protos/TableGuide.cs new file mode 100644 index 0000000..d8ad16c --- /dev/null +++ b/NTR.Common/protos/TableGuide.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Guide.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Guide.proto + public static partial class TableGuideReflection { + + #region Descriptor + /// File descriptor for table_Guide.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGuideReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9HdWlkZS5wcm90bxoLR3VpZGUucHJvdG8iIwoLdGFibGVfR3Vp", + "ZGUSFAoEbGlzdBgBIAMoCzIGLkd1aWRlQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GuideReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Guide), global::Nova.Client.table_Guide.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Guide : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Guide()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGuideReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Guide() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Guide(table_Guide other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Guide Clone() { + return new table_Guide(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Guide.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Guide); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Guide other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Guide other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableGuideGroup.cs b/NTR.Common/protos/TableGuideGroup.cs new file mode 100644 index 0000000..2f5f12c --- /dev/null +++ b/NTR.Common/protos/TableGuideGroup.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_GuideGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_GuideGroup.proto + public static partial class TableGuideGroupReflection { + + #region Descriptor + /// File descriptor for table_GuideGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableGuideGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9HdWlkZUdyb3VwLnByb3RvGhBHdWlkZUdyb3VwLnByb3RvIi0K", + "EHRhYmxlX0d1aWRlR3JvdXASGQoEbGlzdBgBIAMoCzILLkd1aWRlR3JvdXBC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.GuideGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_GuideGroup), global::Nova.Client.table_GuideGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_GuideGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_GuideGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableGuideGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GuideGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GuideGroup(table_GuideGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_GuideGroup Clone() { + return new table_GuideGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.GuideGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_GuideGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_GuideGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_GuideGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableHandbook.cs b/NTR.Common/protos/TableHandbook.cs new file mode 100644 index 0000000..0075f21 --- /dev/null +++ b/NTR.Common/protos/TableHandbook.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Handbook.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Handbook.proto + public static partial class TableHandbookReflection { + + #region Descriptor + /// File descriptor for table_Handbook.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableHandbookReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9IYW5kYm9vay5wcm90bxoOSGFuZGJvb2sucHJvdG8iKQoOdGFi", + "bGVfSGFuZGJvb2sSFwoEbGlzdBgBIAMoCzIJLkhhbmRib29rQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.HandbookReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Handbook), global::Nova.Client.table_Handbook.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Handbook : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Handbook()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableHandbookReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Handbook() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Handbook(table_Handbook other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Handbook Clone() { + return new table_Handbook(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Handbook.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Handbook); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Handbook other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Handbook other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableHitDamage.cs b/NTR.Common/protos/TableHitDamage.cs new file mode 100644 index 0000000..23aa6ea --- /dev/null +++ b/NTR.Common/protos/TableHitDamage.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_HitDamage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_HitDamage.proto + public static partial class TableHitDamageReflection { + + #region Descriptor + /// File descriptor for table_HitDamage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableHitDamageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9IaXREYW1hZ2UucHJvdG8aD0hpdERhbWFnZS5wcm90byIrCg90", + "YWJsZV9IaXREYW1hZ2USGAoEbGlzdBgBIAMoCzIKLkhpdERhbWFnZUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.HitDamageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_HitDamage), global::Nova.Client.table_HitDamage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_HitDamage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_HitDamage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableHitDamageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_HitDamage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_HitDamage(table_HitDamage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_HitDamage Clone() { + return new table_HitDamage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.HitDamage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_HitDamage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_HitDamage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_HitDamage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableHonor.cs b/NTR.Common/protos/TableHonor.cs new file mode 100644 index 0000000..7b0eeaf --- /dev/null +++ b/NTR.Common/protos/TableHonor.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Honor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Honor.proto + public static partial class TableHonorReflection { + + #region Descriptor + /// File descriptor for table_Honor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableHonorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9Ib25vci5wcm90bxoLSG9ub3IucHJvdG8iIwoLdGFibGVfSG9u", + "b3ISFAoEbGlzdBgBIAMoCzIGLkhvbm9yQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.HonorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Honor), global::Nova.Client.table_Honor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Honor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Honor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableHonorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Honor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Honor(table_Honor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Honor Clone() { + return new table_Honor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Honor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Honor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Honor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Honor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableHonorCharacter.cs b/NTR.Common/protos/TableHonorCharacter.cs new file mode 100644 index 0000000..5c8b812 --- /dev/null +++ b/NTR.Common/protos/TableHonorCharacter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_HonorCharacter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_HonorCharacter.proto + public static partial class TableHonorCharacterReflection { + + #region Descriptor + /// File descriptor for table_HonorCharacter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableHonorCharacterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9Ib25vckNoYXJhY3Rlci5wcm90bxoUSG9ub3JDaGFyYWN0ZXIu", + "cHJvdG8iNQoUdGFibGVfSG9ub3JDaGFyYWN0ZXISHQoEbGlzdBgBIAMoCzIP", + "Lkhvbm9yQ2hhcmFjdGVyQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.HonorCharacterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_HonorCharacter), global::Nova.Client.table_HonorCharacter.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_HonorCharacter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_HonorCharacter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableHonorCharacterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_HonorCharacter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_HonorCharacter(table_HonorCharacter other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_HonorCharacter Clone() { + return new table_HonorCharacter(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.HonorCharacter.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_HonorCharacter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_HonorCharacter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_HonorCharacter other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTower.cs b/NTR.Common/protos/TableInfinityTower.cs new file mode 100644 index 0000000..59af5d1 --- /dev/null +++ b/NTR.Common/protos/TableInfinityTower.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTower.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTower.proto + public static partial class TableInfinityTowerReflection { + + #region Descriptor + /// File descriptor for table_InfinityTower.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9JbmZpbml0eVRvd2VyLnByb3RvGhNJbmZpbml0eVRvd2VyLnBy", + "b3RvIjMKE3RhYmxlX0luZmluaXR5VG93ZXISHAoEbGlzdBgBIAMoCzIOLklu", + "ZmluaXR5VG93ZXJCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTower), global::Nova.Client.table_InfinityTower.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTower : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTower()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTower() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTower(table_InfinityTower other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTower Clone() { + return new table_InfinityTower(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTower.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTower); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTower other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTower other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerAffix.cs b/NTR.Common/protos/TableInfinityTowerAffix.cs new file mode 100644 index 0000000..3b3f508 --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerAffix.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerAffix.proto + public static partial class TableInfinityTowerAffixReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9JbmZpbml0eVRvd2VyQWZmaXgucHJvdG8aGEluZmluaXR5VG93", + "ZXJBZmZpeC5wcm90byI9Chh0YWJsZV9JbmZpbml0eVRvd2VyQWZmaXgSIQoE", + "bGlzdBgBIAMoCzITLkluZmluaXR5VG93ZXJBZmZpeEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerAffixReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerAffix), global::Nova.Client.table_InfinityTowerAffix.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerAffix(table_InfinityTowerAffix other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerAffix Clone() { + return new table_InfinityTowerAffix(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerAffix.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerAffix other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerBountyLevel.cs b/NTR.Common/protos/TableInfinityTowerBountyLevel.cs new file mode 100644 index 0000000..dcf1bca --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerBountyLevel.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerBountyLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerBountyLevel.proto + public static partial class TableInfinityTowerBountyLevelReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerBountyLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerBountyLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0YWJsZV9JbmZpbml0eVRvd2VyQm91bnR5TGV2ZWwucHJvdG8aHkluZmlu", + "aXR5VG93ZXJCb3VudHlMZXZlbC5wcm90byJJCh50YWJsZV9JbmZpbml0eVRv", + "d2VyQm91bnR5TGV2ZWwSJwoEbGlzdBgBIAMoCzIZLkluZmluaXR5VG93ZXJC", + "b3VudHlMZXZlbEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerBountyLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerBountyLevel), global::Nova.Client.table_InfinityTowerBountyLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerBountyLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerBountyLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerBountyLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerBountyLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerBountyLevel(table_InfinityTowerBountyLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerBountyLevel Clone() { + return new table_InfinityTowerBountyLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerBountyLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerBountyLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerBountyLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerBountyLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerDifficulty.cs b/NTR.Common/protos/TableInfinityTowerDifficulty.cs new file mode 100644 index 0000000..56a8b43 --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerDifficulty.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerDifficulty.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerDifficulty.proto + public static partial class TableInfinityTowerDifficultyReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerDifficulty.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerDifficultyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiN0YWJsZV9JbmZpbml0eVRvd2VyRGlmZmljdWx0eS5wcm90bxodSW5maW5p", + "dHlUb3dlckRpZmZpY3VsdHkucHJvdG8iRwoddGFibGVfSW5maW5pdHlUb3dl", + "ckRpZmZpY3VsdHkSJgoEbGlzdBgBIAMoCzIYLkluZmluaXR5VG93ZXJEaWZm", + "aWN1bHR5Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerDifficultyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerDifficulty), global::Nova.Client.table_InfinityTowerDifficulty.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerDifficulty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerDifficulty()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerDifficultyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerDifficulty() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerDifficulty(table_InfinityTowerDifficulty other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerDifficulty Clone() { + return new table_InfinityTowerDifficulty(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerDifficulty.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerDifficulty); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerDifficulty other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerDifficulty other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerEnemySet.cs b/NTR.Common/protos/TableInfinityTowerEnemySet.cs new file mode 100644 index 0000000..a5e085d --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerEnemySet.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerEnemySet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerEnemySet.proto + public static partial class TableInfinityTowerEnemySetReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerEnemySet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerEnemySetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9JbmZpbml0eVRvd2VyRW5lbXlTZXQucHJvdG8aG0luZmluaXR5", + "VG93ZXJFbmVteVNldC5wcm90byJDCht0YWJsZV9JbmZpbml0eVRvd2VyRW5l", + "bXlTZXQSJAoEbGlzdBgBIAMoCzIWLkluZmluaXR5VG93ZXJFbmVteVNldEIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerEnemySetReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerEnemySet), global::Nova.Client.table_InfinityTowerEnemySet.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerEnemySet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerEnemySet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerEnemySetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerEnemySet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerEnemySet(table_InfinityTowerEnemySet other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerEnemySet Clone() { + return new table_InfinityTowerEnemySet(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerEnemySet.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerEnemySet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerEnemySet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerEnemySet other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerFloor.cs b/NTR.Common/protos/TableInfinityTowerFloor.cs new file mode 100644 index 0000000..27d7cf2 --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerFloor.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerFloor.proto + public static partial class TableInfinityTowerFloorReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9JbmZpbml0eVRvd2VyRmxvb3IucHJvdG8aGEluZmluaXR5VG93", + "ZXJGbG9vci5wcm90byI9Chh0YWJsZV9JbmZpbml0eVRvd2VyRmxvb3ISIQoE", + "bGlzdBgBIAMoCzITLkluZmluaXR5VG93ZXJGbG9vckIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerFloor), global::Nova.Client.table_InfinityTowerFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerFloor(table_InfinityTowerFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerFloor Clone() { + return new table_InfinityTowerFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerLevel.cs b/NTR.Common/protos/TableInfinityTowerLevel.cs new file mode 100644 index 0000000..913ce4e --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerLevel.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerLevel.proto + public static partial class TableInfinityTowerLevelReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9JbmZpbml0eVRvd2VyTGV2ZWwucHJvdG8aGEluZmluaXR5VG93", + "ZXJMZXZlbC5wcm90byI9Chh0YWJsZV9JbmZpbml0eVRvd2VyTGV2ZWwSIQoE", + "bGlzdBgBIAMoCzITLkluZmluaXR5VG93ZXJMZXZlbEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerLevel), global::Nova.Client.table_InfinityTowerLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerLevel(table_InfinityTowerLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerLevel Clone() { + return new table_InfinityTowerLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerMap.cs b/NTR.Common/protos/TableInfinityTowerMap.cs new file mode 100644 index 0000000..728e5b9 --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerMap.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerMap.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerMap.proto + public static partial class TableInfinityTowerMapReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerMap.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerMapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9JbmZpbml0eVRvd2VyTWFwLnByb3RvGhZJbmZpbml0eVRvd2Vy", + "TWFwLnByb3RvIjkKFnRhYmxlX0luZmluaXR5VG93ZXJNYXASHwoEbGlzdBgB", + "IAMoCzIRLkluZmluaXR5VG93ZXJNYXBCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerMapReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerMap), global::Nova.Client.table_InfinityTowerMap.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerMapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerMap(table_InfinityTowerMap other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerMap Clone() { + return new table_InfinityTowerMap(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerMap.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerMap other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerMsg.cs b/NTR.Common/protos/TableInfinityTowerMsg.cs new file mode 100644 index 0000000..3b884e5 --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerMsg.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerMsg.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerMsg.proto + public static partial class TableInfinityTowerMsgReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerMsg.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerMsgReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9JbmZpbml0eVRvd2VyTXNnLnByb3RvGhZJbmZpbml0eVRvd2Vy", + "TXNnLnByb3RvIjkKFnRhYmxlX0luZmluaXR5VG93ZXJNc2cSHwoEbGlzdBgB", + "IAMoCzIRLkluZmluaXR5VG93ZXJNc2dCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerMsgReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerMsg), global::Nova.Client.table_InfinityTowerMsg.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerMsg : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerMsg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerMsgReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerMsg() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerMsg(table_InfinityTowerMsg other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerMsg Clone() { + return new table_InfinityTowerMsg(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerMsg.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerMsg); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerMsg other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerMsg other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInfinityTowerPlot.cs b/NTR.Common/protos/TableInfinityTowerPlot.cs new file mode 100644 index 0000000..bd46e3c --- /dev/null +++ b/NTR.Common/protos/TableInfinityTowerPlot.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InfinityTowerPlot.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InfinityTowerPlot.proto + public static partial class TableInfinityTowerPlotReflection { + + #region Descriptor + /// File descriptor for table_InfinityTowerPlot.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInfinityTowerPlotReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9JbmZpbml0eVRvd2VyUGxvdC5wcm90bxoXSW5maW5pdHlUb3dl", + "clBsb3QucHJvdG8iOwoXdGFibGVfSW5maW5pdHlUb3dlclBsb3QSIAoEbGlz", + "dBgBIAMoCzISLkluZmluaXR5VG93ZXJQbG90Qg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InfinityTowerPlotReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InfinityTowerPlot), global::Nova.Client.table_InfinityTowerPlot.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InfinityTowerPlot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InfinityTowerPlot()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInfinityTowerPlotReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerPlot() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerPlot(table_InfinityTowerPlot other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InfinityTowerPlot Clone() { + return new table_InfinityTowerPlot(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InfinityTowerPlot.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InfinityTowerPlot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InfinityTowerPlot other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InfinityTowerPlot other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableInteractiveAction.cs b/NTR.Common/protos/TableInteractiveAction.cs new file mode 100644 index 0000000..95ac73e --- /dev/null +++ b/NTR.Common/protos/TableInteractiveAction.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_InteractiveAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_InteractiveAction.proto + public static partial class TableInteractiveActionReflection { + + #region Descriptor + /// File descriptor for table_InteractiveAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableInteractiveActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9JbnRlcmFjdGl2ZUFjdGlvbi5wcm90bxoXSW50ZXJhY3RpdmVB", + "Y3Rpb24ucHJvdG8iOwoXdGFibGVfSW50ZXJhY3RpdmVBY3Rpb24SIAoEbGlz", + "dBgBIAMoCzISLkludGVyYWN0aXZlQWN0aW9uQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.InteractiveActionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_InteractiveAction), global::Nova.Client.table_InteractiveAction.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_InteractiveAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_InteractiveAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableInteractiveActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InteractiveAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InteractiveAction(table_InteractiveAction other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_InteractiveAction Clone() { + return new table_InteractiveAction(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.InteractiveAction.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_InteractiveAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_InteractiveAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_InteractiveAction other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableItem.cs b/NTR.Common/protos/TableItem.cs new file mode 100644 index 0000000..302d1b0 --- /dev/null +++ b/NTR.Common/protos/TableItem.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Item.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Item.proto + public static partial class TableItemReflection { + + #region Descriptor + /// File descriptor for table_Item.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9JdGVtLnByb3RvGgpJdGVtLnByb3RvIiEKCnRhYmxlX0l0ZW0S", + "EwoEbGlzdBgBIAMoCzIFLkl0ZW1CDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Item), global::Nova.Client.table_Item.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Item : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Item()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Item() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Item(table_Item other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Item Clone() { + return new table_Item(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Item.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Item); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Item other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Item other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableItemPackMark.cs b/NTR.Common/protos/TableItemPackMark.cs new file mode 100644 index 0000000..a1ff2b6 --- /dev/null +++ b/NTR.Common/protos/TableItemPackMark.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ItemPackMark.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ItemPackMark.proto + public static partial class TableItemPackMarkReflection { + + #region Descriptor + /// File descriptor for table_ItemPackMark.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableItemPackMarkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9JdGVtUGFja01hcmsucHJvdG8aEkl0ZW1QYWNrTWFyay5wcm90", + "byIxChJ0YWJsZV9JdGVtUGFja01hcmsSGwoEbGlzdBgBIAMoCzINLkl0ZW1Q", + "YWNrTWFya0IOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ItemPackMarkReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ItemPackMark), global::Nova.Client.table_ItemPackMark.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ItemPackMark : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ItemPackMark()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableItemPackMarkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ItemPackMark() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ItemPackMark(table_ItemPackMark other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ItemPackMark Clone() { + return new table_ItemPackMark(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ItemPackMark.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ItemPackMark); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ItemPackMark other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ItemPackMark other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableJumpTo.cs b/NTR.Common/protos/TableJumpTo.cs new file mode 100644 index 0000000..e0f64e9 --- /dev/null +++ b/NTR.Common/protos/TableJumpTo.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_JumpTo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_JumpTo.proto + public static partial class TableJumpToReflection { + + #region Descriptor + /// File descriptor for table_JumpTo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableJumpToReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9KdW1wVG8ucHJvdG8aDEp1bXBUby5wcm90byIlCgx0YWJsZV9K", + "dW1wVG8SFQoEbGlzdBgBIAMoCzIHLkp1bXBUb0IOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.JumpToReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_JumpTo), global::Nova.Client.table_JumpTo.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_JumpTo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_JumpTo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableJumpToReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_JumpTo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_JumpTo(table_JumpTo other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_JumpTo Clone() { + return new table_JumpTo(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.JumpTo.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_JumpTo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_JumpTo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_JumpTo other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableLoginRewardControl.cs b/NTR.Common/protos/TableLoginRewardControl.cs new file mode 100644 index 0000000..0d18fb5 --- /dev/null +++ b/NTR.Common/protos/TableLoginRewardControl.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_LoginRewardControl.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_LoginRewardControl.proto + public static partial class TableLoginRewardControlReflection { + + #region Descriptor + /// File descriptor for table_LoginRewardControl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableLoginRewardControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9Mb2dpblJld2FyZENvbnRyb2wucHJvdG8aGExvZ2luUmV3YXJk", + "Q29udHJvbC5wcm90byI9Chh0YWJsZV9Mb2dpblJld2FyZENvbnRyb2wSIQoE", + "bGlzdBgBIAMoCzITLkxvZ2luUmV3YXJkQ29udHJvbEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.LoginRewardControlReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_LoginRewardControl), global::Nova.Client.table_LoginRewardControl.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_LoginRewardControl : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_LoginRewardControl()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableLoginRewardControlReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_LoginRewardControl() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_LoginRewardControl(table_LoginRewardControl other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_LoginRewardControl Clone() { + return new table_LoginRewardControl(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.LoginRewardControl.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_LoginRewardControl); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_LoginRewardControl other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_LoginRewardControl other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableLoginRewardGroup.cs b/NTR.Common/protos/TableLoginRewardGroup.cs new file mode 100644 index 0000000..a5f52f2 --- /dev/null +++ b/NTR.Common/protos/TableLoginRewardGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_LoginRewardGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_LoginRewardGroup.proto + public static partial class TableLoginRewardGroupReflection { + + #region Descriptor + /// File descriptor for table_LoginRewardGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableLoginRewardGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9Mb2dpblJld2FyZEdyb3VwLnByb3RvGhZMb2dpblJld2FyZEdy", + "b3VwLnByb3RvIjkKFnRhYmxlX0xvZ2luUmV3YXJkR3JvdXASHwoEbGlzdBgB", + "IAMoCzIRLkxvZ2luUmV3YXJkR3JvdXBCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.LoginRewardGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_LoginRewardGroup), global::Nova.Client.table_LoginRewardGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_LoginRewardGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_LoginRewardGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableLoginRewardGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_LoginRewardGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_LoginRewardGroup(table_LoginRewardGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_LoginRewardGroup Clone() { + return new table_LoginRewardGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.LoginRewardGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_LoginRewardGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_LoginRewardGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_LoginRewardGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMailTemplate.cs b/NTR.Common/protos/TableMailTemplate.cs new file mode 100644 index 0000000..6e7439d --- /dev/null +++ b/NTR.Common/protos/TableMailTemplate.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MailTemplate.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MailTemplate.proto + public static partial class TableMailTemplateReflection { + + #region Descriptor + /// File descriptor for table_MailTemplate.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMailTemplateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9NYWlsVGVtcGxhdGUucHJvdG8aEk1haWxUZW1wbGF0ZS5wcm90", + "byIxChJ0YWJsZV9NYWlsVGVtcGxhdGUSGwoEbGlzdBgBIAMoCzINLk1haWxU", + "ZW1wbGF0ZUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MailTemplateReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MailTemplate), global::Nova.Client.table_MailTemplate.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MailTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MailTemplate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMailTemplateReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MailTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MailTemplate(table_MailTemplate other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MailTemplate Clone() { + return new table_MailTemplate(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MailTemplate.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MailTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MailTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MailTemplate other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMainline.cs b/NTR.Common/protos/TableMainline.cs new file mode 100644 index 0000000..4373cc4 --- /dev/null +++ b/NTR.Common/protos/TableMainline.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Mainline.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Mainline.proto + public static partial class TableMainlineReflection { + + #region Descriptor + /// File descriptor for table_Mainline.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMainlineReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9NYWlubGluZS5wcm90bxoOTWFpbmxpbmUucHJvdG8iKQoOdGFi", + "bGVfTWFpbmxpbmUSFwoEbGlzdBgBIAMoCzIJLk1haW5saW5lQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MainlineReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Mainline), global::Nova.Client.table_Mainline.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Mainline : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Mainline()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMainlineReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Mainline() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Mainline(table_Mainline other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Mainline Clone() { + return new table_Mainline(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Mainline.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Mainline); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Mainline other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Mainline other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMainlineFloor.cs b/NTR.Common/protos/TableMainlineFloor.cs new file mode 100644 index 0000000..ff601b7 --- /dev/null +++ b/NTR.Common/protos/TableMainlineFloor.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MainlineFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MainlineFloor.proto + public static partial class TableMainlineFloorReflection { + + #region Descriptor + /// File descriptor for table_MainlineFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMainlineFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9NYWlubGluZUZsb29yLnByb3RvGhNNYWlubGluZUZsb29yLnBy", + "b3RvIjMKE3RhYmxlX01haW5saW5lRmxvb3ISHAoEbGlzdBgBIAMoCzIOLk1h", + "aW5saW5lRmxvb3JCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MainlineFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MainlineFloor), global::Nova.Client.table_MainlineFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MainlineFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MainlineFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMainlineFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MainlineFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MainlineFloor(table_MainlineFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MainlineFloor Clone() { + return new table_MainlineFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MainlineFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MainlineFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MainlineFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MainlineFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMallGem.cs b/NTR.Common/protos/TableMallGem.cs new file mode 100644 index 0000000..8d60c28 --- /dev/null +++ b/NTR.Common/protos/TableMallGem.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MallGem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MallGem.proto + public static partial class TableMallGemReflection { + + #region Descriptor + /// File descriptor for table_MallGem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMallGemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9NYWxsR2VtLnByb3RvGg1NYWxsR2VtLnByb3RvIicKDXRhYmxl", + "X01hbGxHZW0SFgoEbGlzdBgBIAMoCzIILk1hbGxHZW1CDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MallGemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MallGem), global::Nova.Client.table_MallGem.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MallGem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MallGem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMallGemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallGem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallGem(table_MallGem other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallGem Clone() { + return new table_MallGem(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MallGem.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MallGem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MallGem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MallGem other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMallMonthlyCard.cs b/NTR.Common/protos/TableMallMonthlyCard.cs new file mode 100644 index 0000000..267cff3 --- /dev/null +++ b/NTR.Common/protos/TableMallMonthlyCard.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MallMonthlyCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MallMonthlyCard.proto + public static partial class TableMallMonthlyCardReflection { + + #region Descriptor + /// File descriptor for table_MallMonthlyCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMallMonthlyCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9NYWxsTW9udGhseUNhcmQucHJvdG8aFU1hbGxNb250aGx5Q2Fy", + "ZC5wcm90byI3ChV0YWJsZV9NYWxsTW9udGhseUNhcmQSHgoEbGlzdBgBIAMo", + "CzIQLk1hbGxNb250aGx5Q2FyZEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MallMonthlyCardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MallMonthlyCard), global::Nova.Client.table_MallMonthlyCard.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MallMonthlyCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MallMonthlyCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMallMonthlyCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallMonthlyCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallMonthlyCard(table_MallMonthlyCard other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallMonthlyCard Clone() { + return new table_MallMonthlyCard(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MallMonthlyCard.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MallMonthlyCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MallMonthlyCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MallMonthlyCard other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMallPackage.cs b/NTR.Common/protos/TableMallPackage.cs new file mode 100644 index 0000000..aab7c2e --- /dev/null +++ b/NTR.Common/protos/TableMallPackage.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MallPackage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MallPackage.proto + public static partial class TableMallPackageReflection { + + #region Descriptor + /// File descriptor for table_MallPackage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMallPackageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9NYWxsUGFja2FnZS5wcm90bxoRTWFsbFBhY2thZ2UucHJvdG8i", + "LwoRdGFibGVfTWFsbFBhY2thZ2USGgoEbGlzdBgBIAMoCzIMLk1hbGxQYWNr", + "YWdlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MallPackageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MallPackage), global::Nova.Client.table_MallPackage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MallPackage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MallPackage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMallPackageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallPackage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallPackage(table_MallPackage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallPackage Clone() { + return new table_MallPackage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MallPackage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MallPackage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MallPackage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MallPackage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMallPackagePage.cs b/NTR.Common/protos/TableMallPackagePage.cs new file mode 100644 index 0000000..8b6b0ee --- /dev/null +++ b/NTR.Common/protos/TableMallPackagePage.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MallPackagePage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MallPackagePage.proto + public static partial class TableMallPackagePageReflection { + + #region Descriptor + /// File descriptor for table_MallPackagePage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMallPackagePageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9NYWxsUGFja2FnZVBhZ2UucHJvdG8aFU1hbGxQYWNrYWdlUGFn", + "ZS5wcm90byI3ChV0YWJsZV9NYWxsUGFja2FnZVBhZ2USHgoEbGlzdBgBIAMo", + "CzIQLk1hbGxQYWNrYWdlUGFnZUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MallPackagePageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MallPackagePage), global::Nova.Client.table_MallPackagePage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MallPackagePage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MallPackagePage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMallPackagePageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallPackagePage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallPackagePage(table_MallPackagePage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallPackagePage Clone() { + return new table_MallPackagePage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MallPackagePage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MallPackagePage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MallPackagePage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MallPackagePage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMallShop.cs b/NTR.Common/protos/TableMallShop.cs new file mode 100644 index 0000000..8fce7d1 --- /dev/null +++ b/NTR.Common/protos/TableMallShop.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MallShop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MallShop.proto + public static partial class TableMallShopReflection { + + #region Descriptor + /// File descriptor for table_MallShop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMallShopReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9NYWxsU2hvcC5wcm90bxoOTWFsbFNob3AucHJvdG8iKQoOdGFi", + "bGVfTWFsbFNob3ASFwoEbGlzdBgBIAMoCzIJLk1hbGxTaG9wQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MallShopReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MallShop), global::Nova.Client.table_MallShop.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MallShop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MallShop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMallShopReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallShop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallShop(table_MallShop other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallShop Clone() { + return new table_MallShop(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MallShop.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MallShop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MallShop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MallShop other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMallShopPage.cs b/NTR.Common/protos/TableMallShopPage.cs new file mode 100644 index 0000000..e9509ff --- /dev/null +++ b/NTR.Common/protos/TableMallShopPage.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MallShopPage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MallShopPage.proto + public static partial class TableMallShopPageReflection { + + #region Descriptor + /// File descriptor for table_MallShopPage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMallShopPageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9NYWxsU2hvcFBhZ2UucHJvdG8aEk1hbGxTaG9wUGFnZS5wcm90", + "byIxChJ0YWJsZV9NYWxsU2hvcFBhZ2USGwoEbGlzdBgBIAMoCzINLk1hbGxT", + "aG9wUGFnZUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MallShopPageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MallShopPage), global::Nova.Client.table_MallShopPage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MallShopPage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MallShopPage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMallShopPageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallShopPage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallShopPage(table_MallShopPage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MallShopPage Clone() { + return new table_MallShopPage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MallShopPage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MallShopPage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MallShopPage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MallShopPage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonster.cs b/NTR.Common/protos/TableMonster.cs new file mode 100644 index 0000000..c158dcf --- /dev/null +++ b/NTR.Common/protos/TableMonster.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Monster.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Monster.proto + public static partial class TableMonsterReflection { + + #region Descriptor + /// File descriptor for table_Monster.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9Nb25zdGVyLnByb3RvGg1Nb25zdGVyLnByb3RvIicKDXRhYmxl", + "X01vbnN0ZXISFgoEbGlzdBgBIAMoCzIILk1vbnN0ZXJCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Monster), global::Nova.Client.table_Monster.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Monster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Monster()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Monster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Monster(table_Monster other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Monster Clone() { + return new table_Monster(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Monster.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Monster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Monster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Monster other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterAI.cs b/NTR.Common/protos/TableMonsterAI.cs new file mode 100644 index 0000000..0404027 --- /dev/null +++ b/NTR.Common/protos/TableMonsterAI.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterAI.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterAI.proto + public static partial class TableMonsterAIReflection { + + #region Descriptor + /// File descriptor for table_MonsterAI.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterAIReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9Nb25zdGVyQUkucHJvdG8aD01vbnN0ZXJBSS5wcm90byIrCg90", + "YWJsZV9Nb25zdGVyQUkSGAoEbGlzdBgBIAMoCzIKLk1vbnN0ZXJBSUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterAIReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterAI), global::Nova.Client.table_MonsterAI.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterAI : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterAI()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterAIReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterAI() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterAI(table_MonsterAI other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterAI Clone() { + return new table_MonsterAI(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterAI.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterAI); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterAI other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterAI other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterActionBranch.cs b/NTR.Common/protos/TableMonsterActionBranch.cs new file mode 100644 index 0000000..d103997 --- /dev/null +++ b/NTR.Common/protos/TableMonsterActionBranch.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterActionBranch.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterActionBranch.proto + public static partial class TableMonsterActionBranchReflection { + + #region Descriptor + /// File descriptor for table_MonsterActionBranch.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterActionBranchReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9Nb25zdGVyQWN0aW9uQnJhbmNoLnByb3RvGhlNb25zdGVyQWN0", + "aW9uQnJhbmNoLnByb3RvIj8KGXRhYmxlX01vbnN0ZXJBY3Rpb25CcmFuY2gS", + "IgoEbGlzdBgBIAMoCzIULk1vbnN0ZXJBY3Rpb25CcmFuY2hCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterActionBranchReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterActionBranch), global::Nova.Client.table_MonsterActionBranch.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterActionBranch : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterActionBranch()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterActionBranchReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterActionBranch() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterActionBranch(table_MonsterActionBranch other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterActionBranch Clone() { + return new table_MonsterActionBranch(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterActionBranch.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterActionBranch); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterActionBranch other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterActionBranch other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterBornGroup.cs b/NTR.Common/protos/TableMonsterBornGroup.cs new file mode 100644 index 0000000..f3ccfea --- /dev/null +++ b/NTR.Common/protos/TableMonsterBornGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterBornGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterBornGroup.proto + public static partial class TableMonsterBornGroupReflection { + + #region Descriptor + /// File descriptor for table_MonsterBornGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterBornGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9Nb25zdGVyQm9ybkdyb3VwLnByb3RvGhZNb25zdGVyQm9ybkdy", + "b3VwLnByb3RvIjkKFnRhYmxlX01vbnN0ZXJCb3JuR3JvdXASHwoEbGlzdBgB", + "IAMoCzIRLk1vbnN0ZXJCb3JuR3JvdXBCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterBornGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterBornGroup), global::Nova.Client.table_MonsterBornGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterBornGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterBornGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterBornGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterBornGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterBornGroup(table_MonsterBornGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterBornGroup Clone() { + return new table_MonsterBornGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterBornGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterBornGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterBornGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterBornGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterGroup.cs b/NTR.Common/protos/TableMonsterGroup.cs new file mode 100644 index 0000000..2e29fdb --- /dev/null +++ b/NTR.Common/protos/TableMonsterGroup.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterGroup.proto + public static partial class TableMonsterGroupReflection { + + #region Descriptor + /// File descriptor for table_MonsterGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9Nb25zdGVyR3JvdXAucHJvdG8aEk1vbnN0ZXJHcm91cC5wcm90", + "byIxChJ0YWJsZV9Nb25zdGVyR3JvdXASGwoEbGlzdBgBIAMoCzINLk1vbnN0", + "ZXJHcm91cEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterGroup), global::Nova.Client.table_MonsterGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterGroup(table_MonsterGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterGroup Clone() { + return new table_MonsterGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterSkin.cs b/NTR.Common/protos/TableMonsterSkin.cs new file mode 100644 index 0000000..0c17a4d --- /dev/null +++ b/NTR.Common/protos/TableMonsterSkin.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterSkin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterSkin.proto + public static partial class TableMonsterSkinReflection { + + #region Descriptor + /// File descriptor for table_MonsterSkin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterSkinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9Nb25zdGVyU2tpbi5wcm90bxoRTW9uc3RlclNraW4ucHJvdG8i", + "LwoRdGFibGVfTW9uc3RlclNraW4SGgoEbGlzdBgBIAMoCzIMLk1vbnN0ZXJT", + "a2luQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterSkinReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterSkin), global::Nova.Client.table_MonsterSkin.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterSkin : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterSkin()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterSkinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterSkin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterSkin(table_MonsterSkin other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterSkin Clone() { + return new table_MonsterSkin(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterSkin.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterSkin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterSkin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterSkin other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterTeam.cs b/NTR.Common/protos/TableMonsterTeam.cs new file mode 100644 index 0000000..cfc2769 --- /dev/null +++ b/NTR.Common/protos/TableMonsterTeam.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterTeam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterTeam.proto + public static partial class TableMonsterTeamReflection { + + #region Descriptor + /// File descriptor for table_MonsterTeam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterTeamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9Nb25zdGVyVGVhbS5wcm90bxoRTW9uc3RlclRlYW0ucHJvdG8i", + "LwoRdGFibGVfTW9uc3RlclRlYW0SGgoEbGlzdBgBIAMoCzIMLk1vbnN0ZXJU", + "ZWFtQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterTeamReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterTeam), global::Nova.Client.table_MonsterTeam.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterTeam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterTeam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterTeamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterTeam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterTeam(table_MonsterTeam other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterTeam Clone() { + return new table_MonsterTeam(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterTeam.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterTeam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterTeam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterTeam other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterValueTemplete.cs b/NTR.Common/protos/TableMonsterValueTemplete.cs new file mode 100644 index 0000000..5c104c8 --- /dev/null +++ b/NTR.Common/protos/TableMonsterValueTemplete.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterValueTemplete.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterValueTemplete.proto + public static partial class TableMonsterValueTempleteReflection { + + #region Descriptor + /// File descriptor for table_MonsterValueTemplete.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterValueTempleteReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9Nb25zdGVyVmFsdWVUZW1wbGV0ZS5wcm90bxoaTW9uc3RlclZh", + "bHVlVGVtcGxldGUucHJvdG8iQQoadGFibGVfTW9uc3RlclZhbHVlVGVtcGxl", + "dGUSIwoEbGlzdBgBIAMoCzIVLk1vbnN0ZXJWYWx1ZVRlbXBsZXRlQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterValueTempleteReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterValueTemplete), global::Nova.Client.table_MonsterValueTemplete.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterValueTemplete : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterValueTemplete()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterValueTempleteReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterValueTemplete() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterValueTemplete(table_MonsterValueTemplete other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterValueTemplete Clone() { + return new table_MonsterValueTemplete(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterValueTemplete.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterValueTemplete); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterValueTemplete other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterValueTemplete other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonsterValueTempleteAdjust.cs b/NTR.Common/protos/TableMonsterValueTempleteAdjust.cs new file mode 100644 index 0000000..aaade11 --- /dev/null +++ b/NTR.Common/protos/TableMonsterValueTempleteAdjust.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonsterValueTempleteAdjust.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonsterValueTempleteAdjust.proto + public static partial class TableMonsterValueTempleteAdjustReflection { + + #region Descriptor + /// File descriptor for table_MonsterValueTempleteAdjust.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonsterValueTempleteAdjustReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0YWJsZV9Nb25zdGVyVmFsdWVUZW1wbGV0ZUFkanVzdC5wcm90bxogTW9u", + "c3RlclZhbHVlVGVtcGxldGVBZGp1c3QucHJvdG8iTQogdGFibGVfTW9uc3Rl", + "clZhbHVlVGVtcGxldGVBZGp1c3QSKQoEbGlzdBgBIAMoCzIbLk1vbnN0ZXJW", + "YWx1ZVRlbXBsZXRlQWRqdXN0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonsterValueTempleteAdjustReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonsterValueTempleteAdjust), global::Nova.Client.table_MonsterValueTempleteAdjust.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonsterValueTempleteAdjust : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonsterValueTempleteAdjust()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonsterValueTempleteAdjustReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterValueTempleteAdjust() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterValueTempleteAdjust(table_MonsterValueTempleteAdjust other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonsterValueTempleteAdjust Clone() { + return new table_MonsterValueTempleteAdjust(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonsterValueTempleteAdjust.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonsterValueTempleteAdjust); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonsterValueTempleteAdjust other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonsterValueTempleteAdjust other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableMonthlyCard.cs b/NTR.Common/protos/TableMonthlyCard.cs new file mode 100644 index 0000000..0c543d1 --- /dev/null +++ b/NTR.Common/protos/TableMonthlyCard.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_MonthlyCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_MonthlyCard.proto + public static partial class TableMonthlyCardReflection { + + #region Descriptor + /// File descriptor for table_MonthlyCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableMonthlyCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9Nb250aGx5Q2FyZC5wcm90bxoRTW9udGhseUNhcmQucHJvdG8i", + "LwoRdGFibGVfTW9udGhseUNhcmQSGgoEbGlzdBgBIAMoCzIMLk1vbnRobHlD", + "YXJkQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.MonthlyCardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_MonthlyCard), global::Nova.Client.table_MonthlyCard.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_MonthlyCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_MonthlyCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableMonthlyCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonthlyCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonthlyCard(table_MonthlyCard other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_MonthlyCard Clone() { + return new table_MonthlyCard(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.MonthlyCard.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_MonthlyCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_MonthlyCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_MonthlyCard other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableNPCConfig.cs b/NTR.Common/protos/TableNPCConfig.cs new file mode 100644 index 0000000..130790c --- /dev/null +++ b/NTR.Common/protos/TableNPCConfig.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_NPCConfig.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_NPCConfig.proto + public static partial class TableNPCConfigReflection { + + #region Descriptor + /// File descriptor for table_NPCConfig.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableNPCConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9OUENDb25maWcucHJvdG8aD05QQ0NvbmZpZy5wcm90byIrCg90", + "YWJsZV9OUENDb25maWcSGAoEbGlzdBgBIAMoCzIKLk5QQ0NvbmZpZ0IOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.NPCConfigReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_NPCConfig), global::Nova.Client.table_NPCConfig.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_NPCConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_NPCConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableNPCConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NPCConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NPCConfig(table_NPCConfig other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NPCConfig Clone() { + return new table_NPCConfig(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.NPCConfig.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_NPCConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_NPCConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_NPCConfig other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableNPCSkin.cs b/NTR.Common/protos/TableNPCSkin.cs new file mode 100644 index 0000000..c915975 --- /dev/null +++ b/NTR.Common/protos/TableNPCSkin.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_NPCSkin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_NPCSkin.proto + public static partial class TableNPCSkinReflection { + + #region Descriptor + /// File descriptor for table_NPCSkin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableNPCSkinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChN0YWJsZV9OUENTa2luLnByb3RvGg1OUENTa2luLnByb3RvIicKDXRhYmxl", + "X05QQ1NraW4SFgoEbGlzdBgBIAMoCzIILk5QQ1NraW5CDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.NPCSkinReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_NPCSkin), global::Nova.Client.table_NPCSkin.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_NPCSkin : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_NPCSkin()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableNPCSkinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NPCSkin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NPCSkin(table_NPCSkin other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NPCSkin Clone() { + return new table_NPCSkin(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.NPCSkin.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_NPCSkin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_NPCSkin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_NPCSkin other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableNote.cs b/NTR.Common/protos/TableNote.cs new file mode 100644 index 0000000..891415b --- /dev/null +++ b/NTR.Common/protos/TableNote.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Note.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Note.proto + public static partial class TableNoteReflection { + + #region Descriptor + /// File descriptor for table_Note.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableNoteReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9Ob3RlLnByb3RvGgpOb3RlLnByb3RvIiEKCnRhYmxlX05vdGUS", + "EwoEbGlzdBgBIAMoCzIFLk5vdGVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.NoteReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Note), global::Nova.Client.table_Note.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Note : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Note()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableNoteReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Note() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Note(table_Note other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Note Clone() { + return new table_Note(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Note.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Note); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Note other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Note other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableNoteDropGroup.cs b/NTR.Common/protos/TableNoteDropGroup.cs new file mode 100644 index 0000000..523c7c1 --- /dev/null +++ b/NTR.Common/protos/TableNoteDropGroup.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_NoteDropGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_NoteDropGroup.proto + public static partial class TableNoteDropGroupReflection { + + #region Descriptor + /// File descriptor for table_NoteDropGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableNoteDropGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9Ob3RlRHJvcEdyb3VwLnByb3RvGhNOb3RlRHJvcEdyb3VwLnBy", + "b3RvIjMKE3RhYmxlX05vdGVEcm9wR3JvdXASHAoEbGlzdBgBIAMoCzIOLk5v", + "dGVEcm9wR3JvdXBCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.NoteDropGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_NoteDropGroup), global::Nova.Client.table_NoteDropGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_NoteDropGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_NoteDropGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableNoteDropGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NoteDropGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NoteDropGroup(table_NoteDropGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_NoteDropGroup Clone() { + return new table_NoteDropGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.NoteDropGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_NoteDropGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_NoteDropGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_NoteDropGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableOnceAdditionalAttribute.cs b/NTR.Common/protos/TableOnceAdditionalAttribute.cs new file mode 100644 index 0000000..bfdcd2c --- /dev/null +++ b/NTR.Common/protos/TableOnceAdditionalAttribute.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_OnceAdditionalAttribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_OnceAdditionalAttribute.proto + public static partial class TableOnceAdditionalAttributeReflection { + + #region Descriptor + /// File descriptor for table_OnceAdditionalAttribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableOnceAdditionalAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiN0YWJsZV9PbmNlQWRkaXRpb25hbEF0dHJpYnV0ZS5wcm90bxodT25jZUFk", + "ZGl0aW9uYWxBdHRyaWJ1dGUucHJvdG8iRwoddGFibGVfT25jZUFkZGl0aW9u", + "YWxBdHRyaWJ1dGUSJgoEbGlzdBgBIAMoCzIYLk9uY2VBZGRpdGlvbmFsQXR0", + "cmlidXRlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.OnceAdditionalAttributeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_OnceAdditionalAttribute), global::Nova.Client.table_OnceAdditionalAttribute.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_OnceAdditionalAttribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_OnceAdditionalAttribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableOnceAdditionalAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OnceAdditionalAttribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OnceAdditionalAttribute(table_OnceAdditionalAttribute other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OnceAdditionalAttribute Clone() { + return new table_OnceAdditionalAttribute(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.OnceAdditionalAttribute.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_OnceAdditionalAttribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_OnceAdditionalAttribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_OnceAdditionalAttribute other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableOnceAdditionalAttributeValue.cs b/NTR.Common/protos/TableOnceAdditionalAttributeValue.cs new file mode 100644 index 0000000..ab960cb --- /dev/null +++ b/NTR.Common/protos/TableOnceAdditionalAttributeValue.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_OnceAdditionalAttributeValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_OnceAdditionalAttributeValue.proto + public static partial class TableOnceAdditionalAttributeValueReflection { + + #region Descriptor + /// File descriptor for table_OnceAdditionalAttributeValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableOnceAdditionalAttributeValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cih0YWJsZV9PbmNlQWRkaXRpb25hbEF0dHJpYnV0ZVZhbHVlLnByb3RvGiJP", + "bmNlQWRkaXRpb25hbEF0dHJpYnV0ZVZhbHVlLnByb3RvIlEKInRhYmxlX09u", + "Y2VBZGRpdGlvbmFsQXR0cmlidXRlVmFsdWUSKwoEbGlzdBgBIAMoCzIdLk9u", + "Y2VBZGRpdGlvbmFsQXR0cmlidXRlVmFsdWVCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.OnceAdditionalAttributeValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_OnceAdditionalAttributeValue), global::Nova.Client.table_OnceAdditionalAttributeValue.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_OnceAdditionalAttributeValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_OnceAdditionalAttributeValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableOnceAdditionalAttributeValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OnceAdditionalAttributeValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OnceAdditionalAttributeValue(table_OnceAdditionalAttributeValue other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OnceAdditionalAttributeValue Clone() { + return new table_OnceAdditionalAttributeValue(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.OnceAdditionalAttributeValue.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_OnceAdditionalAttributeValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_OnceAdditionalAttributeValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_OnceAdditionalAttributeValue other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableOpenFunc.cs b/NTR.Common/protos/TableOpenFunc.cs new file mode 100644 index 0000000..904bafa --- /dev/null +++ b/NTR.Common/protos/TableOpenFunc.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_OpenFunc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_OpenFunc.proto + public static partial class TableOpenFuncReflection { + + #region Descriptor + /// File descriptor for table_OpenFunc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableOpenFuncReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChR0YWJsZV9PcGVuRnVuYy5wcm90bxoOT3BlbkZ1bmMucHJvdG8iKQoOdGFi", + "bGVfT3BlbkZ1bmMSFwoEbGlzdBgBIAMoCzIJLk9wZW5GdW5jQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.OpenFuncReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_OpenFunc), global::Nova.Client.table_OpenFunc.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_OpenFunc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_OpenFunc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableOpenFuncReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OpenFunc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OpenFunc(table_OpenFunc other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_OpenFunc Clone() { + return new table_OpenFunc(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.OpenFunc.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_OpenFunc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_OpenFunc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_OpenFunc other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePeriodicQuest.cs b/NTR.Common/protos/TablePeriodicQuest.cs new file mode 100644 index 0000000..5e5dee7 --- /dev/null +++ b/NTR.Common/protos/TablePeriodicQuest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PeriodicQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PeriodicQuest.proto + public static partial class TablePeriodicQuestReflection { + + #region Descriptor + /// File descriptor for table_PeriodicQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePeriodicQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9QZXJpb2RpY1F1ZXN0LnByb3RvGhNQZXJpb2RpY1F1ZXN0LnBy", + "b3RvIjMKE3RhYmxlX1BlcmlvZGljUXVlc3QSHAoEbGlzdBgBIAMoCzIOLlBl", + "cmlvZGljUXVlc3RCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PeriodicQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PeriodicQuest), global::Nova.Client.table_PeriodicQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PeriodicQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PeriodicQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePeriodicQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuest(table_PeriodicQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuest Clone() { + return new table_PeriodicQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PeriodicQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PeriodicQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PeriodicQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PeriodicQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePeriodicQuestControl.cs b/NTR.Common/protos/TablePeriodicQuestControl.cs new file mode 100644 index 0000000..6b8a41f --- /dev/null +++ b/NTR.Common/protos/TablePeriodicQuestControl.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PeriodicQuestControl.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PeriodicQuestControl.proto + public static partial class TablePeriodicQuestControlReflection { + + #region Descriptor + /// File descriptor for table_PeriodicQuestControl.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePeriodicQuestControlReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9QZXJpb2RpY1F1ZXN0Q29udHJvbC5wcm90bxoaUGVyaW9kaWNR", + "dWVzdENvbnRyb2wucHJvdG8iQQoadGFibGVfUGVyaW9kaWNRdWVzdENvbnRy", + "b2wSIwoEbGlzdBgBIAMoCzIVLlBlcmlvZGljUXVlc3RDb250cm9sQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PeriodicQuestControlReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PeriodicQuestControl), global::Nova.Client.table_PeriodicQuestControl.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PeriodicQuestControl : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PeriodicQuestControl()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePeriodicQuestControlReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuestControl() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuestControl(table_PeriodicQuestControl other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuestControl Clone() { + return new table_PeriodicQuestControl(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PeriodicQuestControl.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PeriodicQuestControl); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PeriodicQuestControl other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PeriodicQuestControl other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePeriodicQuestGroup.cs b/NTR.Common/protos/TablePeriodicQuestGroup.cs new file mode 100644 index 0000000..853e2f2 --- /dev/null +++ b/NTR.Common/protos/TablePeriodicQuestGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PeriodicQuestGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PeriodicQuestGroup.proto + public static partial class TablePeriodicQuestGroupReflection { + + #region Descriptor + /// File descriptor for table_PeriodicQuestGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePeriodicQuestGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9QZXJpb2RpY1F1ZXN0R3JvdXAucHJvdG8aGFBlcmlvZGljUXVl", + "c3RHcm91cC5wcm90byI9Chh0YWJsZV9QZXJpb2RpY1F1ZXN0R3JvdXASIQoE", + "bGlzdBgBIAMoCzITLlBlcmlvZGljUXVlc3RHcm91cEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PeriodicQuestGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PeriodicQuestGroup), global::Nova.Client.table_PeriodicQuestGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PeriodicQuestGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PeriodicQuestGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePeriodicQuestGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuestGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuestGroup(table_PeriodicQuestGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PeriodicQuestGroup Clone() { + return new table_PeriodicQuestGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PeriodicQuestGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PeriodicQuestGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PeriodicQuestGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PeriodicQuestGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePerk.cs b/NTR.Common/protos/TablePerk.cs new file mode 100644 index 0000000..ce2f2bd --- /dev/null +++ b/NTR.Common/protos/TablePerk.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Perk.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Perk.proto + public static partial class TablePerkReflection { + + #region Descriptor + /// File descriptor for table_Perk.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePerkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9QZXJrLnByb3RvGgpQZXJrLnByb3RvIiEKCnRhYmxlX1BlcmsS", + "EwoEbGlzdBgBIAMoCzIFLlBlcmtCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PerkReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Perk), global::Nova.Client.table_Perk.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Perk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Perk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePerkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Perk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Perk(table_Perk other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Perk Clone() { + return new table_Perk(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Perk.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Perk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Perk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Perk other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePerkPassiveSkill.cs b/NTR.Common/protos/TablePerkPassiveSkill.cs new file mode 100644 index 0000000..d43b395 --- /dev/null +++ b/NTR.Common/protos/TablePerkPassiveSkill.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PerkPassiveSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PerkPassiveSkill.proto + public static partial class TablePerkPassiveSkillReflection { + + #region Descriptor + /// File descriptor for table_PerkPassiveSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePerkPassiveSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9QZXJrUGFzc2l2ZVNraWxsLnByb3RvGhZQZXJrUGFzc2l2ZVNr", + "aWxsLnByb3RvIjkKFnRhYmxlX1BlcmtQYXNzaXZlU2tpbGwSHwoEbGlzdBgB", + "IAMoCzIRLlBlcmtQYXNzaXZlU2tpbGxCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PerkPassiveSkillReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PerkPassiveSkill), global::Nova.Client.table_PerkPassiveSkill.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PerkPassiveSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PerkPassiveSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePerkPassiveSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PerkPassiveSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PerkPassiveSkill(table_PerkPassiveSkill other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PerkPassiveSkill Clone() { + return new table_PerkPassiveSkill(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PerkPassiveSkill.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PerkPassiveSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PerkPassiveSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PerkPassiveSkill other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePlayerHead.cs b/NTR.Common/protos/TablePlayerHead.cs new file mode 100644 index 0000000..f72d1eb --- /dev/null +++ b/NTR.Common/protos/TablePlayerHead.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PlayerHead.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PlayerHead.proto + public static partial class TablePlayerHeadReflection { + + #region Descriptor + /// File descriptor for table_PlayerHead.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePlayerHeadReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9QbGF5ZXJIZWFkLnByb3RvGhBQbGF5ZXJIZWFkLnByb3RvIi0K", + "EHRhYmxlX1BsYXllckhlYWQSGQoEbGlzdBgBIAMoCzILLlBsYXllckhlYWRC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PlayerHeadReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PlayerHead), global::Nova.Client.table_PlayerHead.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PlayerHead : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PlayerHead()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePlayerHeadReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PlayerHead() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PlayerHead(table_PlayerHead other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PlayerHead Clone() { + return new table_PlayerHead(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PlayerHead.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PlayerHead); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PlayerHead other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PlayerHead other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePlot.cs b/NTR.Common/protos/TablePlot.cs new file mode 100644 index 0000000..27f5923 --- /dev/null +++ b/NTR.Common/protos/TablePlot.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Plot.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Plot.proto + public static partial class TablePlotReflection { + + #region Descriptor + /// File descriptor for table_Plot.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePlotReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9QbG90LnByb3RvGgpQbG90LnByb3RvIiEKCnRhYmxlX1Bsb3QS", + "EwoEbGlzdBgBIAMoCzIFLlBsb3RCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PlotReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Plot), global::Nova.Client.table_Plot.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Plot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Plot()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePlotReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Plot() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Plot(table_Plot other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Plot Clone() { + return new table_Plot(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Plot.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Plot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Plot other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Plot other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePotential.cs b/NTR.Common/protos/TablePotential.cs new file mode 100644 index 0000000..434c50e --- /dev/null +++ b/NTR.Common/protos/TablePotential.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Potential.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Potential.proto + public static partial class TablePotentialReflection { + + #region Descriptor + /// File descriptor for table_Potential.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePotentialReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9Qb3RlbnRpYWwucHJvdG8aD1BvdGVudGlhbC5wcm90byIrCg90", + "YWJsZV9Qb3RlbnRpYWwSGAoEbGlzdBgBIAMoCzIKLlBvdGVudGlhbEIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PotentialReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Potential), global::Nova.Client.table_Potential.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Potential : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Potential()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePotentialReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Potential() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Potential(table_Potential other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Potential Clone() { + return new table_Potential(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Potential.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Potential); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Potential other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Potential other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePotentialPassiveSkill.cs b/NTR.Common/protos/TablePotentialPassiveSkill.cs new file mode 100644 index 0000000..be7d16e --- /dev/null +++ b/NTR.Common/protos/TablePotentialPassiveSkill.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PotentialPassiveSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PotentialPassiveSkill.proto + public static partial class TablePotentialPassiveSkillReflection { + + #region Descriptor + /// File descriptor for table_PotentialPassiveSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePotentialPassiveSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9Qb3RlbnRpYWxQYXNzaXZlU2tpbGwucHJvdG8aG1BvdGVudGlh", + "bFBhc3NpdmVTa2lsbC5wcm90byJDCht0YWJsZV9Qb3RlbnRpYWxQYXNzaXZl", + "U2tpbGwSJAoEbGlzdBgBIAMoCzIWLlBvdGVudGlhbFBhc3NpdmVTa2lsbEIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PotentialPassiveSkillReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PotentialPassiveSkill), global::Nova.Client.table_PotentialPassiveSkill.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PotentialPassiveSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PotentialPassiveSkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePotentialPassiveSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PotentialPassiveSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PotentialPassiveSkill(table_PotentialPassiveSkill other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PotentialPassiveSkill Clone() { + return new table_PotentialPassiveSkill(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PotentialPassiveSkill.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PotentialPassiveSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PotentialPassiveSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PotentialPassiveSkill other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePreviewMonsterGroup.cs b/NTR.Common/protos/TablePreviewMonsterGroup.cs new file mode 100644 index 0000000..03c9b39 --- /dev/null +++ b/NTR.Common/protos/TablePreviewMonsterGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PreviewMonsterGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PreviewMonsterGroup.proto + public static partial class TablePreviewMonsterGroupReflection { + + #region Descriptor + /// File descriptor for table_PreviewMonsterGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePreviewMonsterGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9QcmV2aWV3TW9uc3Rlckdyb3VwLnByb3RvGhlQcmV2aWV3TW9u", + "c3Rlckdyb3VwLnByb3RvIj8KGXRhYmxlX1ByZXZpZXdNb25zdGVyR3JvdXAS", + "IgoEbGlzdBgBIAMoCzIULlByZXZpZXdNb25zdGVyR3JvdXBCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PreviewMonsterGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PreviewMonsterGroup), global::Nova.Client.table_PreviewMonsterGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PreviewMonsterGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PreviewMonsterGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePreviewMonsterGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PreviewMonsterGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PreviewMonsterGroup(table_PreviewMonsterGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PreviewMonsterGroup Clone() { + return new table_PreviewMonsterGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PreviewMonsterGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PreviewMonsterGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PreviewMonsterGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PreviewMonsterGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TablePreviewMonsterList.cs b/NTR.Common/protos/TablePreviewMonsterList.cs new file mode 100644 index 0000000..337e952 --- /dev/null +++ b/NTR.Common/protos/TablePreviewMonsterList.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_PreviewMonsterList.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_PreviewMonsterList.proto + public static partial class TablePreviewMonsterListReflection { + + #region Descriptor + /// File descriptor for table_PreviewMonsterList.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TablePreviewMonsterListReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9QcmV2aWV3TW9uc3Rlckxpc3QucHJvdG8aGFByZXZpZXdNb25z", + "dGVyTGlzdC5wcm90byI9Chh0YWJsZV9QcmV2aWV3TW9uc3Rlckxpc3QSIQoE", + "bGlzdBgBIAMoCzITLlByZXZpZXdNb25zdGVyTGlzdEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.PreviewMonsterListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_PreviewMonsterList), global::Nova.Client.table_PreviewMonsterList.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_PreviewMonsterList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_PreviewMonsterList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TablePreviewMonsterListReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PreviewMonsterList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PreviewMonsterList(table_PreviewMonsterList other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_PreviewMonsterList Clone() { + return new table_PreviewMonsterList(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.PreviewMonsterList.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_PreviewMonsterList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_PreviewMonsterList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_PreviewMonsterList other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableProduction.cs b/NTR.Common/protos/TableProduction.cs new file mode 100644 index 0000000..a44eb71 --- /dev/null +++ b/NTR.Common/protos/TableProduction.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Production.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Production.proto + public static partial class TableProductionReflection { + + #region Descriptor + /// File descriptor for table_Production.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableProductionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9Qcm9kdWN0aW9uLnByb3RvGhBQcm9kdWN0aW9uLnByb3RvIi0K", + "EHRhYmxlX1Byb2R1Y3Rpb24SGQoEbGlzdBgBIAMoCzILLlByb2R1Y3Rpb25C", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ProductionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Production), global::Nova.Client.table_Production.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Production : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Production()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableProductionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Production() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Production(table_Production other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Production Clone() { + return new table_Production(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Production.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Production); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Production other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Production other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableProductionType.cs b/NTR.Common/protos/TableProductionType.cs new file mode 100644 index 0000000..21a32d3 --- /dev/null +++ b/NTR.Common/protos/TableProductionType.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ProductionType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ProductionType.proto + public static partial class TableProductionTypeReflection { + + #region Descriptor + /// File descriptor for table_ProductionType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableProductionTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9Qcm9kdWN0aW9uVHlwZS5wcm90bxoUUHJvZHVjdGlvblR5cGUu", + "cHJvdG8iNQoUdGFibGVfUHJvZHVjdGlvblR5cGUSHQoEbGlzdBgBIAMoCzIP", + "LlByb2R1Y3Rpb25UeXBlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ProductionTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ProductionType), global::Nova.Client.table_ProductionType.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ProductionType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ProductionType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableProductionTypeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ProductionType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ProductionType(table_ProductionType other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ProductionType Clone() { + return new table_ProductionType(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ProductionType.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ProductionType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ProductionType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ProductionType other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableRandomLevelMonster.cs b/NTR.Common/protos/TableRandomLevelMonster.cs new file mode 100644 index 0000000..5edaf12 --- /dev/null +++ b/NTR.Common/protos/TableRandomLevelMonster.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_RandomLevelMonster.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_RandomLevelMonster.proto + public static partial class TableRandomLevelMonsterReflection { + + #region Descriptor + /// File descriptor for table_RandomLevelMonster.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableRandomLevelMonsterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9SYW5kb21MZXZlbE1vbnN0ZXIucHJvdG8aGFJhbmRvbUxldmVs", + "TW9uc3Rlci5wcm90byI9Chh0YWJsZV9SYW5kb21MZXZlbE1vbnN0ZXISIQoE", + "bGlzdBgBIAMoCzITLlJhbmRvbUxldmVsTW9uc3RlckIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RandomLevelMonsterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_RandomLevelMonster), global::Nova.Client.table_RandomLevelMonster.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_RandomLevelMonster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_RandomLevelMonster()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableRandomLevelMonsterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RandomLevelMonster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RandomLevelMonster(table_RandomLevelMonster other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RandomLevelMonster Clone() { + return new table_RandomLevelMonster(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.RandomLevelMonster.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_RandomLevelMonster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_RandomLevelMonster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_RandomLevelMonster other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableRank.cs b/NTR.Common/protos/TableRank.cs new file mode 100644 index 0000000..a5dd561 --- /dev/null +++ b/NTR.Common/protos/TableRank.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Rank.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Rank.proto + public static partial class TableRankReflection { + + #region Descriptor + /// File descriptor for table_Rank.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableRankReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9SYW5rLnByb3RvGgpSYW5rLnByb3RvIiEKCnRhYmxlX1JhbmsS", + "EwoEbGlzdBgBIAMoCzIFLlJhbmtCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RankReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Rank), global::Nova.Client.table_Rank.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Rank : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Rank()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableRankReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Rank() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Rank(table_Rank other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Rank Clone() { + return new table_Rank(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Rank.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Rank); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Rank other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Rank other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableRegionBoss.cs b/NTR.Common/protos/TableRegionBoss.cs new file mode 100644 index 0000000..21a89c1 --- /dev/null +++ b/NTR.Common/protos/TableRegionBoss.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_RegionBoss.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_RegionBoss.proto + public static partial class TableRegionBossReflection { + + #region Descriptor + /// File descriptor for table_RegionBoss.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableRegionBossReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9SZWdpb25Cb3NzLnByb3RvGhBSZWdpb25Cb3NzLnByb3RvIi0K", + "EHRhYmxlX1JlZ2lvbkJvc3MSGQoEbGlzdBgBIAMoCzILLlJlZ2lvbkJvc3NC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RegionBossReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_RegionBoss), global::Nova.Client.table_RegionBoss.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_RegionBoss : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_RegionBoss()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableRegionBossReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBoss() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBoss(table_RegionBoss other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBoss Clone() { + return new table_RegionBoss(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.RegionBoss.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_RegionBoss); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_RegionBoss other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_RegionBoss other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableRegionBossAffix.cs b/NTR.Common/protos/TableRegionBossAffix.cs new file mode 100644 index 0000000..3fa4a06 --- /dev/null +++ b/NTR.Common/protos/TableRegionBossAffix.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_RegionBossAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_RegionBossAffix.proto + public static partial class TableRegionBossAffixReflection { + + #region Descriptor + /// File descriptor for table_RegionBossAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableRegionBossAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9SZWdpb25Cb3NzQWZmaXgucHJvdG8aFVJlZ2lvbkJvc3NBZmZp", + "eC5wcm90byI3ChV0YWJsZV9SZWdpb25Cb3NzQWZmaXgSHgoEbGlzdBgBIAMo", + "CzIQLlJlZ2lvbkJvc3NBZmZpeEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RegionBossAffixReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_RegionBossAffix), global::Nova.Client.table_RegionBossAffix.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_RegionBossAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_RegionBossAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableRegionBossAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossAffix(table_RegionBossAffix other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossAffix Clone() { + return new table_RegionBossAffix(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.RegionBossAffix.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_RegionBossAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_RegionBossAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_RegionBossAffix other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableRegionBossFloor.cs b/NTR.Common/protos/TableRegionBossFloor.cs new file mode 100644 index 0000000..593a13a --- /dev/null +++ b/NTR.Common/protos/TableRegionBossFloor.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_RegionBossFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_RegionBossFloor.proto + public static partial class TableRegionBossFloorReflection { + + #region Descriptor + /// File descriptor for table_RegionBossFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableRegionBossFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9SZWdpb25Cb3NzRmxvb3IucHJvdG8aFVJlZ2lvbkJvc3NGbG9v", + "ci5wcm90byI3ChV0YWJsZV9SZWdpb25Cb3NzRmxvb3ISHgoEbGlzdBgBIAMo", + "CzIQLlJlZ2lvbkJvc3NGbG9vckIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RegionBossFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_RegionBossFloor), global::Nova.Client.table_RegionBossFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_RegionBossFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_RegionBossFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableRegionBossFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossFloor(table_RegionBossFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossFloor Clone() { + return new table_RegionBossFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.RegionBossFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_RegionBossFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_RegionBossFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_RegionBossFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableRegionBossLevel.cs b/NTR.Common/protos/TableRegionBossLevel.cs new file mode 100644 index 0000000..93b086d --- /dev/null +++ b/NTR.Common/protos/TableRegionBossLevel.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_RegionBossLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_RegionBossLevel.proto + public static partial class TableRegionBossLevelReflection { + + #region Descriptor + /// File descriptor for table_RegionBossLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableRegionBossLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9SZWdpb25Cb3NzTGV2ZWwucHJvdG8aFVJlZ2lvbkJvc3NMZXZl", + "bC5wcm90byI3ChV0YWJsZV9SZWdpb25Cb3NzTGV2ZWwSHgoEbGlzdBgBIAMo", + "CzIQLlJlZ2lvbkJvc3NMZXZlbEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.RegionBossLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_RegionBossLevel), global::Nova.Client.table_RegionBossLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_RegionBossLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_RegionBossLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableRegionBossLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossLevel(table_RegionBossLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_RegionBossLevel Clone() { + return new table_RegionBossLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.RegionBossLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_RegionBossLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_RegionBossLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_RegionBossLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableResidentGoods.cs b/NTR.Common/protos/TableResidentGoods.cs new file mode 100644 index 0000000..4cc1d40 --- /dev/null +++ b/NTR.Common/protos/TableResidentGoods.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ResidentGoods.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ResidentGoods.proto + public static partial class TableResidentGoodsReflection { + + #region Descriptor + /// File descriptor for table_ResidentGoods.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableResidentGoodsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9SZXNpZGVudEdvb2RzLnByb3RvGhNSZXNpZGVudEdvb2RzLnBy", + "b3RvIjMKE3RhYmxlX1Jlc2lkZW50R29vZHMSHAoEbGlzdBgBIAMoCzIOLlJl", + "c2lkZW50R29vZHNCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ResidentGoodsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ResidentGoods), global::Nova.Client.table_ResidentGoods.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ResidentGoods : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ResidentGoods()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableResidentGoodsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ResidentGoods() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ResidentGoods(table_ResidentGoods other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ResidentGoods Clone() { + return new table_ResidentGoods(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ResidentGoods.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ResidentGoods); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ResidentGoods other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ResidentGoods other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableResidentShop.cs b/NTR.Common/protos/TableResidentShop.cs new file mode 100644 index 0000000..16f5e0d --- /dev/null +++ b/NTR.Common/protos/TableResidentShop.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ResidentShop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ResidentShop.proto + public static partial class TableResidentShopReflection { + + #region Descriptor + /// File descriptor for table_ResidentShop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableResidentShopReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9SZXNpZGVudFNob3AucHJvdG8aElJlc2lkZW50U2hvcC5wcm90", + "byIxChJ0YWJsZV9SZXNpZGVudFNob3ASGwoEbGlzdBgBIAMoCzINLlJlc2lk", + "ZW50U2hvcEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ResidentShopReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ResidentShop), global::Nova.Client.table_ResidentShop.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ResidentShop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ResidentShop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableResidentShopReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ResidentShop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ResidentShop(table_ResidentShop other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ResidentShop Clone() { + return new table_ResidentShop(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ResidentShop.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ResidentShop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ResidentShop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ResidentShop other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableScriptParameter.cs b/NTR.Common/protos/TableScriptParameter.cs new file mode 100644 index 0000000..14f6093 --- /dev/null +++ b/NTR.Common/protos/TableScriptParameter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ScriptParameter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ScriptParameter.proto + public static partial class TableScriptParameterReflection { + + #region Descriptor + /// File descriptor for table_ScriptParameter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableScriptParameterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9TY3JpcHRQYXJhbWV0ZXIucHJvdG8aFVNjcmlwdFBhcmFtZXRl", + "ci5wcm90byI3ChV0YWJsZV9TY3JpcHRQYXJhbWV0ZXISHgoEbGlzdBgBIAMo", + "CzIQLlNjcmlwdFBhcmFtZXRlckIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ScriptParameterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ScriptParameter), global::Nova.Client.table_ScriptParameter.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ScriptParameter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ScriptParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableScriptParameterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ScriptParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ScriptParameter(table_ScriptParameter other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ScriptParameter Clone() { + return new table_ScriptParameter(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ScriptParameter.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ScriptParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ScriptParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ScriptParameter other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableScriptParameterValue.cs b/NTR.Common/protos/TableScriptParameterValue.cs new file mode 100644 index 0000000..f2e6684 --- /dev/null +++ b/NTR.Common/protos/TableScriptParameterValue.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ScriptParameterValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ScriptParameterValue.proto + public static partial class TableScriptParameterValueReflection { + + #region Descriptor + /// File descriptor for table_ScriptParameterValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableScriptParameterValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TY3JpcHRQYXJhbWV0ZXJWYWx1ZS5wcm90bxoaU2NyaXB0UGFy", + "YW1ldGVyVmFsdWUucHJvdG8iQQoadGFibGVfU2NyaXB0UGFyYW1ldGVyVmFs", + "dWUSIwoEbGlzdBgBIAMoCzIVLlNjcmlwdFBhcmFtZXRlclZhbHVlQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ScriptParameterValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ScriptParameterValue), global::Nova.Client.table_ScriptParameterValue.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ScriptParameterValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ScriptParameterValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableScriptParameterValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ScriptParameterValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ScriptParameterValue(table_ScriptParameterValue other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ScriptParameterValue Clone() { + return new table_ScriptParameterValue(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ScriptParameterValue.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ScriptParameterValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ScriptParameterValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ScriptParameterValue other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableShield.cs b/NTR.Common/protos/TableShield.cs new file mode 100644 index 0000000..13c3462 --- /dev/null +++ b/NTR.Common/protos/TableShield.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Shield.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Shield.proto + public static partial class TableShieldReflection { + + #region Descriptor + /// File descriptor for table_Shield.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableShieldReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9TaGllbGQucHJvdG8aDFNoaWVsZC5wcm90byIlCgx0YWJsZV9T", + "aGllbGQSFQoEbGlzdBgBIAMoCzIHLlNoaWVsZEIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ShieldReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Shield), global::Nova.Client.table_Shield.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Shield : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Shield()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableShieldReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Shield() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Shield(table_Shield other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Shield Clone() { + return new table_Shield(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Shield.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Shield); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Shield other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Shield other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableShieldValue.cs b/NTR.Common/protos/TableShieldValue.cs new file mode 100644 index 0000000..e65a669 --- /dev/null +++ b/NTR.Common/protos/TableShieldValue.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_ShieldValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_ShieldValue.proto + public static partial class TableShieldValueReflection { + + #region Descriptor + /// File descriptor for table_ShieldValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableShieldValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9TaGllbGRWYWx1ZS5wcm90bxoRU2hpZWxkVmFsdWUucHJvdG8i", + "LwoRdGFibGVfU2hpZWxkVmFsdWUSGgoEbGlzdBgBIAMoCzIMLlNoaWVsZFZh", + "bHVlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.ShieldValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_ShieldValue), global::Nova.Client.table_ShieldValue.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_ShieldValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_ShieldValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableShieldValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ShieldValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ShieldValue(table_ShieldValue other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_ShieldValue Clone() { + return new table_ShieldValue(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.ShieldValue.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_ShieldValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_ShieldValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_ShieldValue other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableSignIn.cs b/NTR.Common/protos/TableSignIn.cs new file mode 100644 index 0000000..8347cb7 --- /dev/null +++ b/NTR.Common/protos/TableSignIn.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_SignIn.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_SignIn.proto + public static partial class TableSignInReflection { + + #region Descriptor + /// File descriptor for table_SignIn.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableSignInReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9TaWduSW4ucHJvdG8aDFNpZ25Jbi5wcm90byIlCgx0YWJsZV9T", + "aWduSW4SFQoEbGlzdBgBIAMoCzIHLlNpZ25JbkIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.SignInReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_SignIn), global::Nova.Client.table_SignIn.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_SignIn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_SignIn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableSignInReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_SignIn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_SignIn(table_SignIn other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_SignIn Clone() { + return new table_SignIn(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.SignIn.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_SignIn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_SignIn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_SignIn other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableSkill.cs b/NTR.Common/protos/TableSkill.cs new file mode 100644 index 0000000..d5503f8 --- /dev/null +++ b/NTR.Common/protos/TableSkill.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Skill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Skill.proto + public static partial class TableSkillReflection { + + #region Descriptor + /// File descriptor for table_Skill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9Ta2lsbC5wcm90bxoLU2tpbGwucHJvdG8iIwoLdGFibGVfU2tp", + "bGwSFAoEbGlzdBgBIAMoCzIGLlNraWxsQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.SkillReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Skill), global::Nova.Client.table_Skill.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Skill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Skill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableSkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Skill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Skill(table_Skill other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Skill Clone() { + return new table_Skill(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Skill.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Skill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Skill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Skill other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableSkillDamage.cs b/NTR.Common/protos/TableSkillDamage.cs new file mode 100644 index 0000000..c259d0b --- /dev/null +++ b/NTR.Common/protos/TableSkillDamage.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_SkillDamage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_SkillDamage.proto + public static partial class TableSkillDamageReflection { + + #region Descriptor + /// File descriptor for table_SkillDamage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableSkillDamageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9Ta2lsbERhbWFnZS5wcm90bxoRU2tpbGxEYW1hZ2UucHJvdG8i", + "LwoRdGFibGVfU2tpbGxEYW1hZ2USGgoEbGlzdBgBIAMoCzIMLlNraWxsRGFt", + "YWdlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.SkillDamageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_SkillDamage), global::Nova.Client.table_SkillDamage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_SkillDamage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_SkillDamage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableSkillDamageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_SkillDamage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_SkillDamage(table_SkillDamage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_SkillDamage Clone() { + return new table_SkillDamage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.SkillDamage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_SkillDamage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_SkillDamage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_SkillDamage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTower.cs b/NTR.Common/protos/TableStarTower.cs new file mode 100644 index 0000000..ea2c856 --- /dev/null +++ b/NTR.Common/protos/TableStarTower.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTower.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTower.proto + public static partial class TableStarTowerReflection { + + #region Descriptor + /// File descriptor for table_StarTower.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9TdGFyVG93ZXIucHJvdG8aD1N0YXJUb3dlci5wcm90byIrCg90", + "YWJsZV9TdGFyVG93ZXISGAoEbGlzdBgBIAMoCzIKLlN0YXJUb3dlckIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTower), global::Nova.Client.table_StarTower.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTower : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTower()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTower() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTower(table_StarTower other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTower Clone() { + return new table_StarTower(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTower.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTower); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTower other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTower other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBattleThreshold.cs b/NTR.Common/protos/TableStarTowerBattleThreshold.cs new file mode 100644 index 0000000..a7e9801 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBattleThreshold.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBattleThreshold.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBattleThreshold.proto + public static partial class TableStarTowerBattleThresholdReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBattleThreshold.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBattleThresholdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0YWJsZV9TdGFyVG93ZXJCYXR0bGVUaHJlc2hvbGQucHJvdG8aHlN0YXJU", + "b3dlckJhdHRsZVRocmVzaG9sZC5wcm90byJJCh50YWJsZV9TdGFyVG93ZXJC", + "YXR0bGVUaHJlc2hvbGQSJwoEbGlzdBgBIAMoCzIZLlN0YXJUb3dlckJhdHRs", + "ZVRocmVzaG9sZEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBattleThresholdReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBattleThreshold), global::Nova.Client.table_StarTowerBattleThreshold.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBattleThreshold : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBattleThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBattleThresholdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBattleThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBattleThreshold(table_StarTowerBattleThreshold other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBattleThreshold Clone() { + return new table_StarTowerBattleThreshold(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBattleThreshold.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBattleThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBattleThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBattleThreshold other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBookEntrance.cs b/NTR.Common/protos/TableStarTowerBookEntrance.cs new file mode 100644 index 0000000..1da240c --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBookEntrance.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBookEntrance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBookEntrance.proto + public static partial class TableStarTowerBookEntranceReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBookEntrance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBookEntranceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9TdGFyVG93ZXJCb29rRW50cmFuY2UucHJvdG8aG1N0YXJUb3dl", + "ckJvb2tFbnRyYW5jZS5wcm90byJDCht0YWJsZV9TdGFyVG93ZXJCb29rRW50", + "cmFuY2USJAoEbGlzdBgBIAMoCzIWLlN0YXJUb3dlckJvb2tFbnRyYW5jZUIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBookEntranceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBookEntrance), global::Nova.Client.table_StarTowerBookEntrance.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBookEntrance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBookEntrance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBookEntranceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookEntrance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookEntrance(table_StarTowerBookEntrance other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookEntrance Clone() { + return new table_StarTowerBookEntrance(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBookEntrance.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBookEntrance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBookEntrance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBookEntrance other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBookEventReward.cs b/NTR.Common/protos/TableStarTowerBookEventReward.cs new file mode 100644 index 0000000..8bfb923 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBookEventReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBookEventReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBookEventReward.proto + public static partial class TableStarTowerBookEventRewardReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBookEventReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBookEventRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0YWJsZV9TdGFyVG93ZXJCb29rRXZlbnRSZXdhcmQucHJvdG8aHlN0YXJU", + "b3dlckJvb2tFdmVudFJld2FyZC5wcm90byJJCh50YWJsZV9TdGFyVG93ZXJC", + "b29rRXZlbnRSZXdhcmQSJwoEbGlzdBgBIAMoCzIZLlN0YXJUb3dlckJvb2tF", + "dmVudFJld2FyZEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBookEventRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBookEventReward), global::Nova.Client.table_StarTowerBookEventReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBookEventReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBookEventReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBookEventRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookEventReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookEventReward(table_StarTowerBookEventReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookEventReward Clone() { + return new table_StarTowerBookEventReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBookEventReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBookEventReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBookEventReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBookEventReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBookFateCard.cs b/NTR.Common/protos/TableStarTowerBookFateCard.cs new file mode 100644 index 0000000..694fb02 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBookFateCard.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBookFateCard.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBookFateCard.proto + public static partial class TableStarTowerBookFateCardReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBookFateCard.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBookFateCardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9TdGFyVG93ZXJCb29rRmF0ZUNhcmQucHJvdG8aG1N0YXJUb3dl", + "ckJvb2tGYXRlQ2FyZC5wcm90byJDCht0YWJsZV9TdGFyVG93ZXJCb29rRmF0", + "ZUNhcmQSJAoEbGlzdBgBIAMoCzIWLlN0YXJUb3dlckJvb2tGYXRlQ2FyZEIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBookFateCardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBookFateCard), global::Nova.Client.table_StarTowerBookFateCard.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBookFateCard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBookFateCard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBookFateCardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCard(table_StarTowerBookFateCard other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCard Clone() { + return new table_StarTowerBookFateCard(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBookFateCard.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBookFateCard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBookFateCard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBookFateCard other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBookFateCardBundle.cs b/NTR.Common/protos/TableStarTowerBookFateCardBundle.cs new file mode 100644 index 0000000..8a3cd85 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBookFateCardBundle.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBookFateCardBundle.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBookFateCardBundle.proto + public static partial class TableStarTowerBookFateCardBundleReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBookFateCardBundle.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBookFateCardBundleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cid0YWJsZV9TdGFyVG93ZXJCb29rRmF0ZUNhcmRCdW5kbGUucHJvdG8aIVN0", + "YXJUb3dlckJvb2tGYXRlQ2FyZEJ1bmRsZS5wcm90byJPCiF0YWJsZV9TdGFy", + "VG93ZXJCb29rRmF0ZUNhcmRCdW5kbGUSKgoEbGlzdBgBIAMoCzIcLlN0YXJU", + "b3dlckJvb2tGYXRlQ2FyZEJ1bmRsZUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBookFateCardBundleReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBookFateCardBundle), global::Nova.Client.table_StarTowerBookFateCardBundle.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBookFateCardBundle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBookFateCardBundle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBookFateCardBundleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCardBundle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCardBundle(table_StarTowerBookFateCardBundle other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCardBundle Clone() { + return new table_StarTowerBookFateCardBundle(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBookFateCardBundle.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBookFateCardBundle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBookFateCardBundle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBookFateCardBundle other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBookFateCardQuest.cs b/NTR.Common/protos/TableStarTowerBookFateCardQuest.cs new file mode 100644 index 0000000..ebf5d56 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBookFateCardQuest.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBookFateCardQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBookFateCardQuest.proto + public static partial class TableStarTowerBookFateCardQuestReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBookFateCardQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBookFateCardQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0YWJsZV9TdGFyVG93ZXJCb29rRmF0ZUNhcmRRdWVzdC5wcm90bxogU3Rh", + "clRvd2VyQm9va0ZhdGVDYXJkUXVlc3QucHJvdG8iTQogdGFibGVfU3RhclRv", + "d2VyQm9va0ZhdGVDYXJkUXVlc3QSKQoEbGlzdBgBIAMoCzIbLlN0YXJUb3dl", + "ckJvb2tGYXRlQ2FyZFF1ZXN0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBookFateCardQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBookFateCardQuest), global::Nova.Client.table_StarTowerBookFateCardQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBookFateCardQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBookFateCardQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBookFateCardQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCardQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCardQuest(table_StarTowerBookFateCardQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookFateCardQuest Clone() { + return new table_StarTowerBookFateCardQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBookFateCardQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBookFateCardQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBookFateCardQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBookFateCardQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBookPotentialReward.cs b/NTR.Common/protos/TableStarTowerBookPotentialReward.cs new file mode 100644 index 0000000..4a5bb85 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBookPotentialReward.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBookPotentialReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBookPotentialReward.proto + public static partial class TableStarTowerBookPotentialRewardReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBookPotentialReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBookPotentialRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cih0YWJsZV9TdGFyVG93ZXJCb29rUG90ZW50aWFsUmV3YXJkLnByb3RvGiJT", + "dGFyVG93ZXJCb29rUG90ZW50aWFsUmV3YXJkLnByb3RvIlEKInRhYmxlX1N0", + "YXJUb3dlckJvb2tQb3RlbnRpYWxSZXdhcmQSKwoEbGlzdBgBIAMoCzIdLlN0", + "YXJUb3dlckJvb2tQb3RlbnRpYWxSZXdhcmRCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBookPotentialRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBookPotentialReward), global::Nova.Client.table_StarTowerBookPotentialReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBookPotentialReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBookPotentialReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBookPotentialRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookPotentialReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookPotentialReward(table_StarTowerBookPotentialReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBookPotentialReward Clone() { + return new table_StarTowerBookPotentialReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBookPotentialReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBookPotentialReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBookPotentialReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBookPotentialReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerBuildRank.cs b/NTR.Common/protos/TableStarTowerBuildRank.cs new file mode 100644 index 0000000..2f01bab --- /dev/null +++ b/NTR.Common/protos/TableStarTowerBuildRank.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerBuildRank.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerBuildRank.proto + public static partial class TableStarTowerBuildRankReflection { + + #region Descriptor + /// File descriptor for table_StarTowerBuildRank.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerBuildRankReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9TdGFyVG93ZXJCdWlsZFJhbmsucHJvdG8aGFN0YXJUb3dlckJ1", + "aWxkUmFuay5wcm90byI9Chh0YWJsZV9TdGFyVG93ZXJCdWlsZFJhbmsSIQoE", + "bGlzdBgBIAMoCzITLlN0YXJUb3dlckJ1aWxkUmFua0IOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerBuildRankReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerBuildRank), global::Nova.Client.table_StarTowerBuildRank.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerBuildRank : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerBuildRank()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerBuildRankReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBuildRank() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBuildRank(table_StarTowerBuildRank other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerBuildRank Clone() { + return new table_StarTowerBuildRank(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerBuildRank.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerBuildRank); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerBuildRank other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerBuildRank other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerCombatEvent.cs b/NTR.Common/protos/TableStarTowerCombatEvent.cs new file mode 100644 index 0000000..3235cc7 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerCombatEvent.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerCombatEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerCombatEvent.proto + public static partial class TableStarTowerCombatEventReflection { + + #region Descriptor + /// File descriptor for table_StarTowerCombatEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerCombatEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TdGFyVG93ZXJDb21iYXRFdmVudC5wcm90bxoaU3RhclRvd2Vy", + "Q29tYmF0RXZlbnQucHJvdG8iQQoadGFibGVfU3RhclRvd2VyQ29tYmF0RXZl", + "bnQSIwoEbGlzdBgBIAMoCzIVLlN0YXJUb3dlckNvbWJhdEV2ZW50Qg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerCombatEventReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerCombatEvent), global::Nova.Client.table_StarTowerCombatEvent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerCombatEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerCombatEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerCombatEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerCombatEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerCombatEvent(table_StarTowerCombatEvent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerCombatEvent Clone() { + return new table_StarTowerCombatEvent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerCombatEvent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerCombatEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerCombatEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerCombatEvent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerCombo.cs b/NTR.Common/protos/TableStarTowerCombo.cs new file mode 100644 index 0000000..db295be --- /dev/null +++ b/NTR.Common/protos/TableStarTowerCombo.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerCombo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerCombo.proto + public static partial class TableStarTowerComboReflection { + + #region Descriptor + /// File descriptor for table_StarTowerCombo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerComboReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdGFyVG93ZXJDb21iby5wcm90bxoUU3RhclRvd2VyQ29tYm8u", + "cHJvdG8iNQoUdGFibGVfU3RhclRvd2VyQ29tYm8SHQoEbGlzdBgBIAMoCzIP", + "LlN0YXJUb3dlckNvbWJvQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerComboReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerCombo), global::Nova.Client.table_StarTowerCombo.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerCombo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerCombo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerComboReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerCombo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerCombo(table_StarTowerCombo other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerCombo Clone() { + return new table_StarTowerCombo(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerCombo.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerCombo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerCombo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerCombo other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerDropItem.cs b/NTR.Common/protos/TableStarTowerDropItem.cs new file mode 100644 index 0000000..2f0412a --- /dev/null +++ b/NTR.Common/protos/TableStarTowerDropItem.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerDropItem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerDropItem.proto + public static partial class TableStarTowerDropItemReflection { + + #region Descriptor + /// File descriptor for table_StarTowerDropItem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerDropItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9TdGFyVG93ZXJEcm9wSXRlbS5wcm90bxoXU3RhclRvd2VyRHJv", + "cEl0ZW0ucHJvdG8iOwoXdGFibGVfU3RhclRvd2VyRHJvcEl0ZW0SIAoEbGlz", + "dBgBIAMoCzISLlN0YXJUb3dlckRyb3BJdGVtQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerDropItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerDropItem), global::Nova.Client.table_StarTowerDropItem.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerDropItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerDropItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerDropItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerDropItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerDropItem(table_StarTowerDropItem other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerDropItem Clone() { + return new table_StarTowerDropItem(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerDropItem.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerDropItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerDropItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerDropItem other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerEnemySet.cs b/NTR.Common/protos/TableStarTowerEnemySet.cs new file mode 100644 index 0000000..0b4f233 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerEnemySet.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerEnemySet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerEnemySet.proto + public static partial class TableStarTowerEnemySetReflection { + + #region Descriptor + /// File descriptor for table_StarTowerEnemySet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerEnemySetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9TdGFyVG93ZXJFbmVteVNldC5wcm90bxoXU3RhclRvd2VyRW5l", + "bXlTZXQucHJvdG8iOwoXdGFibGVfU3RhclRvd2VyRW5lbXlTZXQSIAoEbGlz", + "dBgBIAMoCzISLlN0YXJUb3dlckVuZW15U2V0Qg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerEnemySetReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerEnemySet), global::Nova.Client.table_StarTowerEnemySet.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerEnemySet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerEnemySet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerEnemySetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEnemySet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEnemySet(table_StarTowerEnemySet other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEnemySet Clone() { + return new table_StarTowerEnemySet(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerEnemySet.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerEnemySet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerEnemySet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerEnemySet other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerEvent.cs b/NTR.Common/protos/TableStarTowerEvent.cs new file mode 100644 index 0000000..b1d1878 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerEvent.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerEvent.proto + public static partial class TableStarTowerEventReflection { + + #region Descriptor + /// File descriptor for table_StarTowerEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdGFyVG93ZXJFdmVudC5wcm90bxoUU3RhclRvd2VyRXZlbnQu", + "cHJvdG8iNQoUdGFibGVfU3RhclRvd2VyRXZlbnQSHQoEbGlzdBgBIAMoCzIP", + "LlN0YXJUb3dlckV2ZW50Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerEventReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerEvent), global::Nova.Client.table_StarTowerEvent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEvent(table_StarTowerEvent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEvent Clone() { + return new table_StarTowerEvent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerEvent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerEvent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerEventAction.cs b/NTR.Common/protos/TableStarTowerEventAction.cs new file mode 100644 index 0000000..6bc04b6 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerEventAction.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerEventAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerEventAction.proto + public static partial class TableStarTowerEventActionReflection { + + #region Descriptor + /// File descriptor for table_StarTowerEventAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerEventActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TdGFyVG93ZXJFdmVudEFjdGlvbi5wcm90bxoaU3RhclRvd2Vy", + "RXZlbnRBY3Rpb24ucHJvdG8iQQoadGFibGVfU3RhclRvd2VyRXZlbnRBY3Rp", + "b24SIwoEbGlzdBgBIAMoCzIVLlN0YXJUb3dlckV2ZW50QWN0aW9uQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerEventActionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerEventAction), global::Nova.Client.table_StarTowerEventAction.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerEventAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerEventAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerEventActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEventAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEventAction(table_StarTowerEventAction other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEventAction Clone() { + return new table_StarTowerEventAction(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerEventAction.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerEventAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerEventAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerEventAction other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerEventOptionAction.cs b/NTR.Common/protos/TableStarTowerEventOptionAction.cs new file mode 100644 index 0000000..c926e14 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerEventOptionAction.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerEventOptionAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerEventOptionAction.proto + public static partial class TableStarTowerEventOptionActionReflection { + + #region Descriptor + /// File descriptor for table_StarTowerEventOptionAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerEventOptionActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0YWJsZV9TdGFyVG93ZXJFdmVudE9wdGlvbkFjdGlvbi5wcm90bxogU3Rh", + "clRvd2VyRXZlbnRPcHRpb25BY3Rpb24ucHJvdG8iTQogdGFibGVfU3RhclRv", + "d2VyRXZlbnRPcHRpb25BY3Rpb24SKQoEbGlzdBgBIAMoCzIbLlN0YXJUb3dl", + "ckV2ZW50T3B0aW9uQWN0aW9uQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerEventOptionActionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerEventOptionAction), global::Nova.Client.table_StarTowerEventOptionAction.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerEventOptionAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerEventOptionAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerEventOptionActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEventOptionAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEventOptionAction(table_StarTowerEventOptionAction other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerEventOptionAction Clone() { + return new table_StarTowerEventOptionAction(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerEventOptionAction.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerEventOptionAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerEventOptionAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerEventOptionAction other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerFloor.cs b/NTR.Common/protos/TableStarTowerFloor.cs new file mode 100644 index 0000000..2614844 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerFloor.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerFloor.proto + public static partial class TableStarTowerFloorReflection { + + #region Descriptor + /// File descriptor for table_StarTowerFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdGFyVG93ZXJGbG9vci5wcm90bxoUU3RhclRvd2VyRmxvb3Iu", + "cHJvdG8iNQoUdGFibGVfU3RhclRvd2VyRmxvb3ISHQoEbGlzdBgBIAMoCzIP", + "LlN0YXJUb3dlckZsb29yQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerFloor), global::Nova.Client.table_StarTowerFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloor(table_StarTowerFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloor Clone() { + return new table_StarTowerFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerFloorAward.cs b/NTR.Common/protos/TableStarTowerFloorAward.cs new file mode 100644 index 0000000..f1882fc --- /dev/null +++ b/NTR.Common/protos/TableStarTowerFloorAward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerFloorAward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerFloorAward.proto + public static partial class TableStarTowerFloorAwardReflection { + + #region Descriptor + /// File descriptor for table_StarTowerFloorAward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerFloorAwardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9TdGFyVG93ZXJGbG9vckF3YXJkLnByb3RvGhlTdGFyVG93ZXJG", + "bG9vckF3YXJkLnByb3RvIj8KGXRhYmxlX1N0YXJUb3dlckZsb29yQXdhcmQS", + "IgoEbGlzdBgBIAMoCzIULlN0YXJUb3dlckZsb29yQXdhcmRCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerFloorAwardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerFloorAward), global::Nova.Client.table_StarTowerFloorAward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerFloorAward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerFloorAward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerFloorAwardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorAward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorAward(table_StarTowerFloorAward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorAward Clone() { + return new table_StarTowerFloorAward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerFloorAward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerFloorAward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerFloorAward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerFloorAward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerFloorExp.cs b/NTR.Common/protos/TableStarTowerFloorExp.cs new file mode 100644 index 0000000..dbbbdc0 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerFloorExp.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerFloorExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerFloorExp.proto + public static partial class TableStarTowerFloorExpReflection { + + #region Descriptor + /// File descriptor for table_StarTowerFloorExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerFloorExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9TdGFyVG93ZXJGbG9vckV4cC5wcm90bxoXU3RhclRvd2VyRmxv", + "b3JFeHAucHJvdG8iOwoXdGFibGVfU3RhclRvd2VyRmxvb3JFeHASIAoEbGlz", + "dBgBIAMoCzISLlN0YXJUb3dlckZsb29yRXhwQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerFloorExpReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerFloorExp), global::Nova.Client.table_StarTowerFloorExp.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerFloorExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerFloorExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerFloorExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorExp(table_StarTowerFloorExp other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorExp Clone() { + return new table_StarTowerFloorExp(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerFloorExp.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerFloorExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerFloorExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerFloorExp other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerFloorSet.cs b/NTR.Common/protos/TableStarTowerFloorSet.cs new file mode 100644 index 0000000..f227855 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerFloorSet.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerFloorSet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerFloorSet.proto + public static partial class TableStarTowerFloorSetReflection { + + #region Descriptor + /// File descriptor for table_StarTowerFloorSet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerFloorSetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9TdGFyVG93ZXJGbG9vclNldC5wcm90bxoXU3RhclRvd2VyRmxv", + "b3JTZXQucHJvdG8iOwoXdGFibGVfU3RhclRvd2VyRmxvb3JTZXQSIAoEbGlz", + "dBgBIAMoCzISLlN0YXJUb3dlckZsb29yU2V0Qg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerFloorSetReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerFloorSet), global::Nova.Client.table_StarTowerFloorSet.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerFloorSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerFloorSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerFloorSetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorSet(table_StarTowerFloorSet other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerFloorSet Clone() { + return new table_StarTowerFloorSet(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerFloorSet.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerFloorSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerFloorSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerFloorSet other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerGroup.cs b/NTR.Common/protos/TableStarTowerGroup.cs new file mode 100644 index 0000000..894cb35 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerGroup.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerGroup.proto + public static partial class TableStarTowerGroupReflection { + + #region Descriptor + /// File descriptor for table_StarTowerGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdGFyVG93ZXJHcm91cC5wcm90bxoUU3RhclRvd2VyR3JvdXAu", + "cHJvdG8iNQoUdGFibGVfU3RhclRvd2VyR3JvdXASHQoEbGlzdBgBIAMoCzIP", + "LlN0YXJUb3dlckdyb3VwQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerGroup), global::Nova.Client.table_StarTowerGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGroup(table_StarTowerGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGroup Clone() { + return new table_StarTowerGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerGrowthGroup.cs b/NTR.Common/protos/TableStarTowerGrowthGroup.cs new file mode 100644 index 0000000..a6d22a3 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerGrowthGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerGrowthGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerGrowthGroup.proto + public static partial class TableStarTowerGrowthGroupReflection { + + #region Descriptor + /// File descriptor for table_StarTowerGrowthGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerGrowthGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TdGFyVG93ZXJHcm93dGhHcm91cC5wcm90bxoaU3RhclRvd2Vy", + "R3Jvd3RoR3JvdXAucHJvdG8iQQoadGFibGVfU3RhclRvd2VyR3Jvd3RoR3Jv", + "dXASIwoEbGlzdBgBIAMoCzIVLlN0YXJUb3dlckdyb3d0aEdyb3VwQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerGrowthGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerGrowthGroup), global::Nova.Client.table_StarTowerGrowthGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerGrowthGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerGrowthGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerGrowthGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGrowthGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGrowthGroup(table_StarTowerGrowthGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGrowthGroup Clone() { + return new table_StarTowerGrowthGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerGrowthGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerGrowthGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerGrowthGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerGrowthGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerGrowthNode.cs b/NTR.Common/protos/TableStarTowerGrowthNode.cs new file mode 100644 index 0000000..5f8b514 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerGrowthNode.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerGrowthNode.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerGrowthNode.proto + public static partial class TableStarTowerGrowthNodeReflection { + + #region Descriptor + /// File descriptor for table_StarTowerGrowthNode.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerGrowthNodeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9TdGFyVG93ZXJHcm93dGhOb2RlLnByb3RvGhlTdGFyVG93ZXJH", + "cm93dGhOb2RlLnByb3RvIj8KGXRhYmxlX1N0YXJUb3dlckdyb3d0aE5vZGUS", + "IgoEbGlzdBgBIAMoCzIULlN0YXJUb3dlckdyb3d0aE5vZGVCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerGrowthNodeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerGrowthNode), global::Nova.Client.table_StarTowerGrowthNode.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerGrowthNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerGrowthNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerGrowthNodeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGrowthNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGrowthNode(table_StarTowerGrowthNode other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerGrowthNode Clone() { + return new table_StarTowerGrowthNode(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerGrowthNode.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerGrowthNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerGrowthNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerGrowthNode other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerHarmonySkill.cs b/NTR.Common/protos/TableStarTowerHarmonySkill.cs new file mode 100644 index 0000000..db598f3 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerHarmonySkill.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerHarmonySkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerHarmonySkill.proto + public static partial class TableStarTowerHarmonySkillReflection { + + #region Descriptor + /// File descriptor for table_StarTowerHarmonySkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerHarmonySkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9TdGFyVG93ZXJIYXJtb255U2tpbGwucHJvdG8aG1N0YXJUb3dl", + "ckhhcm1vbnlTa2lsbC5wcm90byJDCht0YWJsZV9TdGFyVG93ZXJIYXJtb255", + "U2tpbGwSJAoEbGlzdBgBIAMoCzIWLlN0YXJUb3dlckhhcm1vbnlTa2lsbEIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerHarmonySkillReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerHarmonySkill), global::Nova.Client.table_StarTowerHarmonySkill.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerHarmonySkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerHarmonySkill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerHarmonySkillReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerHarmonySkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerHarmonySkill(table_StarTowerHarmonySkill other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerHarmonySkill Clone() { + return new table_StarTowerHarmonySkill(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerHarmonySkill.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerHarmonySkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerHarmonySkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerHarmonySkill other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerLimitReward.cs b/NTR.Common/protos/TableStarTowerLimitReward.cs new file mode 100644 index 0000000..27fac4b --- /dev/null +++ b/NTR.Common/protos/TableStarTowerLimitReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerLimitReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerLimitReward.proto + public static partial class TableStarTowerLimitRewardReflection { + + #region Descriptor + /// File descriptor for table_StarTowerLimitReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerLimitRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TdGFyVG93ZXJMaW1pdFJld2FyZC5wcm90bxoaU3RhclRvd2Vy", + "TGltaXRSZXdhcmQucHJvdG8iQQoadGFibGVfU3RhclRvd2VyTGltaXRSZXdh", + "cmQSIwoEbGlzdBgBIAMoCzIVLlN0YXJUb3dlckxpbWl0UmV3YXJkQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerLimitRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerLimitReward), global::Nova.Client.table_StarTowerLimitReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerLimitReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerLimitReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerLimitRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerLimitReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerLimitReward(table_StarTowerLimitReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerLimitReward Clone() { + return new table_StarTowerLimitReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerLimitReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerLimitReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerLimitReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerLimitReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerMap.cs b/NTR.Common/protos/TableStarTowerMap.cs new file mode 100644 index 0000000..56a1b9c --- /dev/null +++ b/NTR.Common/protos/TableStarTowerMap.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerMap.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerMap.proto + public static partial class TableStarTowerMapReflection { + + #region Descriptor + /// File descriptor for table_StarTowerMap.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerMapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9TdGFyVG93ZXJNYXAucHJvdG8aElN0YXJUb3dlck1hcC5wcm90", + "byIxChJ0YWJsZV9TdGFyVG93ZXJNYXASGwoEbGlzdBgBIAMoCzINLlN0YXJU", + "b3dlck1hcEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerMapReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerMap), global::Nova.Client.table_StarTowerMap.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerMapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMap(table_StarTowerMap other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMap Clone() { + return new table_StarTowerMap(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerMap.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerMap other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerMapMaxNumPerStage.cs b/NTR.Common/protos/TableStarTowerMapMaxNumPerStage.cs new file mode 100644 index 0000000..b8c21be --- /dev/null +++ b/NTR.Common/protos/TableStarTowerMapMaxNumPerStage.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerMapMaxNumPerStage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerMapMaxNumPerStage.proto + public static partial class TableStarTowerMapMaxNumPerStageReflection { + + #region Descriptor + /// File descriptor for table_StarTowerMapMaxNumPerStage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerMapMaxNumPerStageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0YWJsZV9TdGFyVG93ZXJNYXBNYXhOdW1QZXJTdGFnZS5wcm90bxogU3Rh", + "clRvd2VyTWFwTWF4TnVtUGVyU3RhZ2UucHJvdG8iTQogdGFibGVfU3RhclRv", + "d2VyTWFwTWF4TnVtUGVyU3RhZ2USKQoEbGlzdBgBIAMoCzIbLlN0YXJUb3dl", + "ck1hcE1heE51bVBlclN0YWdlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerMapMaxNumPerStageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerMapMaxNumPerStage), global::Nova.Client.table_StarTowerMapMaxNumPerStage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerMapMaxNumPerStage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerMapMaxNumPerStage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerMapMaxNumPerStageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMapMaxNumPerStage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMapMaxNumPerStage(table_StarTowerMapMaxNumPerStage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMapMaxNumPerStage Clone() { + return new table_StarTowerMapMaxNumPerStage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerMapMaxNumPerStage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerMapMaxNumPerStage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerMapMaxNumPerStage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerMapMaxNumPerStage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerMonsterBornGroup.cs b/NTR.Common/protos/TableStarTowerMonsterBornGroup.cs new file mode 100644 index 0000000..f4a93d9 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerMonsterBornGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerMonsterBornGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerMonsterBornGroup.proto + public static partial class TableStarTowerMonsterBornGroupReflection { + + #region Descriptor + /// File descriptor for table_StarTowerMonsterBornGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerMonsterBornGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiV0YWJsZV9TdGFyVG93ZXJNb25zdGVyQm9ybkdyb3VwLnByb3RvGh9TdGFy", + "VG93ZXJNb25zdGVyQm9ybkdyb3VwLnByb3RvIksKH3RhYmxlX1N0YXJUb3dl", + "ck1vbnN0ZXJCb3JuR3JvdXASKAoEbGlzdBgBIAMoCzIaLlN0YXJUb3dlck1v", + "bnN0ZXJCb3JuR3JvdXBCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerMonsterBornGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerMonsterBornGroup), global::Nova.Client.table_StarTowerMonsterBornGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerMonsterBornGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerMonsterBornGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerMonsterBornGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMonsterBornGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMonsterBornGroup(table_StarTowerMonsterBornGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMonsterBornGroup Clone() { + return new table_StarTowerMonsterBornGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerMonsterBornGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerMonsterBornGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerMonsterBornGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerMonsterBornGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerMonsterSpAttr.cs b/NTR.Common/protos/TableStarTowerMonsterSpAttr.cs new file mode 100644 index 0000000..2c91702 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerMonsterSpAttr.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerMonsterSpAttr.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerMonsterSpAttr.proto + public static partial class TableStarTowerMonsterSpAttrReflection { + + #region Descriptor + /// File descriptor for table_StarTowerMonsterSpAttr.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerMonsterSpAttrReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJ0YWJsZV9TdGFyVG93ZXJNb25zdGVyU3BBdHRyLnByb3RvGhxTdGFyVG93", + "ZXJNb25zdGVyU3BBdHRyLnByb3RvIkUKHHRhYmxlX1N0YXJUb3dlck1vbnN0", + "ZXJTcEF0dHISJQoEbGlzdBgBIAMoCzIXLlN0YXJUb3dlck1vbnN0ZXJTcEF0", + "dHJCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerMonsterSpAttrReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerMonsterSpAttr), global::Nova.Client.table_StarTowerMonsterSpAttr.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerMonsterSpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerMonsterSpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerMonsterSpAttrReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMonsterSpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMonsterSpAttr(table_StarTowerMonsterSpAttr other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerMonsterSpAttr Clone() { + return new table_StarTowerMonsterSpAttr(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerMonsterSpAttr.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerMonsterSpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerMonsterSpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerMonsterSpAttr other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerQuest.cs b/NTR.Common/protos/TableStarTowerQuest.cs new file mode 100644 index 0000000..ba2c985 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerQuest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerQuest.proto + public static partial class TableStarTowerQuestReflection { + + #region Descriptor + /// File descriptor for table_StarTowerQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdGFyVG93ZXJRdWVzdC5wcm90bxoUU3RhclRvd2VyUXVlc3Qu", + "cHJvdG8iNQoUdGFibGVfU3RhclRvd2VyUXVlc3QSHQoEbGlzdBgBIAMoCzIP", + "LlN0YXJUb3dlclF1ZXN0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerQuest), global::Nova.Client.table_StarTowerQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerQuest(table_StarTowerQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerQuest Clone() { + return new table_StarTowerQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerRankAffix.cs b/NTR.Common/protos/TableStarTowerRankAffix.cs new file mode 100644 index 0000000..a88f527 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerRankAffix.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerRankAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerRankAffix.proto + public static partial class TableStarTowerRankAffixReflection { + + #region Descriptor + /// File descriptor for table_StarTowerRankAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerRankAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9TdGFyVG93ZXJSYW5rQWZmaXgucHJvdG8aGFN0YXJUb3dlclJh", + "bmtBZmZpeC5wcm90byI9Chh0YWJsZV9TdGFyVG93ZXJSYW5rQWZmaXgSIQoE", + "bGlzdBgBIAMoCzITLlN0YXJUb3dlclJhbmtBZmZpeEIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerRankAffixReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerRankAffix), global::Nova.Client.table_StarTowerRankAffix.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerRankAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerRankAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerRankAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankAffix(table_StarTowerRankAffix other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankAffix Clone() { + return new table_StarTowerRankAffix(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerRankAffix.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerRankAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerRankAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerRankAffix other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerRankReward.cs b/NTR.Common/protos/TableStarTowerRankReward.cs new file mode 100644 index 0000000..ae3f534 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerRankReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerRankReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerRankReward.proto + public static partial class TableStarTowerRankRewardReflection { + + #region Descriptor + /// File descriptor for table_StarTowerRankReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerRankRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9TdGFyVG93ZXJSYW5rUmV3YXJkLnByb3RvGhlTdGFyVG93ZXJS", + "YW5rUmV3YXJkLnByb3RvIj8KGXRhYmxlX1N0YXJUb3dlclJhbmtSZXdhcmQS", + "IgoEbGlzdBgBIAMoCzIULlN0YXJUb3dlclJhbmtSZXdhcmRCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerRankRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerRankReward), global::Nova.Client.table_StarTowerRankReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerRankReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerRankReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerRankRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankReward(table_StarTowerRankReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankReward Clone() { + return new table_StarTowerRankReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerRankReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerRankReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerRankReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerRankReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerRankScore.cs b/NTR.Common/protos/TableStarTowerRankScore.cs new file mode 100644 index 0000000..fc5eb49 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerRankScore.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerRankScore.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerRankScore.proto + public static partial class TableStarTowerRankScoreReflection { + + #region Descriptor + /// File descriptor for table_StarTowerRankScore.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerRankScoreReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9TdGFyVG93ZXJSYW5rU2NvcmUucHJvdG8aGFN0YXJUb3dlclJh", + "bmtTY29yZS5wcm90byI9Chh0YWJsZV9TdGFyVG93ZXJSYW5rU2NvcmUSIQoE", + "bGlzdBgBIAMoCzITLlN0YXJUb3dlclJhbmtTY29yZUIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerRankScoreReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerRankScore), global::Nova.Client.table_StarTowerRankScore.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerRankScore : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerRankScore()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerRankScoreReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankScore() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankScore(table_StarTowerRankScore other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankScore Clone() { + return new table_StarTowerRankScore(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerRankScore.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerRankScore); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerRankScore other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerRankScore other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerRankSeason.cs b/NTR.Common/protos/TableStarTowerRankSeason.cs new file mode 100644 index 0000000..0dc3757 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerRankSeason.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerRankSeason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerRankSeason.proto + public static partial class TableStarTowerRankSeasonReflection { + + #region Descriptor + /// File descriptor for table_StarTowerRankSeason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerRankSeasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9TdGFyVG93ZXJSYW5rU2Vhc29uLnByb3RvGhlTdGFyVG93ZXJS", + "YW5rU2Vhc29uLnByb3RvIj8KGXRhYmxlX1N0YXJUb3dlclJhbmtTZWFzb24S", + "IgoEbGlzdBgBIAMoCzIULlN0YXJUb3dlclJhbmtTZWFzb25CDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerRankSeasonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerRankSeason), global::Nova.Client.table_StarTowerRankSeason.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerRankSeason : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerRankSeason()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerRankSeasonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankSeason() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankSeason(table_StarTowerRankSeason other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerRankSeason Clone() { + return new table_StarTowerRankSeason(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerRankSeason.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerRankSeason); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerRankSeason other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerRankSeason other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerScenePrefab.cs b/NTR.Common/protos/TableStarTowerScenePrefab.cs new file mode 100644 index 0000000..4027b28 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerScenePrefab.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerScenePrefab.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerScenePrefab.proto + public static partial class TableStarTowerScenePrefabReflection { + + #region Descriptor + /// File descriptor for table_StarTowerScenePrefab.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerScenePrefabReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TdGFyVG93ZXJTY2VuZVByZWZhYi5wcm90bxoaU3RhclRvd2Vy", + "U2NlbmVQcmVmYWIucHJvdG8iQQoadGFibGVfU3RhclRvd2VyU2NlbmVQcmVm", + "YWISIwoEbGlzdBgBIAMoCzIVLlN0YXJUb3dlclNjZW5lUHJlZmFiQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerScenePrefabReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerScenePrefab), global::Nova.Client.table_StarTowerScenePrefab.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerScenePrefab : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerScenePrefab()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerScenePrefabReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerScenePrefab() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerScenePrefab(table_StarTowerScenePrefab other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerScenePrefab Clone() { + return new table_StarTowerScenePrefab(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerScenePrefab.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerScenePrefab); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerScenePrefab other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerScenePrefab other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerShopGoodsGroup.cs b/NTR.Common/protos/TableStarTowerShopGoodsGroup.cs new file mode 100644 index 0000000..f54c160 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerShopGoodsGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerShopGoodsGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerShopGoodsGroup.proto + public static partial class TableStarTowerShopGoodsGroupReflection { + + #region Descriptor + /// File descriptor for table_StarTowerShopGoodsGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerShopGoodsGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiN0YWJsZV9TdGFyVG93ZXJTaG9wR29vZHNHcm91cC5wcm90bxodU3RhclRv", + "d2VyU2hvcEdvb2RzR3JvdXAucHJvdG8iRwoddGFibGVfU3RhclRvd2VyU2hv", + "cEdvb2RzR3JvdXASJgoEbGlzdBgBIAMoCzIYLlN0YXJUb3dlclNob3BHb29k", + "c0dyb3VwQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerShopGoodsGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerShopGoodsGroup), global::Nova.Client.table_StarTowerShopGoodsGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerShopGoodsGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerShopGoodsGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerShopGoodsGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerShopGoodsGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerShopGoodsGroup(table_StarTowerShopGoodsGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerShopGoodsGroup Clone() { + return new table_StarTowerShopGoodsGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerShopGoodsGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerShopGoodsGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerShopGoodsGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerShopGoodsGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerSpMode.cs b/NTR.Common/protos/TableStarTowerSpMode.cs new file mode 100644 index 0000000..d34b87f --- /dev/null +++ b/NTR.Common/protos/TableStarTowerSpMode.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerSpMode.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerSpMode.proto + public static partial class TableStarTowerSpModeReflection { + + #region Descriptor + /// File descriptor for table_StarTowerSpMode.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerSpModeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9TdGFyVG93ZXJTcE1vZGUucHJvdG8aFVN0YXJUb3dlclNwTW9k", + "ZS5wcm90byI3ChV0YWJsZV9TdGFyVG93ZXJTcE1vZGUSHgoEbGlzdBgBIAMo", + "CzIQLlN0YXJUb3dlclNwTW9kZUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerSpModeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerSpMode), global::Nova.Client.table_StarTowerSpMode.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerSpMode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerSpMode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerSpModeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerSpMode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerSpMode(table_StarTowerSpMode other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerSpMode Clone() { + return new table_StarTowerSpMode(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerSpMode.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerSpMode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerSpMode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerSpMode other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerSpecificCombat.cs b/NTR.Common/protos/TableStarTowerSpecificCombat.cs new file mode 100644 index 0000000..cb15e49 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerSpecificCombat.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerSpecificCombat.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerSpecificCombat.proto + public static partial class TableStarTowerSpecificCombatReflection { + + #region Descriptor + /// File descriptor for table_StarTowerSpecificCombat.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerSpecificCombatReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiN0YWJsZV9TdGFyVG93ZXJTcGVjaWZpY0NvbWJhdC5wcm90bxodU3RhclRv", + "d2VyU3BlY2lmaWNDb21iYXQucHJvdG8iRwoddGFibGVfU3RhclRvd2VyU3Bl", + "Y2lmaWNDb21iYXQSJgoEbGlzdBgBIAMoCzIYLlN0YXJUb3dlclNwZWNpZmlj", + "Q29tYmF0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerSpecificCombatReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerSpecificCombat), global::Nova.Client.table_StarTowerSpecificCombat.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerSpecificCombat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerSpecificCombat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerSpecificCombatReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerSpecificCombat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerSpecificCombat(table_StarTowerSpecificCombat other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerSpecificCombat Clone() { + return new table_StarTowerSpecificCombat(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerSpecificCombat.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerSpecificCombat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerSpecificCombat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerSpecificCombat other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerStage.cs b/NTR.Common/protos/TableStarTowerStage.cs new file mode 100644 index 0000000..f2fd016 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerStage.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerStage.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerStage.proto + public static partial class TableStarTowerStageReflection { + + #region Descriptor + /// File descriptor for table_StarTowerStage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerStageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdGFyVG93ZXJTdGFnZS5wcm90bxoUU3RhclRvd2VyU3RhZ2Uu", + "cHJvdG8iNQoUdGFibGVfU3RhclRvd2VyU3RhZ2USHQoEbGlzdBgBIAMoCzIP", + "LlN0YXJUb3dlclN0YWdlQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerStageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerStage), global::Nova.Client.table_StarTowerStage.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerStage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerStage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerStageReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerStage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerStage(table_StarTowerStage other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerStage Clone() { + return new table_StarTowerStage(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerStage.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerStage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerStage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerStage other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerTalk.cs b/NTR.Common/protos/TableStarTowerTalk.cs new file mode 100644 index 0000000..7d0f321 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerTalk.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerTalk.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerTalk.proto + public static partial class TableStarTowerTalkReflection { + + #region Descriptor + /// File descriptor for table_StarTowerTalk.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerTalkReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9TdGFyVG93ZXJUYWxrLnByb3RvGhNTdGFyVG93ZXJUYWxrLnBy", + "b3RvIjMKE3RhYmxlX1N0YXJUb3dlclRhbGsSHAoEbGlzdBgBIAMoCzIOLlN0", + "YXJUb3dlclRhbGtCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerTalkReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerTalk), global::Nova.Client.table_StarTowerTalk.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerTalk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerTalk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerTalkReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerTalk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerTalk(table_StarTowerTalk other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerTalk Clone() { + return new table_StarTowerTalk(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerTalk.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerTalk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerTalk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerTalk other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStarTowerTeamExp.cs b/NTR.Common/protos/TableStarTowerTeamExp.cs new file mode 100644 index 0000000..3094d25 --- /dev/null +++ b/NTR.Common/protos/TableStarTowerTeamExp.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StarTowerTeamExp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StarTowerTeamExp.proto + public static partial class TableStarTowerTeamExpReflection { + + #region Descriptor + /// File descriptor for table_StarTowerTeamExp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStarTowerTeamExpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9TdGFyVG93ZXJUZWFtRXhwLnByb3RvGhZTdGFyVG93ZXJUZWFt", + "RXhwLnByb3RvIjkKFnRhYmxlX1N0YXJUb3dlclRlYW1FeHASHwoEbGlzdBgB", + "IAMoCzIRLlN0YXJUb3dlclRlYW1FeHBCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StarTowerTeamExpReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StarTowerTeamExp), global::Nova.Client.table_StarTowerTeamExp.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StarTowerTeamExp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StarTowerTeamExp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStarTowerTeamExpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerTeamExp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerTeamExp(table_StarTowerTeamExp other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StarTowerTeamExp Clone() { + return new table_StarTowerTeamExp(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StarTowerTeamExp.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StarTowerTeamExp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StarTowerTeamExp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StarTowerTeamExp other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStory.cs b/NTR.Common/protos/TableStory.cs new file mode 100644 index 0000000..1645cf4 --- /dev/null +++ b/NTR.Common/protos/TableStory.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Story.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Story.proto + public static partial class TableStoryReflection { + + #region Descriptor + /// File descriptor for table_Story.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStoryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9TdG9yeS5wcm90bxoLU3RvcnkucHJvdG8iIwoLdGFibGVfU3Rv", + "cnkSFAoEbGlzdBgBIAMoCzIGLlN0b3J5Qg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StoryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Story), global::Nova.Client.table_Story.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Story : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Story()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStoryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Story() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Story(table_Story other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Story Clone() { + return new table_Story(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Story.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Story); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Story other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Story other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStoryChapter.cs b/NTR.Common/protos/TableStoryChapter.cs new file mode 100644 index 0000000..e6e820d --- /dev/null +++ b/NTR.Common/protos/TableStoryChapter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StoryChapter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StoryChapter.proto + public static partial class TableStoryChapterReflection { + + #region Descriptor + /// File descriptor for table_StoryChapter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStoryChapterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9TdG9yeUNoYXB0ZXIucHJvdG8aElN0b3J5Q2hhcHRlci5wcm90", + "byIxChJ0YWJsZV9TdG9yeUNoYXB0ZXISGwoEbGlzdBgBIAMoCzINLlN0b3J5", + "Q2hhcHRlckIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StoryChapterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StoryChapter), global::Nova.Client.table_StoryChapter.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StoryChapter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StoryChapter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStoryChapterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryChapter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryChapter(table_StoryChapter other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryChapter Clone() { + return new table_StoryChapter(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StoryChapter.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StoryChapter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StoryChapter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StoryChapter other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStoryCondition.cs b/NTR.Common/protos/TableStoryCondition.cs new file mode 100644 index 0000000..6f0ac35 --- /dev/null +++ b/NTR.Common/protos/TableStoryCondition.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StoryCondition.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StoryCondition.proto + public static partial class TableStoryConditionReflection { + + #region Descriptor + /// File descriptor for table_StoryCondition.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStoryConditionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9TdG9yeUNvbmRpdGlvbi5wcm90bxoUU3RvcnlDb25kaXRpb24u", + "cHJvdG8iNQoUdGFibGVfU3RvcnlDb25kaXRpb24SHQoEbGlzdBgBIAMoCzIP", + "LlN0b3J5Q29uZGl0aW9uQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StoryConditionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StoryCondition), global::Nova.Client.table_StoryCondition.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StoryCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StoryCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStoryConditionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryCondition(table_StoryCondition other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryCondition Clone() { + return new table_StoryCondition(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StoryCondition.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StoryCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StoryCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StoryCondition other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStoryEvidence.cs b/NTR.Common/protos/TableStoryEvidence.cs new file mode 100644 index 0000000..5f524ae --- /dev/null +++ b/NTR.Common/protos/TableStoryEvidence.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StoryEvidence.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StoryEvidence.proto + public static partial class TableStoryEvidenceReflection { + + #region Descriptor + /// File descriptor for table_StoryEvidence.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStoryEvidenceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9TdG9yeUV2aWRlbmNlLnByb3RvGhNTdG9yeUV2aWRlbmNlLnBy", + "b3RvIjMKE3RhYmxlX1N0b3J5RXZpZGVuY2USHAoEbGlzdBgBIAMoCzIOLlN0", + "b3J5RXZpZGVuY2VCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StoryEvidenceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StoryEvidence), global::Nova.Client.table_StoryEvidence.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StoryEvidence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StoryEvidence()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStoryEvidenceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryEvidence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryEvidence(table_StoryEvidence other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryEvidence Clone() { + return new table_StoryEvidence(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StoryEvidence.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StoryEvidence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StoryEvidence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StoryEvidence other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStoryPersonality.cs b/NTR.Common/protos/TableStoryPersonality.cs new file mode 100644 index 0000000..c27a647 --- /dev/null +++ b/NTR.Common/protos/TableStoryPersonality.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StoryPersonality.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StoryPersonality.proto + public static partial class TableStoryPersonalityReflection { + + #region Descriptor + /// File descriptor for table_StoryPersonality.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStoryPersonalityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9TdG9yeVBlcnNvbmFsaXR5LnByb3RvGhZTdG9yeVBlcnNvbmFs", + "aXR5LnByb3RvIjkKFnRhYmxlX1N0b3J5UGVyc29uYWxpdHkSHwoEbGlzdBgB", + "IAMoCzIRLlN0b3J5UGVyc29uYWxpdHlCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StoryPersonalityReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StoryPersonality), global::Nova.Client.table_StoryPersonality.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StoryPersonality : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StoryPersonality()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStoryPersonalityReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryPersonality() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryPersonality(table_StoryPersonality other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryPersonality Clone() { + return new table_StoryPersonality(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StoryPersonality.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StoryPersonality); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StoryPersonality other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StoryPersonality other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableStoryRolePersonality.cs b/NTR.Common/protos/TableStoryRolePersonality.cs new file mode 100644 index 0000000..89250d2 --- /dev/null +++ b/NTR.Common/protos/TableStoryRolePersonality.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_StoryRolePersonality.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_StoryRolePersonality.proto + public static partial class TableStoryRolePersonalityReflection { + + #region Descriptor + /// File descriptor for table_StoryRolePersonality.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableStoryRolePersonalityReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9TdG9yeVJvbGVQZXJzb25hbGl0eS5wcm90bxoaU3RvcnlSb2xl", + "UGVyc29uYWxpdHkucHJvdG8iQQoadGFibGVfU3RvcnlSb2xlUGVyc29uYWxp", + "dHkSIwoEbGlzdBgBIAMoCzIVLlN0b3J5Um9sZVBlcnNvbmFsaXR5Qg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.StoryRolePersonalityReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_StoryRolePersonality), global::Nova.Client.table_StoryRolePersonality.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_StoryRolePersonality : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_StoryRolePersonality()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableStoryRolePersonalityReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryRolePersonality() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryRolePersonality(table_StoryRolePersonality other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_StoryRolePersonality Clone() { + return new table_StoryRolePersonality(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.StoryRolePersonality.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_StoryRolePersonality); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_StoryRolePersonality other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_StoryRolePersonality other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTalent.cs b/NTR.Common/protos/TableTalent.cs new file mode 100644 index 0000000..e3e32cc --- /dev/null +++ b/NTR.Common/protos/TableTalent.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Talent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Talent.proto + public static partial class TableTalentReflection { + + #region Descriptor + /// File descriptor for table_Talent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTalentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9UYWxlbnQucHJvdG8aDFRhbGVudC5wcm90byIlCgx0YWJsZV9U", + "YWxlbnQSFQoEbGlzdBgBIAMoCzIHLlRhbGVudEIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TalentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Talent), global::Nova.Client.table_Talent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Talent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Talent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTalentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Talent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Talent(table_Talent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Talent Clone() { + return new table_Talent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Talent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Talent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Talent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Talent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTalentGroup.cs b/NTR.Common/protos/TableTalentGroup.cs new file mode 100644 index 0000000..bd1ca10 --- /dev/null +++ b/NTR.Common/protos/TableTalentGroup.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TalentGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TalentGroup.proto + public static partial class TableTalentGroupReflection { + + #region Descriptor + /// File descriptor for table_TalentGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTalentGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9UYWxlbnRHcm91cC5wcm90bxoRVGFsZW50R3JvdXAucHJvdG8i", + "LwoRdGFibGVfVGFsZW50R3JvdXASGgoEbGlzdBgBIAMoCzIMLlRhbGVudEdy", + "b3VwQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TalentGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TalentGroup), global::Nova.Client.table_TalentGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TalentGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TalentGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTalentGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TalentGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TalentGroup(table_TalentGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TalentGroup Clone() { + return new table_TalentGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TalentGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TalentGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TalentGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TalentGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTitle.cs b/NTR.Common/protos/TableTitle.cs new file mode 100644 index 0000000..068dd9e --- /dev/null +++ b/NTR.Common/protos/TableTitle.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Title.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Title.proto + public static partial class TableTitleReflection { + + #region Descriptor + /// File descriptor for table_Title.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTitleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChF0YWJsZV9UaXRsZS5wcm90bxoLVGl0bGUucHJvdG8iIwoLdGFibGVfVGl0", + "bGUSFAoEbGlzdBgBIAMoCzIGLlRpdGxlQg6qAgtOb3ZhLkNsaWVudGIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TitleReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Title), global::Nova.Client.table_Title.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Title : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Title()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTitleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Title() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Title(table_Title other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Title Clone() { + return new table_Title(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Title.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Title); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Title other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Title other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTopBar.cs b/NTR.Common/protos/TableTopBar.cs new file mode 100644 index 0000000..fa141dc --- /dev/null +++ b/NTR.Common/protos/TableTopBar.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TopBar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TopBar.proto + public static partial class TableTopBarReflection { + + #region Descriptor + /// File descriptor for table_TopBar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTopBarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9Ub3BCYXIucHJvdG8aDFRvcEJhci5wcm90byIlCgx0YWJsZV9U", + "b3BCYXISFQoEbGlzdBgBIAMoCzIHLlRvcEJhckIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TopBarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TopBar), global::Nova.Client.table_TopBar.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TopBar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TopBar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTopBarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TopBar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TopBar(table_TopBar other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TopBar Clone() { + return new table_TopBar(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TopBar.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TopBar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TopBar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TopBar other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTourGuideQuest.cs b/NTR.Common/protos/TableTourGuideQuest.cs new file mode 100644 index 0000000..d7a7eae --- /dev/null +++ b/NTR.Common/protos/TableTourGuideQuest.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TourGuideQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TourGuideQuest.proto + public static partial class TableTourGuideQuestReflection { + + #region Descriptor + /// File descriptor for table_TourGuideQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTourGuideQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9Ub3VyR3VpZGVRdWVzdC5wcm90bxoUVG91ckd1aWRlUXVlc3Qu", + "cHJvdG8iNQoUdGFibGVfVG91ckd1aWRlUXVlc3QSHQoEbGlzdBgBIAMoCzIP", + "LlRvdXJHdWlkZVF1ZXN0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TourGuideQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TourGuideQuest), global::Nova.Client.table_TourGuideQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TourGuideQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TourGuideQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTourGuideQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TourGuideQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TourGuideQuest(table_TourGuideQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TourGuideQuest Clone() { + return new table_TourGuideQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TourGuideQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TourGuideQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TourGuideQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TourGuideQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTourGuideQuestGroup.cs b/NTR.Common/protos/TableTourGuideQuestGroup.cs new file mode 100644 index 0000000..19bff6c --- /dev/null +++ b/NTR.Common/protos/TableTourGuideQuestGroup.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TourGuideQuestGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TourGuideQuestGroup.proto + public static partial class TableTourGuideQuestGroupReflection { + + #region Descriptor + /// File descriptor for table_TourGuideQuestGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTourGuideQuestGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch90YWJsZV9Ub3VyR3VpZGVRdWVzdEdyb3VwLnByb3RvGhlUb3VyR3VpZGVR", + "dWVzdEdyb3VwLnByb3RvIj8KGXRhYmxlX1RvdXJHdWlkZVF1ZXN0R3JvdXAS", + "IgoEbGlzdBgBIAMoCzIULlRvdXJHdWlkZVF1ZXN0R3JvdXBCDqoCC05vdmEu", + "Q2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TourGuideQuestGroupReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TourGuideQuestGroup), global::Nova.Client.table_TourGuideQuestGroup.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TourGuideQuestGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TourGuideQuestGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTourGuideQuestGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TourGuideQuestGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TourGuideQuestGroup(table_TourGuideQuestGroup other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TourGuideQuestGroup Clone() { + return new table_TourGuideQuestGroup(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TourGuideQuestGroup.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TourGuideQuestGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TourGuideQuestGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TourGuideQuestGroup other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTrap.cs b/NTR.Common/protos/TableTrap.cs new file mode 100644 index 0000000..ec8fc8c --- /dev/null +++ b/NTR.Common/protos/TableTrap.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Trap.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Trap.proto + public static partial class TableTrapReflection { + + #region Descriptor + /// File descriptor for table_Trap.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTrapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9UcmFwLnByb3RvGgpUcmFwLnByb3RvIiEKCnRhYmxlX1RyYXAS", + "EwoEbGlzdBgBIAMoCzIFLlRyYXBCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TrapReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Trap), global::Nova.Client.table_Trap.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Trap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Trap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTrapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Trap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Trap(table_Trap other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Trap Clone() { + return new table_Trap(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Trap.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Trap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Trap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Trap other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTrapAttribute.cs b/NTR.Common/protos/TableTrapAttribute.cs new file mode 100644 index 0000000..d25fb22 --- /dev/null +++ b/NTR.Common/protos/TableTrapAttribute.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TrapAttribute.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TrapAttribute.proto + public static partial class TableTrapAttributeReflection { + + #region Descriptor + /// File descriptor for table_TrapAttribute.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTrapAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9UcmFwQXR0cmlidXRlLnByb3RvGhNUcmFwQXR0cmlidXRlLnBy", + "b3RvIjMKE3RhYmxlX1RyYXBBdHRyaWJ1dGUSHAoEbGlzdBgBIAMoCzIOLlRy", + "YXBBdHRyaWJ1dGVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TrapAttributeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TrapAttribute), global::Nova.Client.table_TrapAttribute.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TrapAttribute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TrapAttribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTrapAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrapAttribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrapAttribute(table_TrapAttribute other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrapAttribute Clone() { + return new table_TrapAttribute(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TrapAttribute.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TrapAttribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TrapAttribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TrapAttribute other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelBoss.cs b/NTR.Common/protos/TableTravelerDuelBoss.cs new file mode 100644 index 0000000..30af93d --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelBoss.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelBoss.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelBoss.proto + public static partial class TableTravelerDuelBossReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelBoss.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelBossReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9UcmF2ZWxlckR1ZWxCb3NzLnByb3RvGhZUcmF2ZWxlckR1ZWxC", + "b3NzLnByb3RvIjkKFnRhYmxlX1RyYXZlbGVyRHVlbEJvc3MSHwoEbGlzdBgB", + "IAMoCzIRLlRyYXZlbGVyRHVlbEJvc3NCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelBossReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelBoss), global::Nova.Client.table_TravelerDuelBoss.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelBoss : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelBoss()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelBossReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelBoss() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelBoss(table_TravelerDuelBoss other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelBoss Clone() { + return new table_TravelerDuelBoss(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelBoss.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelBoss); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelBoss other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelBoss other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelBossLevel.cs b/NTR.Common/protos/TableTravelerDuelBossLevel.cs new file mode 100644 index 0000000..d2b6479 --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelBossLevel.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelBossLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelBossLevel.proto + public static partial class TableTravelerDuelBossLevelReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelBossLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelBossLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiF0YWJsZV9UcmF2ZWxlckR1ZWxCb3NzTGV2ZWwucHJvdG8aG1RyYXZlbGVy", + "RHVlbEJvc3NMZXZlbC5wcm90byJDCht0YWJsZV9UcmF2ZWxlckR1ZWxCb3Nz", + "TGV2ZWwSJAoEbGlzdBgBIAMoCzIWLlRyYXZlbGVyRHVlbEJvc3NMZXZlbEIO", + "qgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelBossLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelBossLevel), global::Nova.Client.table_TravelerDuelBossLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelBossLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelBossLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelBossLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelBossLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelBossLevel(table_TravelerDuelBossLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelBossLevel Clone() { + return new table_TravelerDuelBossLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelBossLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelBossLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelBossLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelBossLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelChallengeAffix.cs b/NTR.Common/protos/TableTravelerDuelChallengeAffix.cs new file mode 100644 index 0000000..b515909 --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelChallengeAffix.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelChallengeAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelChallengeAffix.proto + public static partial class TableTravelerDuelChallengeAffixReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelChallengeAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelChallengeAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0YWJsZV9UcmF2ZWxlckR1ZWxDaGFsbGVuZ2VBZmZpeC5wcm90bxogVHJh", + "dmVsZXJEdWVsQ2hhbGxlbmdlQWZmaXgucHJvdG8iTQogdGFibGVfVHJhdmVs", + "ZXJEdWVsQ2hhbGxlbmdlQWZmaXgSKQoEbGlzdBgBIAMoCzIbLlRyYXZlbGVy", + "RHVlbENoYWxsZW5nZUFmZml4Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelChallengeAffixReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelChallengeAffix), global::Nova.Client.table_TravelerDuelChallengeAffix.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelChallengeAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelChallengeAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelChallengeAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeAffix(table_TravelerDuelChallengeAffix other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeAffix Clone() { + return new table_TravelerDuelChallengeAffix(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelChallengeAffix.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelChallengeAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelChallengeAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelChallengeAffix other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelChallengeDifficulty.cs b/NTR.Common/protos/TableTravelerDuelChallengeDifficulty.cs new file mode 100644 index 0000000..73f4ecd --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelChallengeDifficulty.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelChallengeDifficulty.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelChallengeDifficulty.proto + public static partial class TableTravelerDuelChallengeDifficultyReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelChallengeDifficulty.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelChallengeDifficultyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cit0YWJsZV9UcmF2ZWxlckR1ZWxDaGFsbGVuZ2VEaWZmaWN1bHR5LnByb3Rv", + "GiVUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VEaWZmaWN1bHR5LnByb3RvIlcKJXRh", + "YmxlX1RyYXZlbGVyRHVlbENoYWxsZW5nZURpZmZpY3VsdHkSLgoEbGlzdBgB", + "IAMoCzIgLlRyYXZlbGVyRHVlbENoYWxsZW5nZURpZmZpY3VsdHlCDqoCC05v", + "dmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelChallengeDifficultyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelChallengeDifficulty), global::Nova.Client.table_TravelerDuelChallengeDifficulty.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelChallengeDifficulty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelChallengeDifficulty()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelChallengeDifficultyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeDifficulty() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeDifficulty(table_TravelerDuelChallengeDifficulty other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeDifficulty Clone() { + return new table_TravelerDuelChallengeDifficulty(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelChallengeDifficulty.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelChallengeDifficulty); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelChallengeDifficulty other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelChallengeDifficulty other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelChallengeQuest.cs b/NTR.Common/protos/TableTravelerDuelChallengeQuest.cs new file mode 100644 index 0000000..1e1f482 --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelChallengeQuest.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelChallengeQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelChallengeQuest.proto + public static partial class TableTravelerDuelChallengeQuestReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelChallengeQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelChallengeQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0YWJsZV9UcmF2ZWxlckR1ZWxDaGFsbGVuZ2VRdWVzdC5wcm90bxogVHJh", + "dmVsZXJEdWVsQ2hhbGxlbmdlUXVlc3QucHJvdG8iTQogdGFibGVfVHJhdmVs", + "ZXJEdWVsQ2hhbGxlbmdlUXVlc3QSKQoEbGlzdBgBIAMoCzIbLlRyYXZlbGVy", + "RHVlbENoYWxsZW5nZVF1ZXN0Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelChallengeQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelChallengeQuest), global::Nova.Client.table_TravelerDuelChallengeQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelChallengeQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelChallengeQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelChallengeQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeQuest(table_TravelerDuelChallengeQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeQuest Clone() { + return new table_TravelerDuelChallengeQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelChallengeQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelChallengeQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelChallengeQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelChallengeQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelChallengeRankReward.cs b/NTR.Common/protos/TableTravelerDuelChallengeRankReward.cs new file mode 100644 index 0000000..5f81d2e --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelChallengeRankReward.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelChallengeRankReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelChallengeRankReward.proto + public static partial class TableTravelerDuelChallengeRankRewardReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelChallengeRankReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelChallengeRankRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cit0YWJsZV9UcmF2ZWxlckR1ZWxDaGFsbGVuZ2VSYW5rUmV3YXJkLnByb3Rv", + "GiVUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VSYW5rUmV3YXJkLnByb3RvIlcKJXRh", + "YmxlX1RyYXZlbGVyRHVlbENoYWxsZW5nZVJhbmtSZXdhcmQSLgoEbGlzdBgB", + "IAMoCzIgLlRyYXZlbGVyRHVlbENoYWxsZW5nZVJhbmtSZXdhcmRCDqoCC05v", + "dmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelChallengeRankRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelChallengeRankReward), global::Nova.Client.table_TravelerDuelChallengeRankReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelChallengeRankReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelChallengeRankReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelChallengeRankRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeRankReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeRankReward(table_TravelerDuelChallengeRankReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeRankReward Clone() { + return new table_TravelerDuelChallengeRankReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelChallengeRankReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelChallengeRankReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelChallengeRankReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelChallengeRankReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelChallengeSeason.cs b/NTR.Common/protos/TableTravelerDuelChallengeSeason.cs new file mode 100644 index 0000000..8faaedc --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelChallengeSeason.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelChallengeSeason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelChallengeSeason.proto + public static partial class TableTravelerDuelChallengeSeasonReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelChallengeSeason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelChallengeSeasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cid0YWJsZV9UcmF2ZWxlckR1ZWxDaGFsbGVuZ2VTZWFzb24ucHJvdG8aIVRy", + "YXZlbGVyRHVlbENoYWxsZW5nZVNlYXNvbi5wcm90byJPCiF0YWJsZV9UcmF2", + "ZWxlckR1ZWxDaGFsbGVuZ2VTZWFzb24SKgoEbGlzdBgBIAMoCzIcLlRyYXZl", + "bGVyRHVlbENoYWxsZW5nZVNlYXNvbkIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelChallengeSeasonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelChallengeSeason), global::Nova.Client.table_TravelerDuelChallengeSeason.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelChallengeSeason : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelChallengeSeason()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelChallengeSeasonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeSeason() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeSeason(table_TravelerDuelChallengeSeason other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelChallengeSeason Clone() { + return new table_TravelerDuelChallengeSeason(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelChallengeSeason.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelChallengeSeason); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelChallengeSeason other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelChallengeSeason other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelFloor.cs b/NTR.Common/protos/TableTravelerDuelFloor.cs new file mode 100644 index 0000000..f43fbba --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelFloor.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelFloor.proto + public static partial class TableTravelerDuelFloorReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9UcmF2ZWxlckR1ZWxGbG9vci5wcm90bxoXVHJhdmVsZXJEdWVs", + "Rmxvb3IucHJvdG8iOwoXdGFibGVfVHJhdmVsZXJEdWVsRmxvb3ISIAoEbGlz", + "dBgBIAMoCzISLlRyYXZlbGVyRHVlbEZsb29yQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelFloor), global::Nova.Client.table_TravelerDuelFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelFloor(table_TravelerDuelFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelFloor Clone() { + return new table_TravelerDuelFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelLevel.cs b/NTR.Common/protos/TableTravelerDuelLevel.cs new file mode 100644 index 0000000..b914d1a --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelLevel.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelLevel.proto + public static partial class TableTravelerDuelLevelReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9UcmF2ZWxlckR1ZWxMZXZlbC5wcm90bxoXVHJhdmVsZXJEdWVs", + "TGV2ZWwucHJvdG8iOwoXdGFibGVfVHJhdmVsZXJEdWVsTGV2ZWwSIAoEbGlz", + "dBgBIAMoCzISLlRyYXZlbGVyRHVlbExldmVsQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelLevel), global::Nova.Client.table_TravelerDuelLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelLevel(table_TravelerDuelLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelLevel Clone() { + return new table_TravelerDuelLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTravelerDuelQuest.cs b/NTR.Common/protos/TableTravelerDuelQuest.cs new file mode 100644 index 0000000..78601ab --- /dev/null +++ b/NTR.Common/protos/TableTravelerDuelQuest.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TravelerDuelQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TravelerDuelQuest.proto + public static partial class TableTravelerDuelQuestReflection { + + #region Descriptor + /// File descriptor for table_TravelerDuelQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTravelerDuelQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9UcmF2ZWxlckR1ZWxRdWVzdC5wcm90bxoXVHJhdmVsZXJEdWVs", + "UXVlc3QucHJvdG8iOwoXdGFibGVfVHJhdmVsZXJEdWVsUXVlc3QSIAoEbGlz", + "dBgBIAMoCzISLlRyYXZlbGVyRHVlbFF1ZXN0Qg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TravelerDuelQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TravelerDuelQuest), global::Nova.Client.table_TravelerDuelQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TravelerDuelQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TravelerDuelQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTravelerDuelQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelQuest(table_TravelerDuelQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TravelerDuelQuest Clone() { + return new table_TravelerDuelQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TravelerDuelQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TravelerDuelQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TravelerDuelQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TravelerDuelQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTrialBuild.cs b/NTR.Common/protos/TableTrialBuild.cs new file mode 100644 index 0000000..9aa6c08 --- /dev/null +++ b/NTR.Common/protos/TableTrialBuild.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TrialBuild.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TrialBuild.proto + public static partial class TableTrialBuildReflection { + + #region Descriptor + /// File descriptor for table_TrialBuild.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTrialBuildReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9UcmlhbEJ1aWxkLnByb3RvGhBUcmlhbEJ1aWxkLnByb3RvIi0K", + "EHRhYmxlX1RyaWFsQnVpbGQSGQoEbGlzdBgBIAMoCzILLlRyaWFsQnVpbGRC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TrialBuildReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TrialBuild), global::Nova.Client.table_TrialBuild.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TrialBuild : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TrialBuild()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTrialBuildReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialBuild() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialBuild(table_TrialBuild other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialBuild Clone() { + return new table_TrialBuild(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TrialBuild.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TrialBuild); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TrialBuild other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TrialBuild other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTrialCharacter.cs b/NTR.Common/protos/TableTrialCharacter.cs new file mode 100644 index 0000000..5dd81f9 --- /dev/null +++ b/NTR.Common/protos/TableTrialCharacter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TrialCharacter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TrialCharacter.proto + public static partial class TableTrialCharacterReflection { + + #region Descriptor + /// File descriptor for table_TrialCharacter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTrialCharacterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chp0YWJsZV9UcmlhbENoYXJhY3Rlci5wcm90bxoUVHJpYWxDaGFyYWN0ZXIu", + "cHJvdG8iNQoUdGFibGVfVHJpYWxDaGFyYWN0ZXISHQoEbGlzdBgBIAMoCzIP", + "LlRyaWFsQ2hhcmFjdGVyQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TrialCharacterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TrialCharacter), global::Nova.Client.table_TrialCharacter.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TrialCharacter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TrialCharacter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTrialCharacterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialCharacter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialCharacter(table_TrialCharacter other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialCharacter Clone() { + return new table_TrialCharacter(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TrialCharacter.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TrialCharacter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TrialCharacter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TrialCharacter other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableTrialDisc.cs b/NTR.Common/protos/TableTrialDisc.cs new file mode 100644 index 0000000..28f1fab --- /dev/null +++ b/NTR.Common/protos/TableTrialDisc.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_TrialDisc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_TrialDisc.proto + public static partial class TableTrialDiscReflection { + + #region Descriptor + /// File descriptor for table_TrialDisc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableTrialDiscReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9UcmlhbERpc2MucHJvdG8aD1RyaWFsRGlzYy5wcm90byIrCg90", + "YWJsZV9UcmlhbERpc2MSGAoEbGlzdBgBIAMoCzIKLlRyaWFsRGlzY0IOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.TrialDiscReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_TrialDisc), global::Nova.Client.table_TrialDisc.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_TrialDisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_TrialDisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableTrialDiscReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialDisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialDisc(table_TrialDisc other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_TrialDisc Clone() { + return new table_TrialDisc(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.TrialDisc.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_TrialDisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_TrialDisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_TrialDisc other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableUIText.cs b/NTR.Common/protos/TableUIText.cs new file mode 100644 index 0000000..8d8f753 --- /dev/null +++ b/NTR.Common/protos/TableUIText.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_UIText.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_UIText.proto + public static partial class TableUITextReflection { + + #region Descriptor + /// File descriptor for table_UIText.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableUITextReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJ0YWJsZV9VSVRleHQucHJvdG8aDFVJVGV4dC5wcm90byIlCgx0YWJsZV9V", + "SVRleHQSFQoEbGlzdBgBIAMoCzIHLlVJVGV4dEIOqgILTm92YS5DbGllbnRi", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.UITextReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_UIText), global::Nova.Client.table_UIText.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_UIText : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_UIText()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableUITextReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_UIText() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_UIText(table_UIText other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_UIText Clone() { + return new table_UIText(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.UIText.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_UIText); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_UIText other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_UIText other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireBattleThreshold.cs b/NTR.Common/protos/TableVampireBattleThreshold.cs new file mode 100644 index 0000000..eb5d61d --- /dev/null +++ b/NTR.Common/protos/TableVampireBattleThreshold.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireBattleThreshold.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireBattleThreshold.proto + public static partial class TableVampireBattleThresholdReflection { + + #region Descriptor + /// File descriptor for table_VampireBattleThreshold.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireBattleThresholdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJ0YWJsZV9WYW1waXJlQmF0dGxlVGhyZXNob2xkLnByb3RvGhxWYW1waXJl", + "QmF0dGxlVGhyZXNob2xkLnByb3RvIkUKHHRhYmxlX1ZhbXBpcmVCYXR0bGVU", + "aHJlc2hvbGQSJQoEbGlzdBgBIAMoCzIXLlZhbXBpcmVCYXR0bGVUaHJlc2hv", + "bGRCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireBattleThresholdReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireBattleThreshold), global::Nova.Client.table_VampireBattleThreshold.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireBattleThreshold : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireBattleThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireBattleThresholdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireBattleThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireBattleThreshold(table_VampireBattleThreshold other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireBattleThreshold Clone() { + return new table_VampireBattleThreshold(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireBattleThreshold.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireBattleThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireBattleThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireBattleThreshold other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireEnemyPool.cs b/NTR.Common/protos/TableVampireEnemyPool.cs new file mode 100644 index 0000000..c30d9cc --- /dev/null +++ b/NTR.Common/protos/TableVampireEnemyPool.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireEnemyPool.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireEnemyPool.proto + public static partial class TableVampireEnemyPoolReflection { + + #region Descriptor + /// File descriptor for table_VampireEnemyPool.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireEnemyPoolReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chx0YWJsZV9WYW1waXJlRW5lbXlQb29sLnByb3RvGhZWYW1waXJlRW5lbXlQ", + "b29sLnByb3RvIjkKFnRhYmxlX1ZhbXBpcmVFbmVteVBvb2wSHwoEbGlzdBgB", + "IAMoCzIRLlZhbXBpcmVFbmVteVBvb2xCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireEnemyPoolReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireEnemyPool), global::Nova.Client.table_VampireEnemyPool.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireEnemyPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireEnemyPool()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireEnemyPoolReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemyPool() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemyPool(table_VampireEnemyPool other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemyPool Clone() { + return new table_VampireEnemyPool(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireEnemyPool.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireEnemyPool); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireEnemyPool other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireEnemyPool other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireEnemySet.cs b/NTR.Common/protos/TableVampireEnemySet.cs new file mode 100644 index 0000000..bb8bdd4 --- /dev/null +++ b/NTR.Common/protos/TableVampireEnemySet.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireEnemySet.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireEnemySet.proto + public static partial class TableVampireEnemySetReflection { + + #region Descriptor + /// File descriptor for table_VampireEnemySet.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireEnemySetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9WYW1waXJlRW5lbXlTZXQucHJvdG8aFVZhbXBpcmVFbmVteVNl", + "dC5wcm90byI3ChV0YWJsZV9WYW1waXJlRW5lbXlTZXQSHgoEbGlzdBgBIAMo", + "CzIQLlZhbXBpcmVFbmVteVNldEIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireEnemySetReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireEnemySet), global::Nova.Client.table_VampireEnemySet.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireEnemySet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireEnemySet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireEnemySetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemySet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemySet(table_VampireEnemySet other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemySet Clone() { + return new table_VampireEnemySet(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireEnemySet.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireEnemySet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireEnemySet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireEnemySet other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireEnemySpAttr.cs b/NTR.Common/protos/TableVampireEnemySpAttr.cs new file mode 100644 index 0000000..5835859 --- /dev/null +++ b/NTR.Common/protos/TableVampireEnemySpAttr.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireEnemySpAttr.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireEnemySpAttr.proto + public static partial class TableVampireEnemySpAttrReflection { + + #region Descriptor + /// File descriptor for table_VampireEnemySpAttr.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireEnemySpAttrReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9WYW1waXJlRW5lbXlTcEF0dHIucHJvdG8aGFZhbXBpcmVFbmVt", + "eVNwQXR0ci5wcm90byI9Chh0YWJsZV9WYW1waXJlRW5lbXlTcEF0dHISIQoE", + "bGlzdBgBIAMoCzITLlZhbXBpcmVFbmVteVNwQXR0ckIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireEnemySpAttrReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireEnemySpAttr), global::Nova.Client.table_VampireEnemySpAttr.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireEnemySpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireEnemySpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireEnemySpAttrReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemySpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemySpAttr(table_VampireEnemySpAttr other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireEnemySpAttr Clone() { + return new table_VampireEnemySpAttr(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireEnemySpAttr.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireEnemySpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireEnemySpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireEnemySpAttr other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireFloor.cs b/NTR.Common/protos/TableVampireFloor.cs new file mode 100644 index 0000000..f0a9982 --- /dev/null +++ b/NTR.Common/protos/TableVampireFloor.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireFloor.proto + public static partial class TableVampireFloorReflection { + + #region Descriptor + /// File descriptor for table_VampireFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chh0YWJsZV9WYW1waXJlRmxvb3IucHJvdG8aElZhbXBpcmVGbG9vci5wcm90", + "byIxChJ0YWJsZV9WYW1waXJlRmxvb3ISGwoEbGlzdBgBIAMoCzINLlZhbXBp", + "cmVGbG9vckIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireFloor), global::Nova.Client.table_VampireFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireFloor(table_VampireFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireFloor Clone() { + return new table_VampireFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireMap.cs b/NTR.Common/protos/TableVampireMap.cs new file mode 100644 index 0000000..90f262a --- /dev/null +++ b/NTR.Common/protos/TableVampireMap.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireMap.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireMap.proto + public static partial class TableVampireMapReflection { + + #region Descriptor + /// File descriptor for table_VampireMap.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireMapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9WYW1waXJlTWFwLnByb3RvGhBWYW1waXJlTWFwLnByb3RvIi0K", + "EHRhYmxlX1ZhbXBpcmVNYXASGQoEbGlzdBgBIAMoCzILLlZhbXBpcmVNYXBC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireMapReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireMap), global::Nova.Client.table_VampireMap.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireMapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireMap(table_VampireMap other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireMap Clone() { + return new table_VampireMap(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireMap.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireMap other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireRankReward.cs b/NTR.Common/protos/TableVampireRankReward.cs new file mode 100644 index 0000000..be18049 --- /dev/null +++ b/NTR.Common/protos/TableVampireRankReward.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireRankReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireRankReward.proto + public static partial class TableVampireRankRewardReflection { + + #region Descriptor + /// File descriptor for table_VampireRankReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireRankRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9WYW1waXJlUmFua1Jld2FyZC5wcm90bxoXVmFtcGlyZVJhbmtS", + "ZXdhcmQucHJvdG8iOwoXdGFibGVfVmFtcGlyZVJhbmtSZXdhcmQSIAoEbGlz", + "dBgBIAMoCzISLlZhbXBpcmVSYW5rUmV3YXJkQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireRankRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireRankReward), global::Nova.Client.table_VampireRankReward.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireRankReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireRankReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireRankRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireRankReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireRankReward(table_VampireRankReward other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireRankReward Clone() { + return new table_VampireRankReward(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireRankReward.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireRankReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireRankReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireRankReward other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireRankSeason.cs b/NTR.Common/protos/TableVampireRankSeason.cs new file mode 100644 index 0000000..77dc4b0 --- /dev/null +++ b/NTR.Common/protos/TableVampireRankSeason.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireRankSeason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireRankSeason.proto + public static partial class TableVampireRankSeasonReflection { + + #region Descriptor + /// File descriptor for table_VampireRankSeason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireRankSeasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9WYW1waXJlUmFua1NlYXNvbi5wcm90bxoXVmFtcGlyZVJhbmtT", + "ZWFzb24ucHJvdG8iOwoXdGFibGVfVmFtcGlyZVJhbmtTZWFzb24SIAoEbGlz", + "dBgBIAMoCzISLlZhbXBpcmVSYW5rU2Vhc29uQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireRankSeasonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireRankSeason), global::Nova.Client.table_VampireRankSeason.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireRankSeason : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireRankSeason()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireRankSeasonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireRankSeason() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireRankSeason(table_VampireRankSeason other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireRankSeason Clone() { + return new table_VampireRankSeason(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireRankSeason.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireRankSeason); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireRankSeason other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireRankSeason other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireSurvivor.cs b/NTR.Common/protos/TableVampireSurvivor.cs new file mode 100644 index 0000000..dec410f --- /dev/null +++ b/NTR.Common/protos/TableVampireSurvivor.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireSurvivor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireSurvivor.proto + public static partial class TableVampireSurvivorReflection { + + #region Descriptor + /// File descriptor for table_VampireSurvivor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireSurvivorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9WYW1waXJlU3Vydml2b3IucHJvdG8aFVZhbXBpcmVTdXJ2aXZv", + "ci5wcm90byI3ChV0YWJsZV9WYW1waXJlU3Vydml2b3ISHgoEbGlzdBgBIAMo", + "CzIQLlZhbXBpcmVTdXJ2aXZvckIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireSurvivorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireSurvivor), global::Nova.Client.table_VampireSurvivor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireSurvivor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireSurvivor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireSurvivorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivor(table_VampireSurvivor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivor Clone() { + return new table_VampireSurvivor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireSurvivor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireSurvivor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireSurvivor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireSurvivor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireSurvivorLevel.cs b/NTR.Common/protos/TableVampireSurvivorLevel.cs new file mode 100644 index 0000000..0081a0c --- /dev/null +++ b/NTR.Common/protos/TableVampireSurvivorLevel.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireSurvivorLevel.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireSurvivorLevel.proto + public static partial class TableVampireSurvivorLevelReflection { + + #region Descriptor + /// File descriptor for table_VampireSurvivorLevel.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireSurvivorLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9WYW1waXJlU3Vydml2b3JMZXZlbC5wcm90bxoaVmFtcGlyZVN1", + "cnZpdm9yTGV2ZWwucHJvdG8iQQoadGFibGVfVmFtcGlyZVN1cnZpdm9yTGV2", + "ZWwSIwoEbGlzdBgBIAMoCzIVLlZhbXBpcmVTdXJ2aXZvckxldmVsQg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireSurvivorLevelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireSurvivorLevel), global::Nova.Client.table_VampireSurvivorLevel.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireSurvivorLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireSurvivorLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireSurvivorLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivorLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivorLevel(table_VampireSurvivorLevel other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivorLevel Clone() { + return new table_VampireSurvivorLevel(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireSurvivorLevel.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireSurvivorLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireSurvivorLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireSurvivorLevel other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireSurvivorQuest.cs b/NTR.Common/protos/TableVampireSurvivorQuest.cs new file mode 100644 index 0000000..8bd2379 --- /dev/null +++ b/NTR.Common/protos/TableVampireSurvivorQuest.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireSurvivorQuest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireSurvivorQuest.proto + public static partial class TableVampireSurvivorQuestReflection { + + #region Descriptor + /// File descriptor for table_VampireSurvivorQuest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireSurvivorQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB0YWJsZV9WYW1waXJlU3Vydml2b3JRdWVzdC5wcm90bxoaVmFtcGlyZVN1", + "cnZpdm9yUXVlc3QucHJvdG8iQQoadGFibGVfVmFtcGlyZVN1cnZpdm9yUXVl", + "c3QSIwoEbGlzdBgBIAMoCzIVLlZhbXBpcmVTdXJ2aXZvclF1ZXN0Qg6qAgtO", + "b3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireSurvivorQuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireSurvivorQuest), global::Nova.Client.table_VampireSurvivorQuest.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireSurvivorQuest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireSurvivorQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireSurvivorQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivorQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivorQuest(table_VampireSurvivorQuest other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireSurvivorQuest Clone() { + return new table_VampireSurvivorQuest(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireSurvivorQuest.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireSurvivorQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireSurvivorQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireSurvivorQuest other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireTalent.cs b/NTR.Common/protos/TableVampireTalent.cs new file mode 100644 index 0000000..9b60236 --- /dev/null +++ b/NTR.Common/protos/TableVampireTalent.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireTalent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireTalent.proto + public static partial class TableVampireTalentReflection { + + #region Descriptor + /// File descriptor for table_VampireTalent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireTalentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chl0YWJsZV9WYW1waXJlVGFsZW50LnByb3RvGhNWYW1waXJlVGFsZW50LnBy", + "b3RvIjMKE3RhYmxlX1ZhbXBpcmVUYWxlbnQSHAoEbGlzdBgBIAMoCzIOLlZh", + "bXBpcmVUYWxlbnRCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireTalentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireTalent), global::Nova.Client.table_VampireTalent.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireTalent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireTalent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireTalentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalent(table_VampireTalent other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalent Clone() { + return new table_VampireTalent(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireTalent.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireTalent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireTalent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireTalent other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireTalentDesc.cs b/NTR.Common/protos/TableVampireTalentDesc.cs new file mode 100644 index 0000000..7a7d8e5 --- /dev/null +++ b/NTR.Common/protos/TableVampireTalentDesc.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireTalentDesc.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireTalentDesc.proto + public static partial class TableVampireTalentDescReflection { + + #region Descriptor + /// File descriptor for table_VampireTalentDesc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireTalentDescReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch10YWJsZV9WYW1waXJlVGFsZW50RGVzYy5wcm90bxoXVmFtcGlyZVRhbGVu", + "dERlc2MucHJvdG8iOwoXdGFibGVfVmFtcGlyZVRhbGVudERlc2MSIAoEbGlz", + "dBgBIAMoCzISLlZhbXBpcmVUYWxlbnREZXNjQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireTalentDescReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireTalentDesc), global::Nova.Client.table_VampireTalentDesc.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireTalentDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireTalentDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireTalentDescReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalentDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalentDesc(table_VampireTalentDesc other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalentDesc Clone() { + return new table_VampireTalentDesc(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireTalentDesc.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireTalentDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireTalentDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireTalentDesc other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVampireTalentFloor.cs b/NTR.Common/protos/TableVampireTalentFloor.cs new file mode 100644 index 0000000..c16f064 --- /dev/null +++ b/NTR.Common/protos/TableVampireTalentFloor.cs @@ -0,0 +1,232 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VampireTalentFloor.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VampireTalentFloor.proto + public static partial class TableVampireTalentFloorReflection { + + #region Descriptor + /// File descriptor for table_VampireTalentFloor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVampireTalentFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch50YWJsZV9WYW1waXJlVGFsZW50Rmxvb3IucHJvdG8aGFZhbXBpcmVUYWxl", + "bnRGbG9vci5wcm90byI9Chh0YWJsZV9WYW1waXJlVGFsZW50Rmxvb3ISIQoE", + "bGlzdBgBIAMoCzITLlZhbXBpcmVUYWxlbnRGbG9vckIOqgILTm92YS5DbGll", + "bnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VampireTalentFloorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VampireTalentFloor), global::Nova.Client.table_VampireTalentFloor.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VampireTalentFloor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VampireTalentFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVampireTalentFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalentFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalentFloor(table_VampireTalentFloor other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VampireTalentFloor Clone() { + return new table_VampireTalentFloor(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VampireTalentFloor.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VampireTalentFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VampireTalentFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VampireTalentFloor other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableVoDirectory.cs b/NTR.Common/protos/TableVoDirectory.cs new file mode 100644 index 0000000..fc1792b --- /dev/null +++ b/NTR.Common/protos/TableVoDirectory.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_VoDirectory.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_VoDirectory.proto + public static partial class TableVoDirectoryReflection { + + #region Descriptor + /// File descriptor for table_VoDirectory.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableVoDirectoryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Chd0YWJsZV9Wb0RpcmVjdG9yeS5wcm90bxoRVm9EaXJlY3RvcnkucHJvdG8i", + "LwoRdGFibGVfVm9EaXJlY3RvcnkSGgoEbGlzdBgBIAMoCzIMLlZvRGlyZWN0", + "b3J5Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.VoDirectoryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_VoDirectory), global::Nova.Client.table_VoDirectory.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_VoDirectory : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_VoDirectory()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableVoDirectoryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VoDirectory() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VoDirectory(table_VoDirectory other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_VoDirectory Clone() { + return new table_VoDirectory(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.VoDirectory.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_VoDirectory); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_VoDirectory other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_VoDirectory other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableWeightParameter.cs b/NTR.Common/protos/TableWeightParameter.cs new file mode 100644 index 0000000..6fbe368 --- /dev/null +++ b/NTR.Common/protos/TableWeightParameter.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_WeightParameter.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_WeightParameter.proto + public static partial class TableWeightParameterReflection { + + #region Descriptor + /// File descriptor for table_WeightParameter.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableWeightParameterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cht0YWJsZV9XZWlnaHRQYXJhbWV0ZXIucHJvdG8aFVdlaWdodFBhcmFtZXRl", + "ci5wcm90byI3ChV0YWJsZV9XZWlnaHRQYXJhbWV0ZXISHgoEbGlzdBgBIAMo", + "CzIQLldlaWdodFBhcmFtZXRlckIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.WeightParameterReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_WeightParameter), global::Nova.Client.table_WeightParameter.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_WeightParameter : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_WeightParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableWeightParameterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WeightParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WeightParameter(table_WeightParameter other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WeightParameter Clone() { + return new table_WeightParameter(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.WeightParameter.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_WeightParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_WeightParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_WeightParameter other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableWord.cs b/NTR.Common/protos/TableWord.cs new file mode 100644 index 0000000..6708447 --- /dev/null +++ b/NTR.Common/protos/TableWord.cs @@ -0,0 +1,230 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_Word.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_Word.proto + public static partial class TableWordReflection { + + #region Descriptor + /// File descriptor for table_Word.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableWordReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChB0YWJsZV9Xb3JkLnByb3RvGgpXb3JkLnByb3RvIiEKCnRhYmxlX1dvcmQS", + "EwoEbGlzdBgBIAMoCzIFLldvcmRCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.WordReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_Word), global::Nova.Client.table_Word.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_Word : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_Word()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableWordReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Word() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Word(table_Word other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_Word Clone() { + return new table_Word(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.Word.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_Word); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_Word other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_Word other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableWordSuper.cs b/NTR.Common/protos/TableWordSuper.cs new file mode 100644 index 0000000..8fc4789 --- /dev/null +++ b/NTR.Common/protos/TableWordSuper.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_WordSuper.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_WordSuper.proto + public static partial class TableWordSuperReflection { + + #region Descriptor + /// File descriptor for table_WordSuper.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableWordSuperReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChV0YWJsZV9Xb3JkU3VwZXIucHJvdG8aD1dvcmRTdXBlci5wcm90byIrCg90", + "YWJsZV9Xb3JkU3VwZXISGAoEbGlzdBgBIAMoCzIKLldvcmRTdXBlckIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.WordSuperReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_WordSuper), global::Nova.Client.table_WordSuper.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_WordSuper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_WordSuper()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableWordSuperReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WordSuper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WordSuper(table_WordSuper other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WordSuper Clone() { + return new table_WordSuper(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.WordSuper.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_WordSuper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_WordSuper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_WordSuper other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TableWorldClass.cs b/NTR.Common/protos/TableWorldClass.cs new file mode 100644 index 0000000..fe52666 --- /dev/null +++ b/NTR.Common/protos/TableWorldClass.cs @@ -0,0 +1,231 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: table_WorldClass.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from table_WorldClass.proto + public static partial class TableWorldClassReflection { + + #region Descriptor + /// File descriptor for table_WorldClass.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableWorldClassReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZ0YWJsZV9Xb3JsZENsYXNzLnByb3RvGhBXb3JsZENsYXNzLnByb3RvIi0K", + "EHRhYmxlX1dvcmxkQ2xhc3MSGQoEbGlzdBgBIAMoCzILLldvcmxkQ2xhc3NC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Nova.Client.WorldClassReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.table_WorldClass), global::Nova.Client.table_WorldClass.Parser, new[]{ "List" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class table_WorldClass : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new table_WorldClass()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TableWorldClassReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WorldClass() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WorldClass(table_WorldClass other) : this() { + list_ = other.list_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public table_WorldClass Clone() { + return new table_WorldClass(this); + } + + /// Field number for the "list" field. + public const int ListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_list_codec + = pb::FieldCodec.ForMessage(10, global::Nova.Client.WorldClass.Parser); + private readonly pbc::RepeatedField list_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField List { + get { return list_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as table_WorldClass); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(table_WorldClass other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!list_.Equals(other.list_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= list_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + list_.WriteTo(output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + list_.WriteTo(ref output, _repeated_list_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += list_.CalculateSize(_repeated_list_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(table_WorldClass other) { + if (other == null) { + return; + } + list_.Add(other.list_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + list_.AddEntriesFrom(input, _repeated_list_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + list_.AddEntriesFrom(ref input, _repeated_list_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Talent.cs b/NTR.Common/protos/Talent.cs new file mode 100644 index 0000000..d56c0c6 --- /dev/null +++ b/NTR.Common/protos/Talent.cs @@ -0,0 +1,1130 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Talent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Talent.proto + public static partial class TalentReflection { + + #region Descriptor + /// File descriptor for Talent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TalentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxUYWxlbnQucHJvdG8ixwMKBlRhbGVudBIKCgJpZBgBIAEoBRINCgVpbmRl", + "eBgCIAEoBRINCgV0aXRsZRgDIAEoCRIQCghncm91cF9pZBgEIAEoBRIMCgR0", + "eXBlGAUgASgFEhAKCHN1Yl90eXBlGAYgASgFEgwKBHNvcnQYByABKAUSDQoF", + "bm9kZXMYCCABKAUSEQoJZWZmZWN0X2lkGAkgAygFEhgKEGVuaGFuY2Vfc2tp", + "bGxfaWQYCiABKAUSGwoTZW5oYW5jZV9za2lsbF9sZXZlbBgLIAEoBRIcChRl", + "bmhhbmNlX3BvdGVudGlhbF9pZBgMIAEoBRIfChdlbmhhbmNlX3BvdGVudGlh", + "bF9sZXZlbBgNIAEoBRIMCgRkZXNjGA4gASgJEgwKBGljb24YDyABKAkSDgoG", + "cGFyYW0xGBAgASgJEg4KBnBhcmFtMhgRIAEoCRIOCgZwYXJhbTMYEiABKAkS", + "DgoGcGFyYW00GBMgASgJEg4KBnBhcmFtNRgUIAEoCRIOCgZwYXJhbTYYFSAB", + "KAkSDgoGcGFyYW03GBYgASgJEg4KBnBhcmFtOBgXIAEoCRIOCgZwYXJhbTkY", + "GCABKAkSDwoHcGFyYW0xMBgZIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Talent), global::Nova.Client.Talent.Parser, new[]{ "Id", "Index", "Title", "GroupId", "Type", "SubType", "Sort", "Nodes", "EffectId", "EnhanceSkillId", "EnhanceSkillLevel", "EnhancePotentialId", "EnhancePotentialLevel", "Desc", "Icon", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6", "Param7", "Param8", "Param9", "Param10" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Talent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Talent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TalentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Talent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Talent(Talent other) : this() { + id_ = other.id_; + index_ = other.index_; + title_ = other.title_; + groupId_ = other.groupId_; + type_ = other.type_; + subType_ = other.subType_; + sort_ = other.sort_; + nodes_ = other.nodes_; + effectId_ = other.effectId_.Clone(); + enhanceSkillId_ = other.enhanceSkillId_; + enhanceSkillLevel_ = other.enhanceSkillLevel_; + enhancePotentialId_ = other.enhancePotentialId_; + enhancePotentialLevel_ = other.enhancePotentialLevel_; + desc_ = other.desc_; + icon_ = other.icon_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + param5_ = other.param5_; + param6_ = other.param6_; + param7_ = other.param7_; + param8_ = other.param8_; + param9_ = other.param9_; + param10_ = other.param10_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Talent Clone() { + return new Talent(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 2; + private int index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 4; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "sub_type" field. + public const int SubTypeFieldNumber = 6; + private int subType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SubType { + get { return subType_; } + set { + subType_ = value; + } + } + + /// Field number for the "sort" field. + public const int SortFieldNumber = 7; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "nodes" field. + public const int NodesFieldNumber = 8; + private int nodes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Nodes { + get { return nodes_; } + set { + nodes_ = value; + } + } + + /// Field number for the "effect_id" field. + public const int EffectIdFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_effectId_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField effectId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EffectId { + get { return effectId_; } + } + + /// Field number for the "enhance_skill_id" field. + public const int EnhanceSkillIdFieldNumber = 10; + private int enhanceSkillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnhanceSkillId { + get { return enhanceSkillId_; } + set { + enhanceSkillId_ = value; + } + } + + /// Field number for the "enhance_skill_level" field. + public const int EnhanceSkillLevelFieldNumber = 11; + private int enhanceSkillLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnhanceSkillLevel { + get { return enhanceSkillLevel_; } + set { + enhanceSkillLevel_ = value; + } + } + + /// Field number for the "enhance_potential_id" field. + public const int EnhancePotentialIdFieldNumber = 12; + private int enhancePotentialId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnhancePotentialId { + get { return enhancePotentialId_; } + set { + enhancePotentialId_ = value; + } + } + + /// Field number for the "enhance_potential_level" field. + public const int EnhancePotentialLevelFieldNumber = 13; + private int enhancePotentialLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnhancePotentialLevel { + get { return enhancePotentialLevel_; } + set { + enhancePotentialLevel_ = value; + } + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 14; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 15; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param1" field. + public const int Param1FieldNumber = 16; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param2" field. + public const int Param2FieldNumber = 17; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param3" field. + public const int Param3FieldNumber = 18; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param4" field. + public const int Param4FieldNumber = 19; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param5" field. + public const int Param5FieldNumber = 20; + private string param5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param5 { + get { return param5_; } + set { + param5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param6" field. + public const int Param6FieldNumber = 21; + private string param6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param6 { + get { return param6_; } + set { + param6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param7" field. + public const int Param7FieldNumber = 22; + private string param7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param7 { + get { return param7_; } + set { + param7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param8" field. + public const int Param8FieldNumber = 23; + private string param8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param8 { + get { return param8_; } + set { + param8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param9" field. + public const int Param9FieldNumber = 24; + private string param9_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param9 { + get { return param9_; } + set { + param9_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "param10" field. + public const int Param10FieldNumber = 25; + private string param10_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param10 { + get { return param10_; } + set { + param10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Talent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Talent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Index != other.Index) return false; + if (Title != other.Title) return false; + if (GroupId != other.GroupId) return false; + if (Type != other.Type) return false; + if (SubType != other.SubType) return false; + if (Sort != other.Sort) return false; + if (Nodes != other.Nodes) return false; + if(!effectId_.Equals(other.effectId_)) return false; + if (EnhanceSkillId != other.EnhanceSkillId) return false; + if (EnhanceSkillLevel != other.EnhanceSkillLevel) return false; + if (EnhancePotentialId != other.EnhancePotentialId) return false; + if (EnhancePotentialLevel != other.EnhancePotentialLevel) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + if (Param5 != other.Param5) return false; + if (Param6 != other.Param6) return false; + if (Param7 != other.Param7) return false; + if (Param8 != other.Param8) return false; + if (Param9 != other.Param9) return false; + if (Param10 != other.Param10) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (SubType != 0) hash ^= SubType.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (Nodes != 0) hash ^= Nodes.GetHashCode(); + hash ^= effectId_.GetHashCode(); + if (EnhanceSkillId != 0) hash ^= EnhanceSkillId.GetHashCode(); + if (EnhanceSkillLevel != 0) hash ^= EnhanceSkillLevel.GetHashCode(); + if (EnhancePotentialId != 0) hash ^= EnhancePotentialId.GetHashCode(); + if (EnhancePotentialLevel != 0) hash ^= EnhancePotentialLevel.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (Param5.Length != 0) hash ^= Param5.GetHashCode(); + if (Param6.Length != 0) hash ^= Param6.GetHashCode(); + if (Param7.Length != 0) hash ^= Param7.GetHashCode(); + if (Param8.Length != 0) hash ^= Param8.GetHashCode(); + if (Param9.Length != 0) hash ^= Param9.GetHashCode(); + if (Param10.Length != 0) hash ^= Param10.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Index != 0) { + output.WriteRawTag(16); + output.WriteInt32(Index); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (GroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(GroupId); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteInt32(Type); + } + if (SubType != 0) { + output.WriteRawTag(48); + output.WriteInt32(SubType); + } + if (Sort != 0) { + output.WriteRawTag(56); + output.WriteInt32(Sort); + } + if (Nodes != 0) { + output.WriteRawTag(64); + output.WriteInt32(Nodes); + } + effectId_.WriteTo(output, _repeated_effectId_codec); + if (EnhanceSkillId != 0) { + output.WriteRawTag(80); + output.WriteInt32(EnhanceSkillId); + } + if (EnhanceSkillLevel != 0) { + output.WriteRawTag(88); + output.WriteInt32(EnhanceSkillLevel); + } + if (EnhancePotentialId != 0) { + output.WriteRawTag(96); + output.WriteInt32(EnhancePotentialId); + } + if (EnhancePotentialLevel != 0) { + output.WriteRawTag(104); + output.WriteInt32(EnhancePotentialLevel); + } + if (Desc.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Icon); + } + if (Param1.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Index != 0) { + output.WriteRawTag(16); + output.WriteInt32(Index); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (GroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(GroupId); + } + if (Type != 0) { + output.WriteRawTag(40); + output.WriteInt32(Type); + } + if (SubType != 0) { + output.WriteRawTag(48); + output.WriteInt32(SubType); + } + if (Sort != 0) { + output.WriteRawTag(56); + output.WriteInt32(Sort); + } + if (Nodes != 0) { + output.WriteRawTag(64); + output.WriteInt32(Nodes); + } + effectId_.WriteTo(ref output, _repeated_effectId_codec); + if (EnhanceSkillId != 0) { + output.WriteRawTag(80); + output.WriteInt32(EnhanceSkillId); + } + if (EnhanceSkillLevel != 0) { + output.WriteRawTag(88); + output.WriteInt32(EnhanceSkillLevel); + } + if (EnhancePotentialId != 0) { + output.WriteRawTag(96); + output.WriteInt32(EnhancePotentialId); + } + if (EnhancePotentialLevel != 0) { + output.WriteRawTag(104); + output.WriteInt32(EnhancePotentialLevel); + } + if (Desc.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Icon); + } + if (Param1.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (SubType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubType); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (Nodes != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Nodes); + } + size += effectId_.CalculateSize(_repeated_effectId_codec); + if (EnhanceSkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnhanceSkillId); + } + if (EnhanceSkillLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnhanceSkillLevel); + } + if (EnhancePotentialId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnhancePotentialId); + } + if (EnhancePotentialLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnhancePotentialLevel); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Param1.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (Param5.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param5); + } + if (Param6.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param6); + } + if (Param7.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param7); + } + if (Param8.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param8); + } + if (Param9.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param9); + } + if (Param10.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Param10); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Talent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.SubType != 0) { + SubType = other.SubType; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.Nodes != 0) { + Nodes = other.Nodes; + } + effectId_.Add(other.effectId_); + if (other.EnhanceSkillId != 0) { + EnhanceSkillId = other.EnhanceSkillId; + } + if (other.EnhanceSkillLevel != 0) { + EnhanceSkillLevel = other.EnhanceSkillLevel; + } + if (other.EnhancePotentialId != 0) { + EnhancePotentialId = other.EnhancePotentialId; + } + if (other.EnhancePotentialLevel != 0) { + EnhancePotentialLevel = other.EnhancePotentialLevel; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + if (other.Param5.Length != 0) { + Param5 = other.Param5; + } + if (other.Param6.Length != 0) { + Param6 = other.Param6; + } + if (other.Param7.Length != 0) { + Param7 = other.Param7; + } + if (other.Param8.Length != 0) { + Param8 = other.Param8; + } + if (other.Param9.Length != 0) { + Param9 = other.Param9; + } + if (other.Param10.Length != 0) { + Param10 = other.Param10; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Index = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + GroupId = input.ReadInt32(); + break; + } + case 40: { + Type = input.ReadInt32(); + break; + } + case 48: { + SubType = input.ReadInt32(); + break; + } + case 56: { + Sort = input.ReadInt32(); + break; + } + case 64: { + Nodes = input.ReadInt32(); + break; + } + case 74: + case 72: { + effectId_.AddEntriesFrom(input, _repeated_effectId_codec); + break; + } + case 80: { + EnhanceSkillId = input.ReadInt32(); + break; + } + case 88: { + EnhanceSkillLevel = input.ReadInt32(); + break; + } + case 96: { + EnhancePotentialId = input.ReadInt32(); + break; + } + case 104: { + EnhancePotentialLevel = input.ReadInt32(); + break; + } + case 114: { + Desc = input.ReadString(); + break; + } + case 122: { + Icon = input.ReadString(); + break; + } + case 130: { + Param1 = input.ReadString(); + break; + } + case 138: { + Param2 = input.ReadString(); + break; + } + case 146: { + Param3 = input.ReadString(); + break; + } + case 154: { + Param4 = input.ReadString(); + break; + } + case 162: { + Param5 = input.ReadString(); + break; + } + case 170: { + Param6 = input.ReadString(); + break; + } + case 178: { + Param7 = input.ReadString(); + break; + } + case 186: { + Param8 = input.ReadString(); + break; + } + case 194: { + Param9 = input.ReadString(); + break; + } + case 202: { + Param10 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Index = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + GroupId = input.ReadInt32(); + break; + } + case 40: { + Type = input.ReadInt32(); + break; + } + case 48: { + SubType = input.ReadInt32(); + break; + } + case 56: { + Sort = input.ReadInt32(); + break; + } + case 64: { + Nodes = input.ReadInt32(); + break; + } + case 74: + case 72: { + effectId_.AddEntriesFrom(ref input, _repeated_effectId_codec); + break; + } + case 80: { + EnhanceSkillId = input.ReadInt32(); + break; + } + case 88: { + EnhanceSkillLevel = input.ReadInt32(); + break; + } + case 96: { + EnhancePotentialId = input.ReadInt32(); + break; + } + case 104: { + EnhancePotentialLevel = input.ReadInt32(); + break; + } + case 114: { + Desc = input.ReadString(); + break; + } + case 122: { + Icon = input.ReadString(); + break; + } + case 130: { + Param1 = input.ReadString(); + break; + } + case 138: { + Param2 = input.ReadString(); + break; + } + case 146: { + Param3 = input.ReadString(); + break; + } + case 154: { + Param4 = input.ReadString(); + break; + } + case 162: { + Param5 = input.ReadString(); + break; + } + case 170: { + Param6 = input.ReadString(); + break; + } + case 178: { + Param7 = input.ReadString(); + break; + } + case 186: { + Param8 = input.ReadString(); + break; + } + case 194: { + Param9 = input.ReadString(); + break; + } + case 202: { + Param10 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TalentGroup.cs b/NTR.Common/protos/TalentGroup.cs new file mode 100644 index 0000000..784fb08 --- /dev/null +++ b/NTR.Common/protos/TalentGroup.cs @@ -0,0 +1,391 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TalentGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from TalentGroup.proto + public static partial class TalentGroupReflection { + + #region Descriptor + /// File descriptor for TalentGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TalentGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFUYWxlbnRHcm91cC5wcm90byJgCgtUYWxlbnRHcm91cBIKCgJpZBgBIAEo", + "BRIPCgdjaGFyX2lkGAIgASgFEhEKCXByZV9ncm91cBgDIAEoBRISCgpub2Rl", + "X2xpbWl0GAQgASgFEg0KBXRpdGxlGAUgASgJQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TalentGroup), global::Nova.Client.TalentGroup.Parser, new[]{ "Id", "CharId", "PreGroup", "NodeLimit", "Title" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TalentGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TalentGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TalentGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TalentGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TalentGroup(TalentGroup other) : this() { + id_ = other.id_; + charId_ = other.charId_; + preGroup_ = other.preGroup_; + nodeLimit_ = other.nodeLimit_; + title_ = other.title_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TalentGroup Clone() { + return new TalentGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// Field number for the "char_id" field. + public const int CharIdFieldNumber = 2; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// Field number for the "pre_group" field. + public const int PreGroupFieldNumber = 3; + private int preGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreGroup { + get { return preGroup_; } + set { + preGroup_ = value; + } + } + + /// Field number for the "node_limit" field. + public const int NodeLimitFieldNumber = 4; + private int nodeLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NodeLimit { + get { return nodeLimit_; } + set { + nodeLimit_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 5; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TalentGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TalentGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CharId != other.CharId) return false; + if (PreGroup != other.PreGroup) return false; + if (NodeLimit != other.NodeLimit) return false; + if (Title != other.Title) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (PreGroup != 0) hash ^= PreGroup.GetHashCode(); + if (NodeLimit != 0) hash ^= NodeLimit.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (PreGroup != 0) { + output.WriteRawTag(24); + output.WriteInt32(PreGroup); + } + if (NodeLimit != 0) { + output.WriteRawTag(32); + output.WriteInt32(NodeLimit); + } + if (Title.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Title); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (CharId != 0) { + output.WriteRawTag(16); + output.WriteInt32(CharId); + } + if (PreGroup != 0) { + output.WriteRawTag(24); + output.WriteInt32(PreGroup); + } + if (NodeLimit != 0) { + output.WriteRawTag(32); + output.WriteInt32(NodeLimit); + } + if (Title.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Title); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (PreGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreGroup); + } + if (NodeLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeLimit); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TalentGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.PreGroup != 0) { + PreGroup = other.PreGroup; + } + if (other.NodeLimit != 0) { + NodeLimit = other.NodeLimit; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + PreGroup = input.ReadInt32(); + break; + } + case 32: { + NodeLimit = input.ReadInt32(); + break; + } + case 42: { + Title = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + CharId = input.ReadInt32(); + break; + } + case 24: { + PreGroup = input.ReadInt32(); + break; + } + case 32: { + NodeLimit = input.ReadInt32(); + break; + } + case 42: { + Title = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Title.cs b/NTR.Common/protos/Title.cs new file mode 100644 index 0000000..2a5226b --- /dev/null +++ b/NTR.Common/protos/Title.cs @@ -0,0 +1,390 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Title.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// Holder for reflection information generated from Title.proto + public static partial class TitleReflection { + + #region Descriptor + /// File descriptor for Title.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TitleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtUaXRsZS5wcm90byJUCgVUaXRsZRIKCgJpZBgBIAEoBRIPCgdpdGVtX2lk", + "GAIgASgFEhIKCnRpdGxlX3R5cGUYAyABKAUSDAoEZGVzYxgEIAEoCRIMCgRz", + "b3J0GAUgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Title), global::Nova.Client.Title.Parser, new[]{ "Id", "ItemId", "TitleType", "Desc", "Sort" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Title : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<Title> _parser = new pb::MessageParser<Title>(() => new Title()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<Title> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TitleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Title() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Title(Title other) : this() { + id_ = other.id_; + itemId_ = other.itemId_; + titleType_ = other.titleType_; + desc_ = other.desc_; + sort_ = other.sort_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Title Clone() { + return new Title(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "item_id" field.</summary> + public const int ItemIdFieldNumber = 2; + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// <summary>Field number for the "title_type" field.</summary> + public const int TitleTypeFieldNumber = 3; + private int titleType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TitleType { + get { return titleType_; } + set { + titleType_ = value; + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "sort" field.</summary> + public const int SortFieldNumber = 5; + private int sort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Title); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Title other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ItemId != other.ItemId) return false; + if (TitleType != other.TitleType) return false; + if (Desc != other.Desc) return false; + if (Sort != other.Sort) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (TitleType != 0) hash ^= TitleType.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (TitleType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TitleType); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (ItemId != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemId); + } + if (TitleType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TitleType); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (Sort != 0) { + output.WriteRawTag(40); + output.WriteInt32(Sort); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (TitleType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TitleType); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Sort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Title other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.TitleType != 0) { + TitleType = other.TitleType; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + TitleType = input.ReadInt32(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + ItemId = input.ReadInt32(); + break; + } + case 24: { + TitleType = input.ReadInt32(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + Sort = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TopBar.cs b/NTR.Common/protos/TopBar.cs new file mode 100644 index 0000000..96a71bb --- /dev/null +++ b/NTR.Common/protos/TopBar.cs @@ -0,0 +1,494 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TopBar.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TopBar.proto</summary> + public static partial class TopBarReflection { + + #region Descriptor + /// <summary>File descriptor for TopBar.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TopBarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxUb3BCYXIucHJvdG8ijwEKBlRvcEJhchIKCgJpZBgBIAEoCRINCgV0aXRs", + "ZRgCIAEoCRIQCghlbnRyeV9pZBgDIAEoBRIRCgloaWRlX2JhY2sYBCABKAgS", + "DgoGZW5lcmd5GAUgASgIEgwKBGNvaW4YBiABKAgSEAoIY29pbl9pZHMYByAD", + "KAUSFQoNaGlkZV9jb2luX2FkZBgIIAEoCEIOqgILTm92YS5DbGllbnRiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TopBar), global::Nova.Client.TopBar.Parser, new[]{ "Id", "Title", "EntryId", "HideBack", "Energy", "Coin", "CoinIds", "HideCoinAdd" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TopBar : pb::IMessage<TopBar> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TopBar> _parser = new pb::MessageParser<TopBar>(() => new TopBar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TopBar> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TopBarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopBar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopBar(TopBar other) : this() { + id_ = other.id_; + title_ = other.title_; + entryId_ = other.entryId_; + hideBack_ = other.hideBack_; + energy_ = other.energy_; + coin_ = other.coin_; + coinIds_ = other.coinIds_.Clone(); + hideCoinAdd_ = other.hideCoinAdd_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopBar Clone() { + return new TopBar(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "entry_id" field.</summary> + public const int EntryIdFieldNumber = 3; + private int entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// <summary>Field number for the "hide_back" field.</summary> + public const int HideBackFieldNumber = 4; + private bool hideBack_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HideBack { + get { return hideBack_; } + set { + hideBack_ = value; + } + } + + /// <summary>Field number for the "energy" field.</summary> + public const int EnergyFieldNumber = 5; + private bool energy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Energy { + get { return energy_; } + set { + energy_ = value; + } + } + + /// <summary>Field number for the "coin" field.</summary> + public const int CoinFieldNumber = 6; + private bool coin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Coin { + get { return coin_; } + set { + coin_ = value; + } + } + + /// <summary>Field number for the "coin_ids" field.</summary> + public const int CoinIdsFieldNumber = 7; + private static readonly pb::FieldCodec<int> _repeated_coinIds_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField<int> coinIds_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> CoinIds { + get { return coinIds_; } + } + + /// <summary>Field number for the "hide_coin_add" field.</summary> + public const int HideCoinAddFieldNumber = 8; + private bool hideCoinAdd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HideCoinAdd { + get { return hideCoinAdd_; } + set { + hideCoinAdd_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TopBar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TopBar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (EntryId != other.EntryId) return false; + if (HideBack != other.HideBack) return false; + if (Energy != other.Energy) return false; + if (Coin != other.Coin) return false; + if(!coinIds_.Equals(other.coinIds_)) return false; + if (HideCoinAdd != other.HideCoinAdd) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (HideBack != false) hash ^= HideBack.GetHashCode(); + if (Energy != false) hash ^= Energy.GetHashCode(); + if (Coin != false) hash ^= Coin.GetHashCode(); + hash ^= coinIds_.GetHashCode(); + if (HideCoinAdd != false) hash ^= HideCoinAdd.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (EntryId != 0) { + output.WriteRawTag(24); + output.WriteInt32(EntryId); + } + if (HideBack != false) { + output.WriteRawTag(32); + output.WriteBool(HideBack); + } + if (Energy != false) { + output.WriteRawTag(40); + output.WriteBool(Energy); + } + if (Coin != false) { + output.WriteRawTag(48); + output.WriteBool(Coin); + } + coinIds_.WriteTo(output, _repeated_coinIds_codec); + if (HideCoinAdd != false) { + output.WriteRawTag(64); + output.WriteBool(HideCoinAdd); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (EntryId != 0) { + output.WriteRawTag(24); + output.WriteInt32(EntryId); + } + if (HideBack != false) { + output.WriteRawTag(32); + output.WriteBool(HideBack); + } + if (Energy != false) { + output.WriteRawTag(40); + output.WriteBool(Energy); + } + if (Coin != false) { + output.WriteRawTag(48); + output.WriteBool(Coin); + } + coinIds_.WriteTo(ref output, _repeated_coinIds_codec); + if (HideCoinAdd != false) { + output.WriteRawTag(64); + output.WriteBool(HideCoinAdd); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EntryId); + } + if (HideBack != false) { + size += 1 + 1; + } + if (Energy != false) { + size += 1 + 1; + } + if (Coin != false) { + size += 1 + 1; + } + size += coinIds_.CalculateSize(_repeated_coinIds_codec); + if (HideCoinAdd != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TopBar other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + if (other.HideBack != false) { + HideBack = other.HideBack; + } + if (other.Energy != false) { + Energy = other.Energy; + } + if (other.Coin != false) { + Coin = other.Coin; + } + coinIds_.Add(other.coinIds_); + if (other.HideCoinAdd != false) { + HideCoinAdd = other.HideCoinAdd; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + EntryId = input.ReadInt32(); + break; + } + case 32: { + HideBack = input.ReadBool(); + break; + } + case 40: { + Energy = input.ReadBool(); + break; + } + case 48: { + Coin = input.ReadBool(); + break; + } + case 58: + case 56: { + coinIds_.AddEntriesFrom(input, _repeated_coinIds_codec); + break; + } + case 64: { + HideCoinAdd = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 24: { + EntryId = input.ReadInt32(); + break; + } + case 32: { + HideBack = input.ReadBool(); + break; + } + case 40: { + Energy = input.ReadBool(); + break; + } + case 48: { + Coin = input.ReadBool(); + break; + } + case 58: + case 56: { + coinIds_.AddEntriesFrom(ref input, _repeated_coinIds_codec); + break; + } + case 64: { + HideCoinAdd = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TourGuideQuest.cs b/NTR.Common/protos/TourGuideQuest.cs new file mode 100644 index 0000000..676f1ed --- /dev/null +++ b/NTR.Common/protos/TourGuideQuest.cs @@ -0,0 +1,578 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TourGuideQuest.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TourGuideQuest.proto</summary> + public static partial class TourGuideQuestReflection { + + #region Descriptor + /// <summary>File descriptor for TourGuideQuest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TourGuideQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRUb3VyR3VpZGVRdWVzdC5wcm90byK9AQoOVG91ckd1aWRlUXVlc3QSCgoC", + "aWQYASABKAUSDQoFb3JkZXIYAiABKAUSDQoFdGl0bGUYAyABKAkSDwoHanVt", + "cF90bxgEIAEoBRIPCgdyZXdhcmQxGAUgASgFEhMKC3Jld2FyZF9xdHkxGAYg", + "ASgFEg8KB3Jld2FyZDIYByABKAUSEwoLcmV3YXJkX3F0eTIYCCABKAUSDwoH", + "cmV3YXJkMxgJIAEoBRITCgtyZXdhcmRfcXR5MxgKIAEoBUIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TourGuideQuest), global::Nova.Client.TourGuideQuest.Parser, new[]{ "Id", "Order", "Title", "JumpTo", "Reward1", "RewardQty1", "Reward2", "RewardQty2", "Reward3", "RewardQty3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TourGuideQuest : pb::IMessage<TourGuideQuest> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TourGuideQuest> _parser = new pb::MessageParser<TourGuideQuest>(() => new TourGuideQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TourGuideQuest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TourGuideQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TourGuideQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TourGuideQuest(TourGuideQuest other) : this() { + id_ = other.id_; + order_ = other.order_; + title_ = other.title_; + jumpTo_ = other.jumpTo_; + reward1_ = other.reward1_; + rewardQty1_ = other.rewardQty1_; + reward2_ = other.reward2_; + rewardQty2_ = other.rewardQty2_; + reward3_ = other.reward3_; + rewardQty3_ = other.rewardQty3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TourGuideQuest Clone() { + return new TourGuideQuest(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "order" field.</summary> + public const int OrderFieldNumber = 2; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "jump_to" field.</summary> + public const int JumpToFieldNumber = 4; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// <summary>Field number for the "reward1" field.</summary> + public const int Reward1FieldNumber = 5; + private int reward1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward1 { + get { return reward1_; } + set { + reward1_ = value; + } + } + + /// <summary>Field number for the "reward_qty1" field.</summary> + public const int RewardQty1FieldNumber = 6; + private int rewardQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty1 { + get { return rewardQty1_; } + set { + rewardQty1_ = value; + } + } + + /// <summary>Field number for the "reward2" field.</summary> + public const int Reward2FieldNumber = 7; + private int reward2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward2 { + get { return reward2_; } + set { + reward2_ = value; + } + } + + /// <summary>Field number for the "reward_qty2" field.</summary> + public const int RewardQty2FieldNumber = 8; + private int rewardQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty2 { + get { return rewardQty2_; } + set { + rewardQty2_ = value; + } + } + + /// <summary>Field number for the "reward3" field.</summary> + public const int Reward3FieldNumber = 9; + private int reward3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward3 { + get { return reward3_; } + set { + reward3_ = value; + } + } + + /// <summary>Field number for the "reward_qty3" field.</summary> + public const int RewardQty3FieldNumber = 10; + private int rewardQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty3 { + get { return rewardQty3_; } + set { + rewardQty3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TourGuideQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TourGuideQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Order != other.Order) return false; + if (Title != other.Title) return false; + if (JumpTo != other.JumpTo) return false; + if (Reward1 != other.Reward1) return false; + if (RewardQty1 != other.RewardQty1) return false; + if (Reward2 != other.Reward2) return false; + if (RewardQty2 != other.RewardQty2) return false; + if (Reward3 != other.Reward3) return false; + if (RewardQty3 != other.RewardQty3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Reward1 != 0) hash ^= Reward1.GetHashCode(); + if (RewardQty1 != 0) hash ^= RewardQty1.GetHashCode(); + if (Reward2 != 0) hash ^= Reward2.GetHashCode(); + if (RewardQty2 != 0) hash ^= RewardQty2.GetHashCode(); + if (Reward3 != 0) hash ^= Reward3.GetHashCode(); + if (RewardQty3 != 0) hash ^= RewardQty3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Order != 0) { + output.WriteRawTag(16); + output.WriteInt32(Order); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Reward1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Order != 0) { + output.WriteRawTag(16); + output.WriteInt32(Order); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Reward1 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(48); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(64); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardQty3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Reward1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward1); + } + if (RewardQty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty1); + } + if (Reward2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward2); + } + if (RewardQty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty2); + } + if (Reward3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward3); + } + if (RewardQty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TourGuideQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Reward1 != 0) { + Reward1 = other.Reward1; + } + if (other.RewardQty1 != 0) { + RewardQty1 = other.RewardQty1; + } + if (other.Reward2 != 0) { + Reward2 = other.Reward2; + } + if (other.RewardQty2 != 0) { + RewardQty2 = other.RewardQty2; + } + if (other.Reward3 != 0) { + Reward3 = other.Reward3; + } + if (other.RewardQty3 != 0) { + RewardQty3 = other.RewardQty3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Order = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Reward1 = input.ReadInt32(); + break; + } + case 48: { + RewardQty1 = input.ReadInt32(); + break; + } + case 56: { + Reward2 = input.ReadInt32(); + break; + } + case 64: { + RewardQty2 = input.ReadInt32(); + break; + } + case 72: { + Reward3 = input.ReadInt32(); + break; + } + case 80: { + RewardQty3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Order = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Reward1 = input.ReadInt32(); + break; + } + case 48: { + RewardQty1 = input.ReadInt32(); + break; + } + case 56: { + Reward2 = input.ReadInt32(); + break; + } + case 64: { + RewardQty2 = input.ReadInt32(); + break; + } + case 72: { + Reward3 = input.ReadInt32(); + break; + } + case 80: { + RewardQty3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TourGuideQuestGroup.cs b/NTR.Common/protos/TourGuideQuestGroup.cs new file mode 100644 index 0000000..2592738 --- /dev/null +++ b/NTR.Common/protos/TourGuideQuestGroup.cs @@ -0,0 +1,728 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TourGuideQuestGroup.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TourGuideQuestGroup.proto</summary> + public static partial class TourGuideQuestGroupReflection { + + #region Descriptor + /// <summary>File descriptor for TourGuideQuestGroup.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TourGuideQuestGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlUb3VyR3VpZGVRdWVzdEdyb3VwLnByb3RvIpQCChNUb3VyR3VpZGVRdWVz", + "dEdyb3VwEgoKAmlkGAEgASgFEg0KBW9yZGVyGAIgASgFEg8KB3Jld2FyZDEY", + "AyABKAUSEwoLcmV3YXJkX3F0eTEYBCABKAUSDwoHcmV3YXJkMhgFIAEoBRIT", + "CgtyZXdhcmRfcXR5MhgGIAEoBRIPCgdyZXdhcmQzGAcgASgFEhMKC3Jld2Fy", + "ZF9xdHkzGAggASgFEg8KB3Jld2FyZDQYCSABKAUSEwoLcmV3YXJkX3F0eTQY", + "CiABKAUSDwoHcmV3YXJkNRgLIAEoBRITCgtyZXdhcmRfcXR5NRgMIAEoBRIP", + "CgdyZXdhcmQ2GA0gASgFEhMKC3Jld2FyZF9xdHk2GA4gASgFQg6qAgtOb3Zh", + "LkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TourGuideQuestGroup), global::Nova.Client.TourGuideQuestGroup.Parser, new[]{ "Id", "Order", "Reward1", "RewardQty1", "Reward2", "RewardQty2", "Reward3", "RewardQty3", "Reward4", "RewardQty4", "Reward5", "RewardQty5", "Reward6", "RewardQty6" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TourGuideQuestGroup : pb::IMessage<TourGuideQuestGroup> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TourGuideQuestGroup> _parser = new pb::MessageParser<TourGuideQuestGroup>(() => new TourGuideQuestGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TourGuideQuestGroup> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TourGuideQuestGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TourGuideQuestGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TourGuideQuestGroup(TourGuideQuestGroup other) : this() { + id_ = other.id_; + order_ = other.order_; + reward1_ = other.reward1_; + rewardQty1_ = other.rewardQty1_; + reward2_ = other.reward2_; + rewardQty2_ = other.rewardQty2_; + reward3_ = other.reward3_; + rewardQty3_ = other.rewardQty3_; + reward4_ = other.reward4_; + rewardQty4_ = other.rewardQty4_; + reward5_ = other.reward5_; + rewardQty5_ = other.rewardQty5_; + reward6_ = other.reward6_; + rewardQty6_ = other.rewardQty6_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TourGuideQuestGroup Clone() { + return new TourGuideQuestGroup(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "order" field.</summary> + public const int OrderFieldNumber = 2; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// <summary>Field number for the "reward1" field.</summary> + public const int Reward1FieldNumber = 3; + private int reward1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward1 { + get { return reward1_; } + set { + reward1_ = value; + } + } + + /// <summary>Field number for the "reward_qty1" field.</summary> + public const int RewardQty1FieldNumber = 4; + private int rewardQty1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty1 { + get { return rewardQty1_; } + set { + rewardQty1_ = value; + } + } + + /// <summary>Field number for the "reward2" field.</summary> + public const int Reward2FieldNumber = 5; + private int reward2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward2 { + get { return reward2_; } + set { + reward2_ = value; + } + } + + /// <summary>Field number for the "reward_qty2" field.</summary> + public const int RewardQty2FieldNumber = 6; + private int rewardQty2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty2 { + get { return rewardQty2_; } + set { + rewardQty2_ = value; + } + } + + /// <summary>Field number for the "reward3" field.</summary> + public const int Reward3FieldNumber = 7; + private int reward3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward3 { + get { return reward3_; } + set { + reward3_ = value; + } + } + + /// <summary>Field number for the "reward_qty3" field.</summary> + public const int RewardQty3FieldNumber = 8; + private int rewardQty3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty3 { + get { return rewardQty3_; } + set { + rewardQty3_ = value; + } + } + + /// <summary>Field number for the "reward4" field.</summary> + public const int Reward4FieldNumber = 9; + private int reward4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward4 { + get { return reward4_; } + set { + reward4_ = value; + } + } + + /// <summary>Field number for the "reward_qty4" field.</summary> + public const int RewardQty4FieldNumber = 10; + private int rewardQty4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty4 { + get { return rewardQty4_; } + set { + rewardQty4_ = value; + } + } + + /// <summary>Field number for the "reward5" field.</summary> + public const int Reward5FieldNumber = 11; + private int reward5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward5 { + get { return reward5_; } + set { + reward5_ = value; + } + } + + /// <summary>Field number for the "reward_qty5" field.</summary> + public const int RewardQty5FieldNumber = 12; + private int rewardQty5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty5 { + get { return rewardQty5_; } + set { + rewardQty5_ = value; + } + } + + /// <summary>Field number for the "reward6" field.</summary> + public const int Reward6FieldNumber = 13; + private int reward6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Reward6 { + get { return reward6_; } + set { + reward6_ = value; + } + } + + /// <summary>Field number for the "reward_qty6" field.</summary> + public const int RewardQty6FieldNumber = 14; + private int rewardQty6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardQty6 { + get { return rewardQty6_; } + set { + rewardQty6_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TourGuideQuestGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TourGuideQuestGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Order != other.Order) return false; + if (Reward1 != other.Reward1) return false; + if (RewardQty1 != other.RewardQty1) return false; + if (Reward2 != other.Reward2) return false; + if (RewardQty2 != other.RewardQty2) return false; + if (Reward3 != other.Reward3) return false; + if (RewardQty3 != other.RewardQty3) return false; + if (Reward4 != other.Reward4) return false; + if (RewardQty4 != other.RewardQty4) return false; + if (Reward5 != other.Reward5) return false; + if (RewardQty5 != other.RewardQty5) return false; + if (Reward6 != other.Reward6) return false; + if (RewardQty6 != other.RewardQty6) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (Reward1 != 0) hash ^= Reward1.GetHashCode(); + if (RewardQty1 != 0) hash ^= RewardQty1.GetHashCode(); + if (Reward2 != 0) hash ^= Reward2.GetHashCode(); + if (RewardQty2 != 0) hash ^= RewardQty2.GetHashCode(); + if (Reward3 != 0) hash ^= Reward3.GetHashCode(); + if (RewardQty3 != 0) hash ^= RewardQty3.GetHashCode(); + if (Reward4 != 0) hash ^= Reward4.GetHashCode(); + if (RewardQty4 != 0) hash ^= RewardQty4.GetHashCode(); + if (Reward5 != 0) hash ^= Reward5.GetHashCode(); + if (RewardQty5 != 0) hash ^= RewardQty5.GetHashCode(); + if (Reward6 != 0) hash ^= Reward6.GetHashCode(); + if (RewardQty6 != 0) hash ^= RewardQty6.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Order != 0) { + output.WriteRawTag(16); + output.WriteInt32(Order); + } + if (Reward1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(RewardQty3); + } + if (Reward4 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Reward4); + } + if (RewardQty4 != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardQty4); + } + if (Reward5 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Reward5); + } + if (RewardQty5 != 0) { + output.WriteRawTag(96); + output.WriteInt32(RewardQty5); + } + if (Reward6 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Reward6); + } + if (RewardQty6 != 0) { + output.WriteRawTag(112); + output.WriteInt32(RewardQty6); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Order != 0) { + output.WriteRawTag(16); + output.WriteInt32(Order); + } + if (Reward1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(Reward1); + } + if (RewardQty1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(RewardQty1); + } + if (Reward2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(Reward2); + } + if (RewardQty2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(RewardQty2); + } + if (Reward3 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Reward3); + } + if (RewardQty3 != 0) { + output.WriteRawTag(64); + output.WriteInt32(RewardQty3); + } + if (Reward4 != 0) { + output.WriteRawTag(72); + output.WriteInt32(Reward4); + } + if (RewardQty4 != 0) { + output.WriteRawTag(80); + output.WriteInt32(RewardQty4); + } + if (Reward5 != 0) { + output.WriteRawTag(88); + output.WriteInt32(Reward5); + } + if (RewardQty5 != 0) { + output.WriteRawTag(96); + output.WriteInt32(RewardQty5); + } + if (Reward6 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Reward6); + } + if (RewardQty6 != 0) { + output.WriteRawTag(112); + output.WriteInt32(RewardQty6); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (Reward1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward1); + } + if (RewardQty1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty1); + } + if (Reward2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward2); + } + if (RewardQty2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty2); + } + if (Reward3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward3); + } + if (RewardQty3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty3); + } + if (Reward4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward4); + } + if (RewardQty4 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty4); + } + if (Reward5 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward5); + } + if (RewardQty5 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty5); + } + if (Reward6 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward6); + } + if (RewardQty6 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty6); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TourGuideQuestGroup other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.Reward1 != 0) { + Reward1 = other.Reward1; + } + if (other.RewardQty1 != 0) { + RewardQty1 = other.RewardQty1; + } + if (other.Reward2 != 0) { + Reward2 = other.Reward2; + } + if (other.RewardQty2 != 0) { + RewardQty2 = other.RewardQty2; + } + if (other.Reward3 != 0) { + Reward3 = other.Reward3; + } + if (other.RewardQty3 != 0) { + RewardQty3 = other.RewardQty3; + } + if (other.Reward4 != 0) { + Reward4 = other.Reward4; + } + if (other.RewardQty4 != 0) { + RewardQty4 = other.RewardQty4; + } + if (other.Reward5 != 0) { + Reward5 = other.Reward5; + } + if (other.RewardQty5 != 0) { + RewardQty5 = other.RewardQty5; + } + if (other.Reward6 != 0) { + Reward6 = other.Reward6; + } + if (other.RewardQty6 != 0) { + RewardQty6 = other.RewardQty6; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Order = input.ReadInt32(); + break; + } + case 24: { + Reward1 = input.ReadInt32(); + break; + } + case 32: { + RewardQty1 = input.ReadInt32(); + break; + } + case 40: { + Reward2 = input.ReadInt32(); + break; + } + case 48: { + RewardQty2 = input.ReadInt32(); + break; + } + case 56: { + Reward3 = input.ReadInt32(); + break; + } + case 64: { + RewardQty3 = input.ReadInt32(); + break; + } + case 72: { + Reward4 = input.ReadInt32(); + break; + } + case 80: { + RewardQty4 = input.ReadInt32(); + break; + } + case 88: { + Reward5 = input.ReadInt32(); + break; + } + case 96: { + RewardQty5 = input.ReadInt32(); + break; + } + case 104: { + Reward6 = input.ReadInt32(); + break; + } + case 112: { + RewardQty6 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Order = input.ReadInt32(); + break; + } + case 24: { + Reward1 = input.ReadInt32(); + break; + } + case 32: { + RewardQty1 = input.ReadInt32(); + break; + } + case 40: { + Reward2 = input.ReadInt32(); + break; + } + case 48: { + RewardQty2 = input.ReadInt32(); + break; + } + case 56: { + Reward3 = input.ReadInt32(); + break; + } + case 64: { + RewardQty3 = input.ReadInt32(); + break; + } + case 72: { + Reward4 = input.ReadInt32(); + break; + } + case 80: { + RewardQty4 = input.ReadInt32(); + break; + } + case 88: { + Reward5 = input.ReadInt32(); + break; + } + case 96: { + RewardQty5 = input.ReadInt32(); + break; + } + case 104: { + Reward6 = input.ReadInt32(); + break; + } + case 112: { + RewardQty6 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Trap.cs b/NTR.Common/protos/Trap.cs new file mode 100644 index 0000000..159dd15 --- /dev/null +++ b/NTR.Common/protos/Trap.cs @@ -0,0 +1,1318 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Trap.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from Trap.proto</summary> + public static partial class TrapReflection { + + #region Descriptor + /// <summary>File descriptor for Trap.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TrapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpUcmFwLnByb3RvIs4ECgRUcmFwEgoKAmlkGAEgASgFEgwKBG5hbWUYAiAB", + "KAkSDgoGZl9jX2lkGAMgASgFEg0KBW1vZGVsGAQgASgJEhMKC21vZGVsX3Nj", + "YWxlGAUgASgFEhYKDmJ1ZmZfZl94X3NjYWxlGAYgASgFEhYKDmNvbGxpZGVy", + "X3NjYWxlGAcgASgFEhQKDGF0dHJpYnV0ZV9pZBgIIAEoCRIQCgh0ZW1wbGV0", + "ZRgJIAEoBRIQCghidWZmX2lkcxgKIAMoBRIZChF0dXJuX29mZl9idWZmX2lk", + "cxgLIAMoBRIYChB0dXJuX29uX2J1ZmZfaWRzGAwgAygFEhcKD2ludGVycnVw", + "dF9za2lsbBgNIAEoCBIQCghzdWJfdHlwZRgOIAEoBRIPCgdmYWN0aW9uGA8g", + "ASgFEg4KBmZpbHRlchgQIAMoBRIYChBpZ25vcmVfY29sbGlzaW9uGBEgASgI", + "EhIKCmFjdGl2ZV9lZmYYEiABKAkSEgoKc2hhcGVfdHlwZRgTIAEoBRINCgV3", + "aWR0aBgUIAEoAhIOCgZsZW5ndGgYFSABKAISDgoGcmFkaXVzGBYgASgCEhQK", + "DGlubmVyX3JhZGl1cxgXIAEoAhINCgVhbmdsZRgYIAEoAhIOCgZvZmZzZXQY", + "GSADKAISEAoIcm90YXRpb24YGiABKAISDwoHaXNfbW92ZRgbIAEoCBIQCghp", + "c19ibG9jaxgcIAEoCBIPCgdtb3ZfYWNjGB0gASgFEg8KB3JvdF9zcGQYHiAB", + "KAUSEAoIbW92ZV9zcGQYHyABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Trap), global::Nova.Client.Trap.Parser, new[]{ "Id", "Name", "FCId", "Model", "ModelScale", "BuffFXScale", "ColliderScale", "AttributeId", "Templete", "BuffIds", "TurnOffBuffIds", "TurnOnBuffIds", "InterruptSkill", "SubType", "Faction", "Filter", "IgnoreCollision", "ActiveEff", "ShapeType", "Width", "Length", "Radius", "InnerRadius", "Angle", "Offset", "Rotation", "IsMove", "IsBlock", "MovAcc", "RotSpd", "MoveSpd" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Trap : pb::IMessage<Trap> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<Trap> _parser = new pb::MessageParser<Trap>(() => new Trap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<Trap> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TrapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Trap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Trap(Trap other) : this() { + id_ = other.id_; + name_ = other.name_; + fCId_ = other.fCId_; + model_ = other.model_; + modelScale_ = other.modelScale_; + buffFXScale_ = other.buffFXScale_; + colliderScale_ = other.colliderScale_; + attributeId_ = other.attributeId_; + templete_ = other.templete_; + buffIds_ = other.buffIds_.Clone(); + turnOffBuffIds_ = other.turnOffBuffIds_.Clone(); + turnOnBuffIds_ = other.turnOnBuffIds_.Clone(); + interruptSkill_ = other.interruptSkill_; + subType_ = other.subType_; + faction_ = other.faction_; + filter_ = other.filter_.Clone(); + ignoreCollision_ = other.ignoreCollision_; + activeEff_ = other.activeEff_; + shapeType_ = other.shapeType_; + width_ = other.width_; + length_ = other.length_; + radius_ = other.radius_; + innerRadius_ = other.innerRadius_; + angle_ = other.angle_; + offset_ = other.offset_.Clone(); + rotation_ = other.rotation_; + isMove_ = other.isMove_; + isBlock_ = other.isBlock_; + movAcc_ = other.movAcc_; + rotSpd_ = other.rotSpd_; + moveSpd_ = other.moveSpd_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Trap Clone() { + return new Trap(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "f_c_id" field.</summary> + public const int FCIdFieldNumber = 3; + private int fCId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FCId { + get { return fCId_; } + set { + fCId_ = value; + } + } + + /// <summary>Field number for the "model" field.</summary> + public const int ModelFieldNumber = 4; + private string model_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Model { + get { return model_; } + set { + model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "model_scale" field.</summary> + public const int ModelScaleFieldNumber = 5; + private int modelScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ModelScale { + get { return modelScale_; } + set { + modelScale_ = value; + } + } + + /// <summary>Field number for the "buff_f_x_scale" field.</summary> + public const int BuffFXScaleFieldNumber = 6; + private int buffFXScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BuffFXScale { + get { return buffFXScale_; } + set { + buffFXScale_ = value; + } + } + + /// <summary>Field number for the "collider_scale" field.</summary> + public const int ColliderScaleFieldNumber = 7; + private int colliderScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ColliderScale { + get { return colliderScale_; } + set { + colliderScale_ = value; + } + } + + /// <summary>Field number for the "attribute_id" field.</summary> + public const int AttributeIdFieldNumber = 8; + private string attributeId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AttributeId { + get { return attributeId_; } + set { + attributeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "templete" field.</summary> + public const int TempleteFieldNumber = 9; + private int templete_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Templete { + get { return templete_; } + set { + templete_ = value; + } + } + + /// <summary>Field number for the "buff_ids" field.</summary> + public const int BuffIdsFieldNumber = 10; + private static readonly pb::FieldCodec<int> _repeated_buffIds_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField<int> buffIds_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> BuffIds { + get { return buffIds_; } + } + + /// <summary>Field number for the "turn_off_buff_ids" field.</summary> + public const int TurnOffBuffIdsFieldNumber = 11; + private static readonly pb::FieldCodec<int> _repeated_turnOffBuffIds_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField<int> turnOffBuffIds_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> TurnOffBuffIds { + get { return turnOffBuffIds_; } + } + + /// <summary>Field number for the "turn_on_buff_ids" field.</summary> + public const int TurnOnBuffIdsFieldNumber = 12; + private static readonly pb::FieldCodec<int> _repeated_turnOnBuffIds_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField<int> turnOnBuffIds_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> TurnOnBuffIds { + get { return turnOnBuffIds_; } + } + + /// <summary>Field number for the "interrupt_skill" field.</summary> + public const int InterruptSkillFieldNumber = 13; + private bool interruptSkill_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InterruptSkill { + get { return interruptSkill_; } + set { + interruptSkill_ = value; + } + } + + /// <summary>Field number for the "sub_type" field.</summary> + public const int SubTypeFieldNumber = 14; + private int subType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SubType { + get { return subType_; } + set { + subType_ = value; + } + } + + /// <summary>Field number for the "faction" field.</summary> + public const int FactionFieldNumber = 15; + private int faction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Faction { + get { return faction_; } + set { + faction_ = value; + } + } + + /// <summary>Field number for the "filter" field.</summary> + public const int FilterFieldNumber = 16; + private static readonly pb::FieldCodec<int> _repeated_filter_codec + = pb::FieldCodec.ForInt32(130); + private readonly pbc::RepeatedField<int> filter_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> Filter { + get { return filter_; } + } + + /// <summary>Field number for the "ignore_collision" field.</summary> + public const int IgnoreCollisionFieldNumber = 17; + private bool ignoreCollision_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreCollision { + get { return ignoreCollision_; } + set { + ignoreCollision_ = value; + } + } + + /// <summary>Field number for the "active_eff" field.</summary> + public const int ActiveEffFieldNumber = 18; + private string activeEff_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveEff { + get { return activeEff_; } + set { + activeEff_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "shape_type" field.</summary> + public const int ShapeTypeFieldNumber = 19; + private int shapeType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShapeType { + get { return shapeType_; } + set { + shapeType_ = value; + } + } + + /// <summary>Field number for the "width" field.</summary> + public const int WidthFieldNumber = 20; + private float width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Width { + get { return width_; } + set { + width_ = value; + } + } + + /// <summary>Field number for the "length" field.</summary> + public const int LengthFieldNumber = 21; + private float length_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Length { + get { return length_; } + set { + length_ = value; + } + } + + /// <summary>Field number for the "radius" field.</summary> + public const int RadiusFieldNumber = 22; + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { return radius_; } + set { + radius_ = value; + } + } + + /// <summary>Field number for the "inner_radius" field.</summary> + public const int InnerRadiusFieldNumber = 23; + private float innerRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InnerRadius { + get { return innerRadius_; } + set { + innerRadius_ = value; + } + } + + /// <summary>Field number for the "angle" field.</summary> + public const int AngleFieldNumber = 24; + private float angle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Angle { + get { return angle_; } + set { + angle_ = value; + } + } + + /// <summary>Field number for the "offset" field.</summary> + public const int OffsetFieldNumber = 25; + private static readonly pb::FieldCodec<float> _repeated_offset_codec + = pb::FieldCodec.ForFloat(202); + private readonly pbc::RepeatedField<float> offset_ = new pbc::RepeatedField<float>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<float> Offset { + get { return offset_; } + } + + /// <summary>Field number for the "rotation" field.</summary> + public const int RotationFieldNumber = 26; + private float rotation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Rotation { + get { return rotation_; } + set { + rotation_ = value; + } + } + + /// <summary>Field number for the "is_move" field.</summary> + public const int IsMoveFieldNumber = 27; + private bool isMove_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsMove { + get { return isMove_; } + set { + isMove_ = value; + } + } + + /// <summary>Field number for the "is_block" field.</summary> + public const int IsBlockFieldNumber = 28; + private bool isBlock_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBlock { + get { return isBlock_; } + set { + isBlock_ = value; + } + } + + /// <summary>Field number for the "mov_acc" field.</summary> + public const int MovAccFieldNumber = 29; + private int movAcc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MovAcc { + get { return movAcc_; } + set { + movAcc_ = value; + } + } + + /// <summary>Field number for the "rot_spd" field.</summary> + public const int RotSpdFieldNumber = 30; + private int rotSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RotSpd { + get { return rotSpd_; } + set { + rotSpd_ = value; + } + } + + /// <summary>Field number for the "move_spd" field.</summary> + public const int MoveSpdFieldNumber = 31; + private int moveSpd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MoveSpd { + get { return moveSpd_; } + set { + moveSpd_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Trap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Trap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (FCId != other.FCId) return false; + if (Model != other.Model) return false; + if (ModelScale != other.ModelScale) return false; + if (BuffFXScale != other.BuffFXScale) return false; + if (ColliderScale != other.ColliderScale) return false; + if (AttributeId != other.AttributeId) return false; + if (Templete != other.Templete) return false; + if(!buffIds_.Equals(other.buffIds_)) return false; + if(!turnOffBuffIds_.Equals(other.turnOffBuffIds_)) return false; + if(!turnOnBuffIds_.Equals(other.turnOnBuffIds_)) return false; + if (InterruptSkill != other.InterruptSkill) return false; + if (SubType != other.SubType) return false; + if (Faction != other.Faction) return false; + if(!filter_.Equals(other.filter_)) return false; + if (IgnoreCollision != other.IgnoreCollision) return false; + if (ActiveEff != other.ActiveEff) return false; + if (ShapeType != other.ShapeType) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Length, other.Length)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InnerRadius, other.InnerRadius)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Angle, other.Angle)) return false; + if(!offset_.Equals(other.offset_)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) return false; + if (IsMove != other.IsMove) return false; + if (IsBlock != other.IsBlock) return false; + if (MovAcc != other.MovAcc) return false; + if (RotSpd != other.RotSpd) return false; + if (MoveSpd != other.MoveSpd) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (FCId != 0) hash ^= FCId.GetHashCode(); + if (Model.Length != 0) hash ^= Model.GetHashCode(); + if (ModelScale != 0) hash ^= ModelScale.GetHashCode(); + if (BuffFXScale != 0) hash ^= BuffFXScale.GetHashCode(); + if (ColliderScale != 0) hash ^= ColliderScale.GetHashCode(); + if (AttributeId.Length != 0) hash ^= AttributeId.GetHashCode(); + if (Templete != 0) hash ^= Templete.GetHashCode(); + hash ^= buffIds_.GetHashCode(); + hash ^= turnOffBuffIds_.GetHashCode(); + hash ^= turnOnBuffIds_.GetHashCode(); + if (InterruptSkill != false) hash ^= InterruptSkill.GetHashCode(); + if (SubType != 0) hash ^= SubType.GetHashCode(); + if (Faction != 0) hash ^= Faction.GetHashCode(); + hash ^= filter_.GetHashCode(); + if (IgnoreCollision != false) hash ^= IgnoreCollision.GetHashCode(); + if (ActiveEff.Length != 0) hash ^= ActiveEff.GetHashCode(); + if (ShapeType != 0) hash ^= ShapeType.GetHashCode(); + if (Width != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); + if (Length != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Length); + if (Radius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (InnerRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InnerRadius); + if (Angle != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Angle); + hash ^= offset_.GetHashCode(); + if (Rotation != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation); + if (IsMove != false) hash ^= IsMove.GetHashCode(); + if (IsBlock != false) hash ^= IsBlock.GetHashCode(); + if (MovAcc != 0) hash ^= MovAcc.GetHashCode(); + if (RotSpd != 0) hash ^= RotSpd.GetHashCode(); + if (MoveSpd != 0) hash ^= MoveSpd.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (FCId != 0) { + output.WriteRawTag(24); + output.WriteInt32(FCId); + } + if (Model.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Model); + } + if (ModelScale != 0) { + output.WriteRawTag(40); + output.WriteInt32(ModelScale); + } + if (BuffFXScale != 0) { + output.WriteRawTag(48); + output.WriteInt32(BuffFXScale); + } + if (ColliderScale != 0) { + output.WriteRawTag(56); + output.WriteInt32(ColliderScale); + } + if (AttributeId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(AttributeId); + } + if (Templete != 0) { + output.WriteRawTag(72); + output.WriteInt32(Templete); + } + buffIds_.WriteTo(output, _repeated_buffIds_codec); + turnOffBuffIds_.WriteTo(output, _repeated_turnOffBuffIds_codec); + turnOnBuffIds_.WriteTo(output, _repeated_turnOnBuffIds_codec); + if (InterruptSkill != false) { + output.WriteRawTag(104); + output.WriteBool(InterruptSkill); + } + if (SubType != 0) { + output.WriteRawTag(112); + output.WriteInt32(SubType); + } + if (Faction != 0) { + output.WriteRawTag(120); + output.WriteInt32(Faction); + } + filter_.WriteTo(output, _repeated_filter_codec); + if (IgnoreCollision != false) { + output.WriteRawTag(136, 1); + output.WriteBool(IgnoreCollision); + } + if (ActiveEff.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ActiveEff); + } + if (ShapeType != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ShapeType); + } + if (Width != 0F) { + output.WriteRawTag(165, 1); + output.WriteFloat(Width); + } + if (Length != 0F) { + output.WriteRawTag(173, 1); + output.WriteFloat(Length); + } + if (Radius != 0F) { + output.WriteRawTag(181, 1); + output.WriteFloat(Radius); + } + if (InnerRadius != 0F) { + output.WriteRawTag(189, 1); + output.WriteFloat(InnerRadius); + } + if (Angle != 0F) { + output.WriteRawTag(197, 1); + output.WriteFloat(Angle); + } + offset_.WriteTo(output, _repeated_offset_codec); + if (Rotation != 0F) { + output.WriteRawTag(213, 1); + output.WriteFloat(Rotation); + } + if (IsMove != false) { + output.WriteRawTag(216, 1); + output.WriteBool(IsMove); + } + if (IsBlock != false) { + output.WriteRawTag(224, 1); + output.WriteBool(IsBlock); + } + if (MovAcc != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(MovAcc); + } + if (RotSpd != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(RotSpd); + } + if (MoveSpd != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(MoveSpd); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (FCId != 0) { + output.WriteRawTag(24); + output.WriteInt32(FCId); + } + if (Model.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Model); + } + if (ModelScale != 0) { + output.WriteRawTag(40); + output.WriteInt32(ModelScale); + } + if (BuffFXScale != 0) { + output.WriteRawTag(48); + output.WriteInt32(BuffFXScale); + } + if (ColliderScale != 0) { + output.WriteRawTag(56); + output.WriteInt32(ColliderScale); + } + if (AttributeId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(AttributeId); + } + if (Templete != 0) { + output.WriteRawTag(72); + output.WriteInt32(Templete); + } + buffIds_.WriteTo(ref output, _repeated_buffIds_codec); + turnOffBuffIds_.WriteTo(ref output, _repeated_turnOffBuffIds_codec); + turnOnBuffIds_.WriteTo(ref output, _repeated_turnOnBuffIds_codec); + if (InterruptSkill != false) { + output.WriteRawTag(104); + output.WriteBool(InterruptSkill); + } + if (SubType != 0) { + output.WriteRawTag(112); + output.WriteInt32(SubType); + } + if (Faction != 0) { + output.WriteRawTag(120); + output.WriteInt32(Faction); + } + filter_.WriteTo(ref output, _repeated_filter_codec); + if (IgnoreCollision != false) { + output.WriteRawTag(136, 1); + output.WriteBool(IgnoreCollision); + } + if (ActiveEff.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ActiveEff); + } + if (ShapeType != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(ShapeType); + } + if (Width != 0F) { + output.WriteRawTag(165, 1); + output.WriteFloat(Width); + } + if (Length != 0F) { + output.WriteRawTag(173, 1); + output.WriteFloat(Length); + } + if (Radius != 0F) { + output.WriteRawTag(181, 1); + output.WriteFloat(Radius); + } + if (InnerRadius != 0F) { + output.WriteRawTag(189, 1); + output.WriteFloat(InnerRadius); + } + if (Angle != 0F) { + output.WriteRawTag(197, 1); + output.WriteFloat(Angle); + } + offset_.WriteTo(ref output, _repeated_offset_codec); + if (Rotation != 0F) { + output.WriteRawTag(213, 1); + output.WriteFloat(Rotation); + } + if (IsMove != false) { + output.WriteRawTag(216, 1); + output.WriteBool(IsMove); + } + if (IsBlock != false) { + output.WriteRawTag(224, 1); + output.WriteBool(IsBlock); + } + if (MovAcc != 0) { + output.WriteRawTag(232, 1); + output.WriteInt32(MovAcc); + } + if (RotSpd != 0) { + output.WriteRawTag(240, 1); + output.WriteInt32(RotSpd); + } + if (MoveSpd != 0) { + output.WriteRawTag(248, 1); + output.WriteInt32(MoveSpd); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (FCId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FCId); + } + if (Model.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); + } + if (ModelScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ModelScale); + } + if (BuffFXScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuffFXScale); + } + if (ColliderScale != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColliderScale); + } + if (AttributeId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AttributeId); + } + if (Templete != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Templete); + } + size += buffIds_.CalculateSize(_repeated_buffIds_codec); + size += turnOffBuffIds_.CalculateSize(_repeated_turnOffBuffIds_codec); + size += turnOnBuffIds_.CalculateSize(_repeated_turnOnBuffIds_codec); + if (InterruptSkill != false) { + size += 1 + 1; + } + if (SubType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubType); + } + if (Faction != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Faction); + } + size += filter_.CalculateSize(_repeated_filter_codec); + if (IgnoreCollision != false) { + size += 2 + 1; + } + if (ActiveEff.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ActiveEff); + } + if (ShapeType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ShapeType); + } + if (Width != 0F) { + size += 2 + 4; + } + if (Length != 0F) { + size += 2 + 4; + } + if (Radius != 0F) { + size += 2 + 4; + } + if (InnerRadius != 0F) { + size += 2 + 4; + } + if (Angle != 0F) { + size += 2 + 4; + } + size += offset_.CalculateSize(_repeated_offset_codec); + if (Rotation != 0F) { + size += 2 + 4; + } + if (IsMove != false) { + size += 2 + 1; + } + if (IsBlock != false) { + size += 2 + 1; + } + if (MovAcc != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MovAcc); + } + if (RotSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(RotSpd); + } + if (MoveSpd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MoveSpd); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Trap other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.FCId != 0) { + FCId = other.FCId; + } + if (other.Model.Length != 0) { + Model = other.Model; + } + if (other.ModelScale != 0) { + ModelScale = other.ModelScale; + } + if (other.BuffFXScale != 0) { + BuffFXScale = other.BuffFXScale; + } + if (other.ColliderScale != 0) { + ColliderScale = other.ColliderScale; + } + if (other.AttributeId.Length != 0) { + AttributeId = other.AttributeId; + } + if (other.Templete != 0) { + Templete = other.Templete; + } + buffIds_.Add(other.buffIds_); + turnOffBuffIds_.Add(other.turnOffBuffIds_); + turnOnBuffIds_.Add(other.turnOnBuffIds_); + if (other.InterruptSkill != false) { + InterruptSkill = other.InterruptSkill; + } + if (other.SubType != 0) { + SubType = other.SubType; + } + if (other.Faction != 0) { + Faction = other.Faction; + } + filter_.Add(other.filter_); + if (other.IgnoreCollision != false) { + IgnoreCollision = other.IgnoreCollision; + } + if (other.ActiveEff.Length != 0) { + ActiveEff = other.ActiveEff; + } + if (other.ShapeType != 0) { + ShapeType = other.ShapeType; + } + if (other.Width != 0F) { + Width = other.Width; + } + if (other.Length != 0F) { + Length = other.Length; + } + if (other.Radius != 0F) { + Radius = other.Radius; + } + if (other.InnerRadius != 0F) { + InnerRadius = other.InnerRadius; + } + if (other.Angle != 0F) { + Angle = other.Angle; + } + offset_.Add(other.offset_); + if (other.Rotation != 0F) { + Rotation = other.Rotation; + } + if (other.IsMove != false) { + IsMove = other.IsMove; + } + if (other.IsBlock != false) { + IsBlock = other.IsBlock; + } + if (other.MovAcc != 0) { + MovAcc = other.MovAcc; + } + if (other.RotSpd != 0) { + RotSpd = other.RotSpd; + } + if (other.MoveSpd != 0) { + MoveSpd = other.MoveSpd; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + FCId = input.ReadInt32(); + break; + } + case 34: { + Model = input.ReadString(); + break; + } + case 40: { + ModelScale = input.ReadInt32(); + break; + } + case 48: { + BuffFXScale = input.ReadInt32(); + break; + } + case 56: { + ColliderScale = input.ReadInt32(); + break; + } + case 66: { + AttributeId = input.ReadString(); + break; + } + case 72: { + Templete = input.ReadInt32(); + break; + } + case 82: + case 80: { + buffIds_.AddEntriesFrom(input, _repeated_buffIds_codec); + break; + } + case 90: + case 88: { + turnOffBuffIds_.AddEntriesFrom(input, _repeated_turnOffBuffIds_codec); + break; + } + case 98: + case 96: { + turnOnBuffIds_.AddEntriesFrom(input, _repeated_turnOnBuffIds_codec); + break; + } + case 104: { + InterruptSkill = input.ReadBool(); + break; + } + case 112: { + SubType = input.ReadInt32(); + break; + } + case 120: { + Faction = input.ReadInt32(); + break; + } + case 130: + case 128: { + filter_.AddEntriesFrom(input, _repeated_filter_codec); + break; + } + case 136: { + IgnoreCollision = input.ReadBool(); + break; + } + case 146: { + ActiveEff = input.ReadString(); + break; + } + case 152: { + ShapeType = input.ReadInt32(); + break; + } + case 165: { + Width = input.ReadFloat(); + break; + } + case 173: { + Length = input.ReadFloat(); + break; + } + case 181: { + Radius = input.ReadFloat(); + break; + } + case 189: { + InnerRadius = input.ReadFloat(); + break; + } + case 197: { + Angle = input.ReadFloat(); + break; + } + case 202: + case 205: { + offset_.AddEntriesFrom(input, _repeated_offset_codec); + break; + } + case 213: { + Rotation = input.ReadFloat(); + break; + } + case 216: { + IsMove = input.ReadBool(); + break; + } + case 224: { + IsBlock = input.ReadBool(); + break; + } + case 232: { + MovAcc = input.ReadInt32(); + break; + } + case 240: { + RotSpd = input.ReadInt32(); + break; + } + case 248: { + MoveSpd = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + FCId = input.ReadInt32(); + break; + } + case 34: { + Model = input.ReadString(); + break; + } + case 40: { + ModelScale = input.ReadInt32(); + break; + } + case 48: { + BuffFXScale = input.ReadInt32(); + break; + } + case 56: { + ColliderScale = input.ReadInt32(); + break; + } + case 66: { + AttributeId = input.ReadString(); + break; + } + case 72: { + Templete = input.ReadInt32(); + break; + } + case 82: + case 80: { + buffIds_.AddEntriesFrom(ref input, _repeated_buffIds_codec); + break; + } + case 90: + case 88: { + turnOffBuffIds_.AddEntriesFrom(ref input, _repeated_turnOffBuffIds_codec); + break; + } + case 98: + case 96: { + turnOnBuffIds_.AddEntriesFrom(ref input, _repeated_turnOnBuffIds_codec); + break; + } + case 104: { + InterruptSkill = input.ReadBool(); + break; + } + case 112: { + SubType = input.ReadInt32(); + break; + } + case 120: { + Faction = input.ReadInt32(); + break; + } + case 130: + case 128: { + filter_.AddEntriesFrom(ref input, _repeated_filter_codec); + break; + } + case 136: { + IgnoreCollision = input.ReadBool(); + break; + } + case 146: { + ActiveEff = input.ReadString(); + break; + } + case 152: { + ShapeType = input.ReadInt32(); + break; + } + case 165: { + Width = input.ReadFloat(); + break; + } + case 173: { + Length = input.ReadFloat(); + break; + } + case 181: { + Radius = input.ReadFloat(); + break; + } + case 189: { + InnerRadius = input.ReadFloat(); + break; + } + case 197: { + Angle = input.ReadFloat(); + break; + } + case 202: + case 205: { + offset_.AddEntriesFrom(ref input, _repeated_offset_codec); + break; + } + case 213: { + Rotation = input.ReadFloat(); + break; + } + case 216: { + IsMove = input.ReadBool(); + break; + } + case 224: { + IsBlock = input.ReadBool(); + break; + } + case 232: { + MovAcc = input.ReadInt32(); + break; + } + case 240: { + RotSpd = input.ReadInt32(); + break; + } + case 248: { + MoveSpd = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TrapAttribute.cs b/NTR.Common/protos/TrapAttribute.cs new file mode 100644 index 0000000..569cc21 --- /dev/null +++ b/NTR.Common/protos/TrapAttribute.cs @@ -0,0 +1,335 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrapAttribute.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TrapAttribute.proto</summary> + public static partial class TrapAttributeReflection { + + #region Descriptor + /// <summary>File descriptor for TrapAttribute.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TrapAttributeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNUcmFwQXR0cmlidXRlLnByb3RvIlIKDVRyYXBBdHRyaWJ1dGUSCgoCaWQY", + "ASABKAUSDwoHdHJpZ2dlchgCIAEoCBIUCgx0cmlnZ2VyX2lfZHMYAyADKAUS", + "DgoGZmlsdGVyGAQgAygFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TrapAttribute), global::Nova.Client.TrapAttribute.Parser, new[]{ "Id", "Trigger", "TriggerIDs", "Filter" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TrapAttribute : pb::IMessage<TrapAttribute> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TrapAttribute> _parser = new pb::MessageParser<TrapAttribute>(() => new TrapAttribute()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TrapAttribute> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TrapAttributeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrapAttribute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrapAttribute(TrapAttribute other) : this() { + id_ = other.id_; + trigger_ = other.trigger_; + triggerIDs_ = other.triggerIDs_.Clone(); + filter_ = other.filter_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrapAttribute Clone() { + return new TrapAttribute(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "trigger" field.</summary> + public const int TriggerFieldNumber = 2; + private bool trigger_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Trigger { + get { return trigger_; } + set { + trigger_ = value; + } + } + + /// <summary>Field number for the "trigger_i_ds" field.</summary> + public const int TriggerIDsFieldNumber = 3; + private static readonly pb::FieldCodec<int> _repeated_triggerIDs_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField<int> triggerIDs_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> TriggerIDs { + get { return triggerIDs_; } + } + + /// <summary>Field number for the "filter" field.</summary> + public const int FilterFieldNumber = 4; + private static readonly pb::FieldCodec<int> _repeated_filter_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField<int> filter_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> Filter { + get { return filter_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TrapAttribute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrapAttribute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Trigger != other.Trigger) return false; + if(!triggerIDs_.Equals(other.triggerIDs_)) return false; + if(!filter_.Equals(other.filter_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Trigger != false) hash ^= Trigger.GetHashCode(); + hash ^= triggerIDs_.GetHashCode(); + hash ^= filter_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Trigger != false) { + output.WriteRawTag(16); + output.WriteBool(Trigger); + } + triggerIDs_.WriteTo(output, _repeated_triggerIDs_codec); + filter_.WriteTo(output, _repeated_filter_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Trigger != false) { + output.WriteRawTag(16); + output.WriteBool(Trigger); + } + triggerIDs_.WriteTo(ref output, _repeated_triggerIDs_codec); + filter_.WriteTo(ref output, _repeated_filter_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Trigger != false) { + size += 1 + 1; + } + size += triggerIDs_.CalculateSize(_repeated_triggerIDs_codec); + size += filter_.CalculateSize(_repeated_filter_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrapAttribute other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Trigger != false) { + Trigger = other.Trigger; + } + triggerIDs_.Add(other.triggerIDs_); + filter_.Add(other.filter_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Trigger = input.ReadBool(); + break; + } + case 26: + case 24: { + triggerIDs_.AddEntriesFrom(input, _repeated_triggerIDs_codec); + break; + } + case 34: + case 32: { + filter_.AddEntriesFrom(input, _repeated_filter_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Trigger = input.ReadBool(); + break; + } + case 26: + case 24: { + triggerIDs_.AddEntriesFrom(ref input, _repeated_triggerIDs_codec); + break; + } + case 34: + case 32: { + filter_.AddEntriesFrom(ref input, _repeated_filter_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelBoss.cs b/NTR.Common/protos/TravelerDuelBoss.cs new file mode 100644 index 0000000..805754d --- /dev/null +++ b/NTR.Common/protos/TravelerDuelBoss.cs @@ -0,0 +1,457 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelBoss.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelBoss.proto</summary> + public static partial class TravelerDuelBossReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelBoss.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelBossReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZUcmF2ZWxlckR1ZWxCb3NzLnByb3RvIpEBChBUcmF2ZWxlckR1ZWxCb3Nz", + "EgoKAmlkGAEgASgFEgwKBG5hbWUYAiABKAkSHwoXdHJhdmVsZXJfZHVlbF9i", + "b3NzX3R5cGUYAyABKAUSDwoHZXBpc29kZRgEIAEoCRINCgVpbWFnZRgFIAEo", + "CRINCgVjb3ZlchgGIAEoCRITCgtzaG93X3Jld2FyZBgHIAMoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelBoss), global::Nova.Client.TravelerDuelBoss.Parser, new[]{ "Id", "Name", "TravelerDuelBossType", "Episode", "Image", "Cover", "ShowReward" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelBoss : pb::IMessage<TravelerDuelBoss> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelBoss> _parser = new pb::MessageParser<TravelerDuelBoss>(() => new TravelerDuelBoss()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelBoss> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelBossReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelBoss() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelBoss(TravelerDuelBoss other) : this() { + id_ = other.id_; + name_ = other.name_; + travelerDuelBossType_ = other.travelerDuelBossType_; + episode_ = other.episode_; + image_ = other.image_; + cover_ = other.cover_; + showReward_ = other.showReward_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelBoss Clone() { + return new TravelerDuelBoss(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "traveler_duel_boss_type" field.</summary> + public const int TravelerDuelBossTypeFieldNumber = 3; + private int travelerDuelBossType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TravelerDuelBossType { + get { return travelerDuelBossType_; } + set { + travelerDuelBossType_ = value; + } + } + + /// <summary>Field number for the "episode" field.</summary> + public const int EpisodeFieldNumber = 4; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "image" field.</summary> + public const int ImageFieldNumber = 5; + private string image_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "cover" field.</summary> + public const int CoverFieldNumber = 6; + private string cover_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cover { + get { return cover_; } + set { + cover_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "show_reward" field.</summary> + public const int ShowRewardFieldNumber = 7; + private static readonly pb::FieldCodec<int> _repeated_showReward_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField<int> showReward_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> ShowReward { + get { return showReward_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelBoss); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelBoss other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (TravelerDuelBossType != other.TravelerDuelBossType) return false; + if (Episode != other.Episode) return false; + if (Image != other.Image) return false; + if (Cover != other.Cover) return false; + if(!showReward_.Equals(other.showReward_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (TravelerDuelBossType != 0) hash ^= TravelerDuelBossType.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + if (Cover.Length != 0) hash ^= Cover.GetHashCode(); + hash ^= showReward_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (TravelerDuelBossType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TravelerDuelBossType); + } + if (Episode.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Image); + } + if (Cover.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Cover); + } + showReward_.WriteTo(output, _repeated_showReward_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (TravelerDuelBossType != 0) { + output.WriteRawTag(24); + output.WriteInt32(TravelerDuelBossType); + } + if (Episode.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Episode); + } + if (Image.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Image); + } + if (Cover.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Cover); + } + showReward_.WriteTo(ref output, _repeated_showReward_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (TravelerDuelBossType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TravelerDuelBossType); + } + if (Episode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Image.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Image); + } + if (Cover.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Cover); + } + size += showReward_.CalculateSize(_repeated_showReward_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelBoss other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.TravelerDuelBossType != 0) { + TravelerDuelBossType = other.TravelerDuelBossType; + } + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Image.Length != 0) { + Image = other.Image; + } + if (other.Cover.Length != 0) { + Cover = other.Cover; + } + showReward_.Add(other.showReward_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + TravelerDuelBossType = input.ReadInt32(); + break; + } + case 34: { + Episode = input.ReadString(); + break; + } + case 42: { + Image = input.ReadString(); + break; + } + case 50: { + Cover = input.ReadString(); + break; + } + case 58: + case 56: { + showReward_.AddEntriesFrom(input, _repeated_showReward_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + TravelerDuelBossType = input.ReadInt32(); + break; + } + case 34: { + Episode = input.ReadString(); + break; + } + case 42: { + Image = input.ReadString(); + break; + } + case 50: { + Cover = input.ReadString(); + break; + } + case 58: + case 56: { + showReward_.AddEntriesFrom(ref input, _repeated_showReward_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelBossLevel.cs b/NTR.Common/protos/TravelerDuelBossLevel.cs new file mode 100644 index 0000000..a9655ac --- /dev/null +++ b/NTR.Common/protos/TravelerDuelBossLevel.cs @@ -0,0 +1,1039 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelBossLevel.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelBossLevel.proto</summary> + public static partial class TravelerDuelBossLevelReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelBossLevel.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelBossLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtUcmF2ZWxlckR1ZWxCb3NzTGV2ZWwucHJvdG8i9AMKFVRyYXZlbGVyRHVl", + "bEJvc3NMZXZlbBIKCgJpZBgBIAEoBRIPCgdib3NzX2lkGAIgASgFEhIKCmRp", + "ZmZpY3VsdHkYAyABKAUSDAoEbmFtZRgEIAEoCRIMCgRkZXNjGAUgASgJEhcK", + "D3N1Z2dlc3RlZF9wb3dlchgGIAEoBRIcChRyZWNvbW1lbmRfYnVpbGRfcmFu", + "axgHIAEoBRINCgVlX2VfdBgIIAMoBRIRCgl0aW1lbGltaXQYCSABKAUSIAoY", + "cHJldmlld19tb25zdGVyX2dyb3VwX2lkGAogASgFEhAKCGZsb29yX2lkGAsg", + "ASgFEhQKDHByZV9sZXZlbF9pZBgMIAEoBRIWCg5wcmVfbGV2ZWxfc3RhchgN", + "IAEoBRIaChJ1bmxvY2tfd29ybGRfY2xhc3MYDiABKAUSGQoRdW5sb2NrX2R1", + "ZWxfbGV2ZWwYDyABKAUSEAoIZHVlbF9leHAYECABKAUSGgoSYmFzZV9hd2Fy", + "ZF9wcmV2aWV3GBEgASgJEhAKCGFmZmluaXR5GBIgASgFEgwKBGljb24YEyAB", + "KAkSEgoKc2tpbGxfc2hvdxgUIAMoBRINCgVjb3ZlchgVIAEoCRIPCgdza2lu", + "X2lkGBYgASgFEhoKEmV4dHJhX2Ryb3BfcHJldmlldxgXIAMoBUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelBossLevel), global::Nova.Client.TravelerDuelBossLevel.Parser, new[]{ "Id", "BossId", "Difficulty", "Name", "Desc", "SuggestedPower", "RecommendBuildRank", "EET", "Timelimit", "PreviewMonsterGroupId", "FloorId", "PreLevelId", "PreLevelStar", "UnlockWorldClass", "UnlockDuelLevel", "DuelExp", "BaseAwardPreview", "Affinity", "Icon", "SkillShow", "Cover", "SkinId", "ExtraDropPreview" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelBossLevel : pb::IMessage<TravelerDuelBossLevel> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelBossLevel> _parser = new pb::MessageParser<TravelerDuelBossLevel>(() => new TravelerDuelBossLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelBossLevel> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelBossLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelBossLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelBossLevel(TravelerDuelBossLevel other) : this() { + id_ = other.id_; + bossId_ = other.bossId_; + difficulty_ = other.difficulty_; + name_ = other.name_; + desc_ = other.desc_; + suggestedPower_ = other.suggestedPower_; + recommendBuildRank_ = other.recommendBuildRank_; + eET_ = other.eET_.Clone(); + timelimit_ = other.timelimit_; + previewMonsterGroupId_ = other.previewMonsterGroupId_; + floorId_ = other.floorId_; + preLevelId_ = other.preLevelId_; + preLevelStar_ = other.preLevelStar_; + unlockWorldClass_ = other.unlockWorldClass_; + unlockDuelLevel_ = other.unlockDuelLevel_; + duelExp_ = other.duelExp_; + baseAwardPreview_ = other.baseAwardPreview_; + affinity_ = other.affinity_; + icon_ = other.icon_; + skillShow_ = other.skillShow_.Clone(); + cover_ = other.cover_; + skinId_ = other.skinId_; + extraDropPreview_ = other.extraDropPreview_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelBossLevel Clone() { + return new TravelerDuelBossLevel(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "boss_id" field.</summary> + public const int BossIdFieldNumber = 2; + private int bossId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BossId { + get { return bossId_; } + set { + bossId_ = value; + } + } + + /// <summary>Field number for the "difficulty" field.</summary> + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 4; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "suggested_power" field.</summary> + public const int SuggestedPowerFieldNumber = 6; + private int suggestedPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuggestedPower { + get { return suggestedPower_; } + set { + suggestedPower_ = value; + } + } + + /// <summary>Field number for the "recommend_build_rank" field.</summary> + public const int RecommendBuildRankFieldNumber = 7; + private int recommendBuildRank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendBuildRank { + get { return recommendBuildRank_; } + set { + recommendBuildRank_ = value; + } + } + + /// <summary>Field number for the "e_e_t" field.</summary> + public const int EETFieldNumber = 8; + private static readonly pb::FieldCodec<int> _repeated_eET_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField<int> eET_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> EET { + get { return eET_; } + } + + /// <summary>Field number for the "timelimit" field.</summary> + public const int TimelimitFieldNumber = 9; + private int timelimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Timelimit { + get { return timelimit_; } + set { + timelimit_ = value; + } + } + + /// <summary>Field number for the "preview_monster_group_id" field.</summary> + public const int PreviewMonsterGroupIdFieldNumber = 10; + private int previewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreviewMonsterGroupId { + get { return previewMonsterGroupId_; } + set { + previewMonsterGroupId_ = value; + } + } + + /// <summary>Field number for the "floor_id" field.</summary> + public const int FloorIdFieldNumber = 11; + private int floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// <summary>Field number for the "pre_level_id" field.</summary> + public const int PreLevelIdFieldNumber = 12; + private int preLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelId { + get { return preLevelId_; } + set { + preLevelId_ = value; + } + } + + /// <summary>Field number for the "pre_level_star" field.</summary> + public const int PreLevelStarFieldNumber = 13; + private int preLevelStar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelStar { + get { return preLevelStar_; } + set { + preLevelStar_ = value; + } + } + + /// <summary>Field number for the "unlock_world_class" field.</summary> + public const int UnlockWorldClassFieldNumber = 14; + private int unlockWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockWorldClass { + get { return unlockWorldClass_; } + set { + unlockWorldClass_ = value; + } + } + + /// <summary>Field number for the "unlock_duel_level" field.</summary> + public const int UnlockDuelLevelFieldNumber = 15; + private int unlockDuelLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockDuelLevel { + get { return unlockDuelLevel_; } + set { + unlockDuelLevel_ = value; + } + } + + /// <summary>Field number for the "duel_exp" field.</summary> + public const int DuelExpFieldNumber = 16; + private int duelExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DuelExp { + get { return duelExp_; } + set { + duelExp_ = value; + } + } + + /// <summary>Field number for the "base_award_preview" field.</summary> + public const int BaseAwardPreviewFieldNumber = 17; + private string baseAwardPreview_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseAwardPreview { + get { return baseAwardPreview_; } + set { + baseAwardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "affinity" field.</summary> + public const int AffinityFieldNumber = 18; + private int affinity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Affinity { + get { return affinity_; } + set { + affinity_ = value; + } + } + + /// <summary>Field number for the "icon" field.</summary> + public const int IconFieldNumber = 19; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "skill_show" field.</summary> + public const int SkillShowFieldNumber = 20; + private static readonly pb::FieldCodec<int> _repeated_skillShow_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField<int> skillShow_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> SkillShow { + get { return skillShow_; } + } + + /// <summary>Field number for the "cover" field.</summary> + public const int CoverFieldNumber = 21; + private string cover_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cover { + get { return cover_; } + set { + cover_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "skin_id" field.</summary> + public const int SkinIdFieldNumber = 22; + private int skinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkinId { + get { return skinId_; } + set { + skinId_ = value; + } + } + + /// <summary>Field number for the "extra_drop_preview" field.</summary> + public const int ExtraDropPreviewFieldNumber = 23; + private static readonly pb::FieldCodec<int> _repeated_extraDropPreview_codec + = pb::FieldCodec.ForInt32(186); + private readonly pbc::RepeatedField<int> extraDropPreview_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> ExtraDropPreview { + get { return extraDropPreview_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelBossLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelBossLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BossId != other.BossId) return false; + if (Difficulty != other.Difficulty) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (SuggestedPower != other.SuggestedPower) return false; + if (RecommendBuildRank != other.RecommendBuildRank) return false; + if(!eET_.Equals(other.eET_)) return false; + if (Timelimit != other.Timelimit) return false; + if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false; + if (FloorId != other.FloorId) return false; + if (PreLevelId != other.PreLevelId) return false; + if (PreLevelStar != other.PreLevelStar) return false; + if (UnlockWorldClass != other.UnlockWorldClass) return false; + if (UnlockDuelLevel != other.UnlockDuelLevel) return false; + if (DuelExp != other.DuelExp) return false; + if (BaseAwardPreview != other.BaseAwardPreview) return false; + if (Affinity != other.Affinity) return false; + if (Icon != other.Icon) return false; + if(!skillShow_.Equals(other.skillShow_)) return false; + if (Cover != other.Cover) return false; + if (SkinId != other.SkinId) return false; + if(!extraDropPreview_.Equals(other.extraDropPreview_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BossId != 0) hash ^= BossId.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (SuggestedPower != 0) hash ^= SuggestedPower.GetHashCode(); + if (RecommendBuildRank != 0) hash ^= RecommendBuildRank.GetHashCode(); + hash ^= eET_.GetHashCode(); + if (Timelimit != 0) hash ^= Timelimit.GetHashCode(); + if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode(); + if (PreLevelStar != 0) hash ^= PreLevelStar.GetHashCode(); + if (UnlockWorldClass != 0) hash ^= UnlockWorldClass.GetHashCode(); + if (UnlockDuelLevel != 0) hash ^= UnlockDuelLevel.GetHashCode(); + if (DuelExp != 0) hash ^= DuelExp.GetHashCode(); + if (BaseAwardPreview.Length != 0) hash ^= BaseAwardPreview.GetHashCode(); + if (Affinity != 0) hash ^= Affinity.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + hash ^= skillShow_.GetHashCode(); + if (Cover.Length != 0) hash ^= Cover.GetHashCode(); + if (SkinId != 0) hash ^= SkinId.GetHashCode(); + hash ^= extraDropPreview_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BossId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BossId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(56); + output.WriteInt32(RecommendBuildRank); + } + eET_.WriteTo(output, _repeated_eET_codec); + if (Timelimit != 0) { + output.WriteRawTag(72); + output.WriteInt32(Timelimit); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(80); + output.WriteInt32(PreviewMonsterGroupId); + } + if (FloorId != 0) { + output.WriteRawTag(88); + output.WriteInt32(FloorId); + } + if (PreLevelId != 0) { + output.WriteRawTag(96); + output.WriteInt32(PreLevelId); + } + if (PreLevelStar != 0) { + output.WriteRawTag(104); + output.WriteInt32(PreLevelStar); + } + if (UnlockWorldClass != 0) { + output.WriteRawTag(112); + output.WriteInt32(UnlockWorldClass); + } + if (UnlockDuelLevel != 0) { + output.WriteRawTag(120); + output.WriteInt32(UnlockDuelLevel); + } + if (DuelExp != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(DuelExp); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(BaseAwardPreview); + } + if (Affinity != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Affinity); + } + if (Icon.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Icon); + } + skillShow_.WriteTo(output, _repeated_skillShow_codec); + if (Cover.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Cover); + } + if (SkinId != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SkinId); + } + extraDropPreview_.WriteTo(output, _repeated_extraDropPreview_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BossId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BossId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(56); + output.WriteInt32(RecommendBuildRank); + } + eET_.WriteTo(ref output, _repeated_eET_codec); + if (Timelimit != 0) { + output.WriteRawTag(72); + output.WriteInt32(Timelimit); + } + if (PreviewMonsterGroupId != 0) { + output.WriteRawTag(80); + output.WriteInt32(PreviewMonsterGroupId); + } + if (FloorId != 0) { + output.WriteRawTag(88); + output.WriteInt32(FloorId); + } + if (PreLevelId != 0) { + output.WriteRawTag(96); + output.WriteInt32(PreLevelId); + } + if (PreLevelStar != 0) { + output.WriteRawTag(104); + output.WriteInt32(PreLevelStar); + } + if (UnlockWorldClass != 0) { + output.WriteRawTag(112); + output.WriteInt32(UnlockWorldClass); + } + if (UnlockDuelLevel != 0) { + output.WriteRawTag(120); + output.WriteInt32(UnlockDuelLevel); + } + if (DuelExp != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(DuelExp); + } + if (BaseAwardPreview.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(BaseAwardPreview); + } + if (Affinity != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Affinity); + } + if (Icon.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Icon); + } + skillShow_.WriteTo(ref output, _repeated_skillShow_codec); + if (Cover.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Cover); + } + if (SkinId != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(SkinId); + } + extraDropPreview_.WriteTo(ref output, _repeated_extraDropPreview_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BossId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossId); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (SuggestedPower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SuggestedPower); + } + if (RecommendBuildRank != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendBuildRank); + } + size += eET_.CalculateSize(_repeated_eET_codec); + if (Timelimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timelimit); + } + if (PreviewMonsterGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId); + } + if (PreLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId); + } + if (PreLevelStar != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelStar); + } + if (UnlockWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockWorldClass); + } + if (UnlockDuelLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockDuelLevel); + } + if (DuelExp != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(DuelExp); + } + if (BaseAwardPreview.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAwardPreview); + } + if (Affinity != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Affinity); + } + if (Icon.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + size += skillShow_.CalculateSize(_repeated_skillShow_codec); + if (Cover.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Cover); + } + if (SkinId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SkinId); + } + size += extraDropPreview_.CalculateSize(_repeated_extraDropPreview_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelBossLevel other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BossId != 0) { + BossId = other.BossId; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.SuggestedPower != 0) { + SuggestedPower = other.SuggestedPower; + } + if (other.RecommendBuildRank != 0) { + RecommendBuildRank = other.RecommendBuildRank; + } + eET_.Add(other.eET_); + if (other.Timelimit != 0) { + Timelimit = other.Timelimit; + } + if (other.PreviewMonsterGroupId != 0) { + PreviewMonsterGroupId = other.PreviewMonsterGroupId; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.PreLevelId != 0) { + PreLevelId = other.PreLevelId; + } + if (other.PreLevelStar != 0) { + PreLevelStar = other.PreLevelStar; + } + if (other.UnlockWorldClass != 0) { + UnlockWorldClass = other.UnlockWorldClass; + } + if (other.UnlockDuelLevel != 0) { + UnlockDuelLevel = other.UnlockDuelLevel; + } + if (other.DuelExp != 0) { + DuelExp = other.DuelExp; + } + if (other.BaseAwardPreview.Length != 0) { + BaseAwardPreview = other.BaseAwardPreview; + } + if (other.Affinity != 0) { + Affinity = other.Affinity; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + skillShow_.Add(other.skillShow_); + if (other.Cover.Length != 0) { + Cover = other.Cover; + } + if (other.SkinId != 0) { + SkinId = other.SkinId; + } + extraDropPreview_.Add(other.extraDropPreview_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BossId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + RecommendBuildRank = input.ReadInt32(); + break; + } + case 66: + case 64: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + case 72: { + Timelimit = input.ReadInt32(); + break; + } + case 80: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 88: { + FloorId = input.ReadInt32(); + break; + } + case 96: { + PreLevelId = input.ReadInt32(); + break; + } + case 104: { + PreLevelStar = input.ReadInt32(); + break; + } + case 112: { + UnlockWorldClass = input.ReadInt32(); + break; + } + case 120: { + UnlockDuelLevel = input.ReadInt32(); + break; + } + case 128: { + DuelExp = input.ReadInt32(); + break; + } + case 138: { + BaseAwardPreview = input.ReadString(); + break; + } + case 144: { + Affinity = input.ReadInt32(); + break; + } + case 154: { + Icon = input.ReadString(); + break; + } + case 162: + case 160: { + skillShow_.AddEntriesFrom(input, _repeated_skillShow_codec); + break; + } + case 170: { + Cover = input.ReadString(); + break; + } + case 176: { + SkinId = input.ReadInt32(); + break; + } + case 186: + case 184: { + extraDropPreview_.AddEntriesFrom(input, _repeated_extraDropPreview_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BossId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + RecommendBuildRank = input.ReadInt32(); + break; + } + case 66: + case 64: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + case 72: { + Timelimit = input.ReadInt32(); + break; + } + case 80: { + PreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 88: { + FloorId = input.ReadInt32(); + break; + } + case 96: { + PreLevelId = input.ReadInt32(); + break; + } + case 104: { + PreLevelStar = input.ReadInt32(); + break; + } + case 112: { + UnlockWorldClass = input.ReadInt32(); + break; + } + case 120: { + UnlockDuelLevel = input.ReadInt32(); + break; + } + case 128: { + DuelExp = input.ReadInt32(); + break; + } + case 138: { + BaseAwardPreview = input.ReadString(); + break; + } + case 144: { + Affinity = input.ReadInt32(); + break; + } + case 154: { + Icon = input.ReadString(); + break; + } + case 162: + case 160: { + skillShow_.AddEntriesFrom(ref input, _repeated_skillShow_codec); + break; + } + case 170: { + Cover = input.ReadString(); + break; + } + case 176: { + SkinId = input.ReadInt32(); + break; + } + case 186: + case 184: { + extraDropPreview_.AddEntriesFrom(ref input, _repeated_extraDropPreview_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelChallengeAffix.cs b/NTR.Common/protos/TravelerDuelChallengeAffix.cs new file mode 100644 index 0000000..f38e86a --- /dev/null +++ b/NTR.Common/protos/TravelerDuelChallengeAffix.cs @@ -0,0 +1,710 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelChallengeAffix.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelChallengeAffix.proto</summary> + public static partial class TravelerDuelChallengeAffixReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelChallengeAffix.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelChallengeAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VBZmZpeC5wcm90byKlAgoaVHJhdmVs", + "ZXJEdWVsQ2hhbGxlbmdlQWZmaXgSCgoCaWQYASABKAUSEAoIZ3JvdXBfaWQY", + "AiABKAUSEgoKZGlmZmljdWx0eRgDIAEoBRIaChJ1bmxvY2tfd29ybGRfY2xh", + "c3MYBCABKAUSGQoRdW5sb2NrX2R1ZWxfbGV2ZWwYBSABKAUSGQoRdW5sb2Nr", + "X2RpZmZpY3VsdHkYBiABKAUSDAoEbmFtZRgHIAEoCRIMCgRkZXNjGAggASgJ", + "EgwKBGljb24YCSABKAkSDwoHZWxlbWVudBgKIAEoBRIQCghhZGRfY2FtcBgL", + "IAMoBRIRCglhZGRfY2xhc3MYDCADKAUSEAoIc2tpbGxfaWQYDSABKAUSEQoJ", + "YnJhbmNoX2lkGA4gASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelChallengeAffix), global::Nova.Client.TravelerDuelChallengeAffix.Parser, new[]{ "Id", "GroupId", "Difficulty", "UnlockWorldClass", "UnlockDuelLevel", "UnlockDifficulty", "Name", "Desc", "Icon", "Element", "AddCamp", "AddClass", "SkillId", "BranchId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelChallengeAffix : pb::IMessage<TravelerDuelChallengeAffix> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelChallengeAffix> _parser = new pb::MessageParser<TravelerDuelChallengeAffix>(() => new TravelerDuelChallengeAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelChallengeAffix> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelChallengeAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeAffix(TravelerDuelChallengeAffix other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + difficulty_ = other.difficulty_; + unlockWorldClass_ = other.unlockWorldClass_; + unlockDuelLevel_ = other.unlockDuelLevel_; + unlockDifficulty_ = other.unlockDifficulty_; + name_ = other.name_; + desc_ = other.desc_; + icon_ = other.icon_; + element_ = other.element_; + addCamp_ = other.addCamp_.Clone(); + addClass_ = other.addClass_.Clone(); + skillId_ = other.skillId_; + branchId_ = other.branchId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeAffix Clone() { + return new TravelerDuelChallengeAffix(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "group_id" field.</summary> + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// <summary>Field number for the "difficulty" field.</summary> + public const int DifficultyFieldNumber = 3; + private int difficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Difficulty { + get { return difficulty_; } + set { + difficulty_ = value; + } + } + + /// <summary>Field number for the "unlock_world_class" field.</summary> + public const int UnlockWorldClassFieldNumber = 4; + private int unlockWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockWorldClass { + get { return unlockWorldClass_; } + set { + unlockWorldClass_ = value; + } + } + + /// <summary>Field number for the "unlock_duel_level" field.</summary> + public const int UnlockDuelLevelFieldNumber = 5; + private int unlockDuelLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockDuelLevel { + get { return unlockDuelLevel_; } + set { + unlockDuelLevel_ = value; + } + } + + /// <summary>Field number for the "unlock_difficulty" field.</summary> + public const int UnlockDifficultyFieldNumber = 6; + private int unlockDifficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockDifficulty { + get { return unlockDifficulty_; } + set { + unlockDifficulty_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 7; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 8; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "icon" field.</summary> + public const int IconFieldNumber = 9; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "element" field.</summary> + public const int ElementFieldNumber = 10; + private int element_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Element { + get { return element_; } + set { + element_ = value; + } + } + + /// <summary>Field number for the "add_camp" field.</summary> + public const int AddCampFieldNumber = 11; + private static readonly pb::FieldCodec<int> _repeated_addCamp_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField<int> addCamp_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> AddCamp { + get { return addCamp_; } + } + + /// <summary>Field number for the "add_class" field.</summary> + public const int AddClassFieldNumber = 12; + private static readonly pb::FieldCodec<int> _repeated_addClass_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField<int> addClass_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> AddClass { + get { return addClass_; } + } + + /// <summary>Field number for the "skill_id" field.</summary> + public const int SkillIdFieldNumber = 13; + private int skillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SkillId { + get { return skillId_; } + set { + skillId_ = value; + } + } + + /// <summary>Field number for the "branch_id" field.</summary> + public const int BranchIdFieldNumber = 14; + private int branchId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BranchId { + get { return branchId_; } + set { + branchId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelChallengeAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelChallengeAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Difficulty != other.Difficulty) return false; + if (UnlockWorldClass != other.UnlockWorldClass) return false; + if (UnlockDuelLevel != other.UnlockDuelLevel) return false; + if (UnlockDifficulty != other.UnlockDifficulty) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Icon != other.Icon) return false; + if (Element != other.Element) return false; + if(!addCamp_.Equals(other.addCamp_)) return false; + if(!addClass_.Equals(other.addClass_)) return false; + if (SkillId != other.SkillId) return false; + if (BranchId != other.BranchId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Difficulty != 0) hash ^= Difficulty.GetHashCode(); + if (UnlockWorldClass != 0) hash ^= UnlockWorldClass.GetHashCode(); + if (UnlockDuelLevel != 0) hash ^= UnlockDuelLevel.GetHashCode(); + if (UnlockDifficulty != 0) hash ^= UnlockDifficulty.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Element != 0) hash ^= Element.GetHashCode(); + hash ^= addCamp_.GetHashCode(); + hash ^= addClass_.GetHashCode(); + if (SkillId != 0) hash ^= SkillId.GetHashCode(); + if (BranchId != 0) hash ^= BranchId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (UnlockWorldClass != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockWorldClass); + } + if (UnlockDuelLevel != 0) { + output.WriteRawTag(40); + output.WriteInt32(UnlockDuelLevel); + } + if (UnlockDifficulty != 0) { + output.WriteRawTag(48); + output.WriteInt32(UnlockDifficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (Element != 0) { + output.WriteRawTag(80); + output.WriteInt32(Element); + } + addCamp_.WriteTo(output, _repeated_addCamp_codec); + addClass_.WriteTo(output, _repeated_addClass_codec); + if (SkillId != 0) { + output.WriteRawTag(104); + output.WriteInt32(SkillId); + } + if (BranchId != 0) { + output.WriteRawTag(112); + output.WriteInt32(BranchId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Difficulty != 0) { + output.WriteRawTag(24); + output.WriteInt32(Difficulty); + } + if (UnlockWorldClass != 0) { + output.WriteRawTag(32); + output.WriteInt32(UnlockWorldClass); + } + if (UnlockDuelLevel != 0) { + output.WriteRawTag(40); + output.WriteInt32(UnlockDuelLevel); + } + if (UnlockDifficulty != 0) { + output.WriteRawTag(48); + output.WriteInt32(UnlockDifficulty); + } + if (Name.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Desc); + } + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (Element != 0) { + output.WriteRawTag(80); + output.WriteInt32(Element); + } + addCamp_.WriteTo(ref output, _repeated_addCamp_codec); + addClass_.WriteTo(ref output, _repeated_addClass_codec); + if (SkillId != 0) { + output.WriteRawTag(104); + output.WriteInt32(SkillId); + } + if (BranchId != 0) { + output.WriteRawTag(112); + output.WriteInt32(BranchId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Difficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty); + } + if (UnlockWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockWorldClass); + } + if (UnlockDuelLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockDuelLevel); + } + if (UnlockDifficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockDifficulty); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Element != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Element); + } + size += addCamp_.CalculateSize(_repeated_addCamp_codec); + size += addClass_.CalculateSize(_repeated_addClass_codec); + if (SkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillId); + } + if (BranchId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BranchId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelChallengeAffix other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Difficulty != 0) { + Difficulty = other.Difficulty; + } + if (other.UnlockWorldClass != 0) { + UnlockWorldClass = other.UnlockWorldClass; + } + if (other.UnlockDuelLevel != 0) { + UnlockDuelLevel = other.UnlockDuelLevel; + } + if (other.UnlockDifficulty != 0) { + UnlockDifficulty = other.UnlockDifficulty; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Element != 0) { + Element = other.Element; + } + addCamp_.Add(other.addCamp_); + addClass_.Add(other.addClass_); + if (other.SkillId != 0) { + SkillId = other.SkillId; + } + if (other.BranchId != 0) { + BranchId = other.BranchId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + UnlockWorldClass = input.ReadInt32(); + break; + } + case 40: { + UnlockDuelLevel = input.ReadInt32(); + break; + } + case 48: { + UnlockDifficulty = input.ReadInt32(); + break; + } + case 58: { + Name = input.ReadString(); + break; + } + case 66: { + Desc = input.ReadString(); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + case 80: { + Element = input.ReadInt32(); + break; + } + case 90: + case 88: { + addCamp_.AddEntriesFrom(input, _repeated_addCamp_codec); + break; + } + case 98: + case 96: { + addClass_.AddEntriesFrom(input, _repeated_addClass_codec); + break; + } + case 104: { + SkillId = input.ReadInt32(); + break; + } + case 112: { + BranchId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 24: { + Difficulty = input.ReadInt32(); + break; + } + case 32: { + UnlockWorldClass = input.ReadInt32(); + break; + } + case 40: { + UnlockDuelLevel = input.ReadInt32(); + break; + } + case 48: { + UnlockDifficulty = input.ReadInt32(); + break; + } + case 58: { + Name = input.ReadString(); + break; + } + case 66: { + Desc = input.ReadString(); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + case 80: { + Element = input.ReadInt32(); + break; + } + case 90: + case 88: { + addCamp_.AddEntriesFrom(ref input, _repeated_addCamp_codec); + break; + } + case 98: + case 96: { + addClass_.AddEntriesFrom(ref input, _repeated_addClass_codec); + break; + } + case 104: { + SkillId = input.ReadInt32(); + break; + } + case 112: { + BranchId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelChallengeDifficulty.cs b/NTR.Common/protos/TravelerDuelChallengeDifficulty.cs new file mode 100644 index 0000000..8d15e85 --- /dev/null +++ b/NTR.Common/protos/TravelerDuelChallengeDifficulty.cs @@ -0,0 +1,383 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelChallengeDifficulty.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelChallengeDifficulty.proto</summary> + public static partial class TravelerDuelChallengeDifficultyReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelChallengeDifficulty.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelChallengeDifficultyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VEaWZmaWN1bHR5LnByb3RvIoUBCh9U", + "cmF2ZWxlckR1ZWxDaGFsbGVuZ2VEaWZmaWN1bHR5EgoKAmlkGAEgASgFEgwK", + "BGF0dHIYAiABKAUSEQoJZWZmZWN0X2lkGAMgAygFEhcKD3JlY29tbWVuZF9z", + "Y29yZRgEIAEoBRIcChRyZWNvbW1lbmRfYnVpbGRfcmFuaxgFIAEoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelChallengeDifficulty), global::Nova.Client.TravelerDuelChallengeDifficulty.Parser, new[]{ "Id", "Attr", "EffectId", "RecommendScore", "RecommendBuildRank" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelChallengeDifficulty : pb::IMessage<TravelerDuelChallengeDifficulty> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelChallengeDifficulty> _parser = new pb::MessageParser<TravelerDuelChallengeDifficulty>(() => new TravelerDuelChallengeDifficulty()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelChallengeDifficulty> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelChallengeDifficultyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeDifficulty() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeDifficulty(TravelerDuelChallengeDifficulty other) : this() { + id_ = other.id_; + attr_ = other.attr_; + effectId_ = other.effectId_.Clone(); + recommendScore_ = other.recommendScore_; + recommendBuildRank_ = other.recommendBuildRank_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeDifficulty Clone() { + return new TravelerDuelChallengeDifficulty(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "attr" field.</summary> + public const int AttrFieldNumber = 2; + private int attr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attr { + get { return attr_; } + set { + attr_ = value; + } + } + + /// <summary>Field number for the "effect_id" field.</summary> + public const int EffectIdFieldNumber = 3; + private static readonly pb::FieldCodec<int> _repeated_effectId_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField<int> effectId_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> EffectId { + get { return effectId_; } + } + + /// <summary>Field number for the "recommend_score" field.</summary> + public const int RecommendScoreFieldNumber = 4; + private int recommendScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendScore { + get { return recommendScore_; } + set { + recommendScore_ = value; + } + } + + /// <summary>Field number for the "recommend_build_rank" field.</summary> + public const int RecommendBuildRankFieldNumber = 5; + private int recommendBuildRank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendBuildRank { + get { return recommendBuildRank_; } + set { + recommendBuildRank_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelChallengeDifficulty); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelChallengeDifficulty other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Attr != other.Attr) return false; + if(!effectId_.Equals(other.effectId_)) return false; + if (RecommendScore != other.RecommendScore) return false; + if (RecommendBuildRank != other.RecommendBuildRank) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Attr != 0) hash ^= Attr.GetHashCode(); + hash ^= effectId_.GetHashCode(); + if (RecommendScore != 0) hash ^= RecommendScore.GetHashCode(); + if (RecommendBuildRank != 0) hash ^= RecommendBuildRank.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Attr != 0) { + output.WriteRawTag(16); + output.WriteInt32(Attr); + } + effectId_.WriteTo(output, _repeated_effectId_codec); + if (RecommendScore != 0) { + output.WriteRawTag(32); + output.WriteInt32(RecommendScore); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(40); + output.WriteInt32(RecommendBuildRank); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Attr != 0) { + output.WriteRawTag(16); + output.WriteInt32(Attr); + } + effectId_.WriteTo(ref output, _repeated_effectId_codec); + if (RecommendScore != 0) { + output.WriteRawTag(32); + output.WriteInt32(RecommendScore); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(40); + output.WriteInt32(RecommendBuildRank); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Attr != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attr); + } + size += effectId_.CalculateSize(_repeated_effectId_codec); + if (RecommendScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendScore); + } + if (RecommendBuildRank != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendBuildRank); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelChallengeDifficulty other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Attr != 0) { + Attr = other.Attr; + } + effectId_.Add(other.effectId_); + if (other.RecommendScore != 0) { + RecommendScore = other.RecommendScore; + } + if (other.RecommendBuildRank != 0) { + RecommendBuildRank = other.RecommendBuildRank; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attr = input.ReadInt32(); + break; + } + case 26: + case 24: { + effectId_.AddEntriesFrom(input, _repeated_effectId_codec); + break; + } + case 32: { + RecommendScore = input.ReadInt32(); + break; + } + case 40: { + RecommendBuildRank = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attr = input.ReadInt32(); + break; + } + case 26: + case 24: { + effectId_.AddEntriesFrom(ref input, _repeated_effectId_codec); + break; + } + case 32: { + RecommendScore = input.ReadInt32(); + break; + } + case 40: { + RecommendBuildRank = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelChallengeQuest.cs b/NTR.Common/protos/TravelerDuelChallengeQuest.cs new file mode 100644 index 0000000..4d27ae2 --- /dev/null +++ b/NTR.Common/protos/TravelerDuelChallengeQuest.cs @@ -0,0 +1,767 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelChallengeQuest.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelChallengeQuest.proto</summary> + public static partial class TravelerDuelChallengeQuestReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelChallengeQuest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelChallengeQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VRdWVzdC5wcm90byLaAgoaVHJhdmVs", + "ZXJEdWVsQ2hhbGxlbmdlUXVlc3QSCgoCaWQYASABKAUSEAoIZ3JvdXBfaWQY", + "AiABKAUSDQoFdGl0bGUYAyABKAkSDAoEZGVzYxgEIAEoCRIPCgdqdW1wX3Rv", + "GAUgASgFEg0KBW9yZGVyGAYgASgFEhYKDmFjY2VwdF9wYXJhbXMyGAcgASgJ", + "EhUKDWNvbXBsZXRlX2NvbmQYCCABKAUSHAoUY29tcGxldGVfY29uZF9wYXJh", + "bXMYCSABKAkSFwoPYXdhcmRfaXRlbV90aWQxGAogASgFEhcKD2F3YXJkX2l0", + "ZW1fbnVtMRgLIAEoBRIXCg9hd2FyZF9pdGVtX3RpZDIYDCABKAUSFwoPYXdh", + "cmRfaXRlbV9udW0yGA0gASgFEhcKD2F3YXJkX2l0ZW1fdGlkMxgOIAEoBRIX", + "Cg9hd2FyZF9pdGVtX251bTMYDyABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelChallengeQuest), global::Nova.Client.TravelerDuelChallengeQuest.Parser, new[]{ "Id", "GroupId", "Title", "Desc", "JumpTo", "Order", "AcceptParams2", "CompleteCond", "CompleteCondParams", "AwardItemTid1", "AwardItemNum1", "AwardItemTid2", "AwardItemNum2", "AwardItemTid3", "AwardItemNum3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelChallengeQuest : pb::IMessage<TravelerDuelChallengeQuest> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelChallengeQuest> _parser = new pb::MessageParser<TravelerDuelChallengeQuest>(() => new TravelerDuelChallengeQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelChallengeQuest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelChallengeQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeQuest(TravelerDuelChallengeQuest other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + title_ = other.title_; + desc_ = other.desc_; + jumpTo_ = other.jumpTo_; + order_ = other.order_; + acceptParams2_ = other.acceptParams2_; + completeCond_ = other.completeCond_; + completeCondParams_ = other.completeCondParams_; + awardItemTid1_ = other.awardItemTid1_; + awardItemNum1_ = other.awardItemNum1_; + awardItemTid2_ = other.awardItemTid2_; + awardItemNum2_ = other.awardItemNum2_; + awardItemTid3_ = other.awardItemTid3_; + awardItemNum3_ = other.awardItemNum3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeQuest Clone() { + return new TravelerDuelChallengeQuest(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "group_id" field.</summary> + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "jump_to" field.</summary> + public const int JumpToFieldNumber = 5; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// <summary>Field number for the "order" field.</summary> + public const int OrderFieldNumber = 6; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// <summary>Field number for the "accept_params2" field.</summary> + public const int AcceptParams2FieldNumber = 7; + private string acceptParams2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AcceptParams2 { + get { return acceptParams2_; } + set { + acceptParams2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "complete_cond" field.</summary> + public const int CompleteCondFieldNumber = 8; + private int completeCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCond { + get { return completeCond_; } + set { + completeCond_ = value; + } + } + + /// <summary>Field number for the "complete_cond_params" field.</summary> + public const int CompleteCondParamsFieldNumber = 9; + private string completeCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteCondParams { + get { return completeCondParams_; } + set { + completeCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "award_item_tid1" field.</summary> + public const int AwardItemTid1FieldNumber = 10; + private int awardItemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid1 { + get { return awardItemTid1_; } + set { + awardItemTid1_ = value; + } + } + + /// <summary>Field number for the "award_item_num1" field.</summary> + public const int AwardItemNum1FieldNumber = 11; + private int awardItemNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum1 { + get { return awardItemNum1_; } + set { + awardItemNum1_ = value; + } + } + + /// <summary>Field number for the "award_item_tid2" field.</summary> + public const int AwardItemTid2FieldNumber = 12; + private int awardItemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid2 { + get { return awardItemTid2_; } + set { + awardItemTid2_ = value; + } + } + + /// <summary>Field number for the "award_item_num2" field.</summary> + public const int AwardItemNum2FieldNumber = 13; + private int awardItemNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum2 { + get { return awardItemNum2_; } + set { + awardItemNum2_ = value; + } + } + + /// <summary>Field number for the "award_item_tid3" field.</summary> + public const int AwardItemTid3FieldNumber = 14; + private int awardItemTid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid3 { + get { return awardItemTid3_; } + set { + awardItemTid3_ = value; + } + } + + /// <summary>Field number for the "award_item_num3" field.</summary> + public const int AwardItemNum3FieldNumber = 15; + private int awardItemNum3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum3 { + get { return awardItemNum3_; } + set { + awardItemNum3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelChallengeQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelChallengeQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (JumpTo != other.JumpTo) return false; + if (Order != other.Order) return false; + if (AcceptParams2 != other.AcceptParams2) return false; + if (CompleteCond != other.CompleteCond) return false; + if (CompleteCondParams != other.CompleteCondParams) return false; + if (AwardItemTid1 != other.AwardItemTid1) return false; + if (AwardItemNum1 != other.AwardItemNum1) return false; + if (AwardItemTid2 != other.AwardItemTid2) return false; + if (AwardItemNum2 != other.AwardItemNum2) return false; + if (AwardItemTid3 != other.AwardItemTid3) return false; + if (AwardItemNum3 != other.AwardItemNum3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (AcceptParams2.Length != 0) hash ^= AcceptParams2.GetHashCode(); + if (CompleteCond != 0) hash ^= CompleteCond.GetHashCode(); + if (CompleteCondParams.Length != 0) hash ^= CompleteCondParams.GetHashCode(); + if (AwardItemTid1 != 0) hash ^= AwardItemTid1.GetHashCode(); + if (AwardItemNum1 != 0) hash ^= AwardItemNum1.GetHashCode(); + if (AwardItemTid2 != 0) hash ^= AwardItemTid2.GetHashCode(); + if (AwardItemNum2 != 0) hash ^= AwardItemNum2.GetHashCode(); + if (AwardItemTid3 != 0) hash ^= AwardItemTid3.GetHashCode(); + if (AwardItemNum3 != 0) hash ^= AwardItemNum3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(40); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(48); + output.WriteInt32(Order); + } + if (AcceptParams2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AcceptParams2); + } + if (CompleteCond != 0) { + output.WriteRawTag(64); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(AwardItemNum3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(40); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(48); + output.WriteInt32(Order); + } + if (AcceptParams2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AcceptParams2); + } + if (CompleteCond != 0) { + output.WriteRawTag(64); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(AwardItemNum3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (AcceptParams2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AcceptParams2); + } + if (CompleteCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelChallengeQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.AcceptParams2.Length != 0) { + AcceptParams2 = other.AcceptParams2; + } + if (other.CompleteCond != 0) { + CompleteCond = other.CompleteCond; + } + if (other.CompleteCondParams.Length != 0) { + CompleteCondParams = other.CompleteCondParams; + } + if (other.AwardItemTid1 != 0) { + AwardItemTid1 = other.AwardItemTid1; + } + if (other.AwardItemNum1 != 0) { + AwardItemNum1 = other.AwardItemNum1; + } + if (other.AwardItemTid2 != 0) { + AwardItemTid2 = other.AwardItemTid2; + } + if (other.AwardItemNum2 != 0) { + AwardItemNum2 = other.AwardItemNum2; + } + if (other.AwardItemTid3 != 0) { + AwardItemTid3 = other.AwardItemTid3; + } + if (other.AwardItemNum3 != 0) { + AwardItemNum3 = other.AwardItemNum3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + JumpTo = input.ReadInt32(); + break; + } + case 48: { + Order = input.ReadInt32(); + break; + } + case 58: { + AcceptParams2 = input.ReadString(); + break; + } + case 64: { + CompleteCond = input.ReadInt32(); + break; + } + case 74: { + CompleteCondParams = input.ReadString(); + break; + } + case 80: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 88: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 96: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 104: { + AwardItemNum2 = input.ReadInt32(); + break; + } + case 112: { + AwardItemTid3 = input.ReadInt32(); + break; + } + case 120: { + AwardItemNum3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + JumpTo = input.ReadInt32(); + break; + } + case 48: { + Order = input.ReadInt32(); + break; + } + case 58: { + AcceptParams2 = input.ReadString(); + break; + } + case 64: { + CompleteCond = input.ReadInt32(); + break; + } + case 74: { + CompleteCondParams = input.ReadString(); + break; + } + case 80: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 88: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 96: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 104: { + AwardItemNum2 = input.ReadInt32(); + break; + } + case 112: { + AwardItemTid3 = input.ReadInt32(); + break; + } + case 120: { + AwardItemNum3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelChallengeRankReward.cs b/NTR.Common/protos/TravelerDuelChallengeRankReward.cs new file mode 100644 index 0000000..356701a --- /dev/null +++ b/NTR.Common/protos/TravelerDuelChallengeRankReward.cs @@ -0,0 +1,430 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelChallengeRankReward.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelChallengeRankReward.proto</summary> + public static partial class TravelerDuelChallengeRankRewardReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelChallengeRankReward.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelChallengeRankRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VSYW5rUmV3YXJkLnByb3RvIqUBCh9U", + "cmF2ZWxlckR1ZWxDaGFsbGVuZ2VSYW5rUmV3YXJkEgoKAmlkGAEgASgFEhIK", + "CnJhbmtfbG93ZXIYAiABKAUSFwoPYXdhcmRfaXRlbV90aWQxGAMgASgFEhcK", + "D2F3YXJkX2l0ZW1fbnVtMRgEIAEoBRIXCg9hd2FyZF9pdGVtX3RpZDIYBSAB", + "KAUSFwoPYXdhcmRfaXRlbV9udW0yGAYgASgFQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelChallengeRankReward), global::Nova.Client.TravelerDuelChallengeRankReward.Parser, new[]{ "Id", "RankLower", "AwardItemTid1", "AwardItemNum1", "AwardItemTid2", "AwardItemNum2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelChallengeRankReward : pb::IMessage<TravelerDuelChallengeRankReward> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelChallengeRankReward> _parser = new pb::MessageParser<TravelerDuelChallengeRankReward>(() => new TravelerDuelChallengeRankReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelChallengeRankReward> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelChallengeRankRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeRankReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeRankReward(TravelerDuelChallengeRankReward other) : this() { + id_ = other.id_; + rankLower_ = other.rankLower_; + awardItemTid1_ = other.awardItemTid1_; + awardItemNum1_ = other.awardItemNum1_; + awardItemTid2_ = other.awardItemTid2_; + awardItemNum2_ = other.awardItemNum2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeRankReward Clone() { + return new TravelerDuelChallengeRankReward(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "rank_lower" field.</summary> + public const int RankLowerFieldNumber = 2; + private int rankLower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RankLower { + get { return rankLower_; } + set { + rankLower_ = value; + } + } + + /// <summary>Field number for the "award_item_tid1" field.</summary> + public const int AwardItemTid1FieldNumber = 3; + private int awardItemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid1 { + get { return awardItemTid1_; } + set { + awardItemTid1_ = value; + } + } + + /// <summary>Field number for the "award_item_num1" field.</summary> + public const int AwardItemNum1FieldNumber = 4; + private int awardItemNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum1 { + get { return awardItemNum1_; } + set { + awardItemNum1_ = value; + } + } + + /// <summary>Field number for the "award_item_tid2" field.</summary> + public const int AwardItemTid2FieldNumber = 5; + private int awardItemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid2 { + get { return awardItemTid2_; } + set { + awardItemTid2_ = value; + } + } + + /// <summary>Field number for the "award_item_num2" field.</summary> + public const int AwardItemNum2FieldNumber = 6; + private int awardItemNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum2 { + get { return awardItemNum2_; } + set { + awardItemNum2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelChallengeRankReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelChallengeRankReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (RankLower != other.RankLower) return false; + if (AwardItemTid1 != other.AwardItemTid1) return false; + if (AwardItemNum1 != other.AwardItemNum1) return false; + if (AwardItemTid2 != other.AwardItemTid2) return false; + if (AwardItemNum2 != other.AwardItemNum2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (RankLower != 0) hash ^= RankLower.GetHashCode(); + if (AwardItemTid1 != 0) hash ^= AwardItemTid1.GetHashCode(); + if (AwardItemNum1 != 0) hash ^= AwardItemNum1.GetHashCode(); + if (AwardItemTid2 != 0) hash ^= AwardItemTid2.GetHashCode(); + if (AwardItemNum2 != 0) hash ^= AwardItemNum2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RankLower != 0) { + output.WriteRawTag(16); + output.WriteInt32(RankLower); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(AwardItemNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RankLower != 0) { + output.WriteRawTag(16); + output.WriteInt32(RankLower); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(AwardItemNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (RankLower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RankLower); + } + if (AwardItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelChallengeRankReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.RankLower != 0) { + RankLower = other.RankLower; + } + if (other.AwardItemTid1 != 0) { + AwardItemTid1 = other.AwardItemTid1; + } + if (other.AwardItemNum1 != 0) { + AwardItemNum1 = other.AwardItemNum1; + } + if (other.AwardItemTid2 != 0) { + AwardItemTid2 = other.AwardItemTid2; + } + if (other.AwardItemNum2 != 0) { + AwardItemNum2 = other.AwardItemNum2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RankLower = input.ReadInt32(); + break; + } + case 24: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 32: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 40: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 48: { + AwardItemNum2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RankLower = input.ReadInt32(); + break; + } + case 24: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 32: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 40: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 48: { + AwardItemNum2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelChallengeSeason.cs b/NTR.Common/protos/TravelerDuelChallengeSeason.cs new file mode 100644 index 0000000..c7cd2f6 --- /dev/null +++ b/NTR.Common/protos/TravelerDuelChallengeSeason.cs @@ -0,0 +1,467 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelChallengeSeason.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelChallengeSeason.proto</summary> + public static partial class TravelerDuelChallengeSeasonReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelChallengeSeason.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelChallengeSeasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFUcmF2ZWxlckR1ZWxDaGFsbGVuZ2VTZWFzb24ucHJvdG8irAEKG1RyYXZl", + "bGVyRHVlbENoYWxsZW5nZVNlYXNvbhIKCgJpZBgBIAEoBRIPCgdib3NzX2lk", + "GAIgASgFEhcKD2FmZml4X2dyb3VwX2lkcxgDIAEoCRIWCg5xdWVzdF9ncm91", + "cF9pZBgEIAEoBRIaChJiYWNrX2dyb3VuZF9zb3VyY2UYBSABKAkSEQoJb3Bl", + "bl90aW1lGAYgASgJEhAKCGVuZF90aW1lGAcgASgJQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelChallengeSeason), global::Nova.Client.TravelerDuelChallengeSeason.Parser, new[]{ "Id", "BossId", "AffixGroupIds", "QuestGroupId", "BackGroundSource", "OpenTime", "EndTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelChallengeSeason : pb::IMessage<TravelerDuelChallengeSeason> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelChallengeSeason> _parser = new pb::MessageParser<TravelerDuelChallengeSeason>(() => new TravelerDuelChallengeSeason()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelChallengeSeason> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelChallengeSeasonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeSeason() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeSeason(TravelerDuelChallengeSeason other) : this() { + id_ = other.id_; + bossId_ = other.bossId_; + affixGroupIds_ = other.affixGroupIds_; + questGroupId_ = other.questGroupId_; + backGroundSource_ = other.backGroundSource_; + openTime_ = other.openTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelChallengeSeason Clone() { + return new TravelerDuelChallengeSeason(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "boss_id" field.</summary> + public const int BossIdFieldNumber = 2; + private int bossId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BossId { + get { return bossId_; } + set { + bossId_ = value; + } + } + + /// <summary>Field number for the "affix_group_ids" field.</summary> + public const int AffixGroupIdsFieldNumber = 3; + private string affixGroupIds_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AffixGroupIds { + get { return affixGroupIds_; } + set { + affixGroupIds_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "quest_group_id" field.</summary> + public const int QuestGroupIdFieldNumber = 4; + private int questGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuestGroupId { + get { return questGroupId_; } + set { + questGroupId_ = value; + } + } + + /// <summary>Field number for the "back_ground_source" field.</summary> + public const int BackGroundSourceFieldNumber = 5; + private string backGroundSource_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackGroundSource { + get { return backGroundSource_; } + set { + backGroundSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "open_time" field.</summary> + public const int OpenTimeFieldNumber = 6; + private string openTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenTime { + get { return openTime_; } + set { + openTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "end_time" field.</summary> + public const int EndTimeFieldNumber = 7; + private string endTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndTime { + get { return endTime_; } + set { + endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelChallengeSeason); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelChallengeSeason other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BossId != other.BossId) return false; + if (AffixGroupIds != other.AffixGroupIds) return false; + if (QuestGroupId != other.QuestGroupId) return false; + if (BackGroundSource != other.BackGroundSource) return false; + if (OpenTime != other.OpenTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (BossId != 0) hash ^= BossId.GetHashCode(); + if (AffixGroupIds.Length != 0) hash ^= AffixGroupIds.GetHashCode(); + if (QuestGroupId != 0) hash ^= QuestGroupId.GetHashCode(); + if (BackGroundSource.Length != 0) hash ^= BackGroundSource.GetHashCode(); + if (OpenTime.Length != 0) hash ^= OpenTime.GetHashCode(); + if (EndTime.Length != 0) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BossId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BossId); + } + if (AffixGroupIds.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AffixGroupIds); + } + if (QuestGroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(QuestGroupId); + } + if (BackGroundSource.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BackGroundSource); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(50); + output.WriteString(OpenTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (BossId != 0) { + output.WriteRawTag(16); + output.WriteInt32(BossId); + } + if (AffixGroupIds.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AffixGroupIds); + } + if (QuestGroupId != 0) { + output.WriteRawTag(32); + output.WriteInt32(QuestGroupId); + } + if (BackGroundSource.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BackGroundSource); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(50); + output.WriteString(OpenTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (BossId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossId); + } + if (AffixGroupIds.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AffixGroupIds); + } + if (QuestGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuestGroupId); + } + if (BackGroundSource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackGroundSource); + } + if (OpenTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenTime); + } + if (EndTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelChallengeSeason other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.BossId != 0) { + BossId = other.BossId; + } + if (other.AffixGroupIds.Length != 0) { + AffixGroupIds = other.AffixGroupIds; + } + if (other.QuestGroupId != 0) { + QuestGroupId = other.QuestGroupId; + } + if (other.BackGroundSource.Length != 0) { + BackGroundSource = other.BackGroundSource; + } + if (other.OpenTime.Length != 0) { + OpenTime = other.OpenTime; + } + if (other.EndTime.Length != 0) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BossId = input.ReadInt32(); + break; + } + case 26: { + AffixGroupIds = input.ReadString(); + break; + } + case 32: { + QuestGroupId = input.ReadInt32(); + break; + } + case 42: { + BackGroundSource = input.ReadString(); + break; + } + case 50: { + OpenTime = input.ReadString(); + break; + } + case 58: { + EndTime = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + BossId = input.ReadInt32(); + break; + } + case 26: { + AffixGroupIds = input.ReadString(); + break; + } + case 32: { + QuestGroupId = input.ReadInt32(); + break; + } + case 42: { + BackGroundSource = input.ReadString(); + break; + } + case 50: { + OpenTime = input.ReadString(); + break; + } + case 58: { + EndTime = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelFloor.cs b/NTR.Common/protos/TravelerDuelFloor.cs new file mode 100644 index 0000000..31e7843 --- /dev/null +++ b/NTR.Common/protos/TravelerDuelFloor.cs @@ -0,0 +1,504 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelFloor.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelFloor.proto</summary> + public static partial class TravelerDuelFloorReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelFloor.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdUcmF2ZWxlckR1ZWxGbG9vci5wcm90byK2AQoRVHJhdmVsZXJEdWVsRmxv", + "b3ISCgoCaWQYASABKAUSEgoKc2NlbmVfbmFtZRgCIAEoCRIaChJjb25maWdf", + "cHJlZmFiX25hbWUYAyABKAkSDQoFdGhlbWUYBCABKAUSDQoFYl9nX20YBSAB", + "KAkSGwoTbGVhdmVfdHJpZ2dlcl9ldmVudBgGIAEoCRISCgptb25zdGVyX2x2", + "GAcgASgFEhYKDmludHJvX2N1dHNjZW5lGAggASgJQg6qAgtOb3ZhLkNsaWVu", + "dGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelFloor), global::Nova.Client.TravelerDuelFloor.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent", "MonsterLv", "IntroCutscene" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelFloor : pb::IMessage<TravelerDuelFloor> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelFloor> _parser = new pb::MessageParser<TravelerDuelFloor>(() => new TravelerDuelFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelFloor> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelFloor(TravelerDuelFloor other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + monsterLv_ = other.monsterLv_; + introCutscene_ = other.introCutscene_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelFloor Clone() { + return new TravelerDuelFloor(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "scene_name" field.</summary> + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "config_prefab_name" field.</summary> + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "theme" field.</summary> + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// <summary>Field number for the "b_g_m" field.</summary> + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "leave_trigger_event" field.</summary> + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "monster_lv" field.</summary> + public const int MonsterLvFieldNumber = 7; + private int monsterLv_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLv { + get { return monsterLv_; } + set { + monsterLv_ = value; + } + } + + /// <summary>Field number for the "intro_cutscene" field.</summary> + public const int IntroCutsceneFieldNumber = 8; + private string introCutscene_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IntroCutscene { + get { return introCutscene_; } + set { + introCutscene_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + if (MonsterLv != other.MonsterLv) return false; + if (IntroCutscene != other.IntroCutscene) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (MonsterLv != 0) hash ^= MonsterLv.GetHashCode(); + if (IntroCutscene.Length != 0) hash ^= IntroCutscene.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (IntroCutscene.Length != 0) { + output.WriteRawTag(66); + output.WriteString(IntroCutscene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + output.WriteRawTag(56); + output.WriteInt32(MonsterLv); + } + if (IntroCutscene.Length != 0) { + output.WriteRawTag(66); + output.WriteString(IntroCutscene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (MonsterLv != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLv); + } + if (IntroCutscene.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IntroCutscene); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + if (other.MonsterLv != 0) { + MonsterLv = other.MonsterLv; + } + if (other.IntroCutscene.Length != 0) { + IntroCutscene = other.IntroCutscene; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + case 66: { + IntroCutscene = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + case 56: { + MonsterLv = input.ReadInt32(); + break; + } + case 66: { + IntroCutscene = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelLevel.cs b/NTR.Common/protos/TravelerDuelLevel.cs new file mode 100644 index 0000000..2c21eaa --- /dev/null +++ b/NTR.Common/protos/TravelerDuelLevel.cs @@ -0,0 +1,316 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelLevel.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelLevel.proto</summary> + public static partial class TravelerDuelLevelReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelLevel.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdUcmF2ZWxlckR1ZWxMZXZlbC5wcm90byJRChFUcmF2ZWxlckR1ZWxMZXZl", + "bBIKCgJpZBgBIAEoBRIUCgxsZXZlbF91cF9leHAYAiABKAUSGgoSY29pbl9h", + "ZGRpdGlvbl9wcm9iGAMgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelLevel), global::Nova.Client.TravelerDuelLevel.Parser, new[]{ "Id", "LevelUpExp", "CoinAdditionProb" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelLevel : pb::IMessage<TravelerDuelLevel> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelLevel> _parser = new pb::MessageParser<TravelerDuelLevel>(() => new TravelerDuelLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelLevel> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelLevel(TravelerDuelLevel other) : this() { + id_ = other.id_; + levelUpExp_ = other.levelUpExp_; + coinAdditionProb_ = other.coinAdditionProb_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelLevel Clone() { + return new TravelerDuelLevel(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "level_up_exp" field.</summary> + public const int LevelUpExpFieldNumber = 2; + private int levelUpExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelUpExp { + get { return levelUpExp_; } + set { + levelUpExp_ = value; + } + } + + /// <summary>Field number for the "coin_addition_prob" field.</summary> + public const int CoinAdditionProbFieldNumber = 3; + private int coinAdditionProb_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CoinAdditionProb { + get { return coinAdditionProb_; } + set { + coinAdditionProb_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (LevelUpExp != other.LevelUpExp) return false; + if (CoinAdditionProb != other.CoinAdditionProb) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (LevelUpExp != 0) hash ^= LevelUpExp.GetHashCode(); + if (CoinAdditionProb != 0) hash ^= CoinAdditionProb.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelUpExp != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelUpExp); + } + if (CoinAdditionProb != 0) { + output.WriteRawTag(24); + output.WriteInt32(CoinAdditionProb); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (LevelUpExp != 0) { + output.WriteRawTag(16); + output.WriteInt32(LevelUpExp); + } + if (CoinAdditionProb != 0) { + output.WriteRawTag(24); + output.WriteInt32(CoinAdditionProb); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (LevelUpExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelUpExp); + } + if (CoinAdditionProb != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoinAdditionProb); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelLevel other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.LevelUpExp != 0) { + LevelUpExp = other.LevelUpExp; + } + if (other.CoinAdditionProb != 0) { + CoinAdditionProb = other.CoinAdditionProb; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelUpExp = input.ReadInt32(); + break; + } + case 24: { + CoinAdditionProb = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + LevelUpExp = input.ReadInt32(); + break; + } + case 24: { + CoinAdditionProb = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TravelerDuelQuest.cs b/NTR.Common/protos/TravelerDuelQuest.cs new file mode 100644 index 0000000..23f61cf --- /dev/null +++ b/NTR.Common/protos/TravelerDuelQuest.cs @@ -0,0 +1,729 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TravelerDuelQuest.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TravelerDuelQuest.proto</summary> + public static partial class TravelerDuelQuestReflection { + + #region Descriptor + /// <summary>File descriptor for TravelerDuelQuest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TravelerDuelQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdUcmF2ZWxlckR1ZWxRdWVzdC5wcm90byK/AgoRVHJhdmVsZXJEdWVsUXVl", + "c3QSCgoCaWQYASABKAUSDQoFdGl0bGUYAiABKAkSDAoEZGVzYxgDIAEoCRIP", + "CgdqdW1wX3RvGAQgASgFEg0KBW9yZGVyGAUgASgFEhYKDmFjY2VwdF9wYXJh", + "bXMyGAYgASgJEhUKDWNvbXBsZXRlX2NvbmQYByABKAUSHAoUY29tcGxldGVf", + "Y29uZF9wYXJhbXMYCCABKAkSFwoPYXdhcmRfaXRlbV90aWQxGAkgASgFEhcK", + "D2F3YXJkX2l0ZW1fbnVtMRgKIAEoBRIXCg9hd2FyZF9pdGVtX3RpZDIYCyAB", + "KAUSFwoPYXdhcmRfaXRlbV9udW0yGAwgASgFEhcKD2F3YXJkX2l0ZW1fdGlk", + "MxgNIAEoBRIXCg9hd2FyZF9pdGVtX251bTMYDiABKAVCDqoCC05vdmEuQ2xp", + "ZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TravelerDuelQuest), global::Nova.Client.TravelerDuelQuest.Parser, new[]{ "Id", "Title", "Desc", "JumpTo", "Order", "AcceptParams2", "CompleteCond", "CompleteCondParams", "AwardItemTid1", "AwardItemNum1", "AwardItemTid2", "AwardItemNum2", "AwardItemTid3", "AwardItemNum3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TravelerDuelQuest : pb::IMessage<TravelerDuelQuest> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TravelerDuelQuest> _parser = new pb::MessageParser<TravelerDuelQuest>(() => new TravelerDuelQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TravelerDuelQuest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TravelerDuelQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelQuest(TravelerDuelQuest other) : this() { + id_ = other.id_; + title_ = other.title_; + desc_ = other.desc_; + jumpTo_ = other.jumpTo_; + order_ = other.order_; + acceptParams2_ = other.acceptParams2_; + completeCond_ = other.completeCond_; + completeCondParams_ = other.completeCondParams_; + awardItemTid1_ = other.awardItemTid1_; + awardItemNum1_ = other.awardItemNum1_; + awardItemTid2_ = other.awardItemTid2_; + awardItemNum2_ = other.awardItemNum2_; + awardItemTid3_ = other.awardItemTid3_; + awardItemNum3_ = other.awardItemNum3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TravelerDuelQuest Clone() { + return new TravelerDuelQuest(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "jump_to" field.</summary> + public const int JumpToFieldNumber = 4; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// <summary>Field number for the "order" field.</summary> + public const int OrderFieldNumber = 5; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// <summary>Field number for the "accept_params2" field.</summary> + public const int AcceptParams2FieldNumber = 6; + private string acceptParams2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AcceptParams2 { + get { return acceptParams2_; } + set { + acceptParams2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "complete_cond" field.</summary> + public const int CompleteCondFieldNumber = 7; + private int completeCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCond { + get { return completeCond_; } + set { + completeCond_ = value; + } + } + + /// <summary>Field number for the "complete_cond_params" field.</summary> + public const int CompleteCondParamsFieldNumber = 8; + private string completeCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteCondParams { + get { return completeCondParams_; } + set { + completeCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "award_item_tid1" field.</summary> + public const int AwardItemTid1FieldNumber = 9; + private int awardItemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid1 { + get { return awardItemTid1_; } + set { + awardItemTid1_ = value; + } + } + + /// <summary>Field number for the "award_item_num1" field.</summary> + public const int AwardItemNum1FieldNumber = 10; + private int awardItemNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum1 { + get { return awardItemNum1_; } + set { + awardItemNum1_ = value; + } + } + + /// <summary>Field number for the "award_item_tid2" field.</summary> + public const int AwardItemTid2FieldNumber = 11; + private int awardItemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid2 { + get { return awardItemTid2_; } + set { + awardItemTid2_ = value; + } + } + + /// <summary>Field number for the "award_item_num2" field.</summary> + public const int AwardItemNum2FieldNumber = 12; + private int awardItemNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum2 { + get { return awardItemNum2_; } + set { + awardItemNum2_ = value; + } + } + + /// <summary>Field number for the "award_item_tid3" field.</summary> + public const int AwardItemTid3FieldNumber = 13; + private int awardItemTid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid3 { + get { return awardItemTid3_; } + set { + awardItemTid3_ = value; + } + } + + /// <summary>Field number for the "award_item_num3" field.</summary> + public const int AwardItemNum3FieldNumber = 14; + private int awardItemNum3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum3 { + get { return awardItemNum3_; } + set { + awardItemNum3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TravelerDuelQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TravelerDuelQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (JumpTo != other.JumpTo) return false; + if (Order != other.Order) return false; + if (AcceptParams2 != other.AcceptParams2) return false; + if (CompleteCond != other.CompleteCond) return false; + if (CompleteCondParams != other.CompleteCondParams) return false; + if (AwardItemTid1 != other.AwardItemTid1) return false; + if (AwardItemNum1 != other.AwardItemNum1) return false; + if (AwardItemTid2 != other.AwardItemTid2) return false; + if (AwardItemNum2 != other.AwardItemNum2) return false; + if (AwardItemTid3 != other.AwardItemTid3) return false; + if (AwardItemNum3 != other.AwardItemNum3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (AcceptParams2.Length != 0) hash ^= AcceptParams2.GetHashCode(); + if (CompleteCond != 0) hash ^= CompleteCond.GetHashCode(); + if (CompleteCondParams.Length != 0) hash ^= CompleteCondParams.GetHashCode(); + if (AwardItemTid1 != 0) hash ^= AwardItemTid1.GetHashCode(); + if (AwardItemNum1 != 0) hash ^= AwardItemNum1.GetHashCode(); + if (AwardItemTid2 != 0) hash ^= AwardItemTid2.GetHashCode(); + if (AwardItemNum2 != 0) hash ^= AwardItemNum2.GetHashCode(); + if (AwardItemTid3 != 0) hash ^= AwardItemTid3.GetHashCode(); + if (AwardItemNum3 != 0) hash ^= AwardItemNum3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(40); + output.WriteInt32(Order); + } + if (AcceptParams2.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AcceptParams2); + } + if (CompleteCond != 0) { + output.WriteRawTag(56); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(66); + output.WriteString(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(72); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(88); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardItemNum3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(32); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(40); + output.WriteInt32(Order); + } + if (AcceptParams2.Length != 0) { + output.WriteRawTag(50); + output.WriteString(AcceptParams2); + } + if (CompleteCond != 0) { + output.WriteRawTag(56); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(66); + output.WriteString(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(72); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(88); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardItemNum3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (AcceptParams2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AcceptParams2); + } + if (CompleteCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TravelerDuelQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.AcceptParams2.Length != 0) { + AcceptParams2 = other.AcceptParams2; + } + if (other.CompleteCond != 0) { + CompleteCond = other.CompleteCond; + } + if (other.CompleteCondParams.Length != 0) { + CompleteCondParams = other.CompleteCondParams; + } + if (other.AwardItemTid1 != 0) { + AwardItemTid1 = other.AwardItemTid1; + } + if (other.AwardItemNum1 != 0) { + AwardItemNum1 = other.AwardItemNum1; + } + if (other.AwardItemTid2 != 0) { + AwardItemTid2 = other.AwardItemTid2; + } + if (other.AwardItemNum2 != 0) { + AwardItemNum2 = other.AwardItemNum2; + } + if (other.AwardItemTid3 != 0) { + AwardItemTid3 = other.AwardItemTid3; + } + if (other.AwardItemNum3 != 0) { + AwardItemNum3 = other.AwardItemNum3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Order = input.ReadInt32(); + break; + } + case 50: { + AcceptParams2 = input.ReadString(); + break; + } + case 56: { + CompleteCond = input.ReadInt32(); + break; + } + case 66: { + CompleteCondParams = input.ReadString(); + break; + } + case 72: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 80: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 88: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 96: { + AwardItemNum2 = input.ReadInt32(); + break; + } + case 104: { + AwardItemTid3 = input.ReadInt32(); + break; + } + case 112: { + AwardItemNum3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + JumpTo = input.ReadInt32(); + break; + } + case 40: { + Order = input.ReadInt32(); + break; + } + case 50: { + AcceptParams2 = input.ReadString(); + break; + } + case 56: { + CompleteCond = input.ReadInt32(); + break; + } + case 66: { + CompleteCondParams = input.ReadString(); + break; + } + case 72: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 80: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 88: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 96: { + AwardItemNum2 = input.ReadInt32(); + break; + } + case 104: { + AwardItemTid3 = input.ReadInt32(); + break; + } + case 112: { + AwardItemNum3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TrialBuild.cs b/NTR.Common/protos/TrialBuild.cs new file mode 100644 index 0000000..a5910a5 --- /dev/null +++ b/NTR.Common/protos/TrialBuild.cs @@ -0,0 +1,710 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrialBuild.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TrialBuild.proto</summary> + public static partial class TrialBuildReflection { + + #region Descriptor + /// <summary>File descriptor for TrialBuild.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TrialBuildReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBUcmlhbEJ1aWxkLnByb3RvIrQCCgpUcmlhbEJ1aWxkEgoKAmlkGAEgASgF", + "EgwKBG5hbWUYAiABKAkSDQoFc2NvcmUYAyABKAUSDAoEY2hhchgEIAMoBRIM", + "CgRkaXNjGAUgAygFEhEKCXBvdGVudGlhbBgGIAEoCRIaChJkaXNjX2NvbW1v", + "bl9za2lsbDEYByABKAkSGgoSZGlzY19jb21tb25fc2tpbGwyGAggASgJEhoK", + "EmRpc2NfY29tbW9uX3NraWxsMxgJIAEoCRIbChNkaXNjX3Bhc3NpdmVfc2tp", + "bGwxGAogASgJEhsKE2Rpc2NfcGFzc2l2ZV9za2lsbDIYCyABKAkSGwoTZGlz", + "Y19wYXNzaXZlX3NraWxsMxgMIAEoCRIVCg1oYXJtb255X3NraWxsGA0gASgJ", + "EgwKBG5vdGUYDiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TrialBuild), global::Nova.Client.TrialBuild.Parser, new[]{ "Id", "Name", "Score", "Char", "Disc", "Potential", "DiscCommonSkill1", "DiscCommonSkill2", "DiscCommonSkill3", "DiscPassiveSkill1", "DiscPassiveSkill2", "DiscPassiveSkill3", "HarmonySkill", "Note" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TrialBuild : pb::IMessage<TrialBuild> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TrialBuild> _parser = new pb::MessageParser<TrialBuild>(() => new TrialBuild()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TrialBuild> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TrialBuildReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialBuild() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialBuild(TrialBuild other) : this() { + id_ = other.id_; + name_ = other.name_; + score_ = other.score_; + char_ = other.char_.Clone(); + disc_ = other.disc_.Clone(); + potential_ = other.potential_; + discCommonSkill1_ = other.discCommonSkill1_; + discCommonSkill2_ = other.discCommonSkill2_; + discCommonSkill3_ = other.discCommonSkill3_; + discPassiveSkill1_ = other.discPassiveSkill1_; + discPassiveSkill2_ = other.discPassiveSkill2_; + discPassiveSkill3_ = other.discPassiveSkill3_; + harmonySkill_ = other.harmonySkill_; + note_ = other.note_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialBuild Clone() { + return new TrialBuild(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "score" field.</summary> + public const int ScoreFieldNumber = 3; + private int score_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Score { + get { return score_; } + set { + score_ = value; + } + } + + /// <summary>Field number for the "char" field.</summary> + public const int CharFieldNumber = 4; + private static readonly pb::FieldCodec<int> _repeated_char_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField<int> char_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> Char { + get { return char_; } + } + + /// <summary>Field number for the "disc" field.</summary> + public const int DiscFieldNumber = 5; + private static readonly pb::FieldCodec<int> _repeated_disc_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField<int> disc_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> Disc { + get { return disc_; } + } + + /// <summary>Field number for the "potential" field.</summary> + public const int PotentialFieldNumber = 6; + private string potential_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Potential { + get { return potential_; } + set { + potential_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "disc_common_skill1" field.</summary> + public const int DiscCommonSkill1FieldNumber = 7; + private string discCommonSkill1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscCommonSkill1 { + get { return discCommonSkill1_; } + set { + discCommonSkill1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "disc_common_skill2" field.</summary> + public const int DiscCommonSkill2FieldNumber = 8; + private string discCommonSkill2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscCommonSkill2 { + get { return discCommonSkill2_; } + set { + discCommonSkill2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "disc_common_skill3" field.</summary> + public const int DiscCommonSkill3FieldNumber = 9; + private string discCommonSkill3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscCommonSkill3 { + get { return discCommonSkill3_; } + set { + discCommonSkill3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "disc_passive_skill1" field.</summary> + public const int DiscPassiveSkill1FieldNumber = 10; + private string discPassiveSkill1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscPassiveSkill1 { + get { return discPassiveSkill1_; } + set { + discPassiveSkill1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "disc_passive_skill2" field.</summary> + public const int DiscPassiveSkill2FieldNumber = 11; + private string discPassiveSkill2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscPassiveSkill2 { + get { return discPassiveSkill2_; } + set { + discPassiveSkill2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "disc_passive_skill3" field.</summary> + public const int DiscPassiveSkill3FieldNumber = 12; + private string discPassiveSkill3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiscPassiveSkill3 { + get { return discPassiveSkill3_; } + set { + discPassiveSkill3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "harmony_skill" field.</summary> + public const int HarmonySkillFieldNumber = 13; + private string harmonySkill_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HarmonySkill { + get { return harmonySkill_; } + set { + harmonySkill_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "note" field.</summary> + public const int NoteFieldNumber = 14; + private string note_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TrialBuild); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrialBuild other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Score != other.Score) return false; + if(!char_.Equals(other.char_)) return false; + if(!disc_.Equals(other.disc_)) return false; + if (Potential != other.Potential) return false; + if (DiscCommonSkill1 != other.DiscCommonSkill1) return false; + if (DiscCommonSkill2 != other.DiscCommonSkill2) return false; + if (DiscCommonSkill3 != other.DiscCommonSkill3) return false; + if (DiscPassiveSkill1 != other.DiscPassiveSkill1) return false; + if (DiscPassiveSkill2 != other.DiscPassiveSkill2) return false; + if (DiscPassiveSkill3 != other.DiscPassiveSkill3) return false; + if (HarmonySkill != other.HarmonySkill) return false; + if (Note != other.Note) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Score != 0) hash ^= Score.GetHashCode(); + hash ^= char_.GetHashCode(); + hash ^= disc_.GetHashCode(); + if (Potential.Length != 0) hash ^= Potential.GetHashCode(); + if (DiscCommonSkill1.Length != 0) hash ^= DiscCommonSkill1.GetHashCode(); + if (DiscCommonSkill2.Length != 0) hash ^= DiscCommonSkill2.GetHashCode(); + if (DiscCommonSkill3.Length != 0) hash ^= DiscCommonSkill3.GetHashCode(); + if (DiscPassiveSkill1.Length != 0) hash ^= DiscPassiveSkill1.GetHashCode(); + if (DiscPassiveSkill2.Length != 0) hash ^= DiscPassiveSkill2.GetHashCode(); + if (DiscPassiveSkill3.Length != 0) hash ^= DiscPassiveSkill3.GetHashCode(); + if (HarmonySkill.Length != 0) hash ^= HarmonySkill.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Score != 0) { + output.WriteRawTag(24); + output.WriteInt32(Score); + } + char_.WriteTo(output, _repeated_char_codec); + disc_.WriteTo(output, _repeated_disc_codec); + if (Potential.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Potential); + } + if (DiscCommonSkill1.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DiscCommonSkill1); + } + if (DiscCommonSkill2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DiscCommonSkill2); + } + if (DiscCommonSkill3.Length != 0) { + output.WriteRawTag(74); + output.WriteString(DiscCommonSkill3); + } + if (DiscPassiveSkill1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(DiscPassiveSkill1); + } + if (DiscPassiveSkill2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(DiscPassiveSkill2); + } + if (DiscPassiveSkill3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DiscPassiveSkill3); + } + if (HarmonySkill.Length != 0) { + output.WriteRawTag(106); + output.WriteString(HarmonySkill); + } + if (Note.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Note); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Score != 0) { + output.WriteRawTag(24); + output.WriteInt32(Score); + } + char_.WriteTo(ref output, _repeated_char_codec); + disc_.WriteTo(ref output, _repeated_disc_codec); + if (Potential.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Potential); + } + if (DiscCommonSkill1.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DiscCommonSkill1); + } + if (DiscCommonSkill2.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DiscCommonSkill2); + } + if (DiscCommonSkill3.Length != 0) { + output.WriteRawTag(74); + output.WriteString(DiscCommonSkill3); + } + if (DiscPassiveSkill1.Length != 0) { + output.WriteRawTag(82); + output.WriteString(DiscPassiveSkill1); + } + if (DiscPassiveSkill2.Length != 0) { + output.WriteRawTag(90); + output.WriteString(DiscPassiveSkill2); + } + if (DiscPassiveSkill3.Length != 0) { + output.WriteRawTag(98); + output.WriteString(DiscPassiveSkill3); + } + if (HarmonySkill.Length != 0) { + output.WriteRawTag(106); + output.WriteString(HarmonySkill); + } + if (Note.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Note); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Score != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score); + } + size += char_.CalculateSize(_repeated_char_codec); + size += disc_.CalculateSize(_repeated_disc_codec); + if (Potential.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Potential); + } + if (DiscCommonSkill1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscCommonSkill1); + } + if (DiscCommonSkill2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscCommonSkill2); + } + if (DiscCommonSkill3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscCommonSkill3); + } + if (DiscPassiveSkill1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscPassiveSkill1); + } + if (DiscPassiveSkill2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscPassiveSkill2); + } + if (DiscPassiveSkill3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiscPassiveSkill3); + } + if (HarmonySkill.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HarmonySkill); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrialBuild other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Score != 0) { + Score = other.Score; + } + char_.Add(other.char_); + disc_.Add(other.disc_); + if (other.Potential.Length != 0) { + Potential = other.Potential; + } + if (other.DiscCommonSkill1.Length != 0) { + DiscCommonSkill1 = other.DiscCommonSkill1; + } + if (other.DiscCommonSkill2.Length != 0) { + DiscCommonSkill2 = other.DiscCommonSkill2; + } + if (other.DiscCommonSkill3.Length != 0) { + DiscCommonSkill3 = other.DiscCommonSkill3; + } + if (other.DiscPassiveSkill1.Length != 0) { + DiscPassiveSkill1 = other.DiscPassiveSkill1; + } + if (other.DiscPassiveSkill2.Length != 0) { + DiscPassiveSkill2 = other.DiscPassiveSkill2; + } + if (other.DiscPassiveSkill3.Length != 0) { + DiscPassiveSkill3 = other.DiscPassiveSkill3; + } + if (other.HarmonySkill.Length != 0) { + HarmonySkill = other.HarmonySkill; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Score = input.ReadInt32(); + break; + } + case 34: + case 32: { + char_.AddEntriesFrom(input, _repeated_char_codec); + break; + } + case 42: + case 40: { + disc_.AddEntriesFrom(input, _repeated_disc_codec); + break; + } + case 50: { + Potential = input.ReadString(); + break; + } + case 58: { + DiscCommonSkill1 = input.ReadString(); + break; + } + case 66: { + DiscCommonSkill2 = input.ReadString(); + break; + } + case 74: { + DiscCommonSkill3 = input.ReadString(); + break; + } + case 82: { + DiscPassiveSkill1 = input.ReadString(); + break; + } + case 90: { + DiscPassiveSkill2 = input.ReadString(); + break; + } + case 98: { + DiscPassiveSkill3 = input.ReadString(); + break; + } + case 106: { + HarmonySkill = input.ReadString(); + break; + } + case 114: { + Note = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Score = input.ReadInt32(); + break; + } + case 34: + case 32: { + char_.AddEntriesFrom(ref input, _repeated_char_codec); + break; + } + case 42: + case 40: { + disc_.AddEntriesFrom(ref input, _repeated_disc_codec); + break; + } + case 50: { + Potential = input.ReadString(); + break; + } + case 58: { + DiscCommonSkill1 = input.ReadString(); + break; + } + case 66: { + DiscCommonSkill2 = input.ReadString(); + break; + } + case 74: { + DiscCommonSkill3 = input.ReadString(); + break; + } + case 82: { + DiscPassiveSkill1 = input.ReadString(); + break; + } + case 90: { + DiscPassiveSkill2 = input.ReadString(); + break; + } + case 98: { + DiscPassiveSkill3 = input.ReadString(); + break; + } + case 106: { + HarmonySkill = input.ReadString(); + break; + } + case 114: { + Note = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TrialCharacter.cs b/NTR.Common/protos/TrialCharacter.cs new file mode 100644 index 0000000..8821ecd --- /dev/null +++ b/NTR.Common/protos/TrialCharacter.cs @@ -0,0 +1,485 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrialCharacter.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TrialCharacter.proto</summary> + public static partial class TrialCharacterReflection { + + #region Descriptor + /// <summary>File descriptor for TrialCharacter.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TrialCharacterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRUcmlhbENoYXJhY3Rlci5wcm90byKWAQoOVHJpYWxDaGFyYWN0ZXISCgoC", + "aWQYASABKAUSDAoEbmFtZRgCIAEoCRIPCgdjaGFyX2lkGAMgASgFEhYKDmNo", + "YXJhY3Rlcl9za2luGAQgASgFEg0KBWJyZWFrGAUgASgFEg0KBWxldmVsGAYg", + "ASgFEhMKC3NraWxsX2xldmVsGAcgAygFEg4KBnRhbGVudBgIIAMoBUIOqgIL", + "Tm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TrialCharacter), global::Nova.Client.TrialCharacter.Parser, new[]{ "Id", "Name", "CharId", "CharacterSkin", "Break", "Level", "SkillLevel", "Talent" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TrialCharacter : pb::IMessage<TrialCharacter> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TrialCharacter> _parser = new pb::MessageParser<TrialCharacter>(() => new TrialCharacter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TrialCharacter> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TrialCharacterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialCharacter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialCharacter(TrialCharacter other) : this() { + id_ = other.id_; + name_ = other.name_; + charId_ = other.charId_; + characterSkin_ = other.characterSkin_; + break_ = other.break_; + level_ = other.level_; + skillLevel_ = other.skillLevel_.Clone(); + talent_ = other.talent_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialCharacter Clone() { + return new TrialCharacter(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "char_id" field.</summary> + public const int CharIdFieldNumber = 3; + private int charId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharId { + get { return charId_; } + set { + charId_ = value; + } + } + + /// <summary>Field number for the "character_skin" field.</summary> + public const int CharacterSkinFieldNumber = 4; + private int characterSkin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterSkin { + get { return characterSkin_; } + set { + characterSkin_ = value; + } + } + + /// <summary>Field number for the "break" field.</summary> + public const int BreakFieldNumber = 5; + private int break_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Break { + get { return break_; } + set { + break_ = value; + } + } + + /// <summary>Field number for the "level" field.</summary> + public const int LevelFieldNumber = 6; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// <summary>Field number for the "skill_level" field.</summary> + public const int SkillLevelFieldNumber = 7; + private static readonly pb::FieldCodec<int> _repeated_skillLevel_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField<int> skillLevel_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> SkillLevel { + get { return skillLevel_; } + } + + /// <summary>Field number for the "talent" field.</summary> + public const int TalentFieldNumber = 8; + private static readonly pb::FieldCodec<int> _repeated_talent_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField<int> talent_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> Talent { + get { return talent_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TrialCharacter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrialCharacter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (CharId != other.CharId) return false; + if (CharacterSkin != other.CharacterSkin) return false; + if (Break != other.Break) return false; + if (Level != other.Level) return false; + if(!skillLevel_.Equals(other.skillLevel_)) return false; + if(!talent_.Equals(other.talent_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (CharId != 0) hash ^= CharId.GetHashCode(); + if (CharacterSkin != 0) hash ^= CharacterSkin.GetHashCode(); + if (Break != 0) hash ^= Break.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + hash ^= skillLevel_.GetHashCode(); + hash ^= talent_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (CharId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CharId); + } + if (CharacterSkin != 0) { + output.WriteRawTag(32); + output.WriteInt32(CharacterSkin); + } + if (Break != 0) { + output.WriteRawTag(40); + output.WriteInt32(Break); + } + if (Level != 0) { + output.WriteRawTag(48); + output.WriteInt32(Level); + } + skillLevel_.WriteTo(output, _repeated_skillLevel_codec); + talent_.WriteTo(output, _repeated_talent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (CharId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CharId); + } + if (CharacterSkin != 0) { + output.WriteRawTag(32); + output.WriteInt32(CharacterSkin); + } + if (Break != 0) { + output.WriteRawTag(40); + output.WriteInt32(Break); + } + if (Level != 0) { + output.WriteRawTag(48); + output.WriteInt32(Level); + } + skillLevel_.WriteTo(ref output, _repeated_skillLevel_codec); + talent_.WriteTo(ref output, _repeated_talent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (CharId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId); + } + if (CharacterSkin != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterSkin); + } + if (Break != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Break); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + size += skillLevel_.CalculateSize(_repeated_skillLevel_codec); + size += talent_.CalculateSize(_repeated_talent_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrialCharacter other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.CharId != 0) { + CharId = other.CharId; + } + if (other.CharacterSkin != 0) { + CharacterSkin = other.CharacterSkin; + } + if (other.Break != 0) { + Break = other.Break; + } + if (other.Level != 0) { + Level = other.Level; + } + skillLevel_.Add(other.skillLevel_); + talent_.Add(other.talent_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + CharId = input.ReadInt32(); + break; + } + case 32: { + CharacterSkin = input.ReadInt32(); + break; + } + case 40: { + Break = input.ReadInt32(); + break; + } + case 48: { + Level = input.ReadInt32(); + break; + } + case 58: + case 56: { + skillLevel_.AddEntriesFrom(input, _repeated_skillLevel_codec); + break; + } + case 66: + case 64: { + talent_.AddEntriesFrom(input, _repeated_talent_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + CharId = input.ReadInt32(); + break; + } + case 32: { + CharacterSkin = input.ReadInt32(); + break; + } + case 40: { + Break = input.ReadInt32(); + break; + } + case 48: { + Level = input.ReadInt32(); + break; + } + case 58: + case 56: { + skillLevel_.AddEntriesFrom(ref input, _repeated_skillLevel_codec); + break; + } + case 66: + case 64: { + talent_.AddEntriesFrom(ref input, _repeated_talent_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/TrialDisc.cs b/NTR.Common/protos/TrialDisc.cs new file mode 100644 index 0000000..2562598 --- /dev/null +++ b/NTR.Common/protos/TrialDisc.cs @@ -0,0 +1,390 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TrialDisc.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from TrialDisc.proto</summary> + public static partial class TrialDiscReflection { + + #region Descriptor + /// <summary>File descriptor for TrialDisc.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TrialDiscReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9UcmlhbERpc2MucHJvdG8iVAoJVHJpYWxEaXNjEgoKAmlkGAEgASgFEg8K", + "B2Rpc2NfaWQYAiABKAUSDQoFcGhhc2UYAyABKAUSDQoFbGV2ZWwYBCABKAUS", + "DAoEc3RhchgFIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TrialDisc), global::Nova.Client.TrialDisc.Parser, new[]{ "Id", "DiscId", "Phase", "Level", "Star" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TrialDisc : pb::IMessage<TrialDisc> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<TrialDisc> _parser = new pb::MessageParser<TrialDisc>(() => new TrialDisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<TrialDisc> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.TrialDiscReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialDisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialDisc(TrialDisc other) : this() { + id_ = other.id_; + discId_ = other.discId_; + phase_ = other.phase_; + level_ = other.level_; + star_ = other.star_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrialDisc Clone() { + return new TrialDisc(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "disc_id" field.</summary> + public const int DiscIdFieldNumber = 2; + private int discId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DiscId { + get { return discId_; } + set { + discId_ = value; + } + } + + /// <summary>Field number for the "phase" field.</summary> + public const int PhaseFieldNumber = 3; + private int phase_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Phase { + get { return phase_; } + set { + phase_ = value; + } + } + + /// <summary>Field number for the "level" field.</summary> + public const int LevelFieldNumber = 4; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// <summary>Field number for the "star" field.</summary> + public const int StarFieldNumber = 5; + private int star_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Star { + get { return star_; } + set { + star_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TrialDisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrialDisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (DiscId != other.DiscId) return false; + if (Phase != other.Phase) return false; + if (Level != other.Level) return false; + if (Star != other.Star) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (DiscId != 0) hash ^= DiscId.GetHashCode(); + if (Phase != 0) hash ^= Phase.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Star != 0) hash ^= Star.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DiscId != 0) { + output.WriteRawTag(16); + output.WriteInt32(DiscId); + } + if (Phase != 0) { + output.WriteRawTag(24); + output.WriteInt32(Phase); + } + if (Level != 0) { + output.WriteRawTag(32); + output.WriteInt32(Level); + } + if (Star != 0) { + output.WriteRawTag(40); + output.WriteInt32(Star); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (DiscId != 0) { + output.WriteRawTag(16); + output.WriteInt32(DiscId); + } + if (Phase != 0) { + output.WriteRawTag(24); + output.WriteInt32(Phase); + } + if (Level != 0) { + output.WriteRawTag(32); + output.WriteInt32(Level); + } + if (Star != 0) { + output.WriteRawTag(40); + output.WriteInt32(Star); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (DiscId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DiscId); + } + if (Phase != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Phase); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Star != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Star); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrialDisc other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.DiscId != 0) { + DiscId = other.DiscId; + } + if (other.Phase != 0) { + Phase = other.Phase; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Star != 0) { + Star = other.Star; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DiscId = input.ReadInt32(); + break; + } + case 24: { + Phase = input.ReadInt32(); + break; + } + case 32: { + Level = input.ReadInt32(); + break; + } + case 40: { + Star = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + DiscId = input.ReadInt32(); + break; + } + case 24: { + Phase = input.ReadInt32(); + break; + } + case 32: { + Level = input.ReadInt32(); + break; + } + case 40: { + Star = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/UIText.cs b/NTR.Common/protos/UIText.cs new file mode 100644 index 0000000..7a1f4b8 --- /dev/null +++ b/NTR.Common/protos/UIText.cs @@ -0,0 +1,278 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UIText.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from UIText.proto</summary> + public static partial class UITextReflection { + + #region Descriptor + /// <summary>File descriptor for UIText.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UITextReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxVSVRleHQucHJvdG8iIgoGVUlUZXh0EgoKAmlkGAEgASgJEgwKBHRleHQY", + "AiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.UIText), global::Nova.Client.UIText.Parser, new[]{ "Id", "Text" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UIText : pb::IMessage<UIText> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<UIText> _parser = new pb::MessageParser<UIText>(() => new UIText()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<UIText> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.UITextReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UIText() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UIText(UIText other) : this() { + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UIText Clone() { + return new UIText(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "text" field.</summary> + public const int TextFieldNumber = 2; + private string text_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UIText); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UIText other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Text.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Text.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UIText other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Text.Length != 0) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireBattleThreshold.cs b/NTR.Common/protos/VampireBattleThreshold.cs new file mode 100644 index 0000000..9e2582d --- /dev/null +++ b/NTR.Common/protos/VampireBattleThreshold.cs @@ -0,0 +1,955 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireBattleThreshold.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireBattleThreshold.proto</summary> + public static partial class VampireBattleThresholdReflection { + + #region Descriptor + /// <summary>File descriptor for VampireBattleThreshold.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireBattleThresholdReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxWYW1waXJlQmF0dGxlVGhyZXNob2xkLnByb3RvIu8DChZWYW1waXJlQmF0", + "dGxlVGhyZXNob2xkEhIKCm1pc3Npb25faWQYASABKAUSDwoHdmVyc2lvbhgC", + "IAEoBRIUCgxmcm9tX3NyY19hdGsYAyABKAUSIQoZZnJvbV9wZXJrX2ludGVu", + "c2l0eV9yYXRpbxgEIAEoBRIbChNmcm9tX3Nsb3RfZG1nX3JhdGlvGAUgASgF", + "EhAKCGZyb21fZV9lGAYgASgFEhoKEmZyb21fZ2VuX2RtZ19yYXRpbxgHIAEo", + "BRIVCg1mcm9tX2RtZ19wbHVzGAggASgFEhcKD2Zyb21fY3JpdF9yYXRpbxgJ", + "IAEoBRIcChRmcm9tX2ZpbmFsX2RtZ19yYXRpbxgKIAEoBRIbChNmcm9tX2Zp", + "bmFsX2RtZ19wbHVzGAsgASgFEhMKC3RvX2VyX2FtZW5kGAwgASgFEhQKDHRv", + "X2RlZl9hbWVuZBgNIAEoBRIdChV0b19yY2Rfc2xvdF9kbWdfcmF0aW8YDiAB", + "KAUSFAoMdG9fZV9lX3JfY19kGA8gASgFEhwKFHRvX2dlbl9kbWdfcmNkX3Jh", + "dGlvGBAgASgFEhcKD3RvX2RtZ19wbHVzX3JjZBgRIAEoBRILCgNkbWcYEiAB", + "KAUSEQoJY3JpdF9yYXRlGBMgASgFEgoKAmhwGBQgASgFQg6qAgtOb3ZhLkNs", + "aWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireBattleThreshold), global::Nova.Client.VampireBattleThreshold.Parser, new[]{ "MissionId", "Version", "FromSrcAtk", "FromPerkIntensityRatio", "FromSlotDmgRatio", "FromEE", "FromGenDmgRatio", "FromDmgPlus", "FromCritRatio", "FromFinalDmgRatio", "FromFinalDmgPlus", "ToErAmend", "ToDefAmend", "ToRcdSlotDmgRatio", "ToEERCD", "ToGenDmgRcdRatio", "ToDmgPlusRcd", "Dmg", "CritRate", "Hp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireBattleThreshold : pb::IMessage<VampireBattleThreshold> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireBattleThreshold> _parser = new pb::MessageParser<VampireBattleThreshold>(() => new VampireBattleThreshold()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireBattleThreshold> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireBattleThresholdReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireBattleThreshold() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireBattleThreshold(VampireBattleThreshold other) : this() { + missionId_ = other.missionId_; + version_ = other.version_; + fromSrcAtk_ = other.fromSrcAtk_; + fromPerkIntensityRatio_ = other.fromPerkIntensityRatio_; + fromSlotDmgRatio_ = other.fromSlotDmgRatio_; + fromEE_ = other.fromEE_; + fromGenDmgRatio_ = other.fromGenDmgRatio_; + fromDmgPlus_ = other.fromDmgPlus_; + fromCritRatio_ = other.fromCritRatio_; + fromFinalDmgRatio_ = other.fromFinalDmgRatio_; + fromFinalDmgPlus_ = other.fromFinalDmgPlus_; + toErAmend_ = other.toErAmend_; + toDefAmend_ = other.toDefAmend_; + toRcdSlotDmgRatio_ = other.toRcdSlotDmgRatio_; + toEERCD_ = other.toEERCD_; + toGenDmgRcdRatio_ = other.toGenDmgRcdRatio_; + toDmgPlusRcd_ = other.toDmgPlusRcd_; + dmg_ = other.dmg_; + critRate_ = other.critRate_; + hp_ = other.hp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireBattleThreshold Clone() { + return new VampireBattleThreshold(this); + } + + /// <summary>Field number for the "mission_id" field.</summary> + public const int MissionIdFieldNumber = 1; + private int missionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MissionId { + get { return missionId_; } + set { + missionId_ = value; + } + } + + /// <summary>Field number for the "version" field.</summary> + public const int VersionFieldNumber = 2; + private int version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + /// <summary>Field number for the "from_src_atk" field.</summary> + public const int FromSrcAtkFieldNumber = 3; + private int fromSrcAtk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromSrcAtk { + get { return fromSrcAtk_; } + set { + fromSrcAtk_ = value; + } + } + + /// <summary>Field number for the "from_perk_intensity_ratio" field.</summary> + public const int FromPerkIntensityRatioFieldNumber = 4; + private int fromPerkIntensityRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromPerkIntensityRatio { + get { return fromPerkIntensityRatio_; } + set { + fromPerkIntensityRatio_ = value; + } + } + + /// <summary>Field number for the "from_slot_dmg_ratio" field.</summary> + public const int FromSlotDmgRatioFieldNumber = 5; + private int fromSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromSlotDmgRatio { + get { return fromSlotDmgRatio_; } + set { + fromSlotDmgRatio_ = value; + } + } + + /// <summary>Field number for the "from_e_e" field.</summary> + public const int FromEEFieldNumber = 6; + private int fromEE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromEE { + get { return fromEE_; } + set { + fromEE_ = value; + } + } + + /// <summary>Field number for the "from_gen_dmg_ratio" field.</summary> + public const int FromGenDmgRatioFieldNumber = 7; + private int fromGenDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromGenDmgRatio { + get { return fromGenDmgRatio_; } + set { + fromGenDmgRatio_ = value; + } + } + + /// <summary>Field number for the "from_dmg_plus" field.</summary> + public const int FromDmgPlusFieldNumber = 8; + private int fromDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromDmgPlus { + get { return fromDmgPlus_; } + set { + fromDmgPlus_ = value; + } + } + + /// <summary>Field number for the "from_crit_ratio" field.</summary> + public const int FromCritRatioFieldNumber = 9; + private int fromCritRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromCritRatio { + get { return fromCritRatio_; } + set { + fromCritRatio_ = value; + } + } + + /// <summary>Field number for the "from_final_dmg_ratio" field.</summary> + public const int FromFinalDmgRatioFieldNumber = 10; + private int fromFinalDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromFinalDmgRatio { + get { return fromFinalDmgRatio_; } + set { + fromFinalDmgRatio_ = value; + } + } + + /// <summary>Field number for the "from_final_dmg_plus" field.</summary> + public const int FromFinalDmgPlusFieldNumber = 11; + private int fromFinalDmgPlus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromFinalDmgPlus { + get { return fromFinalDmgPlus_; } + set { + fromFinalDmgPlus_ = value; + } + } + + /// <summary>Field number for the "to_er_amend" field.</summary> + public const int ToErAmendFieldNumber = 12; + private int toErAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToErAmend { + get { return toErAmend_; } + set { + toErAmend_ = value; + } + } + + /// <summary>Field number for the "to_def_amend" field.</summary> + public const int ToDefAmendFieldNumber = 13; + private int toDefAmend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToDefAmend { + get { return toDefAmend_; } + set { + toDefAmend_ = value; + } + } + + /// <summary>Field number for the "to_rcd_slot_dmg_ratio" field.</summary> + public const int ToRcdSlotDmgRatioFieldNumber = 14; + private int toRcdSlotDmgRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToRcdSlotDmgRatio { + get { return toRcdSlotDmgRatio_; } + set { + toRcdSlotDmgRatio_ = value; + } + } + + /// <summary>Field number for the "to_e_e_r_c_d" field.</summary> + public const int ToEERCDFieldNumber = 15; + private int toEERCD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToEERCD { + get { return toEERCD_; } + set { + toEERCD_ = value; + } + } + + /// <summary>Field number for the "to_gen_dmg_rcd_ratio" field.</summary> + public const int ToGenDmgRcdRatioFieldNumber = 16; + private int toGenDmgRcdRatio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToGenDmgRcdRatio { + get { return toGenDmgRcdRatio_; } + set { + toGenDmgRcdRatio_ = value; + } + } + + /// <summary>Field number for the "to_dmg_plus_rcd" field.</summary> + public const int ToDmgPlusRcdFieldNumber = 17; + private int toDmgPlusRcd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToDmgPlusRcd { + get { return toDmgPlusRcd_; } + set { + toDmgPlusRcd_ = value; + } + } + + /// <summary>Field number for the "dmg" field.</summary> + public const int DmgFieldNumber = 18; + private int dmg_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Dmg { + get { return dmg_; } + set { + dmg_ = value; + } + } + + /// <summary>Field number for the "crit_rate" field.</summary> + public const int CritRateFieldNumber = 19; + private int critRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CritRate { + get { return critRate_; } + set { + critRate_ = value; + } + } + + /// <summary>Field number for the "hp" field.</summary> + public const int HpFieldNumber = 20; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireBattleThreshold); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireBattleThreshold other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MissionId != other.MissionId) return false; + if (Version != other.Version) return false; + if (FromSrcAtk != other.FromSrcAtk) return false; + if (FromPerkIntensityRatio != other.FromPerkIntensityRatio) return false; + if (FromSlotDmgRatio != other.FromSlotDmgRatio) return false; + if (FromEE != other.FromEE) return false; + if (FromGenDmgRatio != other.FromGenDmgRatio) return false; + if (FromDmgPlus != other.FromDmgPlus) return false; + if (FromCritRatio != other.FromCritRatio) return false; + if (FromFinalDmgRatio != other.FromFinalDmgRatio) return false; + if (FromFinalDmgPlus != other.FromFinalDmgPlus) return false; + if (ToErAmend != other.ToErAmend) return false; + if (ToDefAmend != other.ToDefAmend) return false; + if (ToRcdSlotDmgRatio != other.ToRcdSlotDmgRatio) return false; + if (ToEERCD != other.ToEERCD) return false; + if (ToGenDmgRcdRatio != other.ToGenDmgRcdRatio) return false; + if (ToDmgPlusRcd != other.ToDmgPlusRcd) return false; + if (Dmg != other.Dmg) return false; + if (CritRate != other.CritRate) return false; + if (Hp != other.Hp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MissionId != 0) hash ^= MissionId.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (FromSrcAtk != 0) hash ^= FromSrcAtk.GetHashCode(); + if (FromPerkIntensityRatio != 0) hash ^= FromPerkIntensityRatio.GetHashCode(); + if (FromSlotDmgRatio != 0) hash ^= FromSlotDmgRatio.GetHashCode(); + if (FromEE != 0) hash ^= FromEE.GetHashCode(); + if (FromGenDmgRatio != 0) hash ^= FromGenDmgRatio.GetHashCode(); + if (FromDmgPlus != 0) hash ^= FromDmgPlus.GetHashCode(); + if (FromCritRatio != 0) hash ^= FromCritRatio.GetHashCode(); + if (FromFinalDmgRatio != 0) hash ^= FromFinalDmgRatio.GetHashCode(); + if (FromFinalDmgPlus != 0) hash ^= FromFinalDmgPlus.GetHashCode(); + if (ToErAmend != 0) hash ^= ToErAmend.GetHashCode(); + if (ToDefAmend != 0) hash ^= ToDefAmend.GetHashCode(); + if (ToRcdSlotDmgRatio != 0) hash ^= ToRcdSlotDmgRatio.GetHashCode(); + if (ToEERCD != 0) hash ^= ToEERCD.GetHashCode(); + if (ToGenDmgRcdRatio != 0) hash ^= ToGenDmgRcdRatio.GetHashCode(); + if (ToDmgPlusRcd != 0) hash ^= ToDmgPlusRcd.GetHashCode(); + if (Dmg != 0) hash ^= Dmg.GetHashCode(); + if (CritRate != 0) hash ^= CritRate.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MissionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(MissionId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (FromSrcAtk != 0) { + output.WriteRawTag(24); + output.WriteInt32(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + output.WriteRawTag(32); + output.WriteInt32(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + output.WriteRawTag(40); + output.WriteInt32(FromSlotDmgRatio); + } + if (FromEE != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromEE); + } + if (FromGenDmgRatio != 0) { + output.WriteRawTag(56); + output.WriteInt32(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + output.WriteRawTag(64); + output.WriteInt32(FromDmgPlus); + } + if (FromCritRatio != 0) { + output.WriteRawTag(72); + output.WriteInt32(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + output.WriteRawTag(88); + output.WriteInt32(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + output.WriteRawTag(96); + output.WriteInt32(ToErAmend); + } + if (ToDefAmend != 0) { + output.WriteRawTag(104); + output.WriteInt32(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + output.WriteRawTag(120); + output.WriteInt32(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ToDmgPlusRcd); + } + if (Dmg != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Dmg); + } + if (CritRate != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(CritRate); + } + if (Hp != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Hp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MissionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(MissionId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (FromSrcAtk != 0) { + output.WriteRawTag(24); + output.WriteInt32(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + output.WriteRawTag(32); + output.WriteInt32(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + output.WriteRawTag(40); + output.WriteInt32(FromSlotDmgRatio); + } + if (FromEE != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromEE); + } + if (FromGenDmgRatio != 0) { + output.WriteRawTag(56); + output.WriteInt32(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + output.WriteRawTag(64); + output.WriteInt32(FromDmgPlus); + } + if (FromCritRatio != 0) { + output.WriteRawTag(72); + output.WriteInt32(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + output.WriteRawTag(80); + output.WriteInt32(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + output.WriteRawTag(88); + output.WriteInt32(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + output.WriteRawTag(96); + output.WriteInt32(ToErAmend); + } + if (ToDefAmend != 0) { + output.WriteRawTag(104); + output.WriteInt32(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + output.WriteRawTag(112); + output.WriteInt32(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + output.WriteRawTag(120); + output.WriteInt32(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(ToDmgPlusRcd); + } + if (Dmg != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Dmg); + } + if (CritRate != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(CritRate); + } + if (Hp != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(Hp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MissionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MissionId); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (FromSrcAtk != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromSrcAtk); + } + if (FromPerkIntensityRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromPerkIntensityRatio); + } + if (FromSlotDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromSlotDmgRatio); + } + if (FromEE != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromEE); + } + if (FromGenDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromGenDmgRatio); + } + if (FromDmgPlus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromDmgPlus); + } + if (FromCritRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromCritRatio); + } + if (FromFinalDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromFinalDmgRatio); + } + if (FromFinalDmgPlus != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromFinalDmgPlus); + } + if (ToErAmend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToErAmend); + } + if (ToDefAmend != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToDefAmend); + } + if (ToRcdSlotDmgRatio != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToRcdSlotDmgRatio); + } + if (ToEERCD != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToEERCD); + } + if (ToGenDmgRcdRatio != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToGenDmgRcdRatio); + } + if (ToDmgPlusRcd != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ToDmgPlusRcd); + } + if (Dmg != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dmg); + } + if (CritRate != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(CritRate); + } + if (Hp != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireBattleThreshold other) { + if (other == null) { + return; + } + if (other.MissionId != 0) { + MissionId = other.MissionId; + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.FromSrcAtk != 0) { + FromSrcAtk = other.FromSrcAtk; + } + if (other.FromPerkIntensityRatio != 0) { + FromPerkIntensityRatio = other.FromPerkIntensityRatio; + } + if (other.FromSlotDmgRatio != 0) { + FromSlotDmgRatio = other.FromSlotDmgRatio; + } + if (other.FromEE != 0) { + FromEE = other.FromEE; + } + if (other.FromGenDmgRatio != 0) { + FromGenDmgRatio = other.FromGenDmgRatio; + } + if (other.FromDmgPlus != 0) { + FromDmgPlus = other.FromDmgPlus; + } + if (other.FromCritRatio != 0) { + FromCritRatio = other.FromCritRatio; + } + if (other.FromFinalDmgRatio != 0) { + FromFinalDmgRatio = other.FromFinalDmgRatio; + } + if (other.FromFinalDmgPlus != 0) { + FromFinalDmgPlus = other.FromFinalDmgPlus; + } + if (other.ToErAmend != 0) { + ToErAmend = other.ToErAmend; + } + if (other.ToDefAmend != 0) { + ToDefAmend = other.ToDefAmend; + } + if (other.ToRcdSlotDmgRatio != 0) { + ToRcdSlotDmgRatio = other.ToRcdSlotDmgRatio; + } + if (other.ToEERCD != 0) { + ToEERCD = other.ToEERCD; + } + if (other.ToGenDmgRcdRatio != 0) { + ToGenDmgRcdRatio = other.ToGenDmgRcdRatio; + } + if (other.ToDmgPlusRcd != 0) { + ToDmgPlusRcd = other.ToDmgPlusRcd; + } + if (other.Dmg != 0) { + Dmg = other.Dmg; + } + if (other.CritRate != 0) { + CritRate = other.CritRate; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MissionId = input.ReadInt32(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + FromSrcAtk = input.ReadInt32(); + break; + } + case 32: { + FromPerkIntensityRatio = input.ReadInt32(); + break; + } + case 40: { + FromSlotDmgRatio = input.ReadInt32(); + break; + } + case 48: { + FromEE = input.ReadInt32(); + break; + } + case 56: { + FromGenDmgRatio = input.ReadInt32(); + break; + } + case 64: { + FromDmgPlus = input.ReadInt32(); + break; + } + case 72: { + FromCritRatio = input.ReadInt32(); + break; + } + case 80: { + FromFinalDmgRatio = input.ReadInt32(); + break; + } + case 88: { + FromFinalDmgPlus = input.ReadInt32(); + break; + } + case 96: { + ToErAmend = input.ReadInt32(); + break; + } + case 104: { + ToDefAmend = input.ReadInt32(); + break; + } + case 112: { + ToRcdSlotDmgRatio = input.ReadInt32(); + break; + } + case 120: { + ToEERCD = input.ReadInt32(); + break; + } + case 128: { + ToGenDmgRcdRatio = input.ReadInt32(); + break; + } + case 136: { + ToDmgPlusRcd = input.ReadInt32(); + break; + } + case 144: { + Dmg = input.ReadInt32(); + break; + } + case 152: { + CritRate = input.ReadInt32(); + break; + } + case 160: { + Hp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MissionId = input.ReadInt32(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + FromSrcAtk = input.ReadInt32(); + break; + } + case 32: { + FromPerkIntensityRatio = input.ReadInt32(); + break; + } + case 40: { + FromSlotDmgRatio = input.ReadInt32(); + break; + } + case 48: { + FromEE = input.ReadInt32(); + break; + } + case 56: { + FromGenDmgRatio = input.ReadInt32(); + break; + } + case 64: { + FromDmgPlus = input.ReadInt32(); + break; + } + case 72: { + FromCritRatio = input.ReadInt32(); + break; + } + case 80: { + FromFinalDmgRatio = input.ReadInt32(); + break; + } + case 88: { + FromFinalDmgPlus = input.ReadInt32(); + break; + } + case 96: { + ToErAmend = input.ReadInt32(); + break; + } + case 104: { + ToDefAmend = input.ReadInt32(); + break; + } + case 112: { + ToRcdSlotDmgRatio = input.ReadInt32(); + break; + } + case 120: { + ToEERCD = input.ReadInt32(); + break; + } + case 128: { + ToGenDmgRcdRatio = input.ReadInt32(); + break; + } + case 136: { + ToDmgPlusRcd = input.ReadInt32(); + break; + } + case 144: { + Dmg = input.ReadInt32(); + break; + } + case 152: { + CritRate = input.ReadInt32(); + break; + } + case 160: { + Hp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireEnemyPool.cs b/NTR.Common/protos/VampireEnemyPool.cs new file mode 100644 index 0000000..d5f465e --- /dev/null +++ b/NTR.Common/protos/VampireEnemyPool.cs @@ -0,0 +1,429 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireEnemyPool.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireEnemyPool.proto</summary> + public static partial class VampireEnemyPoolReflection { + + #region Descriptor + /// <summary>File descriptor for VampireEnemyPool.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireEnemyPoolReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZWYW1waXJlRW5lbXlQb29sLnByb3RvIo4BChBWYW1waXJlRW5lbXlQb29s", + "Eg8KB3Bvb2xfaWQYASABKAUSEAoId2F2ZV9udW0YAiABKAUSFQoNbW9uc3Rl", + "cl9sZXZlbBgDIAEoBRIVCg1lbmVteV9zZXRfaV9kGAQgASgFEhYKDndhdmVf", + "a2VlcF90aW1lGAUgASgFEhEKCXBvb2xfdHlwZRgGIAEoBUIOqgILTm92YS5D", + "bGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireEnemyPool), global::Nova.Client.VampireEnemyPool.Parser, new[]{ "PoolId", "WaveNum", "MonsterLevel", "EnemySetID", "WaveKeepTime", "PoolType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireEnemyPool : pb::IMessage<VampireEnemyPool> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireEnemyPool> _parser = new pb::MessageParser<VampireEnemyPool>(() => new VampireEnemyPool()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireEnemyPool> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireEnemyPoolReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemyPool() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemyPool(VampireEnemyPool other) : this() { + poolId_ = other.poolId_; + waveNum_ = other.waveNum_; + monsterLevel_ = other.monsterLevel_; + enemySetID_ = other.enemySetID_; + waveKeepTime_ = other.waveKeepTime_; + poolType_ = other.poolType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemyPool Clone() { + return new VampireEnemyPool(this); + } + + /// <summary>Field number for the "pool_id" field.</summary> + public const int PoolIdFieldNumber = 1; + private int poolId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PoolId { + get { return poolId_; } + set { + poolId_ = value; + } + } + + /// <summary>Field number for the "wave_num" field.</summary> + public const int WaveNumFieldNumber = 2; + private int waveNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WaveNum { + get { return waveNum_; } + set { + waveNum_ = value; + } + } + + /// <summary>Field number for the "monster_level" field.</summary> + public const int MonsterLevelFieldNumber = 3; + private int monsterLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterLevel { + get { return monsterLevel_; } + set { + monsterLevel_ = value; + } + } + + /// <summary>Field number for the "enemy_set_i_d" field.</summary> + public const int EnemySetIDFieldNumber = 4; + private int enemySetID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnemySetID { + get { return enemySetID_; } + set { + enemySetID_ = value; + } + } + + /// <summary>Field number for the "wave_keep_time" field.</summary> + public const int WaveKeepTimeFieldNumber = 5; + private int waveKeepTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WaveKeepTime { + get { return waveKeepTime_; } + set { + waveKeepTime_ = value; + } + } + + /// <summary>Field number for the "pool_type" field.</summary> + public const int PoolTypeFieldNumber = 6; + private int poolType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PoolType { + get { return poolType_; } + set { + poolType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireEnemyPool); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireEnemyPool other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PoolId != other.PoolId) return false; + if (WaveNum != other.WaveNum) return false; + if (MonsterLevel != other.MonsterLevel) return false; + if (EnemySetID != other.EnemySetID) return false; + if (WaveKeepTime != other.WaveKeepTime) return false; + if (PoolType != other.PoolType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PoolId != 0) hash ^= PoolId.GetHashCode(); + if (WaveNum != 0) hash ^= WaveNum.GetHashCode(); + if (MonsterLevel != 0) hash ^= MonsterLevel.GetHashCode(); + if (EnemySetID != 0) hash ^= EnemySetID.GetHashCode(); + if (WaveKeepTime != 0) hash ^= WaveKeepTime.GetHashCode(); + if (PoolType != 0) hash ^= PoolType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PoolId != 0) { + output.WriteRawTag(8); + output.WriteInt32(PoolId); + } + if (WaveNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(WaveNum); + } + if (MonsterLevel != 0) { + output.WriteRawTag(24); + output.WriteInt32(MonsterLevel); + } + if (EnemySetID != 0) { + output.WriteRawTag(32); + output.WriteInt32(EnemySetID); + } + if (WaveKeepTime != 0) { + output.WriteRawTag(40); + output.WriteInt32(WaveKeepTime); + } + if (PoolType != 0) { + output.WriteRawTag(48); + output.WriteInt32(PoolType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PoolId != 0) { + output.WriteRawTag(8); + output.WriteInt32(PoolId); + } + if (WaveNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(WaveNum); + } + if (MonsterLevel != 0) { + output.WriteRawTag(24); + output.WriteInt32(MonsterLevel); + } + if (EnemySetID != 0) { + output.WriteRawTag(32); + output.WriteInt32(EnemySetID); + } + if (WaveKeepTime != 0) { + output.WriteRawTag(40); + output.WriteInt32(WaveKeepTime); + } + if (PoolType != 0) { + output.WriteRawTag(48); + output.WriteInt32(PoolType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PoolId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PoolId); + } + if (WaveNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WaveNum); + } + if (MonsterLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterLevel); + } + if (EnemySetID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnemySetID); + } + if (WaveKeepTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WaveKeepTime); + } + if (PoolType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PoolType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireEnemyPool other) { + if (other == null) { + return; + } + if (other.PoolId != 0) { + PoolId = other.PoolId; + } + if (other.WaveNum != 0) { + WaveNum = other.WaveNum; + } + if (other.MonsterLevel != 0) { + MonsterLevel = other.MonsterLevel; + } + if (other.EnemySetID != 0) { + EnemySetID = other.EnemySetID; + } + if (other.WaveKeepTime != 0) { + WaveKeepTime = other.WaveKeepTime; + } + if (other.PoolType != 0) { + PoolType = other.PoolType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PoolId = input.ReadInt32(); + break; + } + case 16: { + WaveNum = input.ReadInt32(); + break; + } + case 24: { + MonsterLevel = input.ReadInt32(); + break; + } + case 32: { + EnemySetID = input.ReadInt32(); + break; + } + case 40: { + WaveKeepTime = input.ReadInt32(); + break; + } + case 48: { + PoolType = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PoolId = input.ReadInt32(); + break; + } + case 16: { + WaveNum = input.ReadInt32(); + break; + } + case 24: { + MonsterLevel = input.ReadInt32(); + break; + } + case 32: { + EnemySetID = input.ReadInt32(); + break; + } + case 40: { + WaveKeepTime = input.ReadInt32(); + break; + } + case 48: { + PoolType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireEnemySet.cs b/NTR.Common/protos/VampireEnemySet.cs new file mode 100644 index 0000000..246f78a --- /dev/null +++ b/NTR.Common/protos/VampireEnemySet.cs @@ -0,0 +1,655 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireEnemySet.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireEnemySet.proto</summary> + public static partial class VampireEnemySetReflection { + + #region Descriptor + /// <summary>File descriptor for VampireEnemySet.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireEnemySetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVWYW1waXJlRW5lbXlTZXQucHJvdG8ipQIKD1ZhbXBpcmVFbmVteVNldBIO", + "CgZzZXRfaWQYASABKAUSEQoJZ3JvdXBfbnVtGAIgASgFEhIKCm1vbnN0ZXJf", + "aWQYAyABKAUSFAoMbGV2ZWxfY2hhbmdlGAQgASgFEhIKCmRlbGF5X3RpbWUY", + "BSABKAUSDwoHbWF4X251bRgGIAEoBRIQCghhZGRfZGF0YRgHIAMoBRIcChRt", + "YXhfbnVtX2ltcHJvdmVfZGF0YRgIIAMoBRIaChJtb25zdGVyX3NwYXduX3R5", + "cGUYCSABKAUSFQoNbW9uc3Rlcl9wb2ludBgKIAEoBRIQCghkcm9wX2V4cBgL", + "IAMoBRISCgpkcm9wX2NoZXN0GAwgAygFEhcKD21vbnN0ZXJfd2FybmluZxgN", + "IAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireEnemySet), global::Nova.Client.VampireEnemySet.Parser, new[]{ "SetId", "GroupNum", "MonsterId", "LevelChange", "DelayTime", "MaxNum", "AddData", "MaxNumImproveData", "MonsterSpawnType", "MonsterPoint", "DropExp", "DropChest", "MonsterWarning" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireEnemySet : pb::IMessage<VampireEnemySet> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireEnemySet> _parser = new pb::MessageParser<VampireEnemySet>(() => new VampireEnemySet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireEnemySet> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireEnemySetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemySet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemySet(VampireEnemySet other) : this() { + setId_ = other.setId_; + groupNum_ = other.groupNum_; + monsterId_ = other.monsterId_; + levelChange_ = other.levelChange_; + delayTime_ = other.delayTime_; + maxNum_ = other.maxNum_; + addData_ = other.addData_.Clone(); + maxNumImproveData_ = other.maxNumImproveData_.Clone(); + monsterSpawnType_ = other.monsterSpawnType_; + monsterPoint_ = other.monsterPoint_; + dropExp_ = other.dropExp_.Clone(); + dropChest_ = other.dropChest_.Clone(); + monsterWarning_ = other.monsterWarning_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemySet Clone() { + return new VampireEnemySet(this); + } + + /// <summary>Field number for the "set_id" field.</summary> + public const int SetIdFieldNumber = 1; + private int setId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SetId { + get { return setId_; } + set { + setId_ = value; + } + } + + /// <summary>Field number for the "group_num" field.</summary> + public const int GroupNumFieldNumber = 2; + private int groupNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupNum { + get { return groupNum_; } + set { + groupNum_ = value; + } + } + + /// <summary>Field number for the "monster_id" field.</summary> + public const int MonsterIdFieldNumber = 3; + private int monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// <summary>Field number for the "level_change" field.</summary> + public const int LevelChangeFieldNumber = 4; + private int levelChange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelChange { + get { return levelChange_; } + set { + levelChange_ = value; + } + } + + /// <summary>Field number for the "delay_time" field.</summary> + public const int DelayTimeFieldNumber = 5; + private int delayTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DelayTime { + get { return delayTime_; } + set { + delayTime_ = value; + } + } + + /// <summary>Field number for the "max_num" field.</summary> + public const int MaxNumFieldNumber = 6; + private int maxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNum { + get { return maxNum_; } + set { + maxNum_ = value; + } + } + + /// <summary>Field number for the "add_data" field.</summary> + public const int AddDataFieldNumber = 7; + private static readonly pb::FieldCodec<int> _repeated_addData_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField<int> addData_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> AddData { + get { return addData_; } + } + + /// <summary>Field number for the "max_num_improve_data" field.</summary> + public const int MaxNumImproveDataFieldNumber = 8; + private static readonly pb::FieldCodec<int> _repeated_maxNumImproveData_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField<int> maxNumImproveData_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> MaxNumImproveData { + get { return maxNumImproveData_; } + } + + /// <summary>Field number for the "monster_spawn_type" field.</summary> + public const int MonsterSpawnTypeFieldNumber = 9; + private int monsterSpawnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterSpawnType { + get { return monsterSpawnType_; } + set { + monsterSpawnType_ = value; + } + } + + /// <summary>Field number for the "monster_point" field.</summary> + public const int MonsterPointFieldNumber = 10; + private int monsterPoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterPoint { + get { return monsterPoint_; } + set { + monsterPoint_ = value; + } + } + + /// <summary>Field number for the "drop_exp" field.</summary> + public const int DropExpFieldNumber = 11; + private static readonly pb::FieldCodec<int> _repeated_dropExp_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField<int> dropExp_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> DropExp { + get { return dropExp_; } + } + + /// <summary>Field number for the "drop_chest" field.</summary> + public const int DropChestFieldNumber = 12; + private static readonly pb::FieldCodec<int> _repeated_dropChest_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField<int> dropChest_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> DropChest { + get { return dropChest_; } + } + + /// <summary>Field number for the "monster_warning" field.</summary> + public const int MonsterWarningFieldNumber = 13; + private int monsterWarning_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MonsterWarning { + get { return monsterWarning_; } + set { + monsterWarning_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireEnemySet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireEnemySet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SetId != other.SetId) return false; + if (GroupNum != other.GroupNum) return false; + if (MonsterId != other.MonsterId) return false; + if (LevelChange != other.LevelChange) return false; + if (DelayTime != other.DelayTime) return false; + if (MaxNum != other.MaxNum) return false; + if(!addData_.Equals(other.addData_)) return false; + if(!maxNumImproveData_.Equals(other.maxNumImproveData_)) return false; + if (MonsterSpawnType != other.MonsterSpawnType) return false; + if (MonsterPoint != other.MonsterPoint) return false; + if(!dropExp_.Equals(other.dropExp_)) return false; + if(!dropChest_.Equals(other.dropChest_)) return false; + if (MonsterWarning != other.MonsterWarning) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SetId != 0) hash ^= SetId.GetHashCode(); + if (GroupNum != 0) hash ^= GroupNum.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (LevelChange != 0) hash ^= LevelChange.GetHashCode(); + if (DelayTime != 0) hash ^= DelayTime.GetHashCode(); + if (MaxNum != 0) hash ^= MaxNum.GetHashCode(); + hash ^= addData_.GetHashCode(); + hash ^= maxNumImproveData_.GetHashCode(); + if (MonsterSpawnType != 0) hash ^= MonsterSpawnType.GetHashCode(); + if (MonsterPoint != 0) hash ^= MonsterPoint.GetHashCode(); + hash ^= dropExp_.GetHashCode(); + hash ^= dropChest_.GetHashCode(); + if (MonsterWarning != 0) hash ^= MonsterWarning.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SetId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SetId); + } + if (GroupNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupNum); + } + if (MonsterId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MonsterId); + } + if (LevelChange != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelChange); + } + if (DelayTime != 0) { + output.WriteRawTag(40); + output.WriteInt32(DelayTime); + } + if (MaxNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(MaxNum); + } + addData_.WriteTo(output, _repeated_addData_codec); + maxNumImproveData_.WriteTo(output, _repeated_maxNumImproveData_codec); + if (MonsterSpawnType != 0) { + output.WriteRawTag(72); + output.WriteInt32(MonsterSpawnType); + } + if (MonsterPoint != 0) { + output.WriteRawTag(80); + output.WriteInt32(MonsterPoint); + } + dropExp_.WriteTo(output, _repeated_dropExp_codec); + dropChest_.WriteTo(output, _repeated_dropChest_codec); + if (MonsterWarning != 0) { + output.WriteRawTag(104); + output.WriteInt32(MonsterWarning); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SetId != 0) { + output.WriteRawTag(8); + output.WriteInt32(SetId); + } + if (GroupNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupNum); + } + if (MonsterId != 0) { + output.WriteRawTag(24); + output.WriteInt32(MonsterId); + } + if (LevelChange != 0) { + output.WriteRawTag(32); + output.WriteInt32(LevelChange); + } + if (DelayTime != 0) { + output.WriteRawTag(40); + output.WriteInt32(DelayTime); + } + if (MaxNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(MaxNum); + } + addData_.WriteTo(ref output, _repeated_addData_codec); + maxNumImproveData_.WriteTo(ref output, _repeated_maxNumImproveData_codec); + if (MonsterSpawnType != 0) { + output.WriteRawTag(72); + output.WriteInt32(MonsterSpawnType); + } + if (MonsterPoint != 0) { + output.WriteRawTag(80); + output.WriteInt32(MonsterPoint); + } + dropExp_.WriteTo(ref output, _repeated_dropExp_codec); + dropChest_.WriteTo(ref output, _repeated_dropChest_codec); + if (MonsterWarning != 0) { + output.WriteRawTag(104); + output.WriteInt32(MonsterWarning); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SetId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SetId); + } + if (GroupNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupNum); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterId); + } + if (LevelChange != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelChange); + } + if (DelayTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DelayTime); + } + if (MaxNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNum); + } + size += addData_.CalculateSize(_repeated_addData_codec); + size += maxNumImproveData_.CalculateSize(_repeated_maxNumImproveData_codec); + if (MonsterSpawnType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterSpawnType); + } + if (MonsterPoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterPoint); + } + size += dropExp_.CalculateSize(_repeated_dropExp_codec); + size += dropChest_.CalculateSize(_repeated_dropChest_codec); + if (MonsterWarning != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonsterWarning); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireEnemySet other) { + if (other == null) { + return; + } + if (other.SetId != 0) { + SetId = other.SetId; + } + if (other.GroupNum != 0) { + GroupNum = other.GroupNum; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.LevelChange != 0) { + LevelChange = other.LevelChange; + } + if (other.DelayTime != 0) { + DelayTime = other.DelayTime; + } + if (other.MaxNum != 0) { + MaxNum = other.MaxNum; + } + addData_.Add(other.addData_); + maxNumImproveData_.Add(other.maxNumImproveData_); + if (other.MonsterSpawnType != 0) { + MonsterSpawnType = other.MonsterSpawnType; + } + if (other.MonsterPoint != 0) { + MonsterPoint = other.MonsterPoint; + } + dropExp_.Add(other.dropExp_); + dropChest_.Add(other.dropChest_); + if (other.MonsterWarning != 0) { + MonsterWarning = other.MonsterWarning; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SetId = input.ReadInt32(); + break; + } + case 16: { + GroupNum = input.ReadInt32(); + break; + } + case 24: { + MonsterId = input.ReadInt32(); + break; + } + case 32: { + LevelChange = input.ReadInt32(); + break; + } + case 40: { + DelayTime = input.ReadInt32(); + break; + } + case 48: { + MaxNum = input.ReadInt32(); + break; + } + case 58: + case 56: { + addData_.AddEntriesFrom(input, _repeated_addData_codec); + break; + } + case 66: + case 64: { + maxNumImproveData_.AddEntriesFrom(input, _repeated_maxNumImproveData_codec); + break; + } + case 72: { + MonsterSpawnType = input.ReadInt32(); + break; + } + case 80: { + MonsterPoint = input.ReadInt32(); + break; + } + case 90: + case 88: { + dropExp_.AddEntriesFrom(input, _repeated_dropExp_codec); + break; + } + case 98: + case 96: { + dropChest_.AddEntriesFrom(input, _repeated_dropChest_codec); + break; + } + case 104: { + MonsterWarning = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SetId = input.ReadInt32(); + break; + } + case 16: { + GroupNum = input.ReadInt32(); + break; + } + case 24: { + MonsterId = input.ReadInt32(); + break; + } + case 32: { + LevelChange = input.ReadInt32(); + break; + } + case 40: { + DelayTime = input.ReadInt32(); + break; + } + case 48: { + MaxNum = input.ReadInt32(); + break; + } + case 58: + case 56: { + addData_.AddEntriesFrom(ref input, _repeated_addData_codec); + break; + } + case 66: + case 64: { + maxNumImproveData_.AddEntriesFrom(ref input, _repeated_maxNumImproveData_codec); + break; + } + case 72: { + MonsterSpawnType = input.ReadInt32(); + break; + } + case 80: { + MonsterPoint = input.ReadInt32(); + break; + } + case 90: + case 88: { + dropExp_.AddEntriesFrom(ref input, _repeated_dropExp_codec); + break; + } + case 98: + case 96: { + dropChest_.AddEntriesFrom(ref input, _repeated_dropChest_codec); + break; + } + case 104: { + MonsterWarning = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireEnemySpAttr.cs b/NTR.Common/protos/VampireEnemySpAttr.cs new file mode 100644 index 0000000..9e0fa07 --- /dev/null +++ b/NTR.Common/protos/VampireEnemySpAttr.cs @@ -0,0 +1,298 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireEnemySpAttr.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireEnemySpAttr.proto</summary> + public static partial class VampireEnemySpAttrReflection { + + #region Descriptor + /// <summary>File descriptor for VampireEnemySpAttr.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireEnemySpAttrReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhWYW1waXJlRW5lbXlTcEF0dHIucHJvdG8iTAoSVmFtcGlyZUVuZW15U3BB", + "dHRyEgoKAmlkGAEgASgFEhQKDHJlZl9kaXN0YW5jZRgCIAMoBRIUCgxyZWZf", + "aW50ZXJ2YWwYAyADKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireEnemySpAttr), global::Nova.Client.VampireEnemySpAttr.Parser, new[]{ "Id", "RefDistance", "RefInterval" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireEnemySpAttr : pb::IMessage<VampireEnemySpAttr> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireEnemySpAttr> _parser = new pb::MessageParser<VampireEnemySpAttr>(() => new VampireEnemySpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireEnemySpAttr> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireEnemySpAttrReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemySpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemySpAttr(VampireEnemySpAttr other) : this() { + id_ = other.id_; + refDistance_ = other.refDistance_.Clone(); + refInterval_ = other.refInterval_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireEnemySpAttr Clone() { + return new VampireEnemySpAttr(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "ref_distance" field.</summary> + public const int RefDistanceFieldNumber = 2; + private static readonly pb::FieldCodec<int> _repeated_refDistance_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField<int> refDistance_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> RefDistance { + get { return refDistance_; } + } + + /// <summary>Field number for the "ref_interval" field.</summary> + public const int RefIntervalFieldNumber = 3; + private static readonly pb::FieldCodec<int> _repeated_refInterval_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField<int> refInterval_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> RefInterval { + get { return refInterval_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireEnemySpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireEnemySpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!refDistance_.Equals(other.refDistance_)) return false; + if(!refInterval_.Equals(other.refInterval_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= refDistance_.GetHashCode(); + hash ^= refInterval_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + refDistance_.WriteTo(output, _repeated_refDistance_codec); + refInterval_.WriteTo(output, _repeated_refInterval_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + refDistance_.WriteTo(ref output, _repeated_refDistance_codec); + refInterval_.WriteTo(ref output, _repeated_refInterval_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += refDistance_.CalculateSize(_repeated_refDistance_codec); + size += refInterval_.CalculateSize(_repeated_refInterval_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireEnemySpAttr other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + refDistance_.Add(other.refDistance_); + refInterval_.Add(other.refInterval_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + refDistance_.AddEntriesFrom(input, _repeated_refDistance_codec); + break; + } + case 26: + case 24: { + refInterval_.AddEntriesFrom(input, _repeated_refInterval_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + refDistance_.AddEntriesFrom(ref input, _repeated_refDistance_codec); + break; + } + case 26: + case 24: { + refInterval_.AddEntriesFrom(ref input, _repeated_refInterval_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireFloor.cs b/NTR.Common/protos/VampireFloor.cs new file mode 100644 index 0000000..8d9710f --- /dev/null +++ b/NTR.Common/protos/VampireFloor.cs @@ -0,0 +1,589 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireFloor.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireFloor.proto</summary> + public static partial class VampireFloorReflection { + + #region Descriptor + /// <summary>File descriptor for VampireFloor.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJWYW1waXJlRmxvb3IucHJvdG8ihAIKDFZhbXBpcmVGbG9vchIKCgJpZBgB", + "IAEoBRIOCgZtYXBfaWQYAiABKAUSEgoKd2F2ZV9jb3VudBgDIAMoBRIaChJm", + "aXJzdF9oYWxmX3Bvb2xfaWQYBCABKAUSFAoMZl9oX2FmZml4X2lkGAUgAygF", + "EhMKC2ZfaF9ib3NzX2lkGAYgASgFEhsKE3NlY29uZF9oYWxmX3Bvb2xfaWQY", + "ByABKAUSFAoMc19oX2FmZml4X2lkGAggAygFEhMKC3NfaF9ib3NzX2lkGAkg", + "ASgFEhwKFHNwZWNpYWxfZW5lbXlfc2V0X2lkGAogASgJEhcKD3RyZWFzdXJl", + "X3NldF9pZBgLIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireFloor), global::Nova.Client.VampireFloor.Parser, new[]{ "Id", "MapId", "WaveCount", "FirstHalfPoolId", "FHAffixId", "FHBossId", "SecondHalfPoolId", "SHAffixId", "SHBossId", "SpecialEnemySetId", "TreasureSetId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireFloor : pb::IMessage<VampireFloor> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireFloor> _parser = new pb::MessageParser<VampireFloor>(() => new VampireFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireFloor> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireFloor(VampireFloor other) : this() { + id_ = other.id_; + mapId_ = other.mapId_; + waveCount_ = other.waveCount_.Clone(); + firstHalfPoolId_ = other.firstHalfPoolId_; + fHAffixId_ = other.fHAffixId_.Clone(); + fHBossId_ = other.fHBossId_; + secondHalfPoolId_ = other.secondHalfPoolId_; + sHAffixId_ = other.sHAffixId_.Clone(); + sHBossId_ = other.sHBossId_; + specialEnemySetId_ = other.specialEnemySetId_; + treasureSetId_ = other.treasureSetId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireFloor Clone() { + return new VampireFloor(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "map_id" field.</summary> + public const int MapIdFieldNumber = 2; + private int mapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MapId { + get { return mapId_; } + set { + mapId_ = value; + } + } + + /// <summary>Field number for the "wave_count" field.</summary> + public const int WaveCountFieldNumber = 3; + private static readonly pb::FieldCodec<int> _repeated_waveCount_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField<int> waveCount_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> WaveCount { + get { return waveCount_; } + } + + /// <summary>Field number for the "first_half_pool_id" field.</summary> + public const int FirstHalfPoolIdFieldNumber = 4; + private int firstHalfPoolId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FirstHalfPoolId { + get { return firstHalfPoolId_; } + set { + firstHalfPoolId_ = value; + } + } + + /// <summary>Field number for the "f_h_affix_id" field.</summary> + public const int FHAffixIdFieldNumber = 5; + private static readonly pb::FieldCodec<int> _repeated_fHAffixId_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField<int> fHAffixId_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> FHAffixId { + get { return fHAffixId_; } + } + + /// <summary>Field number for the "f_h_boss_id" field.</summary> + public const int FHBossIdFieldNumber = 6; + private int fHBossId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FHBossId { + get { return fHBossId_; } + set { + fHBossId_ = value; + } + } + + /// <summary>Field number for the "second_half_pool_id" field.</summary> + public const int SecondHalfPoolIdFieldNumber = 7; + private int secondHalfPoolId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SecondHalfPoolId { + get { return secondHalfPoolId_; } + set { + secondHalfPoolId_ = value; + } + } + + /// <summary>Field number for the "s_h_affix_id" field.</summary> + public const int SHAffixIdFieldNumber = 8; + private static readonly pb::FieldCodec<int> _repeated_sHAffixId_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField<int> sHAffixId_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> SHAffixId { + get { return sHAffixId_; } + } + + /// <summary>Field number for the "s_h_boss_id" field.</summary> + public const int SHBossIdFieldNumber = 9; + private int sHBossId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SHBossId { + get { return sHBossId_; } + set { + sHBossId_ = value; + } + } + + /// <summary>Field number for the "special_enemy_set_id" field.</summary> + public const int SpecialEnemySetIdFieldNumber = 10; + private string specialEnemySetId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SpecialEnemySetId { + get { return specialEnemySetId_; } + set { + specialEnemySetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "treasure_set_id" field.</summary> + public const int TreasureSetIdFieldNumber = 11; + private string treasureSetId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TreasureSetId { + get { return treasureSetId_; } + set { + treasureSetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MapId != other.MapId) return false; + if(!waveCount_.Equals(other.waveCount_)) return false; + if (FirstHalfPoolId != other.FirstHalfPoolId) return false; + if(!fHAffixId_.Equals(other.fHAffixId_)) return false; + if (FHBossId != other.FHBossId) return false; + if (SecondHalfPoolId != other.SecondHalfPoolId) return false; + if(!sHAffixId_.Equals(other.sHAffixId_)) return false; + if (SHBossId != other.SHBossId) return false; + if (SpecialEnemySetId != other.SpecialEnemySetId) return false; + if (TreasureSetId != other.TreasureSetId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MapId != 0) hash ^= MapId.GetHashCode(); + hash ^= waveCount_.GetHashCode(); + if (FirstHalfPoolId != 0) hash ^= FirstHalfPoolId.GetHashCode(); + hash ^= fHAffixId_.GetHashCode(); + if (FHBossId != 0) hash ^= FHBossId.GetHashCode(); + if (SecondHalfPoolId != 0) hash ^= SecondHalfPoolId.GetHashCode(); + hash ^= sHAffixId_.GetHashCode(); + if (SHBossId != 0) hash ^= SHBossId.GetHashCode(); + if (SpecialEnemySetId.Length != 0) hash ^= SpecialEnemySetId.GetHashCode(); + if (TreasureSetId.Length != 0) hash ^= TreasureSetId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MapId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MapId); + } + waveCount_.WriteTo(output, _repeated_waveCount_codec); + if (FirstHalfPoolId != 0) { + output.WriteRawTag(32); + output.WriteInt32(FirstHalfPoolId); + } + fHAffixId_.WriteTo(output, _repeated_fHAffixId_codec); + if (FHBossId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FHBossId); + } + if (SecondHalfPoolId != 0) { + output.WriteRawTag(56); + output.WriteInt32(SecondHalfPoolId); + } + sHAffixId_.WriteTo(output, _repeated_sHAffixId_codec); + if (SHBossId != 0) { + output.WriteRawTag(72); + output.WriteInt32(SHBossId); + } + if (SpecialEnemySetId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SpecialEnemySetId); + } + if (TreasureSetId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(TreasureSetId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MapId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MapId); + } + waveCount_.WriteTo(ref output, _repeated_waveCount_codec); + if (FirstHalfPoolId != 0) { + output.WriteRawTag(32); + output.WriteInt32(FirstHalfPoolId); + } + fHAffixId_.WriteTo(ref output, _repeated_fHAffixId_codec); + if (FHBossId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FHBossId); + } + if (SecondHalfPoolId != 0) { + output.WriteRawTag(56); + output.WriteInt32(SecondHalfPoolId); + } + sHAffixId_.WriteTo(ref output, _repeated_sHAffixId_codec); + if (SHBossId != 0) { + output.WriteRawTag(72); + output.WriteInt32(SHBossId); + } + if (SpecialEnemySetId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SpecialEnemySetId); + } + if (TreasureSetId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(TreasureSetId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MapId); + } + size += waveCount_.CalculateSize(_repeated_waveCount_codec); + if (FirstHalfPoolId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirstHalfPoolId); + } + size += fHAffixId_.CalculateSize(_repeated_fHAffixId_codec); + if (FHBossId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FHBossId); + } + if (SecondHalfPoolId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SecondHalfPoolId); + } + size += sHAffixId_.CalculateSize(_repeated_sHAffixId_codec); + if (SHBossId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SHBossId); + } + if (SpecialEnemySetId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SpecialEnemySetId); + } + if (TreasureSetId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TreasureSetId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MapId != 0) { + MapId = other.MapId; + } + waveCount_.Add(other.waveCount_); + if (other.FirstHalfPoolId != 0) { + FirstHalfPoolId = other.FirstHalfPoolId; + } + fHAffixId_.Add(other.fHAffixId_); + if (other.FHBossId != 0) { + FHBossId = other.FHBossId; + } + if (other.SecondHalfPoolId != 0) { + SecondHalfPoolId = other.SecondHalfPoolId; + } + sHAffixId_.Add(other.sHAffixId_); + if (other.SHBossId != 0) { + SHBossId = other.SHBossId; + } + if (other.SpecialEnemySetId.Length != 0) { + SpecialEnemySetId = other.SpecialEnemySetId; + } + if (other.TreasureSetId.Length != 0) { + TreasureSetId = other.TreasureSetId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MapId = input.ReadInt32(); + break; + } + case 26: + case 24: { + waveCount_.AddEntriesFrom(input, _repeated_waveCount_codec); + break; + } + case 32: { + FirstHalfPoolId = input.ReadInt32(); + break; + } + case 42: + case 40: { + fHAffixId_.AddEntriesFrom(input, _repeated_fHAffixId_codec); + break; + } + case 48: { + FHBossId = input.ReadInt32(); + break; + } + case 56: { + SecondHalfPoolId = input.ReadInt32(); + break; + } + case 66: + case 64: { + sHAffixId_.AddEntriesFrom(input, _repeated_sHAffixId_codec); + break; + } + case 72: { + SHBossId = input.ReadInt32(); + break; + } + case 82: { + SpecialEnemySetId = input.ReadString(); + break; + } + case 90: { + TreasureSetId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MapId = input.ReadInt32(); + break; + } + case 26: + case 24: { + waveCount_.AddEntriesFrom(ref input, _repeated_waveCount_codec); + break; + } + case 32: { + FirstHalfPoolId = input.ReadInt32(); + break; + } + case 42: + case 40: { + fHAffixId_.AddEntriesFrom(ref input, _repeated_fHAffixId_codec); + break; + } + case 48: { + FHBossId = input.ReadInt32(); + break; + } + case 56: { + SecondHalfPoolId = input.ReadInt32(); + break; + } + case 66: + case 64: { + sHAffixId_.AddEntriesFrom(ref input, _repeated_sHAffixId_codec); + break; + } + case 72: { + SHBossId = input.ReadInt32(); + break; + } + case 82: { + SpecialEnemySetId = input.ReadString(); + break; + } + case 90: { + TreasureSetId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireMap.cs b/NTR.Common/protos/VampireMap.cs new file mode 100644 index 0000000..c1f3518 --- /dev/null +++ b/NTR.Common/protos/VampireMap.cs @@ -0,0 +1,428 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireMap.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireMap.proto</summary> + public static partial class VampireMapReflection { + + #region Descriptor + /// <summary>File descriptor for VampireMap.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireMapReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBWYW1waXJlTWFwLnByb3RvIoMBCgpWYW1waXJlTWFwEgoKAmlkGAEgASgF", + "EhIKCnNjZW5lX25hbWUYAiABKAkSGgoSY29uZmlnX3ByZWZhYl9uYW1lGAMg", + "ASgJEg0KBXRoZW1lGAQgASgFEg0KBWJfZ19tGAUgASgJEhsKE2xlYXZlX3Ry", + "aWdnZXJfZXZlbnQYBiABKAlCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireMap), global::Nova.Client.VampireMap.Parser, new[]{ "Id", "SceneName", "ConfigPrefabName", "Theme", "BGM", "LeaveTriggerEvent" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireMap : pb::IMessage<VampireMap> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireMap> _parser = new pb::MessageParser<VampireMap>(() => new VampireMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireMap> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireMapReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireMap(VampireMap other) : this() { + id_ = other.id_; + sceneName_ = other.sceneName_; + configPrefabName_ = other.configPrefabName_; + theme_ = other.theme_; + bGM_ = other.bGM_; + leaveTriggerEvent_ = other.leaveTriggerEvent_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireMap Clone() { + return new VampireMap(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "scene_name" field.</summary> + public const int SceneNameFieldNumber = 2; + private string sceneName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneName { + get { return sceneName_; } + set { + sceneName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "config_prefab_name" field.</summary> + public const int ConfigPrefabNameFieldNumber = 3; + private string configPrefabName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConfigPrefabName { + get { return configPrefabName_; } + set { + configPrefabName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "theme" field.</summary> + public const int ThemeFieldNumber = 4; + private int theme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Theme { + get { return theme_; } + set { + theme_ = value; + } + } + + /// <summary>Field number for the "b_g_m" field.</summary> + public const int BGMFieldNumber = 5; + private string bGM_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BGM { + get { return bGM_; } + set { + bGM_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "leave_trigger_event" field.</summary> + public const int LeaveTriggerEventFieldNumber = 6; + private string leaveTriggerEvent_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LeaveTriggerEvent { + get { return leaveTriggerEvent_; } + set { + leaveTriggerEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (SceneName != other.SceneName) return false; + if (ConfigPrefabName != other.ConfigPrefabName) return false; + if (Theme != other.Theme) return false; + if (BGM != other.BGM) return false; + if (LeaveTriggerEvent != other.LeaveTriggerEvent) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (SceneName.Length != 0) hash ^= SceneName.GetHashCode(); + if (ConfigPrefabName.Length != 0) hash ^= ConfigPrefabName.GetHashCode(); + if (Theme != 0) hash ^= Theme.GetHashCode(); + if (BGM.Length != 0) hash ^= BGM.GetHashCode(); + if (LeaveTriggerEvent.Length != 0) hash ^= LeaveTriggerEvent.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (SceneName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SceneName); + } + if (ConfigPrefabName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ConfigPrefabName); + } + if (Theme != 0) { + output.WriteRawTag(32); + output.WriteInt32(Theme); + } + if (BGM.Length != 0) { + output.WriteRawTag(42); + output.WriteString(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + output.WriteRawTag(50); + output.WriteString(LeaveTriggerEvent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (SceneName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneName); + } + if (ConfigPrefabName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigPrefabName); + } + if (Theme != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Theme); + } + if (BGM.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BGM); + } + if (LeaveTriggerEvent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LeaveTriggerEvent); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireMap other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.SceneName.Length != 0) { + SceneName = other.SceneName; + } + if (other.ConfigPrefabName.Length != 0) { + ConfigPrefabName = other.ConfigPrefabName; + } + if (other.Theme != 0) { + Theme = other.Theme; + } + if (other.BGM.Length != 0) { + BGM = other.BGM; + } + if (other.LeaveTriggerEvent.Length != 0) { + LeaveTriggerEvent = other.LeaveTriggerEvent; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + SceneName = input.ReadString(); + break; + } + case 26: { + ConfigPrefabName = input.ReadString(); + break; + } + case 32: { + Theme = input.ReadInt32(); + break; + } + case 42: { + BGM = input.ReadString(); + break; + } + case 50: { + LeaveTriggerEvent = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireRankReward.cs b/NTR.Common/protos/VampireRankReward.cs new file mode 100644 index 0000000..b818c31 --- /dev/null +++ b/NTR.Common/protos/VampireRankReward.cs @@ -0,0 +1,429 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireRankReward.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireRankReward.proto</summary> + public static partial class VampireRankRewardReflection { + + #region Descriptor + /// <summary>File descriptor for VampireRankReward.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireRankRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdWYW1waXJlUmFua1Jld2FyZC5wcm90byKXAQoRVmFtcGlyZVJhbmtSZXdh", + "cmQSCgoCaWQYASABKAUSEgoKcmFua19sb3dlchgCIAEoBRIXCg9hd2FyZF9p", + "dGVtX3RpZDEYAyABKAUSFwoPYXdhcmRfaXRlbV9udW0xGAQgASgFEhcKD2F3", + "YXJkX2l0ZW1fdGlkMhgFIAEoBRIXCg9hd2FyZF9pdGVtX251bTIYBiABKAVC", + "DqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireRankReward), global::Nova.Client.VampireRankReward.Parser, new[]{ "Id", "RankLower", "AwardItemTid1", "AwardItemNum1", "AwardItemTid2", "AwardItemNum2" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireRankReward : pb::IMessage<VampireRankReward> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireRankReward> _parser = new pb::MessageParser<VampireRankReward>(() => new VampireRankReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireRankReward> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireRankRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireRankReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireRankReward(VampireRankReward other) : this() { + id_ = other.id_; + rankLower_ = other.rankLower_; + awardItemTid1_ = other.awardItemTid1_; + awardItemNum1_ = other.awardItemNum1_; + awardItemTid2_ = other.awardItemTid2_; + awardItemNum2_ = other.awardItemNum2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireRankReward Clone() { + return new VampireRankReward(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "rank_lower" field.</summary> + public const int RankLowerFieldNumber = 2; + private int rankLower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RankLower { + get { return rankLower_; } + set { + rankLower_ = value; + } + } + + /// <summary>Field number for the "award_item_tid1" field.</summary> + public const int AwardItemTid1FieldNumber = 3; + private int awardItemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid1 { + get { return awardItemTid1_; } + set { + awardItemTid1_ = value; + } + } + + /// <summary>Field number for the "award_item_num1" field.</summary> + public const int AwardItemNum1FieldNumber = 4; + private int awardItemNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum1 { + get { return awardItemNum1_; } + set { + awardItemNum1_ = value; + } + } + + /// <summary>Field number for the "award_item_tid2" field.</summary> + public const int AwardItemTid2FieldNumber = 5; + private int awardItemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid2 { + get { return awardItemTid2_; } + set { + awardItemTid2_ = value; + } + } + + /// <summary>Field number for the "award_item_num2" field.</summary> + public const int AwardItemNum2FieldNumber = 6; + private int awardItemNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum2 { + get { return awardItemNum2_; } + set { + awardItemNum2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireRankReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireRankReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (RankLower != other.RankLower) return false; + if (AwardItemTid1 != other.AwardItemTid1) return false; + if (AwardItemNum1 != other.AwardItemNum1) return false; + if (AwardItemTid2 != other.AwardItemTid2) return false; + if (AwardItemNum2 != other.AwardItemNum2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (RankLower != 0) hash ^= RankLower.GetHashCode(); + if (AwardItemTid1 != 0) hash ^= AwardItemTid1.GetHashCode(); + if (AwardItemNum1 != 0) hash ^= AwardItemNum1.GetHashCode(); + if (AwardItemTid2 != 0) hash ^= AwardItemTid2.GetHashCode(); + if (AwardItemNum2 != 0) hash ^= AwardItemNum2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RankLower != 0) { + output.WriteRawTag(16); + output.WriteInt32(RankLower); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(AwardItemNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (RankLower != 0) { + output.WriteRawTag(16); + output.WriteInt32(RankLower); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(24); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(32); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(40); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(48); + output.WriteInt32(AwardItemNum2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (RankLower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RankLower); + } + if (AwardItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireRankReward other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.RankLower != 0) { + RankLower = other.RankLower; + } + if (other.AwardItemTid1 != 0) { + AwardItemTid1 = other.AwardItemTid1; + } + if (other.AwardItemNum1 != 0) { + AwardItemNum1 = other.AwardItemNum1; + } + if (other.AwardItemTid2 != 0) { + AwardItemTid2 = other.AwardItemTid2; + } + if (other.AwardItemNum2 != 0) { + AwardItemNum2 = other.AwardItemNum2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RankLower = input.ReadInt32(); + break; + } + case 24: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 32: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 40: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 48: { + AwardItemNum2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + RankLower = input.ReadInt32(); + break; + } + case 24: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 32: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 40: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 48: { + AwardItemNum2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireRankSeason.cs b/NTR.Common/protos/VampireRankSeason.cs new file mode 100644 index 0000000..816c990 --- /dev/null +++ b/NTR.Common/protos/VampireRankSeason.cs @@ -0,0 +1,391 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireRankSeason.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireRankSeason.proto</summary> + public static partial class VampireRankSeasonReflection { + + #region Descriptor + /// <summary>File descriptor for VampireRankSeason.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireRankSeasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdWYW1waXJlUmFua1NlYXNvbi5wcm90byJtChFWYW1waXJlUmFua1NlYXNv", + "bhIKCgJpZBgBIAEoBRISCgptaXNzaW9uX2lkGAIgASgFEhEKCW9wZW5fdGlt", + "ZRgDIAEoCRIQCghlbmRfdGltZRgEIAEoCRITCgtxdWVzdF9ncm91cBgFIAEo", + "BUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireRankSeason), global::Nova.Client.VampireRankSeason.Parser, new[]{ "Id", "MissionId", "OpenTime", "EndTime", "QuestGroup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireRankSeason : pb::IMessage<VampireRankSeason> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireRankSeason> _parser = new pb::MessageParser<VampireRankSeason>(() => new VampireRankSeason()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireRankSeason> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireRankSeasonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireRankSeason() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireRankSeason(VampireRankSeason other) : this() { + id_ = other.id_; + missionId_ = other.missionId_; + openTime_ = other.openTime_; + endTime_ = other.endTime_; + questGroup_ = other.questGroup_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireRankSeason Clone() { + return new VampireRankSeason(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "mission_id" field.</summary> + public const int MissionIdFieldNumber = 2; + private int missionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MissionId { + get { return missionId_; } + set { + missionId_ = value; + } + } + + /// <summary>Field number for the "open_time" field.</summary> + public const int OpenTimeFieldNumber = 3; + private string openTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OpenTime { + get { return openTime_; } + set { + openTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "end_time" field.</summary> + public const int EndTimeFieldNumber = 4; + private string endTime_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndTime { + get { return endTime_; } + set { + endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "quest_group" field.</summary> + public const int QuestGroupFieldNumber = 5; + private int questGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuestGroup { + get { return questGroup_; } + set { + questGroup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireRankSeason); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireRankSeason other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (MissionId != other.MissionId) return false; + if (OpenTime != other.OpenTime) return false; + if (EndTime != other.EndTime) return false; + if (QuestGroup != other.QuestGroup) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (MissionId != 0) hash ^= MissionId.GetHashCode(); + if (OpenTime.Length != 0) hash ^= OpenTime.GetHashCode(); + if (EndTime.Length != 0) hash ^= EndTime.GetHashCode(); + if (QuestGroup != 0) hash ^= QuestGroup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MissionId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MissionId); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OpenTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EndTime); + } + if (QuestGroup != 0) { + output.WriteRawTag(40); + output.WriteInt32(QuestGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (MissionId != 0) { + output.WriteRawTag(16); + output.WriteInt32(MissionId); + } + if (OpenTime.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OpenTime); + } + if (EndTime.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EndTime); + } + if (QuestGroup != 0) { + output.WriteRawTag(40); + output.WriteInt32(QuestGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (MissionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MissionId); + } + if (OpenTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenTime); + } + if (EndTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime); + } + if (QuestGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuestGroup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireRankSeason other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.MissionId != 0) { + MissionId = other.MissionId; + } + if (other.OpenTime.Length != 0) { + OpenTime = other.OpenTime; + } + if (other.EndTime.Length != 0) { + EndTime = other.EndTime; + } + if (other.QuestGroup != 0) { + QuestGroup = other.QuestGroup; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MissionId = input.ReadInt32(); + break; + } + case 26: { + OpenTime = input.ReadString(); + break; + } + case 34: { + EndTime = input.ReadString(); + break; + } + case 40: { + QuestGroup = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + MissionId = input.ReadInt32(); + break; + } + case 26: { + OpenTime = input.ReadString(); + break; + } + case 34: { + EndTime = input.ReadString(); + break; + } + case 40: { + QuestGroup = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireSurvivor.cs b/NTR.Common/protos/VampireSurvivor.cs new file mode 100644 index 0000000..9610ba4 --- /dev/null +++ b/NTR.Common/protos/VampireSurvivor.cs @@ -0,0 +1,1396 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireSurvivor.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireSurvivor.proto</summary> + public static partial class VampireSurvivorReflection { + + #region Descriptor + /// <summary>File descriptor for VampireSurvivor.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireSurvivorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVWYW1waXJlU3Vydml2b3IucHJvdG8i9gUKD1ZhbXBpcmVTdXJ2aXZvchIK", + "CgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEgwKBGRlc2MYAyABKAkSDQoFZV9l", + "X3QYBCADKAUSEQoJbm90X2VfZV90GAUgAygFEhcKD3N1Z2dlc3RlZF9wb3dl", + "chgGIAEoBRIcChRyZWNvbW1lbmRfYnVpbGRfcmFuaxgHIAEoBRIMCgR0eXBl", + "GAggASgFEhQKDHByZV9sZXZlbF9pZBgJIAEoBRIYChBuZWVkX3dvcmxkX2Ns", + "YXNzGAogASgFEhwKFGZpcnN0X3F1ZXN0X2dyb3VwX2lkGAsgASgFEhYKDmxl", + "dmVsX2dyb3VwX2lkGAwgASgFEhAKCGZsb29yX2lkGA0gASgFEhUKDW5vcm1h", + "bF9zY29yZTEYDiABKAUSFAoMZWxpdGVfc2NvcmUxGA8gASgFEhMKC2Jvc3Nf", + "c2NvcmUxGBAgASgFEhMKC3RpbWVfc2NvcmUxGBEgASgFEhMKC3RpbWVfbGlt", + "aXQxGBIgASgFEhUKDW5vcm1hbF9zY29yZTIYEyABKAUSFAoMZWxpdGVfc2Nv", + "cmUyGBQgASgFEhMKC2Jvc3Nfc2NvcmUyGBUgASgFEhMKC3RpbWVfc2NvcmUy", + "GBYgASgFEhMKC3RpbWVfbGltaXQyGBcgASgFEhQKDGVfZV90X3Njb3JlMRgY", + "IAMoBRIUCgxlX2VfdF9zY29yZTIYGSADKAUSJAocZl9oX3ByZXZpZXdfbW9u", + "c3Rlcl9ncm91cF9pZBgaIAEoBRIkChxzX2hfcHJldmlld19tb25zdGVyX2dy", + "b3VwX2lkGBsgASgFEhUKDWNvdmVyX2VwaXNvZGUYHCABKAkSDwoHZXBpc29k", + "ZRgdIAEoCRIQCghlcGlzb2RlMhgeIAEoCRIYChBmYXRlX2NhcmRfYnVuZGxl", + "GB8gAygFEhgKEHNwZWNpYV9mYXRlX2NhcmQYICABKAkSHgoWc3BlY2lhX2Zh", + "dGVfY2FyZF9wYXJhbRghIAEoCUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireSurvivor), global::Nova.Client.VampireSurvivor.Parser, new[]{ "Id", "Name", "Desc", "EET", "NotEET", "SuggestedPower", "RecommendBuildRank", "Type", "PreLevelId", "NeedWorldClass", "FirstQuestGroupId", "LevelGroupId", "FloorId", "NormalScore1", "EliteScore1", "BossScore1", "TimeScore1", "TimeLimit1", "NormalScore2", "EliteScore2", "BossScore2", "TimeScore2", "TimeLimit2", "EETScore1", "EETScore2", "FHPreviewMonsterGroupId", "SHPreviewMonsterGroupId", "CoverEpisode", "Episode", "Episode2", "FateCardBundle", "SpeciaFateCard", "SpeciaFateCardParam" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireSurvivor : pb::IMessage<VampireSurvivor> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireSurvivor> _parser = new pb::MessageParser<VampireSurvivor>(() => new VampireSurvivor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireSurvivor> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireSurvivorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivor(VampireSurvivor other) : this() { + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + eET_ = other.eET_.Clone(); + notEET_ = other.notEET_.Clone(); + suggestedPower_ = other.suggestedPower_; + recommendBuildRank_ = other.recommendBuildRank_; + type_ = other.type_; + preLevelId_ = other.preLevelId_; + needWorldClass_ = other.needWorldClass_; + firstQuestGroupId_ = other.firstQuestGroupId_; + levelGroupId_ = other.levelGroupId_; + floorId_ = other.floorId_; + normalScore1_ = other.normalScore1_; + eliteScore1_ = other.eliteScore1_; + bossScore1_ = other.bossScore1_; + timeScore1_ = other.timeScore1_; + timeLimit1_ = other.timeLimit1_; + normalScore2_ = other.normalScore2_; + eliteScore2_ = other.eliteScore2_; + bossScore2_ = other.bossScore2_; + timeScore2_ = other.timeScore2_; + timeLimit2_ = other.timeLimit2_; + eETScore1_ = other.eETScore1_.Clone(); + eETScore2_ = other.eETScore2_.Clone(); + fHPreviewMonsterGroupId_ = other.fHPreviewMonsterGroupId_; + sHPreviewMonsterGroupId_ = other.sHPreviewMonsterGroupId_; + coverEpisode_ = other.coverEpisode_; + episode_ = other.episode_; + episode2_ = other.episode2_; + fateCardBundle_ = other.fateCardBundle_.Clone(); + speciaFateCard_ = other.speciaFateCard_; + speciaFateCardParam_ = other.speciaFateCardParam_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivor Clone() { + return new VampireSurvivor(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "e_e_t" field.</summary> + public const int EETFieldNumber = 4; + private static readonly pb::FieldCodec<int> _repeated_eET_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField<int> eET_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> EET { + get { return eET_; } + } + + /// <summary>Field number for the "not_e_e_t" field.</summary> + public const int NotEETFieldNumber = 5; + private static readonly pb::FieldCodec<int> _repeated_notEET_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField<int> notEET_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> NotEET { + get { return notEET_; } + } + + /// <summary>Field number for the "suggested_power" field.</summary> + public const int SuggestedPowerFieldNumber = 6; + private int suggestedPower_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SuggestedPower { + get { return suggestedPower_; } + set { + suggestedPower_ = value; + } + } + + /// <summary>Field number for the "recommend_build_rank" field.</summary> + public const int RecommendBuildRankFieldNumber = 7; + private int recommendBuildRank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RecommendBuildRank { + get { return recommendBuildRank_; } + set { + recommendBuildRank_ = value; + } + } + + /// <summary>Field number for the "type" field.</summary> + public const int TypeFieldNumber = 8; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// <summary>Field number for the "pre_level_id" field.</summary> + public const int PreLevelIdFieldNumber = 9; + private int preLevelId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PreLevelId { + get { return preLevelId_; } + set { + preLevelId_ = value; + } + } + + /// <summary>Field number for the "need_world_class" field.</summary> + public const int NeedWorldClassFieldNumber = 10; + private int needWorldClass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NeedWorldClass { + get { return needWorldClass_; } + set { + needWorldClass_ = value; + } + } + + /// <summary>Field number for the "first_quest_group_id" field.</summary> + public const int FirstQuestGroupIdFieldNumber = 11; + private int firstQuestGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FirstQuestGroupId { + get { return firstQuestGroupId_; } + set { + firstQuestGroupId_ = value; + } + } + + /// <summary>Field number for the "level_group_id" field.</summary> + public const int LevelGroupIdFieldNumber = 12; + private int levelGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelGroupId { + get { return levelGroupId_; } + set { + levelGroupId_ = value; + } + } + + /// <summary>Field number for the "floor_id" field.</summary> + public const int FloorIdFieldNumber = 13; + private int floorId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FloorId { + get { return floorId_; } + set { + floorId_ = value; + } + } + + /// <summary>Field number for the "normal_score1" field.</summary> + public const int NormalScore1FieldNumber = 14; + private int normalScore1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalScore1 { + get { return normalScore1_; } + set { + normalScore1_ = value; + } + } + + /// <summary>Field number for the "elite_score1" field.</summary> + public const int EliteScore1FieldNumber = 15; + private int eliteScore1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EliteScore1 { + get { return eliteScore1_; } + set { + eliteScore1_ = value; + } + } + + /// <summary>Field number for the "boss_score1" field.</summary> + public const int BossScore1FieldNumber = 16; + private int bossScore1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BossScore1 { + get { return bossScore1_; } + set { + bossScore1_ = value; + } + } + + /// <summary>Field number for the "time_score1" field.</summary> + public const int TimeScore1FieldNumber = 17; + private int timeScore1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeScore1 { + get { return timeScore1_; } + set { + timeScore1_ = value; + } + } + + /// <summary>Field number for the "time_limit1" field.</summary> + public const int TimeLimit1FieldNumber = 18; + private int timeLimit1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeLimit1 { + get { return timeLimit1_; } + set { + timeLimit1_ = value; + } + } + + /// <summary>Field number for the "normal_score2" field.</summary> + public const int NormalScore2FieldNumber = 19; + private int normalScore2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NormalScore2 { + get { return normalScore2_; } + set { + normalScore2_ = value; + } + } + + /// <summary>Field number for the "elite_score2" field.</summary> + public const int EliteScore2FieldNumber = 20; + private int eliteScore2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EliteScore2 { + get { return eliteScore2_; } + set { + eliteScore2_ = value; + } + } + + /// <summary>Field number for the "boss_score2" field.</summary> + public const int BossScore2FieldNumber = 21; + private int bossScore2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BossScore2 { + get { return bossScore2_; } + set { + bossScore2_ = value; + } + } + + /// <summary>Field number for the "time_score2" field.</summary> + public const int TimeScore2FieldNumber = 22; + private int timeScore2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeScore2 { + get { return timeScore2_; } + set { + timeScore2_ = value; + } + } + + /// <summary>Field number for the "time_limit2" field.</summary> + public const int TimeLimit2FieldNumber = 23; + private int timeLimit2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeLimit2 { + get { return timeLimit2_; } + set { + timeLimit2_ = value; + } + } + + /// <summary>Field number for the "e_e_t_score1" field.</summary> + public const int EETScore1FieldNumber = 24; + private static readonly pb::FieldCodec<int> _repeated_eETScore1_codec + = pb::FieldCodec.ForInt32(194); + private readonly pbc::RepeatedField<int> eETScore1_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> EETScore1 { + get { return eETScore1_; } + } + + /// <summary>Field number for the "e_e_t_score2" field.</summary> + public const int EETScore2FieldNumber = 25; + private static readonly pb::FieldCodec<int> _repeated_eETScore2_codec + = pb::FieldCodec.ForInt32(202); + private readonly pbc::RepeatedField<int> eETScore2_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> EETScore2 { + get { return eETScore2_; } + } + + /// <summary>Field number for the "f_h_preview_monster_group_id" field.</summary> + public const int FHPreviewMonsterGroupIdFieldNumber = 26; + private int fHPreviewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FHPreviewMonsterGroupId { + get { return fHPreviewMonsterGroupId_; } + set { + fHPreviewMonsterGroupId_ = value; + } + } + + /// <summary>Field number for the "s_h_preview_monster_group_id" field.</summary> + public const int SHPreviewMonsterGroupIdFieldNumber = 27; + private int sHPreviewMonsterGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SHPreviewMonsterGroupId { + get { return sHPreviewMonsterGroupId_; } + set { + sHPreviewMonsterGroupId_ = value; + } + } + + /// <summary>Field number for the "cover_episode" field.</summary> + public const int CoverEpisodeFieldNumber = 28; + private string coverEpisode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CoverEpisode { + get { return coverEpisode_; } + set { + coverEpisode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "episode" field.</summary> + public const int EpisodeFieldNumber = 29; + private string episode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode { + get { return episode_; } + set { + episode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "episode2" field.</summary> + public const int Episode2FieldNumber = 30; + private string episode2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Episode2 { + get { return episode2_; } + set { + episode2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "fate_card_bundle" field.</summary> + public const int FateCardBundleFieldNumber = 31; + private static readonly pb::FieldCodec<int> _repeated_fateCardBundle_codec + = pb::FieldCodec.ForInt32(250); + private readonly pbc::RepeatedField<int> fateCardBundle_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> FateCardBundle { + get { return fateCardBundle_; } + } + + /// <summary>Field number for the "specia_fate_card" field.</summary> + public const int SpeciaFateCardFieldNumber = 32; + private string speciaFateCard_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SpeciaFateCard { + get { return speciaFateCard_; } + set { + speciaFateCard_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "specia_fate_card_param" field.</summary> + public const int SpeciaFateCardParamFieldNumber = 33; + private string speciaFateCardParam_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SpeciaFateCardParam { + get { return speciaFateCardParam_; } + set { + speciaFateCardParam_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireSurvivor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireSurvivor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!eET_.Equals(other.eET_)) return false; + if(!notEET_.Equals(other.notEET_)) return false; + if (SuggestedPower != other.SuggestedPower) return false; + if (RecommendBuildRank != other.RecommendBuildRank) return false; + if (Type != other.Type) return false; + if (PreLevelId != other.PreLevelId) return false; + if (NeedWorldClass != other.NeedWorldClass) return false; + if (FirstQuestGroupId != other.FirstQuestGroupId) return false; + if (LevelGroupId != other.LevelGroupId) return false; + if (FloorId != other.FloorId) return false; + if (NormalScore1 != other.NormalScore1) return false; + if (EliteScore1 != other.EliteScore1) return false; + if (BossScore1 != other.BossScore1) return false; + if (TimeScore1 != other.TimeScore1) return false; + if (TimeLimit1 != other.TimeLimit1) return false; + if (NormalScore2 != other.NormalScore2) return false; + if (EliteScore2 != other.EliteScore2) return false; + if (BossScore2 != other.BossScore2) return false; + if (TimeScore2 != other.TimeScore2) return false; + if (TimeLimit2 != other.TimeLimit2) return false; + if(!eETScore1_.Equals(other.eETScore1_)) return false; + if(!eETScore2_.Equals(other.eETScore2_)) return false; + if (FHPreviewMonsterGroupId != other.FHPreviewMonsterGroupId) return false; + if (SHPreviewMonsterGroupId != other.SHPreviewMonsterGroupId) return false; + if (CoverEpisode != other.CoverEpisode) return false; + if (Episode != other.Episode) return false; + if (Episode2 != other.Episode2) return false; + if(!fateCardBundle_.Equals(other.fateCardBundle_)) return false; + if (SpeciaFateCard != other.SpeciaFateCard) return false; + if (SpeciaFateCardParam != other.SpeciaFateCardParam) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + hash ^= eET_.GetHashCode(); + hash ^= notEET_.GetHashCode(); + if (SuggestedPower != 0) hash ^= SuggestedPower.GetHashCode(); + if (RecommendBuildRank != 0) hash ^= RecommendBuildRank.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode(); + if (NeedWorldClass != 0) hash ^= NeedWorldClass.GetHashCode(); + if (FirstQuestGroupId != 0) hash ^= FirstQuestGroupId.GetHashCode(); + if (LevelGroupId != 0) hash ^= LevelGroupId.GetHashCode(); + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (NormalScore1 != 0) hash ^= NormalScore1.GetHashCode(); + if (EliteScore1 != 0) hash ^= EliteScore1.GetHashCode(); + if (BossScore1 != 0) hash ^= BossScore1.GetHashCode(); + if (TimeScore1 != 0) hash ^= TimeScore1.GetHashCode(); + if (TimeLimit1 != 0) hash ^= TimeLimit1.GetHashCode(); + if (NormalScore2 != 0) hash ^= NormalScore2.GetHashCode(); + if (EliteScore2 != 0) hash ^= EliteScore2.GetHashCode(); + if (BossScore2 != 0) hash ^= BossScore2.GetHashCode(); + if (TimeScore2 != 0) hash ^= TimeScore2.GetHashCode(); + if (TimeLimit2 != 0) hash ^= TimeLimit2.GetHashCode(); + hash ^= eETScore1_.GetHashCode(); + hash ^= eETScore2_.GetHashCode(); + if (FHPreviewMonsterGroupId != 0) hash ^= FHPreviewMonsterGroupId.GetHashCode(); + if (SHPreviewMonsterGroupId != 0) hash ^= SHPreviewMonsterGroupId.GetHashCode(); + if (CoverEpisode.Length != 0) hash ^= CoverEpisode.GetHashCode(); + if (Episode.Length != 0) hash ^= Episode.GetHashCode(); + if (Episode2.Length != 0) hash ^= Episode2.GetHashCode(); + hash ^= fateCardBundle_.GetHashCode(); + if (SpeciaFateCard.Length != 0) hash ^= SpeciaFateCard.GetHashCode(); + if (SpeciaFateCardParam.Length != 0) hash ^= SpeciaFateCardParam.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + eET_.WriteTo(output, _repeated_eET_codec); + notEET_.WriteTo(output, _repeated_notEET_codec); + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(56); + output.WriteInt32(RecommendBuildRank); + } + if (Type != 0) { + output.WriteRawTag(64); + output.WriteInt32(Type); + } + if (PreLevelId != 0) { + output.WriteRawTag(72); + output.WriteInt32(PreLevelId); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(80); + output.WriteInt32(NeedWorldClass); + } + if (FirstQuestGroupId != 0) { + output.WriteRawTag(88); + output.WriteInt32(FirstQuestGroupId); + } + if (LevelGroupId != 0) { + output.WriteRawTag(96); + output.WriteInt32(LevelGroupId); + } + if (FloorId != 0) { + output.WriteRawTag(104); + output.WriteInt32(FloorId); + } + if (NormalScore1 != 0) { + output.WriteRawTag(112); + output.WriteInt32(NormalScore1); + } + if (EliteScore1 != 0) { + output.WriteRawTag(120); + output.WriteInt32(EliteScore1); + } + if (BossScore1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(BossScore1); + } + if (TimeScore1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(TimeScore1); + } + if (TimeLimit1 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(TimeLimit1); + } + if (NormalScore2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(NormalScore2); + } + if (EliteScore2 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(EliteScore2); + } + if (BossScore2 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(BossScore2); + } + if (TimeScore2 != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(TimeScore2); + } + if (TimeLimit2 != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(TimeLimit2); + } + eETScore1_.WriteTo(output, _repeated_eETScore1_codec); + eETScore2_.WriteTo(output, _repeated_eETScore2_codec); + if (FHPreviewMonsterGroupId != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(FHPreviewMonsterGroupId); + } + if (SHPreviewMonsterGroupId != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(SHPreviewMonsterGroupId); + } + if (CoverEpisode.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(CoverEpisode); + } + if (Episode.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(Episode); + } + if (Episode2.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(Episode2); + } + fateCardBundle_.WriteTo(output, _repeated_fateCardBundle_codec); + if (SpeciaFateCard.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(SpeciaFateCard); + } + if (SpeciaFateCardParam.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(SpeciaFateCardParam); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + eET_.WriteTo(ref output, _repeated_eET_codec); + notEET_.WriteTo(ref output, _repeated_notEET_codec); + if (SuggestedPower != 0) { + output.WriteRawTag(48); + output.WriteInt32(SuggestedPower); + } + if (RecommendBuildRank != 0) { + output.WriteRawTag(56); + output.WriteInt32(RecommendBuildRank); + } + if (Type != 0) { + output.WriteRawTag(64); + output.WriteInt32(Type); + } + if (PreLevelId != 0) { + output.WriteRawTag(72); + output.WriteInt32(PreLevelId); + } + if (NeedWorldClass != 0) { + output.WriteRawTag(80); + output.WriteInt32(NeedWorldClass); + } + if (FirstQuestGroupId != 0) { + output.WriteRawTag(88); + output.WriteInt32(FirstQuestGroupId); + } + if (LevelGroupId != 0) { + output.WriteRawTag(96); + output.WriteInt32(LevelGroupId); + } + if (FloorId != 0) { + output.WriteRawTag(104); + output.WriteInt32(FloorId); + } + if (NormalScore1 != 0) { + output.WriteRawTag(112); + output.WriteInt32(NormalScore1); + } + if (EliteScore1 != 0) { + output.WriteRawTag(120); + output.WriteInt32(EliteScore1); + } + if (BossScore1 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(BossScore1); + } + if (TimeScore1 != 0) { + output.WriteRawTag(136, 1); + output.WriteInt32(TimeScore1); + } + if (TimeLimit1 != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(TimeLimit1); + } + if (NormalScore2 != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(NormalScore2); + } + if (EliteScore2 != 0) { + output.WriteRawTag(160, 1); + output.WriteInt32(EliteScore2); + } + if (BossScore2 != 0) { + output.WriteRawTag(168, 1); + output.WriteInt32(BossScore2); + } + if (TimeScore2 != 0) { + output.WriteRawTag(176, 1); + output.WriteInt32(TimeScore2); + } + if (TimeLimit2 != 0) { + output.WriteRawTag(184, 1); + output.WriteInt32(TimeLimit2); + } + eETScore1_.WriteTo(ref output, _repeated_eETScore1_codec); + eETScore2_.WriteTo(ref output, _repeated_eETScore2_codec); + if (FHPreviewMonsterGroupId != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(FHPreviewMonsterGroupId); + } + if (SHPreviewMonsterGroupId != 0) { + output.WriteRawTag(216, 1); + output.WriteInt32(SHPreviewMonsterGroupId); + } + if (CoverEpisode.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(CoverEpisode); + } + if (Episode.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(Episode); + } + if (Episode2.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(Episode2); + } + fateCardBundle_.WriteTo(ref output, _repeated_fateCardBundle_codec); + if (SpeciaFateCard.Length != 0) { + output.WriteRawTag(130, 2); + output.WriteString(SpeciaFateCard); + } + if (SpeciaFateCardParam.Length != 0) { + output.WriteRawTag(138, 2); + output.WriteString(SpeciaFateCardParam); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += eET_.CalculateSize(_repeated_eET_codec); + size += notEET_.CalculateSize(_repeated_notEET_codec); + if (SuggestedPower != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SuggestedPower); + } + if (RecommendBuildRank != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecommendBuildRank); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (PreLevelId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId); + } + if (NeedWorldClass != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedWorldClass); + } + if (FirstQuestGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirstQuestGroupId); + } + if (LevelGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LevelGroupId); + } + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId); + } + if (NormalScore1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NormalScore1); + } + if (EliteScore1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EliteScore1); + } + if (BossScore1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(BossScore1); + } + if (TimeScore1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TimeScore1); + } + if (TimeLimit1 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TimeLimit1); + } + if (NormalScore2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(NormalScore2); + } + if (EliteScore2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(EliteScore2); + } + if (BossScore2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(BossScore2); + } + if (TimeScore2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TimeScore2); + } + if (TimeLimit2 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(TimeLimit2); + } + size += eETScore1_.CalculateSize(_repeated_eETScore1_codec); + size += eETScore2_.CalculateSize(_repeated_eETScore2_codec); + if (FHPreviewMonsterGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(FHPreviewMonsterGroupId); + } + if (SHPreviewMonsterGroupId != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(SHPreviewMonsterGroupId); + } + if (CoverEpisode.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CoverEpisode); + } + if (Episode.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Episode); + } + if (Episode2.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Episode2); + } + size += fateCardBundle_.CalculateSize(_repeated_fateCardBundle_codec); + if (SpeciaFateCard.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SpeciaFateCard); + } + if (SpeciaFateCardParam.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SpeciaFateCardParam); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireSurvivor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + eET_.Add(other.eET_); + notEET_.Add(other.notEET_); + if (other.SuggestedPower != 0) { + SuggestedPower = other.SuggestedPower; + } + if (other.RecommendBuildRank != 0) { + RecommendBuildRank = other.RecommendBuildRank; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.PreLevelId != 0) { + PreLevelId = other.PreLevelId; + } + if (other.NeedWorldClass != 0) { + NeedWorldClass = other.NeedWorldClass; + } + if (other.FirstQuestGroupId != 0) { + FirstQuestGroupId = other.FirstQuestGroupId; + } + if (other.LevelGroupId != 0) { + LevelGroupId = other.LevelGroupId; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.NormalScore1 != 0) { + NormalScore1 = other.NormalScore1; + } + if (other.EliteScore1 != 0) { + EliteScore1 = other.EliteScore1; + } + if (other.BossScore1 != 0) { + BossScore1 = other.BossScore1; + } + if (other.TimeScore1 != 0) { + TimeScore1 = other.TimeScore1; + } + if (other.TimeLimit1 != 0) { + TimeLimit1 = other.TimeLimit1; + } + if (other.NormalScore2 != 0) { + NormalScore2 = other.NormalScore2; + } + if (other.EliteScore2 != 0) { + EliteScore2 = other.EliteScore2; + } + if (other.BossScore2 != 0) { + BossScore2 = other.BossScore2; + } + if (other.TimeScore2 != 0) { + TimeScore2 = other.TimeScore2; + } + if (other.TimeLimit2 != 0) { + TimeLimit2 = other.TimeLimit2; + } + eETScore1_.Add(other.eETScore1_); + eETScore2_.Add(other.eETScore2_); + if (other.FHPreviewMonsterGroupId != 0) { + FHPreviewMonsterGroupId = other.FHPreviewMonsterGroupId; + } + if (other.SHPreviewMonsterGroupId != 0) { + SHPreviewMonsterGroupId = other.SHPreviewMonsterGroupId; + } + if (other.CoverEpisode.Length != 0) { + CoverEpisode = other.CoverEpisode; + } + if (other.Episode.Length != 0) { + Episode = other.Episode; + } + if (other.Episode2.Length != 0) { + Episode2 = other.Episode2; + } + fateCardBundle_.Add(other.fateCardBundle_); + if (other.SpeciaFateCard.Length != 0) { + SpeciaFateCard = other.SpeciaFateCard; + } + if (other.SpeciaFateCardParam.Length != 0) { + SpeciaFateCardParam = other.SpeciaFateCardParam; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: + case 32: { + eET_.AddEntriesFrom(input, _repeated_eET_codec); + break; + } + case 42: + case 40: { + notEET_.AddEntriesFrom(input, _repeated_notEET_codec); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + RecommendBuildRank = input.ReadInt32(); + break; + } + case 64: { + Type = input.ReadInt32(); + break; + } + case 72: { + PreLevelId = input.ReadInt32(); + break; + } + case 80: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 88: { + FirstQuestGroupId = input.ReadInt32(); + break; + } + case 96: { + LevelGroupId = input.ReadInt32(); + break; + } + case 104: { + FloorId = input.ReadInt32(); + break; + } + case 112: { + NormalScore1 = input.ReadInt32(); + break; + } + case 120: { + EliteScore1 = input.ReadInt32(); + break; + } + case 128: { + BossScore1 = input.ReadInt32(); + break; + } + case 136: { + TimeScore1 = input.ReadInt32(); + break; + } + case 144: { + TimeLimit1 = input.ReadInt32(); + break; + } + case 152: { + NormalScore2 = input.ReadInt32(); + break; + } + case 160: { + EliteScore2 = input.ReadInt32(); + break; + } + case 168: { + BossScore2 = input.ReadInt32(); + break; + } + case 176: { + TimeScore2 = input.ReadInt32(); + break; + } + case 184: { + TimeLimit2 = input.ReadInt32(); + break; + } + case 194: + case 192: { + eETScore1_.AddEntriesFrom(input, _repeated_eETScore1_codec); + break; + } + case 202: + case 200: { + eETScore2_.AddEntriesFrom(input, _repeated_eETScore2_codec); + break; + } + case 208: { + FHPreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 216: { + SHPreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 226: { + CoverEpisode = input.ReadString(); + break; + } + case 234: { + Episode = input.ReadString(); + break; + } + case 242: { + Episode2 = input.ReadString(); + break; + } + case 250: + case 248: { + fateCardBundle_.AddEntriesFrom(input, _repeated_fateCardBundle_codec); + break; + } + case 258: { + SpeciaFateCard = input.ReadString(); + break; + } + case 266: { + SpeciaFateCardParam = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: + case 32: { + eET_.AddEntriesFrom(ref input, _repeated_eET_codec); + break; + } + case 42: + case 40: { + notEET_.AddEntriesFrom(ref input, _repeated_notEET_codec); + break; + } + case 48: { + SuggestedPower = input.ReadInt32(); + break; + } + case 56: { + RecommendBuildRank = input.ReadInt32(); + break; + } + case 64: { + Type = input.ReadInt32(); + break; + } + case 72: { + PreLevelId = input.ReadInt32(); + break; + } + case 80: { + NeedWorldClass = input.ReadInt32(); + break; + } + case 88: { + FirstQuestGroupId = input.ReadInt32(); + break; + } + case 96: { + LevelGroupId = input.ReadInt32(); + break; + } + case 104: { + FloorId = input.ReadInt32(); + break; + } + case 112: { + NormalScore1 = input.ReadInt32(); + break; + } + case 120: { + EliteScore1 = input.ReadInt32(); + break; + } + case 128: { + BossScore1 = input.ReadInt32(); + break; + } + case 136: { + TimeScore1 = input.ReadInt32(); + break; + } + case 144: { + TimeLimit1 = input.ReadInt32(); + break; + } + case 152: { + NormalScore2 = input.ReadInt32(); + break; + } + case 160: { + EliteScore2 = input.ReadInt32(); + break; + } + case 168: { + BossScore2 = input.ReadInt32(); + break; + } + case 176: { + TimeScore2 = input.ReadInt32(); + break; + } + case 184: { + TimeLimit2 = input.ReadInt32(); + break; + } + case 194: + case 192: { + eETScore1_.AddEntriesFrom(ref input, _repeated_eETScore1_codec); + break; + } + case 202: + case 200: { + eETScore2_.AddEntriesFrom(ref input, _repeated_eETScore2_codec); + break; + } + case 208: { + FHPreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 216: { + SHPreviewMonsterGroupId = input.ReadInt32(); + break; + } + case 226: { + CoverEpisode = input.ReadString(); + break; + } + case 234: { + Episode = input.ReadString(); + break; + } + case 242: { + Episode2 = input.ReadString(); + break; + } + case 250: + case 248: { + fateCardBundle_.AddEntriesFrom(ref input, _repeated_fateCardBundle_codec); + break; + } + case 258: { + SpeciaFateCard = input.ReadString(); + break; + } + case 266: { + SpeciaFateCardParam = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireSurvivorLevel.cs b/NTR.Common/protos/VampireSurvivorLevel.cs new file mode 100644 index 0000000..c0b92b7 --- /dev/null +++ b/NTR.Common/protos/VampireSurvivorLevel.cs @@ -0,0 +1,316 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireSurvivorLevel.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireSurvivorLevel.proto</summary> + public static partial class VampireSurvivorLevelReflection { + + #region Descriptor + /// <summary>File descriptor for VampireSurvivorLevel.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireSurvivorLevelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpWYW1waXJlU3Vydml2b3JMZXZlbC5wcm90byJFChRWYW1waXJlU3Vydml2", + "b3JMZXZlbBIRCglncm91cF9pX2QYASABKAUSDQoFbGV2ZWwYAiABKAUSCwoD", + "ZXhwGAMgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireSurvivorLevel), global::Nova.Client.VampireSurvivorLevel.Parser, new[]{ "GroupID", "Level", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireSurvivorLevel : pb::IMessage<VampireSurvivorLevel> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireSurvivorLevel> _parser = new pb::MessageParser<VampireSurvivorLevel>(() => new VampireSurvivorLevel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireSurvivorLevel> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireSurvivorLevelReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivorLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivorLevel(VampireSurvivorLevel other) : this() { + groupID_ = other.groupID_; + level_ = other.level_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivorLevel Clone() { + return new VampireSurvivorLevel(this); + } + + /// <summary>Field number for the "group_i_d" field.</summary> + public const int GroupIDFieldNumber = 1; + private int groupID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupID { + get { return groupID_; } + set { + groupID_ = value; + } + } + + /// <summary>Field number for the "level" field.</summary> + public const int LevelFieldNumber = 2; + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { return level_; } + set { + level_ = value; + } + } + + /// <summary>Field number for the "exp" field.</summary> + public const int ExpFieldNumber = 3; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireSurvivorLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireSurvivorLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupID != other.GroupID) return false; + if (Level != other.Level) return false; + if (Exp != other.Exp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GroupID != 0) hash ^= GroupID.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GroupID != 0) { + output.WriteRawTag(8); + output.WriteInt32(GroupID); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GroupID != 0) { + output.WriteRawTag(8); + output.WriteInt32(GroupID); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteInt32(Level); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteInt32(Exp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GroupID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupID); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireSurvivorLevel other) { + if (other == null) { + return; + } + if (other.GroupID != 0) { + GroupID = other.GroupID; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GroupID = input.ReadInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 24: { + Exp = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GroupID = input.ReadInt32(); + break; + } + case 16: { + Level = input.ReadInt32(); + break; + } + case 24: { + Exp = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireSurvivorQuest.cs b/NTR.Common/protos/VampireSurvivorQuest.cs new file mode 100644 index 0000000..4614d78 --- /dev/null +++ b/NTR.Common/protos/VampireSurvivorQuest.cs @@ -0,0 +1,766 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireSurvivorQuest.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireSurvivorQuest.proto</summary> + public static partial class VampireSurvivorQuestReflection { + + #region Descriptor + /// <summary>File descriptor for VampireSurvivorQuest.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireSurvivorQuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpWYW1waXJlU3Vydml2b3JRdWVzdC5wcm90byLKAgoUVmFtcGlyZVN1cnZp", + "dm9yUXVlc3QSCgoCaWQYASABKAUSEAoIZ3JvdXBfaWQYAiABKAUSDQoFdGl0", + "bGUYAyABKAkSDAoEZGVzYxgEIAEoCRIPCgdqdW1wX3RvGAUgASgFEg0KBW9y", + "ZGVyGAYgASgFEgwKBHR5cGUYByABKAUSFQoNY29tcGxldGVfY29uZBgIIAEo", + "BRIcChRjb21wbGV0ZV9jb25kX3BhcmFtcxgJIAEoCRIXCg9hd2FyZF9pdGVt", + "X3RpZDEYCiABKAUSFwoPYXdhcmRfaXRlbV9udW0xGAsgASgFEhcKD2F3YXJk", + "X2l0ZW1fdGlkMhgMIAEoBRIXCg9hd2FyZF9pdGVtX251bTIYDSABKAUSFwoP", + "YXdhcmRfaXRlbV90aWQzGA4gASgFEhcKD2F3YXJkX2l0ZW1fbnVtMxgPIAEo", + "BUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireSurvivorQuest), global::Nova.Client.VampireSurvivorQuest.Parser, new[]{ "Id", "GroupId", "Title", "Desc", "JumpTo", "Order", "Type", "CompleteCond", "CompleteCondParams", "AwardItemTid1", "AwardItemNum1", "AwardItemTid2", "AwardItemNum2", "AwardItemTid3", "AwardItemNum3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireSurvivorQuest : pb::IMessage<VampireSurvivorQuest> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireSurvivorQuest> _parser = new pb::MessageParser<VampireSurvivorQuest>(() => new VampireSurvivorQuest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireSurvivorQuest> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireSurvivorQuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivorQuest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivorQuest(VampireSurvivorQuest other) : this() { + id_ = other.id_; + groupId_ = other.groupId_; + title_ = other.title_; + desc_ = other.desc_; + jumpTo_ = other.jumpTo_; + order_ = other.order_; + type_ = other.type_; + completeCond_ = other.completeCond_; + completeCondParams_ = other.completeCondParams_; + awardItemTid1_ = other.awardItemTid1_; + awardItemNum1_ = other.awardItemNum1_; + awardItemTid2_ = other.awardItemTid2_; + awardItemNum2_ = other.awardItemNum2_; + awardItemTid3_ = other.awardItemTid3_; + awardItemNum3_ = other.awardItemNum3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireSurvivorQuest Clone() { + return new VampireSurvivorQuest(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "group_id" field.</summary> + public const int GroupIdFieldNumber = 2; + private int groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 3; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 4; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "jump_to" field.</summary> + public const int JumpToFieldNumber = 5; + private int jumpTo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int JumpTo { + get { return jumpTo_; } + set { + jumpTo_ = value; + } + } + + /// <summary>Field number for the "order" field.</summary> + public const int OrderFieldNumber = 6; + private int order_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Order { + get { return order_; } + set { + order_ = value; + } + } + + /// <summary>Field number for the "type" field.</summary> + public const int TypeFieldNumber = 7; + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { return type_; } + set { + type_ = value; + } + } + + /// <summary>Field number for the "complete_cond" field.</summary> + public const int CompleteCondFieldNumber = 8; + private int completeCond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CompleteCond { + get { return completeCond_; } + set { + completeCond_ = value; + } + } + + /// <summary>Field number for the "complete_cond_params" field.</summary> + public const int CompleteCondParamsFieldNumber = 9; + private string completeCondParams_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CompleteCondParams { + get { return completeCondParams_; } + set { + completeCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "award_item_tid1" field.</summary> + public const int AwardItemTid1FieldNumber = 10; + private int awardItemTid1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid1 { + get { return awardItemTid1_; } + set { + awardItemTid1_ = value; + } + } + + /// <summary>Field number for the "award_item_num1" field.</summary> + public const int AwardItemNum1FieldNumber = 11; + private int awardItemNum1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum1 { + get { return awardItemNum1_; } + set { + awardItemNum1_ = value; + } + } + + /// <summary>Field number for the "award_item_tid2" field.</summary> + public const int AwardItemTid2FieldNumber = 12; + private int awardItemTid2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid2 { + get { return awardItemTid2_; } + set { + awardItemTid2_ = value; + } + } + + /// <summary>Field number for the "award_item_num2" field.</summary> + public const int AwardItemNum2FieldNumber = 13; + private int awardItemNum2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum2 { + get { return awardItemNum2_; } + set { + awardItemNum2_ = value; + } + } + + /// <summary>Field number for the "award_item_tid3" field.</summary> + public const int AwardItemTid3FieldNumber = 14; + private int awardItemTid3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemTid3 { + get { return awardItemTid3_; } + set { + awardItemTid3_ = value; + } + } + + /// <summary>Field number for the "award_item_num3" field.</summary> + public const int AwardItemNum3FieldNumber = 15; + private int awardItemNum3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AwardItemNum3 { + get { return awardItemNum3_; } + set { + awardItemNum3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireSurvivorQuest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireSurvivorQuest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (GroupId != other.GroupId) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (JumpTo != other.JumpTo) return false; + if (Order != other.Order) return false; + if (Type != other.Type) return false; + if (CompleteCond != other.CompleteCond) return false; + if (CompleteCondParams != other.CompleteCondParams) return false; + if (AwardItemTid1 != other.AwardItemTid1) return false; + if (AwardItemNum1 != other.AwardItemNum1) return false; + if (AwardItemTid2 != other.AwardItemTid2) return false; + if (AwardItemNum2 != other.AwardItemNum2) return false; + if (AwardItemTid3 != other.AwardItemTid3) return false; + if (AwardItemNum3 != other.AwardItemNum3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (JumpTo != 0) hash ^= JumpTo.GetHashCode(); + if (Order != 0) hash ^= Order.GetHashCode(); + if (Type != 0) hash ^= Type.GetHashCode(); + if (CompleteCond != 0) hash ^= CompleteCond.GetHashCode(); + if (CompleteCondParams.Length != 0) hash ^= CompleteCondParams.GetHashCode(); + if (AwardItemTid1 != 0) hash ^= AwardItemTid1.GetHashCode(); + if (AwardItemNum1 != 0) hash ^= AwardItemNum1.GetHashCode(); + if (AwardItemTid2 != 0) hash ^= AwardItemTid2.GetHashCode(); + if (AwardItemNum2 != 0) hash ^= AwardItemNum2.GetHashCode(); + if (AwardItemTid3 != 0) hash ^= AwardItemTid3.GetHashCode(); + if (AwardItemNum3 != 0) hash ^= AwardItemNum3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(40); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(48); + output.WriteInt32(Order); + } + if (Type != 0) { + output.WriteRawTag(56); + output.WriteInt32(Type); + } + if (CompleteCond != 0) { + output.WriteRawTag(64); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(AwardItemNum3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(16); + output.WriteInt32(GroupId); + } + if (Title.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Desc); + } + if (JumpTo != 0) { + output.WriteRawTag(40); + output.WriteInt32(JumpTo); + } + if (Order != 0) { + output.WriteRawTag(48); + output.WriteInt32(Order); + } + if (Type != 0) { + output.WriteRawTag(56); + output.WriteInt32(Type); + } + if (CompleteCond != 0) { + output.WriteRawTag(64); + output.WriteInt32(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + output.WriteRawTag(74); + output.WriteString(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + output.WriteRawTag(80); + output.WriteInt32(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + output.WriteRawTag(88); + output.WriteInt32(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + output.WriteRawTag(96); + output.WriteInt32(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + output.WriteRawTag(104); + output.WriteInt32(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + output.WriteRawTag(112); + output.WriteInt32(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + output.WriteRawTag(120); + output.WriteInt32(AwardItemNum3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupId); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (JumpTo != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(JumpTo); + } + if (Order != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Order); + } + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (CompleteCond != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompleteCond); + } + if (CompleteCondParams.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CompleteCondParams); + } + if (AwardItemTid1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid1); + } + if (AwardItemNum1 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum1); + } + if (AwardItemTid2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid2); + } + if (AwardItemNum2 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum2); + } + if (AwardItemTid3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemTid3); + } + if (AwardItemNum3 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AwardItemNum3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireSurvivorQuest other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.JumpTo != 0) { + JumpTo = other.JumpTo; + } + if (other.Order != 0) { + Order = other.Order; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.CompleteCond != 0) { + CompleteCond = other.CompleteCond; + } + if (other.CompleteCondParams.Length != 0) { + CompleteCondParams = other.CompleteCondParams; + } + if (other.AwardItemTid1 != 0) { + AwardItemTid1 = other.AwardItemTid1; + } + if (other.AwardItemNum1 != 0) { + AwardItemNum1 = other.AwardItemNum1; + } + if (other.AwardItemTid2 != 0) { + AwardItemTid2 = other.AwardItemTid2; + } + if (other.AwardItemNum2 != 0) { + AwardItemNum2 = other.AwardItemNum2; + } + if (other.AwardItemTid3 != 0) { + AwardItemTid3 = other.AwardItemTid3; + } + if (other.AwardItemNum3 != 0) { + AwardItemNum3 = other.AwardItemNum3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + JumpTo = input.ReadInt32(); + break; + } + case 48: { + Order = input.ReadInt32(); + break; + } + case 56: { + Type = input.ReadInt32(); + break; + } + case 64: { + CompleteCond = input.ReadInt32(); + break; + } + case 74: { + CompleteCondParams = input.ReadString(); + break; + } + case 80: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 88: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 96: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 104: { + AwardItemNum2 = input.ReadInt32(); + break; + } + case 112: { + AwardItemTid3 = input.ReadInt32(); + break; + } + case 120: { + AwardItemNum3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + GroupId = input.ReadInt32(); + break; + } + case 26: { + Title = input.ReadString(); + break; + } + case 34: { + Desc = input.ReadString(); + break; + } + case 40: { + JumpTo = input.ReadInt32(); + break; + } + case 48: { + Order = input.ReadInt32(); + break; + } + case 56: { + Type = input.ReadInt32(); + break; + } + case 64: { + CompleteCond = input.ReadInt32(); + break; + } + case 74: { + CompleteCondParams = input.ReadString(); + break; + } + case 80: { + AwardItemTid1 = input.ReadInt32(); + break; + } + case 88: { + AwardItemNum1 = input.ReadInt32(); + break; + } + case 96: { + AwardItemTid2 = input.ReadInt32(); + break; + } + case 104: { + AwardItemNum2 = input.ReadInt32(); + break; + } + case 112: { + AwardItemTid3 = input.ReadInt32(); + break; + } + case 120: { + AwardItemNum3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireTalent.cs b/NTR.Common/protos/VampireTalent.cs new file mode 100644 index 0000000..b598d1d --- /dev/null +++ b/NTR.Common/protos/VampireTalent.cs @@ -0,0 +1,643 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireTalent.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireTalent.proto</summary> + public static partial class VampireTalentReflection { + + #region Descriptor + /// <summary>File descriptor for VampireTalent.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireTalentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNWYW1waXJlVGFsZW50LnByb3RvIs4BCg1WYW1waXJlVGFsZW50EgoKAmlk", + "GAEgASgFEgwKBG5hbWUYAiABKAkSEAoIZGVzY190YWcYAyABKAUSDQoFcGFy", + "YW0YBCABKAUSDAoEcHJldhgFIAMoBRIRCglpc19zZXJ2ZXIYBiABKAgSEQoJ", + "aXNfY2xpZW50GAcgASgIEg4KBmVmZmVjdBgIIAEoBRIOCgZwYXJhbXMYCSAB", + "KAkSDQoFcG9pbnQYCiABKAUSDAoEaWNvbhgLIAEoCRIRCgllZmZlY3RfaWQY", + "DCABKAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireTalent), global::Nova.Client.VampireTalent.Parser, new[]{ "Id", "Name", "DescTag", "Param", "Prev", "IsServer", "IsClient", "Effect", "Params", "Point", "Icon", "EffectId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireTalent : pb::IMessage<VampireTalent> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireTalent> _parser = new pb::MessageParser<VampireTalent>(() => new VampireTalent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireTalent> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireTalentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalent(VampireTalent other) : this() { + id_ = other.id_; + name_ = other.name_; + descTag_ = other.descTag_; + param_ = other.param_; + prev_ = other.prev_.Clone(); + isServer_ = other.isServer_; + isClient_ = other.isClient_; + effect_ = other.effect_; + params_ = other.params_; + point_ = other.point_; + icon_ = other.icon_; + effectId_ = other.effectId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalent Clone() { + return new VampireTalent(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "name" field.</summary> + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc_tag" field.</summary> + public const int DescTagFieldNumber = 3; + private int descTag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DescTag { + get { return descTag_; } + set { + descTag_ = value; + } + } + + /// <summary>Field number for the "param" field.</summary> + public const int ParamFieldNumber = 4; + private int param_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Param { + get { return param_; } + set { + param_ = value; + } + } + + /// <summary>Field number for the "prev" field.</summary> + public const int PrevFieldNumber = 5; + private static readonly pb::FieldCodec<int> _repeated_prev_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField<int> prev_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> Prev { + get { return prev_; } + } + + /// <summary>Field number for the "is_server" field.</summary> + public const int IsServerFieldNumber = 6; + private bool isServer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsServer { + get { return isServer_; } + set { + isServer_ = value; + } + } + + /// <summary>Field number for the "is_client" field.</summary> + public const int IsClientFieldNumber = 7; + private bool isClient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsClient { + get { return isClient_; } + set { + isClient_ = value; + } + } + + /// <summary>Field number for the "effect" field.</summary> + public const int EffectFieldNumber = 8; + private int effect_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Effect { + get { return effect_; } + set { + effect_ = value; + } + } + + /// <summary>Field number for the "params" field.</summary> + public const int ParamsFieldNumber = 9; + private string params_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Params { + get { return params_; } + set { + params_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "point" field.</summary> + public const int PointFieldNumber = 10; + private int point_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Point { + get { return point_; } + set { + point_ = value; + } + } + + /// <summary>Field number for the "icon" field.</summary> + public const int IconFieldNumber = 11; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "effect_id" field.</summary> + public const int EffectIdFieldNumber = 12; + private int effectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectId { + get { return effectId_; } + set { + effectId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireTalent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireTalent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (DescTag != other.DescTag) return false; + if (Param != other.Param) return false; + if(!prev_.Equals(other.prev_)) return false; + if (IsServer != other.IsServer) return false; + if (IsClient != other.IsClient) return false; + if (Effect != other.Effect) return false; + if (Params != other.Params) return false; + if (Point != other.Point) return false; + if (Icon != other.Icon) return false; + if (EffectId != other.EffectId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DescTag != 0) hash ^= DescTag.GetHashCode(); + if (Param != 0) hash ^= Param.GetHashCode(); + hash ^= prev_.GetHashCode(); + if (IsServer != false) hash ^= IsServer.GetHashCode(); + if (IsClient != false) hash ^= IsClient.GetHashCode(); + if (Effect != 0) hash ^= Effect.GetHashCode(); + if (Params.Length != 0) hash ^= Params.GetHashCode(); + if (Point != 0) hash ^= Point.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (EffectId != 0) hash ^= EffectId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DescTag != 0) { + output.WriteRawTag(24); + output.WriteInt32(DescTag); + } + if (Param != 0) { + output.WriteRawTag(32); + output.WriteInt32(Param); + } + prev_.WriteTo(output, _repeated_prev_codec); + if (IsServer != false) { + output.WriteRawTag(48); + output.WriteBool(IsServer); + } + if (IsClient != false) { + output.WriteRawTag(56); + output.WriteBool(IsClient); + } + if (Effect != 0) { + output.WriteRawTag(64); + output.WriteInt32(Effect); + } + if (Params.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Params); + } + if (Point != 0) { + output.WriteRawTag(80); + output.WriteInt32(Point); + } + if (Icon.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Icon); + } + if (EffectId != 0) { + output.WriteRawTag(96); + output.WriteInt32(EffectId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (DescTag != 0) { + output.WriteRawTag(24); + output.WriteInt32(DescTag); + } + if (Param != 0) { + output.WriteRawTag(32); + output.WriteInt32(Param); + } + prev_.WriteTo(ref output, _repeated_prev_codec); + if (IsServer != false) { + output.WriteRawTag(48); + output.WriteBool(IsServer); + } + if (IsClient != false) { + output.WriteRawTag(56); + output.WriteBool(IsClient); + } + if (Effect != 0) { + output.WriteRawTag(64); + output.WriteInt32(Effect); + } + if (Params.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Params); + } + if (Point != 0) { + output.WriteRawTag(80); + output.WriteInt32(Point); + } + if (Icon.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Icon); + } + if (EffectId != 0) { + output.WriteRawTag(96); + output.WriteInt32(EffectId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DescTag != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DescTag); + } + if (Param != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Param); + } + size += prev_.CalculateSize(_repeated_prev_codec); + if (IsServer != false) { + size += 1 + 1; + } + if (IsClient != false) { + size += 1 + 1; + } + if (Effect != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect); + } + if (Params.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Params); + } + if (Point != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Point); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (EffectId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireTalent other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DescTag != 0) { + DescTag = other.DescTag; + } + if (other.Param != 0) { + Param = other.Param; + } + prev_.Add(other.prev_); + if (other.IsServer != false) { + IsServer = other.IsServer; + } + if (other.IsClient != false) { + IsClient = other.IsClient; + } + if (other.Effect != 0) { + Effect = other.Effect; + } + if (other.Params.Length != 0) { + Params = other.Params; + } + if (other.Point != 0) { + Point = other.Point; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.EffectId != 0) { + EffectId = other.EffectId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + DescTag = input.ReadInt32(); + break; + } + case 32: { + Param = input.ReadInt32(); + break; + } + case 42: + case 40: { + prev_.AddEntriesFrom(input, _repeated_prev_codec); + break; + } + case 48: { + IsServer = input.ReadBool(); + break; + } + case 56: { + IsClient = input.ReadBool(); + break; + } + case 64: { + Effect = input.ReadInt32(); + break; + } + case 74: { + Params = input.ReadString(); + break; + } + case 80: { + Point = input.ReadInt32(); + break; + } + case 90: { + Icon = input.ReadString(); + break; + } + case 96: { + EffectId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + DescTag = input.ReadInt32(); + break; + } + case 32: { + Param = input.ReadInt32(); + break; + } + case 42: + case 40: { + prev_.AddEntriesFrom(ref input, _repeated_prev_codec); + break; + } + case 48: { + IsServer = input.ReadBool(); + break; + } + case 56: { + IsClient = input.ReadBool(); + break; + } + case 64: { + Effect = input.ReadInt32(); + break; + } + case 74: { + Params = input.ReadString(); + break; + } + case 80: { + Point = input.ReadInt32(); + break; + } + case 90: { + Icon = input.ReadString(); + break; + } + case 96: { + EffectId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireTalentDesc.cs b/NTR.Common/protos/VampireTalentDesc.cs new file mode 100644 index 0000000..c3d59dd --- /dev/null +++ b/NTR.Common/protos/VampireTalentDesc.cs @@ -0,0 +1,279 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireTalentDesc.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireTalentDesc.proto</summary> + public static partial class VampireTalentDescReflection { + + #region Descriptor + /// <summary>File descriptor for VampireTalentDesc.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireTalentDescReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdWYW1waXJlVGFsZW50RGVzYy5wcm90byIsChFWYW1waXJlVGFsZW50RGVz", + "YxIKCgJpZBgBIAEoBRILCgNudW0YAiABKAlCDqoCC05vdmEuQ2xpZW50YgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireTalentDesc), global::Nova.Client.VampireTalentDesc.Parser, new[]{ "Id", "Num" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireTalentDesc : pb::IMessage<VampireTalentDesc> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireTalentDesc> _parser = new pb::MessageParser<VampireTalentDesc>(() => new VampireTalentDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireTalentDesc> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireTalentDescReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalentDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalentDesc(VampireTalentDesc other) : this() { + id_ = other.id_; + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalentDesc Clone() { + return new VampireTalentDesc(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "num" field.</summary> + public const int NumFieldNumber = 2; + private string num_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Num { + get { return num_; } + set { + num_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireTalentDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireTalentDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Num != other.Num) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Num.Length != 0) hash ^= Num.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Num.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Num.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Num.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireTalentDesc other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Num.Length != 0) { + Num = other.Num; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Num = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Num = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VampireTalentFloor.cs b/NTR.Common/protos/VampireTalentFloor.cs new file mode 100644 index 0000000..27d396a --- /dev/null +++ b/NTR.Common/protos/VampireTalentFloor.cs @@ -0,0 +1,307 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VampireTalentFloor.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VampireTalentFloor.proto</summary> + public static partial class VampireTalentFloorReflection { + + #region Descriptor + /// <summary>File descriptor for VampireTalentFloor.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VampireTalentFloorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhWYW1waXJlVGFsZW50Rmxvb3IucHJvdG8iQAoSVmFtcGlyZVRhbGVudEZs", + "b29yEgoKAmlkGAEgASgFEgsKA251bRgCIAEoBRIRCgl0YWxlbnRfaWQYAyAD", + "KAVCDqoCC05vdmEuQ2xpZW50YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VampireTalentFloor), global::Nova.Client.VampireTalentFloor.Parser, new[]{ "Id", "Num", "TalentId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VampireTalentFloor : pb::IMessage<VampireTalentFloor> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VampireTalentFloor> _parser = new pb::MessageParser<VampireTalentFloor>(() => new VampireTalentFloor()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VampireTalentFloor> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VampireTalentFloorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalentFloor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalentFloor(VampireTalentFloor other) : this() { + id_ = other.id_; + num_ = other.num_; + talentId_ = other.talentId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VampireTalentFloor Clone() { + return new VampireTalentFloor(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "num" field.</summary> + public const int NumFieldNumber = 2; + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { return num_; } + set { + num_ = value; + } + } + + /// <summary>Field number for the "talent_id" field.</summary> + public const int TalentIdFieldNumber = 3; + private static readonly pb::FieldCodec<int> _repeated_talentId_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField<int> talentId_ = new pbc::RepeatedField<int>(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField<int> TalentId { + get { return talentId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VampireTalentFloor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VampireTalentFloor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Num != other.Num) return false; + if(!talentId_.Equals(other.talentId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Num != 0) hash ^= Num.GetHashCode(); + hash ^= talentId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Num != 0) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + talentId_.WriteTo(output, _repeated_talentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Num != 0) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + talentId_.WriteTo(ref output, _repeated_talentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + size += talentId_.CalculateSize(_repeated_talentId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VampireTalentFloor other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Num != 0) { + Num = other.Num; + } + talentId_.Add(other.talentId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 26: + case 24: { + talentId_.AddEntriesFrom(input, _repeated_talentId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 26: + case 24: { + talentId_.AddEntriesFrom(ref input, _repeated_talentId_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/VoDirectory.cs b/NTR.Common/protos/VoDirectory.cs new file mode 100644 index 0000000..5c67301 --- /dev/null +++ b/NTR.Common/protos/VoDirectory.cs @@ -0,0 +1,428 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VoDirectory.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from VoDirectory.proto</summary> + public static partial class VoDirectoryReflection { + + #region Descriptor + /// <summary>File descriptor for VoDirectory.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VoDirectoryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFWb0RpcmVjdG9yeS5wcm90byJzCgtWb0RpcmVjdG9yeRIKCgJpZBgBIAEo", + "BRITCgt2b19yZXNvdXJjZRgCIAEoCRIUCgxjaGFyYWN0ZXJfaWQYAyABKAUS", + "DgoGdm90eXBlGAQgASgJEg0KBWxpbmVzGAUgASgJEg4KBm1vdGlvbhgGIAEo", + "CUIOqgILTm92YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.VoDirectory), global::Nova.Client.VoDirectory.Parser, new[]{ "Id", "VoResource", "CharacterId", "Votype", "Lines", "Motion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VoDirectory : pb::IMessage<VoDirectory> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<VoDirectory> _parser = new pb::MessageParser<VoDirectory>(() => new VoDirectory()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<VoDirectory> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.VoDirectoryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoDirectory() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoDirectory(VoDirectory other) : this() { + id_ = other.id_; + voResource_ = other.voResource_; + characterId_ = other.characterId_; + votype_ = other.votype_; + lines_ = other.lines_; + motion_ = other.motion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoDirectory Clone() { + return new VoDirectory(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "vo_resource" field.</summary> + public const int VoResourceFieldNumber = 2; + private string voResource_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VoResource { + get { return voResource_; } + set { + voResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "character_id" field.</summary> + public const int CharacterIdFieldNumber = 3; + private int characterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CharacterId { + get { return characterId_; } + set { + characterId_ = value; + } + } + + /// <summary>Field number for the "votype" field.</summary> + public const int VotypeFieldNumber = 4; + private string votype_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Votype { + get { return votype_; } + set { + votype_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "lines" field.</summary> + public const int LinesFieldNumber = 5; + private string lines_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Lines { + get { return lines_; } + set { + lines_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "motion" field.</summary> + public const int MotionFieldNumber = 6; + private string motion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Motion { + get { return motion_; } + set { + motion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VoDirectory); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VoDirectory other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (VoResource != other.VoResource) return false; + if (CharacterId != other.CharacterId) return false; + if (Votype != other.Votype) return false; + if (Lines != other.Lines) return false; + if (Motion != other.Motion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (VoResource.Length != 0) hash ^= VoResource.GetHashCode(); + if (CharacterId != 0) hash ^= CharacterId.GetHashCode(); + if (Votype.Length != 0) hash ^= Votype.GetHashCode(); + if (Lines.Length != 0) hash ^= Lines.GetHashCode(); + if (Motion.Length != 0) hash ^= Motion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (VoResource.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VoResource); + } + if (CharacterId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CharacterId); + } + if (Votype.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Votype); + } + if (Lines.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Lines); + } + if (Motion.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Motion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (VoResource.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VoResource); + } + if (CharacterId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CharacterId); + } + if (Votype.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Votype); + } + if (Lines.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Lines); + } + if (Motion.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Motion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (VoResource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VoResource); + } + if (CharacterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterId); + } + if (Votype.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Votype); + } + if (Lines.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Lines); + } + if (Motion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Motion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VoDirectory other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.VoResource.Length != 0) { + VoResource = other.VoResource; + } + if (other.CharacterId != 0) { + CharacterId = other.CharacterId; + } + if (other.Votype.Length != 0) { + Votype = other.Votype; + } + if (other.Lines.Length != 0) { + Lines = other.Lines; + } + if (other.Motion.Length != 0) { + Motion = other.Motion; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + VoResource = input.ReadString(); + break; + } + case 24: { + CharacterId = input.ReadInt32(); + break; + } + case 34: { + Votype = input.ReadString(); + break; + } + case 42: { + Lines = input.ReadString(); + break; + } + case 50: { + Motion = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + VoResource = input.ReadString(); + break; + } + case 24: { + CharacterId = input.ReadInt32(); + break; + } + case 34: { + Votype = input.ReadString(); + break; + } + case 42: { + Lines = input.ReadString(); + break; + } + case 50: { + Motion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/WeightParameter.cs b/NTR.Common/protos/WeightParameter.cs new file mode 100644 index 0000000..cc6f60d --- /dev/null +++ b/NTR.Common/protos/WeightParameter.cs @@ -0,0 +1,316 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WeightParameter.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from WeightParameter.proto</summary> + public static partial class WeightParameterReflection { + + #region Descriptor + /// <summary>File descriptor for WeightParameter.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static WeightParameterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVXZWlnaHRQYXJhbWV0ZXIucHJvdG8iQQoPV2VpZ2h0UGFyYW1ldGVyEgoK", + "AmlkGAEgASgFEhIKCnByb3BvcnRpb24YAiABKAUSDgoGZWZmZWN0GAMgASgF", + "Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.WeightParameter), global::Nova.Client.WeightParameter.Parser, new[]{ "Id", "Proportion", "Effect" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WeightParameter : pb::IMessage<WeightParameter> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<WeightParameter> _parser = new pb::MessageParser<WeightParameter>(() => new WeightParameter()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<WeightParameter> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.WeightParameterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeightParameter() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeightParameter(WeightParameter other) : this() { + id_ = other.id_; + proportion_ = other.proportion_; + effect_ = other.effect_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WeightParameter Clone() { + return new WeightParameter(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "proportion" field.</summary> + public const int ProportionFieldNumber = 2; + private int proportion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Proportion { + get { return proportion_; } + set { + proportion_ = value; + } + } + + /// <summary>Field number for the "effect" field.</summary> + public const int EffectFieldNumber = 3; + private int effect_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Effect { + get { return effect_; } + set { + effect_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WeightParameter); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WeightParameter other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Proportion != other.Proportion) return false; + if (Effect != other.Effect) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Proportion != 0) hash ^= Proportion.GetHashCode(); + if (Effect != 0) hash ^= Effect.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Proportion != 0) { + output.WriteRawTag(16); + output.WriteInt32(Proportion); + } + if (Effect != 0) { + output.WriteRawTag(24); + output.WriteInt32(Effect); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Proportion != 0) { + output.WriteRawTag(16); + output.WriteInt32(Proportion); + } + if (Effect != 0) { + output.WriteRawTag(24); + output.WriteInt32(Effect); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Proportion != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Proportion); + } + if (Effect != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Effect); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WeightParameter other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Proportion != 0) { + Proportion = other.Proportion; + } + if (other.Effect != 0) { + Effect = other.Effect; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Proportion = input.ReadInt32(); + break; + } + case 24: { + Effect = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Proportion = input.ReadInt32(); + break; + } + case 24: { + Effect = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/Word.cs b/NTR.Common/protos/Word.cs new file mode 100644 index 0000000..27ccdd4 --- /dev/null +++ b/NTR.Common/protos/Word.cs @@ -0,0 +1,764 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Word.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from Word.proto</summary> + public static partial class WordReflection { + + #region Descriptor + /// <summary>File descriptor for Word.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static WordReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpXb3JkLnByb3RvIu0BCgRXb3JkEgoKAmlkGAEgASgFEg0KBXRpdGxlGAIg", + "ASgJEgwKBGRlc2MYAyABKAkSDQoFY29sb3IYBCABKAkSDAoEaWNvbhgFIAEo", + "CRIOCgZwYXJhbTEYBiABKAkSDgoGcGFyYW0yGAcgASgJEg4KBnBhcmFtMxgI", + "IAEoCRIOCgZwYXJhbTQYCSABKAkSDgoGcGFyYW01GAogASgJEg4KBnBhcmFt", + "NhgLIAEoCRIOCgZwYXJhbTcYDCABKAkSDgoGcGFyYW04GA0gASgJEg4KBnBh", + "cmFtORgOIAEoCRIPCgdwYXJhbTEwGA8gASgJQg6qAgtOb3ZhLkNsaWVudGIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Word), global::Nova.Client.Word.Parser, new[]{ "Id", "Title", "Desc", "Color", "Icon", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6", "Param7", "Param8", "Param9", "Param10" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Word : pb::IMessage<Word> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<Word> _parser = new pb::MessageParser<Word>(() => new Word()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<Word> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.WordReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Word() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Word(Word other) : this() { + id_ = other.id_; + title_ = other.title_; + desc_ = other.desc_; + color_ = other.color_; + icon_ = other.icon_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + param5_ = other.param5_; + param6_ = other.param6_; + param7_ = other.param7_; + param8_ = other.param8_; + param9_ = other.param9_; + param10_ = other.param10_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Word Clone() { + return new Word(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 3; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "color" field.</summary> + public const int ColorFieldNumber = 4; + private string color_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Color { + get { return color_; } + set { + color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "icon" field.</summary> + public const int IconFieldNumber = 5; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param1" field.</summary> + public const int Param1FieldNumber = 6; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param2" field.</summary> + public const int Param2FieldNumber = 7; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param3" field.</summary> + public const int Param3FieldNumber = 8; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param4" field.</summary> + public const int Param4FieldNumber = 9; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param5" field.</summary> + public const int Param5FieldNumber = 10; + private string param5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param5 { + get { return param5_; } + set { + param5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param6" field.</summary> + public const int Param6FieldNumber = 11; + private string param6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param6 { + get { return param6_; } + set { + param6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param7" field.</summary> + public const int Param7FieldNumber = 12; + private string param7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param7 { + get { return param7_; } + set { + param7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param8" field.</summary> + public const int Param8FieldNumber = 13; + private string param8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param8 { + get { return param8_; } + set { + param8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param9" field.</summary> + public const int Param9FieldNumber = 14; + private string param9_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param9 { + get { return param9_; } + set { + param9_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param10" field.</summary> + public const int Param10FieldNumber = 15; + private string param10_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param10 { + get { return param10_; } + set { + param10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Word); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Word other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Desc != other.Desc) return false; + if (Color != other.Color) return false; + if (Icon != other.Icon) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + if (Param5 != other.Param5) return false; + if (Param6 != other.Param6) return false; + if (Param7 != other.Param7) return false; + if (Param8 != other.Param8) return false; + if (Param9 != other.Param9) return false; + if (Param10 != other.Param10) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Color.Length != 0) hash ^= Color.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (Param5.Length != 0) hash ^= Param5.GetHashCode(); + if (Param6.Length != 0) hash ^= Param6.GetHashCode(); + if (Param7.Length != 0) hash ^= Param7.GetHashCode(); + if (Param8.Length != 0) hash ^= Param8.GetHashCode(); + if (Param9.Length != 0) hash ^= Param9.GetHashCode(); + if (Param10.Length != 0) hash ^= Param10.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Color.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Color); + } + if (Icon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon); + } + if (Param1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Desc.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (Color.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Color); + } + if (Icon.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Icon); + } + if (Param1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Color.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Param1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (Param5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param5); + } + if (Param6.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param6); + } + if (Param7.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param7); + } + if (Param8.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param8); + } + if (Param9.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param9); + } + if (Param10.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param10); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Word other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Color.Length != 0) { + Color = other.Color; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + if (other.Param5.Length != 0) { + Param5 = other.Param5; + } + if (other.Param6.Length != 0) { + Param6 = other.Param6; + } + if (other.Param7.Length != 0) { + Param7 = other.Param7; + } + if (other.Param8.Length != 0) { + Param8 = other.Param8; + } + if (other.Param9.Length != 0) { + Param9 = other.Param9; + } + if (other.Param10.Length != 0) { + Param10 = other.Param10; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Color = input.ReadString(); + break; + } + case 42: { + Icon = input.ReadString(); + break; + } + case 50: { + Param1 = input.ReadString(); + break; + } + case 58: { + Param2 = input.ReadString(); + break; + } + case 66: { + Param3 = input.ReadString(); + break; + } + case 74: { + Param4 = input.ReadString(); + break; + } + case 82: { + Param5 = input.ReadString(); + break; + } + case 90: { + Param6 = input.ReadString(); + break; + } + case 98: { + Param7 = input.ReadString(); + break; + } + case 106: { + Param8 = input.ReadString(); + break; + } + case 114: { + Param9 = input.ReadString(); + break; + } + case 122: { + Param10 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + Color = input.ReadString(); + break; + } + case 42: { + Icon = input.ReadString(); + break; + } + case 50: { + Param1 = input.ReadString(); + break; + } + case 58: { + Param2 = input.ReadString(); + break; + } + case 66: { + Param3 = input.ReadString(); + break; + } + case 74: { + Param4 = input.ReadString(); + break; + } + case 82: { + Param5 = input.ReadString(); + break; + } + case 90: { + Param6 = input.ReadString(); + break; + } + case 98: { + Param7 = input.ReadString(); + break; + } + case 106: { + Param8 = input.ReadString(); + break; + } + case 114: { + Param9 = input.ReadString(); + break; + } + case 122: { + Param10 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/WordSuper.cs b/NTR.Common/protos/WordSuper.cs new file mode 100644 index 0000000..7d012f8 --- /dev/null +++ b/NTR.Common/protos/WordSuper.cs @@ -0,0 +1,764 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WordSuper.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from WordSuper.proto</summary> + public static partial class WordSuperReflection { + + #region Descriptor + /// <summary>File descriptor for WordSuper.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static WordSuperReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Xb3JkU3VwZXIucHJvdG8i8gEKCVdvcmRTdXBlchIKCgJpZBgBIAEoBRIN", + "CgV0aXRsZRgCIAEoCRINCgVjb2xvchgDIAEoCRIMCgRpY29uGAQgASgJEgwK", + "BGRlc2MYBSABKAkSDgoGcGFyYW0xGAYgASgJEg4KBnBhcmFtMhgHIAEoCRIO", + "CgZwYXJhbTMYCCABKAkSDgoGcGFyYW00GAkgASgJEg4KBnBhcmFtNRgKIAEo", + "CRIOCgZwYXJhbTYYCyABKAkSDgoGcGFyYW03GAwgASgJEg4KBnBhcmFtOBgN", + "IAEoCRIOCgZwYXJhbTkYDiABKAkSDwoHcGFyYW0xMBgPIAEoCUIOqgILTm92", + "YS5DbGllbnRiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.WordSuper), global::Nova.Client.WordSuper.Parser, new[]{ "Id", "Title", "Color", "Icon", "Desc", "Param1", "Param2", "Param3", "Param4", "Param5", "Param6", "Param7", "Param8", "Param9", "Param10" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WordSuper : pb::IMessage<WordSuper> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<WordSuper> _parser = new pb::MessageParser<WordSuper>(() => new WordSuper()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<WordSuper> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.WordSuperReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WordSuper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WordSuper(WordSuper other) : this() { + id_ = other.id_; + title_ = other.title_; + color_ = other.color_; + icon_ = other.icon_; + desc_ = other.desc_; + param1_ = other.param1_; + param2_ = other.param2_; + param3_ = other.param3_; + param4_ = other.param4_; + param5_ = other.param5_; + param6_ = other.param6_; + param7_ = other.param7_; + param8_ = other.param8_; + param9_ = other.param9_; + param10_ = other.param10_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WordSuper Clone() { + return new WordSuper(this); + } + + /// <summary>Field number for the "id" field.</summary> + public const int IdFieldNumber = 1; + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + /// <summary>Field number for the "title" field.</summary> + public const int TitleFieldNumber = 2; + private string title_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "color" field.</summary> + public const int ColorFieldNumber = 3; + private string color_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Color { + get { return color_; } + set { + color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "icon" field.</summary> + public const int IconFieldNumber = 4; + private string icon_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "desc" field.</summary> + public const int DescFieldNumber = 5; + private string desc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param1" field.</summary> + public const int Param1FieldNumber = 6; + private string param1_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param1 { + get { return param1_; } + set { + param1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param2" field.</summary> + public const int Param2FieldNumber = 7; + private string param2_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param2 { + get { return param2_; } + set { + param2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param3" field.</summary> + public const int Param3FieldNumber = 8; + private string param3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param3 { + get { return param3_; } + set { + param3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param4" field.</summary> + public const int Param4FieldNumber = 9; + private string param4_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param4 { + get { return param4_; } + set { + param4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param5" field.</summary> + public const int Param5FieldNumber = 10; + private string param5_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param5 { + get { return param5_; } + set { + param5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param6" field.</summary> + public const int Param6FieldNumber = 11; + private string param6_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param6 { + get { return param6_; } + set { + param6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param7" field.</summary> + public const int Param7FieldNumber = 12; + private string param7_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param7 { + get { return param7_; } + set { + param7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param8" field.</summary> + public const int Param8FieldNumber = 13; + private string param8_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param8 { + get { return param8_; } + set { + param8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param9" field.</summary> + public const int Param9FieldNumber = 14; + private string param9_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param9 { + get { return param9_; } + set { + param9_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "param10" field.</summary> + public const int Param10FieldNumber = 15; + private string param10_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Param10 { + get { return param10_; } + set { + param10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WordSuper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WordSuper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Color != other.Color) return false; + if (Icon != other.Icon) return false; + if (Desc != other.Desc) return false; + if (Param1 != other.Param1) return false; + if (Param2 != other.Param2) return false; + if (Param3 != other.Param3) return false; + if (Param4 != other.Param4) return false; + if (Param5 != other.Param5) return false; + if (Param6 != other.Param6) return false; + if (Param7 != other.Param7) return false; + if (Param8 != other.Param8) return false; + if (Param9 != other.Param9) return false; + if (Param10 != other.Param10) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id != 0) hash ^= Id.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Color.Length != 0) hash ^= Color.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Param1.Length != 0) hash ^= Param1.GetHashCode(); + if (Param2.Length != 0) hash ^= Param2.GetHashCode(); + if (Param3.Length != 0) hash ^= Param3.GetHashCode(); + if (Param4.Length != 0) hash ^= Param4.GetHashCode(); + if (Param5.Length != 0) hash ^= Param5.GetHashCode(); + if (Param6.Length != 0) hash ^= Param6.GetHashCode(); + if (Param7.Length != 0) hash ^= Param7.GetHashCode(); + if (Param8.Length != 0) hash ^= Param8.GetHashCode(); + if (Param9.Length != 0) hash ^= Param9.GetHashCode(); + if (Param10.Length != 0) hash ^= Param10.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Color.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Color); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Param1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id != 0) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (Color.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Color); + } + if (Icon.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Icon); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (Param1.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Param1); + } + if (Param2.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Param2); + } + if (Param3.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Param3); + } + if (Param4.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Param4); + } + if (Param5.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Param5); + } + if (Param6.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Param6); + } + if (Param7.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Param7); + } + if (Param8.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Param8); + } + if (Param9.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Param9); + } + if (Param10.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Param10); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Color.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Param1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param1); + } + if (Param2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param2); + } + if (Param3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param3); + } + if (Param4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param4); + } + if (Param5.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param5); + } + if (Param6.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param6); + } + if (Param7.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param7); + } + if (Param8.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param8); + } + if (Param9.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param9); + } + if (Param10.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Param10); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WordSuper other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Color.Length != 0) { + Color = other.Color; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Param1.Length != 0) { + Param1 = other.Param1; + } + if (other.Param2.Length != 0) { + Param2 = other.Param2; + } + if (other.Param3.Length != 0) { + Param3 = other.Param3; + } + if (other.Param4.Length != 0) { + Param4 = other.Param4; + } + if (other.Param5.Length != 0) { + Param5 = other.Param5; + } + if (other.Param6.Length != 0) { + Param6 = other.Param6; + } + if (other.Param7.Length != 0) { + Param7 = other.Param7; + } + if (other.Param8.Length != 0) { + Param8 = other.Param8; + } + if (other.Param9.Length != 0) { + Param9 = other.Param9; + } + if (other.Param10.Length != 0) { + Param10 = other.Param10; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Color = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Param1 = input.ReadString(); + break; + } + case 58: { + Param2 = input.ReadString(); + break; + } + case 66: { + Param3 = input.ReadString(); + break; + } + case 74: { + Param4 = input.ReadString(); + break; + } + case 82: { + Param5 = input.ReadString(); + break; + } + case 90: { + Param6 = input.ReadString(); + break; + } + case 98: { + Param7 = input.ReadString(); + break; + } + case 106: { + Param8 = input.ReadString(); + break; + } + case 114: { + Param9 = input.ReadString(); + break; + } + case 122: { + Param10 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Color = input.ReadString(); + break; + } + case 34: { + Icon = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + Param1 = input.ReadString(); + break; + } + case 58: { + Param2 = input.ReadString(); + break; + } + case 66: { + Param3 = input.ReadString(); + break; + } + case 74: { + Param4 = input.ReadString(); + break; + } + case 82: { + Param5 = input.ReadString(); + break; + } + case 90: { + Param6 = input.ReadString(); + break; + } + case 98: { + Param7 = input.ReadString(); + break; + } + case 106: { + Param8 = input.ReadString(); + break; + } + case 114: { + Param9 = input.ReadString(); + break; + } + case 122: { + Param10 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.Common/protos/WorldClass.cs b/NTR.Common/protos/WorldClass.cs new file mode 100644 index 0000000..9cbbbb3 --- /dev/null +++ b/NTR.Common/protos/WorldClass.cs @@ -0,0 +1,465 @@ +// <auto-generated> +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WorldClass.proto +// </auto-generated> +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Nova.Client { + + /// <summary>Holder for reflection information generated from WorldClass.proto</summary> + public static partial class WorldClassReflection { + + #region Descriptor + /// <summary>File descriptor for WorldClass.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static WorldClassReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBXb3JsZENsYXNzLnByb3RvIoEBCgpXb3JsZENsYXNzEgwKBHJhbmsYASAB", + "KAUSCwoDZXhwGAIgASgFEg0KBWxpbWl0GAMgASgFEg0KBWFkZGVkGAQgASgF", + "EhQKDGRvdWJsZV9jb3VudBgFIAEoBRIOCgZyZXdhcmQYBiABKAkSFAoMcmV3", + "YXJkX2xpbWl0GAcgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.WorldClass), global::Nova.Client.WorldClass.Parser, new[]{ "Rank", "Exp", "Limit", "Added", "DoubleCount", "Reward", "RewardLimit" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorldClass : pb::IMessage<WorldClass> + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser<WorldClass> _parser = new pb::MessageParser<WorldClass>(() => new WorldClass()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser<WorldClass> Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Nova.Client.WorldClassReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorldClass() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorldClass(WorldClass other) : this() { + rank_ = other.rank_; + exp_ = other.exp_; + limit_ = other.limit_; + added_ = other.added_; + doubleCount_ = other.doubleCount_; + reward_ = other.reward_; + rewardLimit_ = other.rewardLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorldClass Clone() { + return new WorldClass(this); + } + + /// <summary>Field number for the "rank" field.</summary> + public const int RankFieldNumber = 1; + private int rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + /// <summary>Field number for the "exp" field.</summary> + public const int ExpFieldNumber = 2; + private int exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// <summary>Field number for the "limit" field.</summary> + public const int LimitFieldNumber = 3; + private int limit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Limit { + get { return limit_; } + set { + limit_ = value; + } + } + + /// <summary>Field number for the "added" field.</summary> + public const int AddedFieldNumber = 4; + private int added_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Added { + get { return added_; } + set { + added_ = value; + } + } + + /// <summary>Field number for the "double_count" field.</summary> + public const int DoubleCountFieldNumber = 5; + private int doubleCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DoubleCount { + get { return doubleCount_; } + set { + doubleCount_ = value; + } + } + + /// <summary>Field number for the "reward" field.</summary> + public const int RewardFieldNumber = 6; + private string reward_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reward { + get { return reward_; } + set { + reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "reward_limit" field.</summary> + public const int RewardLimitFieldNumber = 7; + private int rewardLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RewardLimit { + get { return rewardLimit_; } + set { + rewardLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorldClass); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorldClass other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Rank != other.Rank) return false; + if (Exp != other.Exp) return false; + if (Limit != other.Limit) return false; + if (Added != other.Added) return false; + if (DoubleCount != other.DoubleCount) return false; + if (Reward != other.Reward) return false; + if (RewardLimit != other.RewardLimit) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (Limit != 0) hash ^= Limit.GetHashCode(); + if (Added != 0) hash ^= Added.GetHashCode(); + if (DoubleCount != 0) hash ^= DoubleCount.GetHashCode(); + if (Reward.Length != 0) hash ^= Reward.GetHashCode(); + if (RewardLimit != 0) hash ^= RewardLimit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Rank != 0) { + output.WriteRawTag(8); + output.WriteInt32(Rank); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (Limit != 0) { + output.WriteRawTag(24); + output.WriteInt32(Limit); + } + if (Added != 0) { + output.WriteRawTag(32); + output.WriteInt32(Added); + } + if (DoubleCount != 0) { + output.WriteRawTag(40); + output.WriteInt32(DoubleCount); + } + if (Reward.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Reward); + } + if (RewardLimit != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Rank != 0) { + output.WriteRawTag(8); + output.WriteInt32(Rank); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteInt32(Exp); + } + if (Limit != 0) { + output.WriteRawTag(24); + output.WriteInt32(Limit); + } + if (Added != 0) { + output.WriteRawTag(32); + output.WriteInt32(Added); + } + if (DoubleCount != 0) { + output.WriteRawTag(40); + output.WriteInt32(DoubleCount); + } + if (Reward.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Reward); + } + if (RewardLimit != 0) { + output.WriteRawTag(56); + output.WriteInt32(RewardLimit); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp); + } + if (Limit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); + } + if (Added != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Added); + } + if (DoubleCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DoubleCount); + } + if (Reward.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reward); + } + if (RewardLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardLimit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorldClass other) { + if (other == null) { + return; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + if (other.Limit != 0) { + Limit = other.Limit; + } + if (other.Added != 0) { + Added = other.Added; + } + if (other.DoubleCount != 0) { + DoubleCount = other.DoubleCount; + } + if (other.Reward.Length != 0) { + Reward = other.Reward; + } + if (other.RewardLimit != 0) { + RewardLimit = other.RewardLimit; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Rank = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + case 24: { + Limit = input.ReadInt32(); + break; + } + case 32: { + Added = input.ReadInt32(); + break; + } + case 40: { + DoubleCount = input.ReadInt32(); + break; + } + case 50: { + Reward = input.ReadString(); + break; + } + case 56: { + RewardLimit = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Rank = input.ReadInt32(); + break; + } + case 16: { + Exp = input.ReadInt32(); + break; + } + case 24: { + Limit = input.ReadInt32(); + break; + } + case 32: { + Added = input.ReadInt32(); + break; + } + case 40: { + DoubleCount = input.ReadInt32(); + break; + } + case 50: { + Reward = input.ReadString(); + break; + } + case 56: { + RewardLimit = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/NTR.GameServer/GameServer.cs b/NTR.GameServer/GameServer.cs new file mode 100644 index 0000000..565e20e --- /dev/null +++ b/NTR.GameServer/GameServer.cs @@ -0,0 +1,61 @@ +using System.Net.Sockets; +using System.Net; +using Serilog; +using System.Reflection; +using NTR.GameServer.Protocol; + +namespace NTR.GameServer +{ + public class GameServer + { + private readonly TcpListener listener; + + private static GameServer _instance; + public static readonly int GameServerPort = 6969; + + public static GameServer Instance + { + get + { + return _instance ??= new GameServer(); + } + } + + public GameServer() + { + listener = new(IPAddress.Parse("0.0.0.0"), GameServerPort); + } + + public void Start() + { + while (true) + { + try + { + listener.Start(); + + Log.Information($"{nameof(GameServer)} started and listening on port {GameServerPort}"); + + while (true) + { + TcpClient tcpClient = listener.AcceptTcpClient(); + string id = tcpClient.Client.RemoteEndPoint!.ToString()!; + + Log.Information($"{id} connected"); + + Task.Run(() => HandleMessage(tcpClient)); + } + } catch (Exception ex) + { + Log.Information("TCP listener error: " + ex.Message); + } + } + } + public void HandleMessage(TcpClient tcpClient) + { + Connection connection = Connection.CreateConnection(tcpClient); + + connection.HandleMessage(tcpClient); + } + } +} \ No newline at end of file diff --git a/NTR.GameServer/NTR.GameServer.csproj b/NTR.GameServer/NTR.GameServer.csproj new file mode 100644 index 0000000..2b826fa --- /dev/null +++ b/NTR.GameServer/NTR.GameServer.csproj @@ -0,0 +1,14 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Library</OutputType> + <TargetFramework>net8.0</TargetFramework> + <ImplicitUsings>enable</ImplicitUsings> + <Nullable>enable</Nullable> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> + <PackageReference Include="Serilog" Version="3.1.1" /> + </ItemGroup> +</Project> diff --git a/NTR.GameServer/Protocol/Connection.cs b/NTR.GameServer/Protocol/Connection.cs new file mode 100644 index 0000000..2a4e85e --- /dev/null +++ b/NTR.GameServer/Protocol/Connection.cs @@ -0,0 +1,45 @@ +using Serilog; +using System.IO; +using System.Net.Sockets; +using System.Reflection; + +namespace NTR.GameServer.Protocol +{ + public class Connection + { + private TcpClient tcpClient; + + private BinaryReader reader; + + private long sendSequence; + + private int messageCount_; + + private int sendingMessageCount_; + + public static Connection CreateConnection(TcpClient tcpClient) + { + return new Connection(tcpClient); + } + + public Connection(TcpClient tcpClient) { + this.tcpClient = tcpClient; + this.reader = new BinaryReader(new StreamReader(tcpClient.GetStream()).BaseStream); + } + + public void HandleMessage(TcpClient tcpClient) + { + while (tcpClient.Connected) + { + if (tcpClient.GetStream().DataAvailable) + { + string message = reader.ReadString(); + Log.Information($"Received message: {message}"); + } + } + + tcpClient.Close(); + Log.Information("Client Disconnected!"); + } + } +} diff --git a/NTR.SDKServer/Controllers/ClientController.cs b/NTR.SDKServer/Controllers/ClientController.cs new file mode 100644 index 0000000..aa667fb --- /dev/null +++ b/NTR.SDKServer/Controllers/ClientController.cs @@ -0,0 +1,92 @@ +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; +using Pb; + +namespace NTR.SDKServer.Controllers +{ + [ApiController] + [Route("/")] + public class LauncherSDKController : ControllerBase + { + private readonly ILogger<LauncherSDKController> _logger; + + public LauncherSDKController(ILogger<LauncherSDKController> logger) + { + _logger = logger; + } + + [Route("meta/serverlist.html")] + public IActionResult GetConfig() + { + Console.WriteLine("serverlist get received!"); + //https://nova-static.yostar.cn/meta/serverlist.html + + ServerListMeta serverListMeta = new ServerListMeta() + { + Status = 200, + Announcement = "sdjsldkfsf", + }; + + + + var responseContent = System.IO.File.ReadAllBytes("E:\\documents\\Decompiling\\Extracted\\NOVA\\PS\\NTR.SDKServer\\bodyencrypted"); + + Console.WriteLine("responseContent: " + responseContent); + var responseHeaders = new HeaderDictionary + { + { "Server", "Tengine" }, + { "Content-Type", "text/html; charset=utf-8" }, + { "Content-Length", responseContent.Length.ToString() }, + { "Connection", "keep-alive" }, + { "Date", DateTime.UtcNow.ToString("R") }, + { "x-oss-request-id", "677E5AB989F0063436699689" }, + { "x-oss-cdn-auth", "success" }, + { "Accept-Ranges", "bytes" }, + { "ETag", "\"F7BF56AF4420F308AE12106BDE15B4A0\"" }, + { "Last-Modified", DateTime.UtcNow.AddHours(-8).ToString("R") }, + { "x-oss-object-type", "Normal" }, + { "x-oss-hash-crc64ecma", "15118450623091409826" }, + { "x-oss-storage-class", "Standard" }, + { "Content-MD5", "979Wr0Qg8wiuEhBr3hW0oA==" }, + { "x-oss-server-time", "50" }, + { "Via", "ens-cache14.l2us3[1761,1761,200-0,M], ens-cache29.l2us3[1762,0], ens-cache15.us23[0,0,200-0,H], ens-cache9.us23[13,0]" }, + { "Age", "17639" }, + { "Ali-Swift-Global-Savetime", "1736334009" }, + { "X-Cache", "HIT TCP_HIT dirn:10:384655405" }, + { "X-Swift-SaveTime", DateTime.UtcNow.ToString("R") }, + { "X-Swift-CacheTime", "93312000" }, + { "Timing-Allow-Origin", "*" }, + { "EagleId", "0826799d17363516484194117e" } + }; + + //var response = new ContentResult + //{ + // Content = responseContent, + // ContentType = "text/html; charset=utf-8", + // StatusCode = 200 + //}; + + //foreach (var header in responseHeaders) + //{ + // Response.Headers[header.Key] = header.Value; + //} + + return null; + } + + [HttpGet("{*catchAll}")] + public IResult CatchAllGet(string catchAll) + { + _logger.LogDebug($"HttpGet: {catchAll}"); + return Results.Empty; + } + + [HttpPost("{*catchAll}")] + public IResult CatchAllPost(string catchAll) + { + _logger.LogDebug($"HttpGet: {catchAll}"); + return Results.Empty; + } + } +} + diff --git a/NTR.SDKServer/NTR.SDKServer.csproj b/NTR.SDKServer/NTR.SDKServer.csproj new file mode 100644 index 0000000..477ab0c --- /dev/null +++ b/NTR.SDKServer/NTR.SDKServer.csproj @@ -0,0 +1,22 @@ +<Project Sdk="Microsoft.NET.Sdk.Web"> + + <PropertyGroup> + <TargetFramework>net8.0</TargetFramework> + <Nullable>enable</Nullable> + <ImplicitUsings>enable</ImplicitUsings> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="DotNetZip" Version="1.16.0" /> + <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2"> + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> + <PrivateAssets>all</PrivateAssets> + </PackageReference> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> + <PackageReference Include="Serilog.AspNetCore" Version="8.0.1" /> + </ItemGroup> + + <ItemGroup> + <ProjectReference Include="..\NTR.Common\NTR.Common.csproj" /> + </ItemGroup> +</Project> diff --git a/NTR.SDKServer/Properties/launchSettings.json b/NTR.SDKServer/Properties/launchSettings.json new file mode 100644 index 0000000..05d1176 --- /dev/null +++ b/NTR.SDKServer/Properties/launchSettings.json @@ -0,0 +1,14 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "profiles": { + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "externalUrlConfiguration": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/NTR.SDKServer/SDKServer.cs b/NTR.SDKServer/SDKServer.cs new file mode 100644 index 0000000..5cc71d2 --- /dev/null +++ b/NTR.SDKServer/SDKServer.cs @@ -0,0 +1,64 @@ +using System.Reflection; +using Microsoft.AspNetCore.Server.Kestrel.Core; +using Pb; +using Serilog; + +namespace NTR.SDKServer +{ + public class SDKServer + { + public static void Main(string[] args) + { + byte[] serverlistResponse = new byte[] +{ + 8, 37, 18, 56, 10, 12, 229, 144, 175, 230, 152, 142, 230, 181, 139, 232, + 175, 149, 18, 36, 104, 116, 116, 112, 115, 58, 47, 47, 110, 111, 118, 97, + 46, 121, 111, 115, 116, 97, 114, 46, 99, 110, 47, 97, 103, 101, 110, 116, + 45, 122, 111, 110, 101, 45, 49, 47, 24, 1, 32, 1, 24, 1, 34, 52, 230, 181, + 139, 232, 175, 149, 229, 176, 154, 230, 156, 170, 229, 188, 128, 229, 167, + 139, 239, 188, 140, 233, 162, 132, 232, 174, 161, 229, 188, 128, 230, 156, + 141, 230, 151, 182, 233, 151, 180, 49, 230, 156, 136, 57, 230, 151, 165, + 49, 49, 58, 48, 48, 50, 30, 104, 116, 116, 112, 115, 58, 47, 47, 110, 111, + 118, 97, 46, 121, 111, 115, 116, 97, 114, 46, 99, 110, 47, 114, 101, 112, + 111, 114, 116, 47 +}; + + ServerListMeta serverListMeta = ServerListMeta.Parser.ParseFrom(serverlistResponse); + + Console.WriteLine(serverListMeta); + + System.IO.File.WriteAllText("E:\\documents\\Decompiling\\Extracted\\NOVA\\PS\\NTR.SDKServer\\serverlist.json", serverListMeta.ToString()); + + return; + Log.Information("Starting SDK Server..."); + try + { + var builder = WebApplication.CreateBuilder(args); + + builder.Services.Configure<KestrelServerOptions>(op => + op.AllowSynchronousIO = true + ); + builder.Host.UseSerilog(); + + builder.Services.AddControllers(); + builder.Services.AddControllers().AddApplicationPart(Assembly.GetAssembly(typeof(SDKServer))); + + var app = builder.Build(); + + app.UseAuthorization(); + app.UseSerilogRequestLogging(); + + app.MapControllers(); + app.Run(); + } + catch (Exception ex) + { + Log.Fatal(ex, "An unhandled exception occurred during runtime"); + } + finally + { + Log.CloseAndFlush(); + } + } + } +} diff --git a/NTR.SDKServer/appsettings.json b/NTR.SDKServer/appsettings.json new file mode 100644 index 0000000..4c4eb94 --- /dev/null +++ b/NTR.SDKServer/appsettings.json @@ -0,0 +1,23 @@ +{ + "Kestrel": { + "EndPoints": { + "Http": { + "Url": "https://0.0.0.0:443" + }, + + "Https": { + "Url": "https://0.0.0.0:80" + } + } + }, + "Serilog": { + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } + }, + "AllowedHosts": "*" +} diff --git a/NTR.SDKServer/bodyencrypted b/NTR.SDKServer/bodyencrypted new file mode 100644 index 0000000..e675f12 --- /dev/null +++ b/NTR.SDKServer/bodyencrypted @@ -0,0 +1 @@ +\=HY@2=2;cH&9SBo{g83R<N/_ n-'yzkD-Zn1SLTx֧rzU4c"#aES s#w;~4ngh gg:2jT+IΈRF3]? \ No newline at end of file diff --git a/NTR.SDKServer/serverlist.json b/NTR.SDKServer/serverlist.json new file mode 100644 index 0000000..87b56af --- /dev/null +++ b/NTR.SDKServer/serverlist.json @@ -0,0 +1,14 @@ +{ + "version": "37", + "agent": [ + { + "name": "启明测试", + "addr": "https://nova.yostar.cn/agent-zone-1/", + "status": 1, + "zone": "1" + } + ], + "status": 1, + "message": "测试尚未开始,预计开服时间1月9日11:00", + "reportEndpoint": "https://nova.yostar.cn/report/" +} \ No newline at end of file diff --git a/NTR.sln b/NTR.sln new file mode 100644 index 0000000..a598411 --- /dev/null +++ b/NTR.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34607.119 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NTR", "NTR\NTR.csproj", "{355DD995-D62E-45E5-A793-0C7444B47AC0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NTR.SDKServer", "NTR.SDKServer\NTR.SDKServer.csproj", "{B95D975D-7B6C-4454-949D-4ABEF2F32CD6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NTR.GameServer", "NTR.GameServer\NTR.GameServer.csproj", "{A96262D4-4E2F-4380-BBF7-56871022CDBA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NTR.Common", "NTR.Common\NTR.Common.csproj", "{37D76E89-3E54-4DD7-A182-4123BC4E0DEA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {355DD995-D62E-45E5-A793-0C7444B47AC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {355DD995-D62E-45E5-A793-0C7444B47AC0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {355DD995-D62E-45E5-A793-0C7444B47AC0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {355DD995-D62E-45E5-A793-0C7444B47AC0}.Release|Any CPU.Build.0 = Release|Any CPU + {B95D975D-7B6C-4454-949D-4ABEF2F32CD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B95D975D-7B6C-4454-949D-4ABEF2F32CD6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B95D975D-7B6C-4454-949D-4ABEF2F32CD6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B95D975D-7B6C-4454-949D-4ABEF2F32CD6}.Release|Any CPU.Build.0 = Release|Any CPU + {A96262D4-4E2F-4380-BBF7-56871022CDBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A96262D4-4E2F-4380-BBF7-56871022CDBA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A96262D4-4E2F-4380-BBF7-56871022CDBA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A96262D4-4E2F-4380-BBF7-56871022CDBA}.Release|Any CPU.Build.0 = Release|Any CPU + {37D76E89-3E54-4DD7-A182-4123BC4E0DEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {37D76E89-3E54-4DD7-A182-4123BC4E0DEA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {37D76E89-3E54-4DD7-A182-4123BC4E0DEA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {37D76E89-3E54-4DD7-A182-4123BC4E0DEA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {05CA4D67-C259-43C1-BEF3-FF525EDCF452} + EndGlobalSection +EndGlobal diff --git a/NTR/NTR.csproj b/NTR/NTR.csproj new file mode 100644 index 0000000..dfa0b93 --- /dev/null +++ b/NTR/NTR.csproj @@ -0,0 +1,15 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>net8.0</TargetFramework> + <ImplicitUsings>enable</ImplicitUsings> + <Nullable>enable</Nullable> + </PropertyGroup> + + <ItemGroup> + <ProjectReference Include="..\NTR.GameServer\NTR.GameServer.csproj" /> + <ProjectReference Include="..\NTR.SDKServer\NTR.SDKServer.csproj" /> + </ItemGroup> + +</Project> diff --git a/NTR/Program.cs b/NTR/Program.cs new file mode 100644 index 0000000..bfa6371 --- /dev/null +++ b/NTR/Program.cs @@ -0,0 +1,55 @@ +using Microsoft.Extensions.Configuration; +using Serilog.Events; +using Serilog; + +namespace NTR +{ + internal class Program + { + public static void Main(string[] args) + { + var config = new ConfigurationBuilder() + .SetBasePath(Path.GetDirectoryName(AppContext.BaseDirectory)!) + .AddJsonFile("appsettings.json") + .AddJsonFile( + $"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"}.json", + true + ) + .AddJsonFile("appsettings.Local.json", true) + .Build(); + + { + var logFilePath = Path.Combine( + Path.GetDirectoryName(AppContext.BaseDirectory)!, + "logs", + "log.txt" + ); + + if (File.Exists(logFilePath)) + { + var prevLogFilePath = Path.Combine( + Path.GetDirectoryName(logFilePath)!, + "log-prev.txt" + ); + if (File.Exists(prevLogFilePath)) + File.Delete(prevLogFilePath); + + File.Move(logFilePath, prevLogFilePath); + } + + Log.Logger = new LoggerConfiguration() + .WriteTo.Console() + .WriteTo.File( + logFilePath, + restrictedToMinimumLevel: LogEventLevel.Verbose, + shared: true + ) + .ReadFrom.Configuration(config) + .CreateBootstrapLogger(); + } + + Task.Run(GameServer.GameServer.Instance.Start); + SDKServer.SDKServer.Main(args); + } + } +} \ No newline at end of file